{"_id":"sdk-base","_rev":"29-2ab4fefa34a3d8504153b106bc4c59e1","name":"sdk-base","dist-tags":{"latest":"5.0.1"},"versions":{"1.0.0":{"name":"sdk-base","version":"1.0.0","keywords":[],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@1.0.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/node-modules/sdk-base","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"28afb289bf9376834d329a4244f93505de77c38e","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-1.0.0.tgz","integrity":"sha512-P1HYVy3O9EDYvJdb0sNPLzoddNnK2DROsEEylt1WEsrIBZOMlpwoDJgX8WINR8Ws0EWSJT/BVugHVjIR4zxJQg==","signatures":[{"sig":"MEYCIQDWpzAp/gdfZPIOczadIGHXV+D+bVXklpJd+RqGTsPHLQIhAOPYRNix7JWZ1i8WAQvhNATP1hzjIsNs9PilCp0g8WSc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","engine":{"node":">=0.8"},"_shasum":"28afb289bf9376834d329a4244f93505de77c38e","gitHead":"fe4b779fef0f707a2dc0b932d53d63838502f158","scripts":{"test":"make test"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"repository":{"url":"git@github.com:node-modules/sdk-base","type":"git"},"_npmVersion":"1.4.24","description":"a base class for sdk with default error handler","directories":{},"dependencies":{},"devDependencies":{"autod":"~0.3.2","mocha":"~1.21.4","should":"~4.0.4"}},"1.0.1":{"name":"sdk-base","version":"1.0.1","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@1.0.1","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/node-modules/sdk-base","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"5d5af5ce499eebe677dfe6f8a3128e8582d9ba79","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-1.0.1.tgz","integrity":"sha512-2e3trwS7pkL88SGowM0g3KgCWRz4uWGc++ZS89pNdh98IQhbrjf/E3iRcOok9ojp7j25UttzAV3+XZXge/O54w==","signatures":[{"sig":"MEUCIFlwmlBglLyvzUnNZ76eQLjlRdUceYRjw/XouS1T7koMAiEAvss+6mBs61dr9a0d4RkefpdcDd8LgIReAaXkqfOOS8w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">=0.8"},"_shasum":"5d5af5ce499eebe677dfe6f8a3128e8582d9ba79","gitHead":"76c20d22778b7fd84007da622811711f5398d722","scripts":{"test":"make test"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"repository":{"url":"git@github.com:node-modules/sdk-base","type":"git"},"_npmVersion":"2.0.0-beta.3","description":"a base class for sdk with default error handler","directories":{},"dependencies":{},"devDependencies":{"autod":"~0.3.2","mocha":"~1.21.4","should":"~4.0.4","istanbul":"*"}},"1.1.0":{"name":"sdk-base","version":"1.1.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@1.1.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"66174ea8834672e399a39d12afe1240a9b23c75d","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-1.1.0.tgz","integrity":"sha512-xfB1fH8wSthgeyd4o2sPXxE/9p5vFPg04/RJr2FQsb8td9C7pUx0YkWnzgBR9SywLXhDTFcYlC406KIS3PpS4g==","signatures":[{"sig":"MEQCIDchKinB8i64t3DI7LzDe/fZPOMgpZcptOELAH/sriIqAiAuK+NKdqBBMCXh0NJ1/1n/cIV6pmwN7sm77wh8TxJGKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">=0.10"},"_shasum":"66174ea8834672e399a39d12afe1240a9b23c75d","gitHead":"0a1575e450e08dd6b4808051e33d77a1204bb5e9","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover _mocha -- -t 5000 -r should test/*.test.js"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"2.12.0","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"4.0.0","dependencies":{"get-ready":"~1.0.0"},"devDependencies":{"mocha":"*","should":"7","istanbul":"*"}},"2.0.0":{"name":"sdk-base","version":"2.0.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@2.0.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"0026c4d3b478f91f4b0e5b0a2876873880d83839","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-2.0.0.tgz","integrity":"sha512-6pS5MWNL7y8xdUgtKUeB+vSZ6pJSbxwBq28sB6RtGPiEsbkNcJKz1kcdZyKGmrgTUfNOGP2+PWBrvEpv6AcB4w==","signatures":[{"sig":"MEQCIAn6UHR2epcCsOJAwoxyZRTbzF4KsAVgmfbnWm9liLjmAiAgbd/JqnK7F0EE3r4PkcOa1t2u66W/ajn2+xKYZp7hxQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">=0.10"},"_shasum":"0026c4d3b478f91f4b0e5b0a2876873880d83839","gitHead":"a3fabf2b7611a37a695ac9fbbbd369432eb1d70d","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover _mocha -- -t 5000 -r should test/*.test.js"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"2.12.0","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"4.2.4","dependencies":{"get-ready":"~1.0.0"},"devDependencies":{"mocha":"*","should":"7","istanbul":"*"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-2.0.0.tgz_1457678235307_0.5983589049428701","host":"packages-12-west.internal.npmjs.com"}},"2.0.1":{"name":"sdk-base","version":"2.0.1","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@2.0.1","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"ba40289e8bdf272ed11dd9ea97eaf98e036d24c6","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-2.0.1.tgz","integrity":"sha512-eeG26wRwhtwYuKGCDM3LixCaxY27Pa/5lK4rLKhQa7HBjJ3U3Y+f81MMZQRsDw/8SC2Dao/83yJTXJ8aULuN8Q==","signatures":[{"sig":"MEQCICE2ovNGHF4y3okUEjYEVRds0B1HMnHlCbldHIpiRYhqAiArOVfrNE1fMcQgp6ISibhWhj9R2PZQ+6qIOKbbv6yvcg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">=0.10"},"_shasum":"ba40289e8bdf272ed11dd9ea97eaf98e036d24c6","gitHead":"14c82875ba239fbb22647b13cd581497470279d6","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover _mocha -- -t 5000 -r should test/*.test.js"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"2.12.0","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"4.2.4","dependencies":{"get-ready":"~1.0.0"},"devDependencies":{"mocha":"*","should":"7","istanbul":"*"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-2.0.1.tgz_1457687009772_0.4970480320043862","host":"packages-13-west.internal.npmjs.com"}},"3.0.0":{"name":"sdk-base","version":"3.0.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.0.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 7"},"dist":{"shasum":"9345e8e9058cf93db407a0c7b108b978181d3a98","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.0.0.tgz","integrity":"sha512-QEndigRZft5s1PILCQWk/ZW9eKkeaRlgG6CBzFHOxL9Gzo32acn5OzGYqvOU4mY9QSiXhKKhkJywurkMzgYwVw==","signatures":[{"sig":"MEQCIFyG/OY4xnq1nrN2FEGqgvC/ajya28sXsimlRVVNF579AiBY7DIvdUNhvLb7NMVSkkkD2PmydP/vorB4Ppy6Ng/a6A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">= 6.0.0"},"_shasum":"9345e8e9058cf93db407a0c7b108b978181d3a98","gitHead":"a02be1f28620687b8fb1f3de7bbd047a11060360","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"3.10.10","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"6.9.4","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"egg-ci":"^1.1.0","eslint":"^3.13.1","egg-bin":"^1.10.0","pedding":"^1.1.0","eslint-config-egg":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.0.0.tgz_1484210538612_0.6085741901770234","host":"packages-18-east.internal.npmjs.com"}},"3.0.1":{"name":"sdk-base","version":"3.0.1","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.0.1","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 7"},"dist":{"shasum":"54653ff724c1b7457114b95eaaf01593f8ea59dc","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.0.1.tgz","integrity":"sha512-FQMtHSRGPje0NJObxmV273c2vElcDg4MXGqqlm9hTg6CCNWg6YiJyVYast3m4ybT5zx2tuDGopu16bdn7GAPpA==","signatures":[{"sig":"MEUCIBKUXeJZ5E3Nml5b248KhkWxenEXBxD+rJ0/P83pqvBQAiEAnONJWArzvk1KBjiVlwqL83xmrTFIZXoY3W4J2fHqwRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">= 6.0.0"},"_shasum":"54653ff724c1b7457114b95eaaf01593f8ea59dc","gitHead":"a3da003891df3b5f7fa15955567e0b8450dc6e8c","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test"},"_npmUser":{"name":"gxcsoccer","email":"gxcsoccer@126.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"3.10.9","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"6.9.2","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0"},"devDependencies":{"egg-ci":"^1.1.0","eslint":"^3.13.1","egg-bin":"^1.10.0","pedding":"^1.1.0","eslint-config-egg":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.0.1.tgz_1484216349134_0.8049603269901127","host":"packages-12-west.internal.npmjs.com"}},"3.1.0":{"name":"sdk-base","version":"3.1.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.1.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 7"},"dist":{"shasum":"667f4bb81d6b72d79fc440ba5a96375eafd3fad8","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.1.0.tgz","integrity":"sha512-C29ruVVRnKn2gfUEeksrC5h0H1h7iIsAG8EkdZwAW1QjkvwurzKt9FBt/S0Aeox+g9O4qi9ITc3XWT+vXO95Qg==","signatures":[{"sig":"MEYCIQC34zrwA3lY5iFJw6NFUexRqkG44Ee1JnCJdludmwaDGgIhAN5+kYto10ZiLTLyAJRfTegnNEQ9cM8Sgrn3ewtBaC4J","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">= 6.0.0"},"_shasum":"667f4bb81d6b72d79fc440ba5a96375eafd3fad8","gitHead":"282b10c016823f1d6fab52d7614c62bf86ee446b","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","test-local":"egg-bin test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"3.10.10","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"6.9.5","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0","await-event":"^2.0.0"},"devDependencies":{"autod":"^2.7.1","egg-ci":"^1.1.0","eslint":"^3.15.0","egg-bin":"^2.2.0","pedding":"^1.1.0","eslint-config-egg":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.1.0.tgz_1487310834370_0.6170360997784883","host":"packages-18-east.internal.npmjs.com"}},"3.1.1":{"name":"sdk-base","version":"3.1.1","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.1.1","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 7"},"dist":{"shasum":"8f06f53215281a17519b8ea8b2799268cddb234d","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.1.1.tgz","integrity":"sha512-DVNvZWeSffR7Zh4lhwIxpZmy/Ie0kxQ+wrHgLgrIIEE+1JHJPEbyqQDeW/R4KPWmMcd8nRR6CPXgKfIkKn98wg==","signatures":[{"sig":"MEYCIQCUXhafrJRksqdLaauAq1AMHr9hITNCzSzsCrPUxlxqCQIhALneKAH6TyT9BJdWkTj4pjruDP2arPdRKs4jb81hVG9k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"engine":{"node":">= 6.0.0"},"_shasum":"8f06f53215281a17519b8ea8b2799268cddb234d","gitHead":"d059aaca01a04fb64805c50fc07777735e15aa57","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","test-local":"egg-bin test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"4.1.2","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"7.7.1","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0","await-event":"^2.0.0"},"devDependencies":{"autod":"^2.7.1","egg-ci":"^1.5.0","eslint":"^3.17.1","egg-bin":"^2.4.0","pedding":"^1.1.0","eslint-config-egg":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.1.1.tgz_1489465105246_0.4228855238761753","host":"packages-12-west.internal.npmjs.com"}},"3.2.0":{"name":"sdk-base","version":"3.2.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.2.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 7"},"dist":{"shasum":"f6e61f0b6b18125bc1bb537390443e53e2912d85","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.2.0.tgz","integrity":"sha512-8KN/0z92eBHXDYhaO2NNml7iKQJAav7ZuV6mh0Ph/GNxZv2zRlcbw6VQbf18P9AFO5qm/0mrIDUZe/4rvOCJ+w==","signatures":[{"sig":"MEYCIQCH3PRP5mlZZK0FfPHFkWVSy+hlQRSDBiJ4FqwMkTYHAwIhAMZTYG/JhdMq1kr9XTH8k+Alb5f/BPp0xdPrlc73IJsh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","files":["index.js"],"engine":{"node":">= 6.0.0"},"gitHead":"c63399674c203068fd19e3ea5c4c144d64dd28be","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","test-local":"egg-bin test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"5.0.3","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"8.1.2","dependencies":{"co":"^4.6.0","is-type-of":"^1.0.0","await-event":"^2.0.0"},"devDependencies":{"autod":"^2.7.1","egg-ci":"^1.5.0","eslint":"^3.17.1","egg-bin":"^2.4.0","pedding":"^1.1.0","eslint-config-egg":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.2.0.tgz_1498460087203_0.20031924080103636","host":"s3://npm-registry-packages"}},"3.3.0":{"name":"sdk-base","version":"3.3.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.3.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 8"},"dist":{"shasum":"77f39687b6963e061d2c2374b0a9d3a4ebadd729","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.3.0.tgz","integrity":"sha512-iQds5DyFnphj0LL2aXqnsYr3Bey35/J8UkhNdjBD4HX4eNHpRKu5jVgT2FFl6Vzw5n/5/qGfZpccP03Opl8EgQ==","signatures":[{"sig":"MEYCIQDAe7LKxF2OjeNH1bgQcONEXp0TTyLQknGLQuWA+RzMEgIhAKZM8C2AUf4i31D/VZ2SWMb4sx4Hl5jXo6IFK7DEDiEa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","files":["index.js"],"engine":{"node":">= 6.0.0"},"gitHead":"6598ba4e9d2891a696edc218da22a1afe1ed3b78","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","test-local":"egg-bin test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"5.3.0","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"8.4.0","dependencies":{"co":"^4.6.0","is-type-of":"^1.2.0","await-event":"^2.1.0"},"devDependencies":{"autod":"^2.9.0","egg-ci":"^1.8.0","eslint":"^4.6.1","egg-bin":"^4.3.2","pedding":"^1.1.0","eslint-config-egg":"^5.1.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.3.0.tgz_1505636284749_0.09363600797951221","host":"s3://npm-registry-packages"}},"3.4.0":{"name":"sdk-base","version":"3.4.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.4.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 8, 9"},"dist":{"shasum":"a05eabb9990c6b8e7f52f92d84e9c78940406a17","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.4.0.tgz","integrity":"sha512-uSebT5+ERyFN4t5FanhVdoNCsjjt3kztehozVwG0rnrJ5cyXYDEjes47FbtAnmeeFvt0ObiIvRwWTJRfzWXIQw==","signatures":[{"sig":"MEYCIQCm+mKD36kbXGzI/UZ/PjMw558/TRx033pU+ZG93a6WKgIhAMh1H/5cU6PB8XN8vuHKWnfc0IohxicknKCKcTX2CZXO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","files":["index.js"],"engine":{"node":">= 6.0.0"},"gitHead":"f975763047a461fc8d0758f08dd52e16078f5bc9","scripts":{"ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","pkgfiles":"egg-bin pkgfiles --check","test-local":"egg-bin test"},"_npmUser":{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"5.5.1","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"8.9.1","dependencies":{"co":"^4.6.0","is-type-of":"^1.2.0","await-event":"^2.1.0","await-first":"^1.0.0"},"devDependencies":{"autod":"^3.0.1","egg-ci":"^1.8.0","eslint":"^4.11.0","egg-bin":"^4.3.5","pedding":"^1.1.0","eslint-config-egg":"^5.1.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base-3.4.0.tgz_1511484821881_0.5391107480973005","host":"s3://npm-registry-packages"}},"3.5.0":{"name":"sdk-base","version":"3.5.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.5.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 8, 9"},"dist":{"shasum":"15111f3a8ce0968bbbddd0ab27ca60ae4b591da2","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.5.0.tgz","fileCount":6,"integrity":"sha512-UpjXWwsef/zxromtTxy3UEn/bwJG64VxJYsvorkeq98OvAHAjLAlQvGJ7lyrdhfBUl2lFlkuXo6W7kSlwLaNBg==","signatures":[{"sig":"MEUCIQCXyOgDIaRSEFs4Tl1eOjiP4OIY2jTk4IMhXiNLZ5ofvAIgKgoPsL7Rd4MTTjIcHi/1MzlrrvP0WNo74OxU74zwtJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15210,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWZPcCRA9TVsSAnZWagAAaA4P/jd9UMAVyaiPVLWgB5HQ\nwJJW98uTY5ovg7j0ym5/mr2gmqF+xHcOaEcTrf3DYmMkZVpRHy+/C0htn3kJ\nJORrhbnvNEpc3dZDQ+De9sLwyg+DOugfsgZxLoMCrru4M2HKZc+0koov6OTj\n5jsbkGQfUZSgmoalQUNmZNhKxhJ3VX5WGFIYNrN4s/G+mYnX9MoHZeVzUyE5\nFuu4gX4EE+4rcLYPzRWop+g/5AGKfDe2dctM9DG4uv73K+Wmqu/ti1+RQG/O\nb+wzvHBJcIv9G7HDU5lE3BSDs3TfPEWfEzE9KlFyEeNpoFUxa3J1/pEidzeo\nQBCFdnKtM3w9O14SmDY8RmxZ5VhFV3h3Lk/c0bj6c4bpjGPTyirAPZrTEUoO\nbfQCg+j+mdCQHAAifFLUKiTXUp54HJ7uXVHHnq7J2Mir9Z8yo9WmIBVCh3CL\nUMoJ2ojFYLx03o07vW3SArGKWAnyOcC2nENntysbHUyPBIfJCnQW2JaEHhFq\nrDfUTrNq0SLxCT26cE5C+9pADfUq9e7RXnTjNycoPNwLrCO7xB+Cjk2AHX2r\nKUtWzcauVIJKfoexVbYmYPbGBIfyE2er9qI1YRqcla+Rp4zQ7xt6q693gqfg\nRGpQmOu1VJkfFqId9WZcXlLtcD7d9CMXdU8+hi8/ZuuXfmsbXZzPgYsN2dUt\nh5Gk\r\n=wgYD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","files":["index.js","index.d.ts"],"engine":{"node":">= 6.0.0"},"gitHead":"3c5aeb7746fd0802230a8f834878c344cdd1643f","scripts":{"ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","pkgfiles":"egg-bin pkgfiles --check","test-local":"egg-bin test"},"_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"5.5.1","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"8.4.0","dependencies":{"co":"^4.6.0","is-type-of":"^1.2.0","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"autod":"^3.0.1","egg-ci":"^1.8.0","eslint":"^4.11.0","egg-bin":"^4.3.5","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^2.9.2","@types/node":"^10.5.3","eslint-config-egg":"^5.1.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_3.5.0_1532597212615_0.27759033521098986","host":"s3://npm-registry-packages"}},"3.5.1":{"name":"sdk-base","version":"3.5.1","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.5.1","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 8, 9"},"dist":{"shasum":"2e1a927a456d94327d802074650077c767c3103a","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.5.1.tgz","fileCount":6,"integrity":"sha512-me8HQakVUUAbJrt9Zc/43b+fBJ2qUojPTQWhX0rm+qRIFC3bG/zG9HGmcIwCzVRuEhBPWtHiJkfW2aEp6IFAeQ==","signatures":[{"sig":"MEUCIGRiiGrxrt1b8t0mIByH2LpXBOnQpl2Q9CdRYLSTZrlxAiEAzfMW654+Qdt2M5J6TNaxgoxLk0WmmWnkr+pe+9xGKdk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15501,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrOEECRA9TVsSAnZWagAAomYP/0UzfCT/KoludG4RBT4Y\n16yhG2Q4oA94CJQRa+DU9l6EjvQ0dWY6/XvdJxlxNx0Q3KUex5OFDcSDGJzr\nRMX+8quCQ6nFrNHTNIJ+K/ve54K1NsPfcbSO2AwIGrpKdvvRA+8nmMsGbGDH\njABVCgztXrpBsQbk/aspWWzV5ztcHxdZtMNEasEMIRhPBw/jwLyBKeYVfNga\nkKD2oxgT8WmhafpbU75Mk8L9pKt+WMgwMd6GRgoiBxi6aK6CGR3v53+XzQhq\n94tCvAJrY+ZN9XKBxl+Z0dmjlyDsdsTSwYfzksuUXxonp0VROeCKJ2v2RUBP\niYtvotcJqDiYVv8qP5iuRtQggxjDin4zVQh5574VJuwbakbcfWAIT9T9l3Yk\n3mm+F38EVRICDkFi55Jd7tBGt5Fi/5m5z6lPgwpoUJqrC8m2iJRHAPusZJoR\nD5xWEnd/mED2KHQKM+/QN0vdYuyiIllhCXGohrdsigiyKIcf9msq6KPLs2+3\nSjn930W2sTVD9wxl2b+5fsVLHLXep8ZgFUsovZhPTEGGacBNiPi3iEW0+P+J\ntlm5JJl/EGYEpALx+dqmcRr0d0EDvRytyw+J+S8NDddftqddRG053phiHdim\nMO/0TqU6kPEAUdCDDqNF3YOn4TI+o6xl+dcNsjvzem/qXHOqZ5v3jGGBiggW\nKI+c\r\n=GR06\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engine":{"node":">= 6.0.0"},"gitHead":"2d7fabe07b48e45c668938c26d07241e1db8c651","scripts":{"ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","pkgfiles":"egg-bin pkgfiles --check","test-local":"egg-bin test"},"_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"6.4.1","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"8.4.0","dependencies":{"co":"^4.6.0","is-type-of":"^1.2.0","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"autod":"^3.0.1","egg-ci":"^1.8.0","eslint":"^4.11.0","egg-bin":"^4.3.5","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^2.9.2","@types/node":"^10.5.3","eslint-config-egg":"^5.1.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_3.5.1_1538056450944_0.929156341719821","host":"s3://npm-registry-packages"}},"3.6.0":{"name":"sdk-base","version":"3.6.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@3.6.0","maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxcsoccer","email":"gxcsoccer@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"version":"6, 8, 10, 11"},"dist":{"shasum":"7cee1fa3a81fdc61b2c20d1130c8765f8d90e588","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-3.6.0.tgz","fileCount":6,"integrity":"sha512-jxHUIrRLlAoRFRwiXKhOGjd6BeFWO/jz7tv+E7lbMSef6F9jzFN2Sv3hLW58oDDKscKaBGG6vQdkbXn7isE7fw==","signatures":[{"sig":"MEQCIF5+ZMPov84szQTJ+3PihLf+2gIR6toXC1A/XQr8L8PhAiADdJrfVnBXu/FXj7XqdGwt9cy49FWL7ZniB5bZVnD8ig==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcv/I5CRA9TVsSAnZWagAAHAQP/2htIxYh/Z0Aq3yCwzYq\nOjRxsNi0flbY+d+jude/Gf0svfJ3VKTOiAREvrcUNoEzSto1P5MzR1KMvon1\nttqtvaDIderxHloM+4KiHxqc/oBdw+8n5vhaS05jJWCNmAcUSsKWdBC7rQRy\n3c/sxZDYFOWiiNCgumAeoGZ5hjc4QEWFS53TyewEtPnEmV4dWf9X1Y5c+xNc\n8/LvOoOkWSh0Ia19xaPGhH0pTKhCa2P+cA7wytnNEf7181WRhFGadlc6BjI+\nbYhsPusy1VS6Lu7ho+luraLBKjkwCRE3NNQyHrAu1FMJFKC+A0zO2fsUKtd3\nZVlwKYNfYVcxG2UQQx/PsJzjddVqE7mk4RzOIqf2eDcedJ2mpTPoRjQMx2bN\na1h4wK1/ZXijJNnLDmkdKIx75ZX+YrEhmLGTYmIgcGEJ4WMzPD2YHeE6vfM0\nzz57jjLXvKbMM0j2n6uagylqEiXYbNaehPZ25nKiX8wfj0Q/iCSMvIs/q9+c\nMx0eWw/MoPAWDGQtI04KzK+SN6AMGu/gTfXm/xtDF4ECPKSMQfmsqEOVwF/m\nDe502fG5rGZFinZ2TrM84euhFQgK4eT/Tit5+WUlFMqbzoYCy8/Kd0CQNSPt\niys5pEQIOF5tlPctcNd/GN5m6y1xjbHkCQZJbXJ149P5y1/1TIhSjEAwt0t3\nDidQ\r\n=/0E8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engine":{"node":">= 6.0.0"},"gitHead":"68bc9df041b0aed669ad72316b42afb8db2e78d4","scripts":{"ci":"npm run autod -- --check && npm run pkgfiles && npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","autod":"autod","pkgfiles":"egg-bin pkgfiles --check","test-local":"egg-bin test"},"_npmUser":{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"6.4.1","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"8.4.0","dependencies":{"co":"^4.6.0","is-type-of":"^1.2.1","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"autod":"^3.1.0","egg-ci":"^1.11.0","eslint":"^5.16.0","egg-bin":"^4.12.3","pedding":"^1.1.0","runscript":"^1.3.0","typescript":"^3.4.3","@types/node":"^10.5.3","eslint-config-egg":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_3.6.0_1556083256216_0.6759358128319113","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"sdk-base","version":"4.0.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@4.0.0","maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"os":"linux","version":"14, 16, 18"},"dist":{"shasum":"2bf2ee9af3d69608c91f99f91b07163fd611c4ef","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-4.0.0.tgz","fileCount":6,"integrity":"sha512-eFGBft5zfr6COTjVO2RUq3gcZ0oatzEYIoHP7Euhzqmtd8ghyKniHXfton6q9cXlECtEJzBRtbK5wRbPRoVpbQ==","signatures":[{"sig":"MEUCIH1c3NLuNLeV9b/GC4W/U6rGuMJzU1nELPUXl7Z6pP/cAiEAijXZYYNWf5trq0twXYzpeR9/dRZhZKfScGAZAanwlow=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiwmxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFZQ//dPYuJlcEW/+zgrw+NKIt2n9kBR34JFntt59ZssapAfg52u+4\r\nzZijuS8BcH/Bbo9YrgvKUkNWyPZ3gH83j8h+XIb24BQlg9W2cJB0l2FsE/3A\r\nzIpwmWLIVmKu4U9gUcHV9OeNbif32N1SUedoN6oUAqy0l68K5tE1NFoQHQha\r\nQjdahfSQRua24i1F4Bl39nQV7O3qmSnh8q3ujzPF/GGGVXm0QugCE+GCAgP4\r\nA1Iakp64U/Wj51ptsq5AE8NYPVQ+ODxPGiNWAYQGK0Z26um6BCwpP1/BDVEh\r\nSIE3aP4uqhe34gvXkVVJkXiW/uDMeWxzRWghW6WKF95Zxk60h2UYNA6iyPlR\r\nLGWOCDcHh+3EMkfxlc7mv5Wj8AD+g569c7Ifi8Lm3xv2Ku7RpU7FU5xS27OU\r\nPva6sF4VwVzEpNYcVq8fXjViJyAX4yCMnoRzrO+SzGW9Gh3S4p+eTwu+tVbT\r\nGZd0ZiiLzkKjtu0R52Vfk/aQIBQ0Y5kOzUoMOf5BDjSh4M1YtBR+qyblxef2\r\nVpwVDQfWRlpNP1ZDRzihC8tREbAO3tugBleyJCmj7G0ENJ7qlE2wyit6Bstq\r\nnrserUi8GU8eHR/UC4xSO8tV6/ohoxOxsCPi49u68JrJgJAg+D9MV+mHyGNw\r\nGTtYm8RI9IMfmoh32bJAsZ7xqHVIwqNbOfc=\r\n=FdHP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engine":{"node":">= 14.0.0"},"gitHead":"3cff1b6f5372a9cc771bbf12ff92f418767e6aa5","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov -r co-mocha","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test -r co-mocha","contributor":"git-contributor"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"6.14.17","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"18.12.1","dependencies":{"co":"^4.6.0","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"egg-ci":"^2.2.0","eslint":"^8.29.0","egg-bin":"^5.5.0","pedding":"^1.1.0","co-mocha":"^1.2.2","runscript":"^1.3.0","typescript":"^4.9.3","@types/node":"^14.18.34","git-contributor":"^1.1.0","eslint-config-egg":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_4.0.0_1670056369232_0.747751967194902","host":"s3://npm-registry-packages"}},"4.1.0":{"name":"sdk-base","version":"4.1.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@4.1.0","maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"os":"linux","version":"14, 16, 18"},"dist":{"shasum":"67eac7f73e400c619e80aed393c53a623a1c0678","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-4.1.0.tgz","fileCount":6,"integrity":"sha512-1DMKkbXq1iCgiFF4UfI1A/jueuERujIYaCgZZ0L1Hjs6CljNMdzTOlT5PT4G4xDWa/sVXX3E92GcIgQkVtfMlg==","signatures":[{"sig":"MEUCIAbZtNa859vV/OkjhrtE5usWcwcjn80L4SbVG6hc5WdXAiEA9kDQuws+gP+9EjmvgaShxR3y6Lm5Ljao5lOMIl3Zz0c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJji1d+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4yw//fmVhQh17owyJhmTyvE+u08p8L45E8nO1KHM+1BFn6AuT6r7L\r\nMuTQvlwODA+hSiTMElEMeGKUjE19yQ87NE+bOEdxnlaP0cCrGNcTRa7g6jpP\r\nmwOX2fMSx4bG8WsSh6Xny8mmUfDf7mXxJzCQtVUxnVxihKMx6FQNTFUA48wL\r\n2UBrx3J94pZQeqG7co/myi1VLUPeG+g4f6OMk7OIuTURasvkle822h3EQZCP\r\ndVBV5523sjeGq6kDh3ZLNrrwtcluxKOqU9WVfIAHCpW+IFjfHrRlR0hzz96G\r\nK7G89iIQZfc/JrjEBgel+NC3lEkNJnvqUiTo4awNEFBXbN8QFOy0WVkk+6ZU\r\nXHLYyS3+rjgaxz6yWJZzbEGcfLUitTF2jGNj4iCEfhfkQ8m2/7O12vAHG8VW\r\ntkqN8K7V2AXJvykXy67S8hNyhmhBvsM9nbMsqVlIIPrrib/PeC1GXgquzAvG\r\nNIUDu267IdlzKaGU421M3kJhh6zNgjp0JDsUghTpFfVZaEbpfhAx20ORoMEP\r\n7yzc9vxrnrH3jvwLJm0mtrPwPAxDMZycAPmwn/TI0lD7ZPSUs7MvOtcJe06c\r\niIP6jneC+MgBGB2bbEO3xwi8bdwGEXi3r9w/VBDSxGwN/XDQQWIUM5uHuKRi\r\nW5Eb8A195yf1n4X/sY0ggDJvBPfnnUxkXrY=\r\n=+wNt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engine":{"node":">= 14.0.0"},"gitHead":"c75bab2bbf28f72b90292d3abb5549298534cc37","scripts":{"ci":"npm run lint && npm run tsd && npm run cov","cov":"egg-bin cov -r co-mocha","tsd":"tsd","lint":"eslint --ext .js .","test":"npm run lint && npm run test-local","test-local":"egg-bin test -r co-mocha","contributor":"git-contributor"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"6.14.17","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"18.12.1","dependencies":{"co":"^4.6.0","p-timeout":"^4.1.0","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.25.0","egg-ci":"^2.2.0","eslint":"^8.29.0","egg-bin":"^5.5.0","pedding":"^1.1.0","co-mocha":"^1.2.2","runscript":"^1.3.0","typescript":"^4.9.3","@types/node":"^14.18.34","git-contributor":"^1.1.0","eslint-config-egg":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_4.1.0_1670076286161_0.3937028589215874","host":"s3://npm-registry-packages"}},"4.2.0":{"name":"sdk-base","version":"4.2.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@4.2.0","maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"ci":{"os":"linux","version":"14, 16, 18"},"dist":{"shasum":"1393a7c4cabce65697643f70376dc94f22853f8f","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-4.2.0.tgz","fileCount":6,"integrity":"sha512-eOhCrMDNjD9vK2ZP0BF/Fk98QBTNLukelSF/WP8/1lL2PPJhGmKNOTuKvRch2sPuN36KP9aa984JHTX+CMMgFg==","signatures":[{"sig":"MEUCIFUikZvoN/vX7EL7l39f9psZ7K/qSusjaLaWiwNIzlx8AiEAm7i1pY6+e8ndgVxXaKG6FAwiE9Cbe4bDmjnWEzQcoPA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkgp3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQrhAAkk18cfPxFkaQsno9mKfzWzlu0JcTmXci/ICrANqX3uyM8v5a\r\nsjR5pqZTevf62WsEOXo0GdHTCfUEgvXqqZPJl2TlnbGzB0uwJDy80EFyn8c1\r\nYXz3qL51C9UI1k6MAsU6WNRgyhNjfvmIrc7K4ZpooCJ8O6aMudlKtFVwRXhP\r\nT9UByZ1jqXg4Ca6wSb5cSJhYtAoybbOLpK6FVrx3fpAun6MJUhtwjZWDW/RC\r\nAInVpf3YsNvqtvRv6odsXhanJ/Hvgl3b4Iq9b7uEvfhBHlVQSUJj+mVCLXgF\r\ntgR+eHv1laKIfSIPzBC/HbVAbLV0ubGyZf+6BJT9svIXetPSXo6GKL1AyKpd\r\nvdulGG/GwEU4ILTRbFRRJfAhtJHuypjvu5CDh7ryzX6y8z52x3RRh3vVUoQu\r\np3qjHzm5gdkOvqyBicmTYpwc1lV/56hHbktu06NPp8/Se/WG09ICZqFrHZDi\r\ngO3ZM9glUvEZY8EQO8n9CKGu7Czn3lksiin/UBjttYAp19ecdj/7LoHBauQR\r\n339vyxlKLS1Ayd04OGPqWh0Cxa/B11MkWjHRtJrKnABQfarpliDwvodBNue0\r\n7M/KN9f8MIxi0Thc7AEmnxxBraAG1fRXxBio+FWyFOeeQ1+g5AsqbegFRu2y\r\nkx+oR9C2KQ3NBGJi1rE2Psw3vtxwOc51Fe0=\r\n=xVWO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engine":{"node":">= 14.0.0"},"gitHead":"3e3416d37c225fe4f1298959201a97826a9b7d06","scripts":{"ci":"npm run lint && npm run tsd && npm run cov","cov":"egg-bin cov -r co-mocha","tsd":"tsd","lint":"eslint --ext .js .","test":"npm run lint && npm run tsd && npm run test-local","test-local":"egg-bin test -r co-mocha","contributor":"git-contributor"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"6.14.17","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"18.12.1","dependencies":{"co":"^4.6.0","p-timeout":"^4.1.0","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.25.0","egg-ci":"^2.2.0","eslint":"^8.29.0","egg-bin":"^5.5.0","pedding":"^1.1.0","co-mocha":"^1.2.2","runscript":"^1.3.0","typescript":"^4.9.3","@types/node":"^14.18.34","git-contributor":"^1.1.0","eslint-config-egg":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_4.2.0_1670515319769_0.890770041101447","host":"s3://npm-registry-packages"}},"4.2.1":{"name":"sdk-base","version":"4.2.1","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@4.2.1","maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"2c82054956c4e3c5e402efe5cc9f8d51ae6144b1","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-4.2.1.tgz","fileCount":5,"integrity":"sha512-B33iy/AkIpLyxexn/5v+8jmYHCyUaJizEQcmhvMY+SoiXViY1FEULbQibQH/EcOfzPwJqJ5UDeXyUJGO47Sq3g==","signatures":[{"sig":"MEUCIQCO/GAMSxv6e+vwOAA+swaEuP1Sb3zLyEbCcONl8KsK4wIgGZdaN3MwaOGiv5JORDXxHorOz4E4ORsXnkOOXP/SI7E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16900,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnekCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqbQ/+JCh82agJEZTnQcuPWPVv85X6G/Vj37ch37Ug61SjavIyv5Z+\r\nMpfTdOjphr/lMT+3dCMBECcUyR4qEB5tHBqi2xTyPCwk5ky0V1SLxGvnWw/Q\r\nNyrWdAC1JLGNcR54ZVT7LrrkYMaYpD/11UbiJRg3wmp2HYJFlN10IDEA27ho\r\nOJ1vEMj3W+FD55ZM7ldR8LdWrKTAiqRjqtL6hN3M+saT4sbt0+gHSW9I2BuD\r\ndmGKj/aD21xNVWs53cSpLHm5OYQelnCwgr4zDjsTZ9asbcViv5OaLlwVWcRm\r\nqWL0QVu62et6pF0Qy7M482bbYecmOQkSZbc1963FAfyaQVtLB8KDwO034s/o\r\nWo6ioZ7j60KezcxC+LmHCmmCG+mt2pG3nUHihwkNJ1T0nhBneTWWXzJtlnIL\r\nifXf4XgcFEMTHnesLwUtCiesSvCzl4ytwpOwLYQvXPlHgjJGFcVRrc+Xy7jU\r\noQD1iuT2T4txOK5C3eFTEKj4HdVFfoZJxiv0m0S+n3ju2vEjucMs5Fyhz1u7\r\n1xoLcoF0h5tLM3QkQtZVKl9j9gGTjp6yup4sLdg0iSHXWE8uYhuvFPMJ/FBQ\r\nI3XYxl9kqRvKXCuJN9anKt9EreYc9LaqBMrArJiPWarAlUv2qRzakwaCK9Ur\r\nXAf0P8Z2aV+YEXXJ8AlzskUVhFcST0UTh6k=\r\n=c/tS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"./index.d.ts","engine":{"node":">= 14.0.0"},"gitHead":"3cbec9fce198424e299bf95de5c797484baac087","scripts":{"ci":"npm run lint && npm run tsd && npm run cov","cov":"egg-bin cov -r co-mocha","tsd":"tsd","lint":"eslint --ext .js .","test":"npm run lint && npm run tsd && npm run test-local","test-local":"egg-bin test -r co-mocha","contributor":"git-contributor"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"8.19.2","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"16.18.1","dependencies":{"co":"^4.6.0","p-timeout":"^4.1.0","await-event":"^2.1.0","await-first":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.25.0","eslint":"^8.29.0","egg-bin":"^5.5.0","pedding":"^1.1.0","co-mocha":"^1.2.2","runscript":"^1.3.0","typescript":"^4.9.3","@types/node":"^14.18.34","git-contributor":"^1.1.0","eslint-config-egg":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_4.2.1_1671293186781_0.7364208150255727","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"sdk-base","version":"5.0.0","keywords":["sdk","error"],"author":{"url":"http://deadhorse.me","name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","_id":"sdk-base@5.0.0","maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/sdk-base#readme","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"dist":{"shasum":"59b07e32a804ee96aaf591c0c4c052e50efe1bf7","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-5.0.0.tgz","fileCount":11,"integrity":"sha512-zHCZbTh62FDoDH4C+Etyx7M8xNrARDY4mqGstqxI+9BhcxLS18fs1hu/OeddnTXIDip09uzeyJBy2WMKcQ2ueQ==","signatures":[{"sig":"MEYCIQDfgFMY4yRqH7xa7EiLv/6D+6GKaEXmaBS1ov+OkRbkmwIhALX2r1GJY0H89Aqd4tO6ARRIYBMr0KdBU4Bime3hyRk9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sdk-base@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28842},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">= 18.19.0"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"50f80544db59d9ff357d5f317553da5ae080fc7f","scripts":{"ci":"egg-bin cov -p","lint":"eslint --cache src test --ext .ts","test":"egg-bin test -p --timeout 5000","preci":"npm run lint && npm run prepublishOnly && attw --pack","pretest":"npm run lint -- --fix && npm run prepublishOnly","prepublishOnly":"tshy && tshy-after"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/sdk-base.git","type":"git"},"_npmVersion":"10.8.2","description":"a base class for sdk with default error handler","directories":{},"_nodeVersion":"18.20.5","dependencies":{"gals":"^1.0.2","utility":"^2.3.0","get-ready":"^3.4.0","is-type-of":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tshy":"3","eslint":"8","egg-bin":"6","tshy-after":"1","typescript":"5","@types/node":"22","@types/mocha":"10","@eggjs/tsconfig":"1","eslint-config-egg":"14","@arethetypeswrong/cli":"^0.17.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-base_5.0.0_1734505753314_0.5130374490904561","host":"s3://npm-registry-packages-npm-production"}},"5.0.1":{"name":"sdk-base","version":"5.0.1","description":"a base class for sdk with default error handler","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","engines":{"node":">= 18.19.0"},"dependencies":{"gals":"^1.0.2","get-ready":"^3.4.0","is-type-of":"^2.2.0","utility":"^2.3.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@eggjs/tsconfig":"1","@types/mocha":"10","@types/node":"22","egg-bin":"6","eslint":"8","eslint-config-egg":"14","tshy":"3","tshy-after":"1","typescript":"5"},"scripts":{"lint":"eslint --cache src test --ext .ts","pretest":"npm run lint -- --fix && npm run prepublishOnly","test":"egg-bin test -p --timeout 5000","test-local":"egg-bin test --timeout 5000","preci":"npm run lint && npm run prepublishOnly && attw --pack","ci":"egg-bin cov -p","prepublishOnly":"tshy && tshy-after"},"type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","_id":"sdk-base@5.0.1","gitHead":"6f03438ca12232277342c5b2d4129436ff66f4cd","bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"homepage":"https://github.com/node-modules/sdk-base#readme","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-tmhQlORNTTO0204xafKM6rzIWX4B2BtLMN7TJ/jd9mlIo+wf5mRIBPUDBFIqbqzoK9WNerSOwh9KdgTRgjyJ3Q==","shasum":"efbe7f1db9bc4afb1b12b45b88dd87bdd870ac9a","tarball":"https://registry.npmjs.org/sdk-base/-/sdk-base-5.0.1.tgz","fileCount":11,"unpackedSize":28894,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sdk-base@5.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ4cbf5J1tce1S2o7iSfYva0pBiBnJlBihuLVvmEW0xwIhAJ3ucVGfDrcf3x6t7fBPOX0yRqpQo1TlORCVB4QER5rR"}]},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk-base_5.0.1_1734837692422_0.5563105181720396"},"_hasShrinkwrap":false}},"time":{"created":"2014-09-02T06:50:20.767Z","modified":"2024-12-22T03:21:33.137Z","1.0.0":"2014-09-02T06:50:20.767Z","1.0.1":"2014-11-06T05:42:04.209Z","1.1.0":"2015-11-14T10:00:29.413Z","2.0.0":"2016-03-11T06:37:17.630Z","2.0.1":"2016-03-11T09:03:31.863Z","3.0.0":"2017-01-12T08:42:20.401Z","3.0.1":"2017-01-12T10:19:09.352Z","3.1.0":"2017-02-17T05:53:56.215Z","3.1.1":"2017-03-14T04:18:25.472Z","3.2.0":"2017-06-26T06:54:47.363Z","3.3.0":"2017-09-17T08:18:05.308Z","3.4.0":"2017-11-24T00:53:41.954Z","3.5.0":"2018-07-26T09:26:52.672Z","3.5.1":"2018-09-27T13:54:11.670Z","3.6.0":"2019-04-24T05:20:56.541Z","4.0.0":"2022-12-03T08:32:49.394Z","4.1.0":"2022-12-03T14:04:46.320Z","4.2.0":"2022-12-08T16:01:59.938Z","4.2.1":"2022-12-17T16:06:26.960Z","5.0.0":"2024-12-18T07:09:13.538Z","5.0.1":"2024-12-22T03:21:32.631Z"},"bugs":{"url":"https://github.com/node-modules/sdk-base/issues"},"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"license":"MIT","homepage":"https://github.com/node-modules/sdk-base#readme","keywords":["sdk","error"],"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/sdk-base.git"},"description":"a base class for sdk with default error handler","maintainers":[{"name":"gxcsoccer","email":"gxcsoccer@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"readme":"# sdk-base\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][codecov-image]][codecov-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n[![Node.js Version](https://img.shields.io/node/v/sdk-base.svg?style=flat)](https://nodejs.org/en/download/)\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[codecov-image]: https://codecov.io/github/node-modules/sdk-base/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/node-modules/sdk-base?branch=master\n[snyk-image]: https://snyk.io/test/npm/sdk-base/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/sdk-base\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\nA base class for sdk with some common & useful functions.\n\n## Installation\n\n```bash\nnpm install sdk-base\n```\n\n## Usage\n\nConstructor argument:\n\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- `._close()`: The `_close()` method is called by `close`.\nIt 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## Breaking changes between v4 and v5\n\n- Drop `.awaitFirst(events)` support\n- Drop generator function support\n- Don't catch event listener inside error\n\n### License\n\n[MIT](LICENSE)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=node-modules/sdk-base)](https://github.com/node-modules/sdk-base/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","readmeFilename":"README.md"}