{"_id":"sdk-base","_rev":"3018226","name":"sdk-base","description":"a base class for sdk with default error handler","dist-tags":{"latest":"4.2.1"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"time":{"modified":"2023-11-02T08:18:55.000Z","created":"2014-09-02T06:50:20.767Z","4.2.1":"2022-12-17T16:06:26.960Z","4.2.0":"2022-12-08T16:01:59.938Z","4.1.0":"2022-12-03T14:04:46.320Z","4.0.0":"2022-12-03T08:32:49.394Z","3.6.0":"2019-04-24T05:20:56.541Z","3.5.1":"2018-09-27T13:54:11.670Z","3.5.0":"2018-07-26T09:26:52.672Z","3.4.0":"2017-11-24T00:53:41.954Z","3.3.0":"2017-09-17T08:18:05.308Z","3.2.0":"2017-06-26T06:54:47.363Z","3.1.1":"2017-03-14T04:18:25.472Z","3.1.0":"2017-02-17T05:53:56.215Z","3.0.1":"2017-01-12T10:19:09.352Z","3.0.0":"2017-01-12T08:42:20.401Z","2.0.1":"2016-03-11T09:03:31.863Z","2.0.0":"2016-03-11T06:37:17.630Z","1.1.0":"2015-11-14T10:00:29.413Z","1.0.1":"2014-11-06T05:42:04.209Z","1.0.0":"2014-09-02T06:50:20.767Z"},"users":{},"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"versions":{"4.2.1":{"name":"sdk-base","version":"4.2.1","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","tsd":"tsd","test":"npm run lint && npm run tsd && npm run test-local","test-local":"egg-bin test -r co-mocha","cov":"egg-bin cov -r co-mocha","ci":"npm run lint && npm run tsd && npm run cov","contributor":"git-contributor"},"keywords":["sdk","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","p-timeout":"^4.1.0"},"devDependencies":{"@types/node":"^14.18.34","co-mocha":"^1.2.2","egg-bin":"^5.5.0","eslint":"^8.29.0","eslint-config-egg":"^12.1.0","git-contributor":"^1.1.0","pedding":"^1.1.0","runscript":"^1.3.0","tsd":"^0.25.0","typescript":"^4.9.3"},"engine":{"node":">= 14.0.0"},"types":"./index.d.ts","gitHead":"3cbec9fce198424e299bf95de5c797484baac087","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@4.2.1","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"shasum":"2c82054956c4e3c5e402efe5cc9f8d51ae6144b1","size":5288,"noattachment":false,"key":"/sdk-base/-/sdk-base-4.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-4.2.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_4.2.1_1671293186781_0.7364208150255727"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-17T16:06:33.036Z","publish_time":1671293186960,"_cnpm_publish_time":1671293186960},"4.2.0":{"name":"sdk-base","version":"4.2.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","tsd":"tsd","test":"npm run lint && npm run tsd && npm run test-local","test-local":"egg-bin test -r co-mocha","cov":"egg-bin cov -r co-mocha","ci":"npm run lint && npm run tsd && npm run cov","contributor":"git-contributor"},"keywords":["sdk","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","p-timeout":"^4.1.0"},"devDependencies":{"@types/node":"^14.18.34","co-mocha":"^1.2.2","egg-bin":"^5.5.0","egg-ci":"^2.2.0","eslint":"^8.29.0","eslint-config-egg":"^12.1.0","git-contributor":"^1.1.0","pedding":"^1.1.0","runscript":"^1.3.0","tsd":"^0.25.0","typescript":"^4.9.3"},"engine":{"node":">= 14.0.0"},"ci":{"version":"14, 16, 18","os":"linux"},"gitHead":"3e3416d37c225fe4f1298959201a97826a9b7d06","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@4.2.0","_nodeVersion":"18.12.1","_npmVersion":"6.14.17","dist":{"shasum":"1393a7c4cabce65697643f70376dc94f22853f8f","size":6746,"noattachment":false,"key":"/sdk-base/-/sdk-base-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-4.2.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_4.2.0_1670515319769_0.890770041101447"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-08T16:02:09.821Z","publish_time":1670515319938,"_cnpm_publish_time":1670515319938},"4.1.0":{"name":"sdk-base","version":"4.1.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","tsd":"tsd","test":"npm run lint && npm run test-local","test-local":"egg-bin test -r co-mocha","cov":"egg-bin cov -r co-mocha","ci":"npm run lint && npm run tsd && npm run cov","contributor":"git-contributor"},"keywords":["sdk","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","p-timeout":"^4.1.0"},"devDependencies":{"@types/node":"^14.18.34","co-mocha":"^1.2.2","egg-bin":"^5.5.0","egg-ci":"^2.2.0","eslint":"^8.29.0","eslint-config-egg":"^12.1.0","git-contributor":"^1.1.0","pedding":"^1.1.0","runscript":"^1.3.0","tsd":"^0.25.0","typescript":"^4.9.3"},"engine":{"node":">= 14.0.0"},"ci":{"version":"14, 16, 18","os":"linux"},"gitHead":"c75bab2bbf28f72b90292d3abb5549298534cc37","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@4.1.0","_nodeVersion":"18.12.1","_npmVersion":"6.14.17","dist":{"shasum":"67eac7f73e400c619e80aed393c53a623a1c0678","size":6641,"noattachment":false,"key":"/sdk-base/-/sdk-base-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-4.1.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_4.1.0_1670076286161_0.3937028589215874"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-03T14:04:51.254Z","publish_time":1670076286320,"_cnpm_publish_time":1670076286320},"4.0.0":{"name":"sdk-base","version":"4.0.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test -r co-mocha","cov":"egg-bin cov -r co-mocha","ci":"npm run lint && npm run cov","contributor":"git-contributor"},"keywords":["sdk","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0"},"devDependencies":{"@types/node":"^14.18.34","co-mocha":"^1.2.2","egg-bin":"^5.5.0","egg-ci":"^2.2.0","eslint":"^8.29.0","eslint-config-egg":"^12.1.0","git-contributor":"^1.1.0","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^4.9.3"},"engine":{"node":">= 14.0.0"},"ci":{"version":"14, 16, 18","os":"linux"},"gitHead":"3cff1b6f5372a9cc771bbf12ff92f418767e6aa5","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@4.0.0","_nodeVersion":"18.12.1","_npmVersion":"6.14.17","dist":{"shasum":"2bf2ee9af3d69608c91f99f91b07163fd611c4ef","size":6311,"noattachment":false,"key":"/sdk-base/-/sdk-base-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-4.0.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_4.0.0_1670056369232_0.747751967194902"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-03T08:32:53.240Z","publish_time":1670056369394,"_cnpm_publish_time":1670056369394},"3.6.0":{"name":"sdk-base","version":"3.6.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","autod":"autod","pkgfiles":"egg-bin pkgfiles --check"},"keywords":["sdk","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","is-type-of":"^1.2.1"},"devDependencies":{"@types/node":"^10.5.3","autod":"^3.1.0","egg-bin":"^4.12.3","egg-ci":"^1.11.0","eslint":"^5.16.0","eslint-config-egg":"^7.3.1","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^3.4.3"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 8, 10, 11"},"gitHead":"68bc9df041b0aed669ad72316b42afb8db2e78d4","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.6.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},"dist":{"shasum":"7cee1fa3a81fdc61b2c20d1130c8765f8d90e588","size":5641,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.6.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_3.6.0_1556083256216_0.6759358128319113"},"_hasShrinkwrap":false,"publish_time":1556083256541,"_cnpm_publish_time":1556083256541},"3.5.1":{"name":"sdk-base","version":"3.5.1","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","autod":"autod","pkgfiles":"egg-bin pkgfiles --check"},"keywords":["sdk","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","is-type-of":"^1.2.0"},"devDependencies":{"@types/node":"^10.5.3","autod":"^3.0.1","egg-bin":"^4.3.5","egg-ci":"^1.8.0","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^2.9.2"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 8, 9"},"gitHead":"2d7fabe07b48e45c668938c26d07241e1db8c651","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.5.1","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"2e1a927a456d94327d802074650077c767c3103a","size":5288,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.5.1.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_3.5.1_1538056450944_0.929156341719821"},"_hasShrinkwrap":false,"publish_time":1538056451670,"_cnpm_publish_time":1538056451670},"3.5.0":{"name":"sdk-base","version":"3.5.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","autod":"autod","pkgfiles":"egg-bin pkgfiles --check"},"keywords":["sdk","error"],"files":["index.js","index.d.ts"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","is-type-of":"^1.2.0"},"devDependencies":{"@types/node":"^10.5.3","autod":"^3.0.1","egg-bin":"^4.3.5","egg-ci":"^1.8.0","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^2.9.2"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 8, 9"},"gitHead":"3c5aeb7746fd0802230a8f834878c344cdd1643f","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.5.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"15111f3a8ce0968bbbddd0ab27ca60ae4b591da2","size":5194,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.5.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base_3.5.0_1532597212615_0.27759033521098986"},"_hasShrinkwrap":false,"publish_time":1532597212672,"_cnpm_publish_time":1532597212672},"3.4.0":{"name":"sdk-base","version":"3.4.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","autod":"autod","pkgfiles":"egg-bin pkgfiles --check"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","await-first":"^1.0.0","co":"^4.6.0","is-type-of":"^1.2.0"},"devDependencies":{"autod":"^3.0.1","egg-bin":"^4.3.5","egg-ci":"^1.8.0","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 8, 9"},"gitHead":"f975763047a461fc8d0758f08dd52e16078f5bc9","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.4.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},"dist":{"shasum":"a05eabb9990c6b8e7f52f92d84e9c78940406a17","size":4698,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.4.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base-3.4.0.tgz_1511484821881_0.5391107480973005"},"directories":{},"publish_time":1511484821954,"_hasShrinkwrap":false,"_cnpm_publish_time":1511484821954},"3.3.0":{"name":"sdk-base","version":"3.3.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.1.0","co":"^4.6.0","is-type-of":"^1.2.0"},"devDependencies":{"autod":"^2.9.0","egg-bin":"^4.3.2","egg-ci":"^1.8.0","eslint":"^4.6.1","eslint-config-egg":"^5.1.1","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 8"},"gitHead":"6598ba4e9d2891a696edc218da22a1afe1ed3b78","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"77f39687b6963e061d2c2374b0a9d3a4ebadd729","size":4455,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.3.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base-3.3.0.tgz_1505636284749_0.09363600797951221"},"directories":{},"publish_time":1505636285308,"_cnpm_publish_time":1505636285308,"_hasShrinkwrap":false},"3.2.0":{"name":"sdk-base","version":"3.2.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.0.0","co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"autod":"^2.7.1","egg-bin":"^2.4.0","egg-ci":"^1.5.0","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"c63399674c203068fd19e3ea5c4c144d64dd28be","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.2.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"f6e61f0b6b18125bc1bb537390443e53e2912d85","size":4241,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.2.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-base-3.2.0.tgz_1498460087203_0.20031924080103636"},"directories":{},"publish_time":1498460087363,"_cnpm_publish_time":1498460087363,"_hasShrinkwrap":false},"3.1.1":{"name":"sdk-base","version":"3.1.1","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.0.0","co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"autod":"^2.7.1","egg-bin":"^2.4.0","egg-ci":"^1.5.0","eslint":"^3.17.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"d059aaca01a04fb64805c50fc07777735e15aa57","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.1.1","_shasum":"8f06f53215281a17519b8ea8b2799268cddb234d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"8f06f53215281a17519b8ea8b2799268cddb234d","size":4157,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.1.1.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sdk-base-3.1.1.tgz_1489465105246_0.4228855238761753"},"directories":{},"publish_time":1489465105472,"_cnpm_publish_time":1489465105472,"_hasShrinkwrap":false},"3.1.0":{"name":"sdk-base","version":"3.1.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"await-event":"^2.0.0","co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"autod":"^2.7.1","egg-bin":"^2.2.0","egg-ci":"^1.1.0","eslint":"^3.15.0","eslint-config-egg":"^3.2.0","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"282b10c016823f1d6fab52d7614c62bf86ee446b","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.1.0","_shasum":"667f4bb81d6b72d79fc440ba5a96375eafd3fad8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"667f4bb81d6b72d79fc440ba5a96375eafd3fad8","size":4113,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.1.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sdk-base-3.1.0.tgz_1487310834370_0.6170360997784883"},"directories":{},"publish_time":1487310836215,"_cnpm_publish_time":1487310836215,"_hasShrinkwrap":false},"3.0.1":{"name":"sdk-base","version":"3.0.1","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"egg-bin":"^1.10.0","egg-ci":"^1.1.0","eslint":"^3.13.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"a3da003891df3b5f7fa15955567e0b8450dc6e8c","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.0.1","_shasum":"54653ff724c1b7457114b95eaaf01593f8ea59dc","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"gxcsoccer","email":"gxcsoccer@126.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"dist":{"shasum":"54653ff724c1b7457114b95eaaf01593f8ea59dc","size":3929,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sdk-base-3.0.1.tgz_1484216349134_0.8049603269901127"},"directories":{},"publish_time":1484216349352,"_cnpm_publish_time":1484216349352,"_hasShrinkwrap":false},"3.0.0":{"name":"sdk-base","version":"3.0.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"egg-bin":"^1.10.0","egg-ci":"^1.1.0","eslint":"^3.13.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0"},"engine":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"a02be1f28620687b8fb1f3de7bbd047a11060360","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@3.0.0","_shasum":"9345e8e9058cf93db407a0c7b108b978181d3a98","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"9345e8e9058cf93db407a0c7b108b978181d3a98","size":3891,"noattachment":false,"key":"/sdk-base/-/sdk-base-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-3.0.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sdk-base-3.0.0.tgz_1484210538612_0.6085741901770234"},"directories":{},"publish_time":1484210540401,"_cnpm_publish_time":1484210540401,"_hasShrinkwrap":false},"2.0.1":{"name":"sdk-base","version":"2.0.1","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover _mocha -- -t 5000 -r should test/*.test.js"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"get-ready":"~1.0.0"},"devDependencies":{"istanbul":"*","mocha":"*","should":"7"},"engine":{"node":">=0.10"},"gitHead":"14c82875ba239fbb22647b13cd581497470279d6","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@2.0.1","_shasum":"ba40289e8bdf272ed11dd9ea97eaf98e036d24c6","_from":".","_npmVersion":"2.12.0","_nodeVersion":"4.2.4","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"ba40289e8bdf272ed11dd9ea97eaf98e036d24c6","size":1865,"noattachment":false,"key":"/sdk-base/-/sdk-base-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-2.0.1.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/sdk-base-2.0.1.tgz_1457687009772_0.4970480320043862"},"directories":{},"publish_time":1457687011863,"_cnpm_publish_time":1457687011863,"_hasShrinkwrap":false},"2.0.0":{"name":"sdk-base","version":"2.0.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover _mocha -- -t 5000 -r should test/*.test.js"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"get-ready":"~1.0.0"},"devDependencies":{"istanbul":"*","mocha":"*","should":"7"},"engine":{"node":">=0.10"},"gitHead":"a3fabf2b7611a37a695ac9fbbbd369432eb1d70d","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@2.0.0","_shasum":"0026c4d3b478f91f4b0e5b0a2876873880d83839","_from":".","_npmVersion":"2.12.0","_nodeVersion":"4.2.4","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"0026c4d3b478f91f4b0e5b0a2876873880d83839","size":1853,"noattachment":false,"key":"/sdk-base/-/sdk-base-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-2.0.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sdk-base-2.0.0.tgz_1457678235307_0.5983589049428701"},"directories":{},"publish_time":1457678237630,"_cnpm_publish_time":1457678237630,"_hasShrinkwrap":false},"1.1.0":{"name":"sdk-base","version":"1.1.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover _mocha -- -t 5000 -r should test/*.test.js"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"license":"MIT","dependencies":{"get-ready":"~1.0.0"},"devDependencies":{"istanbul":"*","mocha":"*","should":"7"},"engine":{"node":">=0.10"},"gitHead":"0a1575e450e08dd6b4808051e33d77a1204bb5e9","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_id":"sdk-base@1.1.0","_shasum":"66174ea8834672e399a39d12afe1240a9b23c75d","_from":".","_npmVersion":"2.12.0","_nodeVersion":"4.0.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"66174ea8834672e399a39d12afe1240a9b23c75d","size":1868,"noattachment":false,"key":"/sdk-base/-/sdk-base-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-1.1.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"directories":{},"publish_time":1447495229413,"_cnpm_publish_time":1447495229413,"_hasShrinkwrap":false},"1.0.1":{"name":"sdk-base","version":"1.0.1","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"test":"make test"},"keywords":["sdk","error"],"files":["index.js"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git@github.com:node-modules/sdk-base"},"license":"MIT","dependencies":{},"devDependencies":{"autod":"~0.3.2","istanbul":"*","mocha":"~1.21.4","should":"~4.0.4"},"engine":{"node":">=0.8"},"gitHead":"76c20d22778b7fd84007da622811711f5398d722","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base","_id":"sdk-base@1.0.1","_shasum":"5d5af5ce499eebe677dfe6f8a3128e8582d9ba79","_from":".","_npmVersion":"2.0.0-beta.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"dist":{"shasum":"5d5af5ce499eebe677dfe6f8a3128e8582d9ba79","size":1613,"noattachment":false,"key":"/sdk-base/-/sdk-base-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-1.0.1.tgz"},"directories":{},"publish_time":1415252524209,"_cnpm_publish_time":1415252524209,"_hasShrinkwrap":false},"1.0.0":{"name":"sdk-base","version":"1.0.0","description":"a base class for sdk with default error handler","main":"index.js","scripts":{"test":"make test"},"keywords":[],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git@github.com:node-modules/sdk-base"},"license":"MIT","dependencies":{},"devDependencies":{"autod":"~0.3.2","mocha":"~1.21.4","should":"~4.0.4"},"engine":{"node":">=0.8"},"gitHead":"fe4b779fef0f707a2dc0b932d53d63838502f158","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base","_id":"sdk-base@1.0.0","_shasum":"28afb289bf9376834d329a4244f93505de77c38e","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"popomore","email":""}],"dist":{"shasum":"28afb289bf9376834d329a4244f93505de77c38e","size":1495,"noattachment":false,"key":"/sdk-base/-/sdk-base-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sdk-base/download/sdk-base-1.0.0.tgz"},"directories":{},"publish_time":1409640620767,"_cnpm_publish_time":1409640620767,"_hasShrinkwrap":false}},"readme":"sdk-base\n---------------\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/node-modules/sdk-base/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/sdk-base/actions/workflows/nodejs.yml)\n[![Test coverage][coveralls-image]][coveralls-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/sdk-base.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/sdk-base\n[coveralls-image]: https://img.shields.io/coveralls/node-modules/sdk-base.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/node-modules/sdk-base?branch=master\n[download-image]: https://img.shields.io/npm/dm/sdk-base.svg?style=flat-square\n[download-url]: https://npmjs.org/package/sdk-base\n\n\nA base class for sdk with some common & useful functions.\n\n## Installation\n\n```bash\n$ npm install sdk-base\n```\n\n## Usage\n\nConstructor argument:\n- {Object} options\n  - {String} [initMethod] - the async init method name, the method should be a function return promise. If set, will execute the function in the constructor.\n  - {AsyncLocalStorage} [localStorage] - async localStorage instance.\n\n  ```js\n  const Base = require('sdk-base');\n\n  class Client extends Base {\n    constructor() {\n      super({\n        initMethod: 'init',\n        localStorage: app.ctxStorage,\n      });\n    }\n\n    async init() {\n      // put your async init logic here\n    }\n    // support async function too\n    // async init() {\n    //   // put your async init logic here\n    // }\n  }\n\n  (async function main() {\n    const client = new Client();\n    // wait client ready, if init failed, client will throw an error.\n    await client.ready();\n\n    // support async event listener\n    client.on('data', async function (data) {\n      // put your async process logic here\n      //\n      // @example\n      // ----------\n      // await submit(data);\n    });\n\n    client.emit('data', { foo: 'bar' });\n\n  })().catch(err => { console.error(err); });\n  ```\n\n### API\n\n- `.ready(flagOrFunction)` flagOrFunction is optional, and the argument type can be Boolean, Error or Function.\n\n  ```js\n  // init ready\n  client.ready(true);\n  // init failed\n  client.ready(new Error('init failed'));\n\n  // listen client ready\n  client.ready(err => {\n    if (err) {\n      console.log('client init failed');\n      console.error(err);\n      return;\n    }\n    console.log('client is ready');\n  });\n\n  // support promise style call\n  client.ready()\n    .then(() => { ... })\n    .catch(err => { ... });\n\n  // support async function style call\n  await client.ready();\n  ```\n\n- `async readyOrTimeout(milliseconds)` ready or timeout, after milliseconds not ready will throw TimeoutError\n\n  ```js\n  await client.readyOrTimeout(100);\n  ```\n\n- `.isReady getter` detect client start ready or not.\n- `.on(event, listener)` wrap the [EventEmitter.prototype.on(event, listener)](https://nodejs.org/api/events.html#events_emitter_on_eventname_listener), the only difference is to support adding async function listener on events, except 'error' event.\n- `once(event, listener)` wrap the [EventEmitter.prototype.once(event, listener)](https://nodejs.org/api/events.html#events_emitter_once_eventname_listener), the only difference is to support adding async function listener on events, except 'error' event.\n- `prependListener(event, listener)` wrap the [EventEmitter.prototype.prependListener(event, listener)](https://nodejs.org/api/events.html#events_emitter_prependlistener_eventname_listener), the only difference is to support adding async function listener on events, except 'error' event.\n- `prependOnceListener(event, listener)` wrap the [EventEmitter.prototype.prependOnceListener(event, listener)](https://nodejs.org/api/events.html#events_emitter_prependoncelistener_eventname_listener), the only difference is to support adding generator listener on events, except 'error' event.\n- `addListener(event, listener)` wrap the [EventEmitter.prototype.addListener(event, listener)](https://nodejs.org/api/events.html#events_emitter_addlistener_eventname_listener), the only difference is to support adding async function listener on events, except 'error' event.\n\n  ```js\n  client.on('data', async function(data) {\n    // your async process logic here\n  });\n  client.once('foo', async function(bar) {\n    // ...\n  });\n\n  // listen error event\n  client.on('error', err => {\n    console.error(err.stack);\n  });\n  ```\n\n- `.await(event)`: [await an event](https://github.com/cojs/await-event), return a promise, and it will resolve(reject if event is `error`) once this event emmited.\n\n  ```js\n  const data = await client.await('data');\n  ```\n\n- `.awaitFirst(event)`: [await the first event in a set of event pairs](https://github.com/node-modules/await-first), return a promise, and it will clean up after itself.\n\n  ```js\n  (async function main() {\n    const o = await client.awaitFirst([ 'foo', 'bar' ]);\n    if (o.event === 'foo') {\n      // ...\n    }\n    if (o.event === 'bar') {\n      // ...\n    }\n  })();\n  ```\n  \n- `._close()`: The `_close()` method is called by `close`, It can be overridden by child class, but should not be called directly. It must return promise or generator.\n\n- `.close()`: The `close()` method is used to close the instance. \n\n### License\n\n[MIT](LICENSE)\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/985607?v=4\" width=\"100px;\"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1207064?v=4\" width=\"100px;\"/><br/><sub><b>gxcsoccer</b></sub>](https://github.com/gxcsoccer)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/360661?v=4\" width=\"100px;\"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/2039144?v=4\" width=\"100px;\"/><br/><sub><b>sang4lv</b></sub>](https://github.com/sang4lv)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1474688?v=4\" width=\"100px;\"/><br/><sub><b>luckydrq</b></sub>](https://github.com/luckydrq)<br/>|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n[<img src=\"https://avatars.githubusercontent.com/u/12656301?v=4\" width=\"100px;\"/><br/><sub><b>brizer</b></sub>](https://github.com/brizer)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/6897780?v=4\" width=\"100px;\"/><br/><sub><b>killagu</b></sub>](https://github.com/killagu)<br/>\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Dec 03 2022 16:27:57 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","_attachments":{},"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"license":"MIT"}