{"_id":"egg-onerror","_rev":"1212912","name":"egg-onerror","description":"error handler for egg","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2021-10-13T05:46:33.000Z","created":"2016-05-26T09:09:01.426Z","2.1.0":"2018-06-12T11:08:05.091Z","2.0.0":"2017-11-13T03:57:19.181Z","1.6.0":"2017-11-13T03:32:02.304Z","1.5.0":"2017-07-20T07:15:00.699Z","1.4.6":"2017-06-20T15:47:13.938Z","1.4.5":"2017-06-20T02:34:45.113Z","1.4.4":"2017-06-12T02:30:45.382Z","1.4.3":"2017-06-04T14:15:30.495Z","1.4.2":"2017-06-01T07:17:27.514Z","1.4.1":"2017-05-31T17:30:42.269Z","1.4.0":"2017-05-31T13:56:43.568Z","1.3.0":"2017-01-22T11:43:12.510Z","1.2.2":"2017-01-13T05:18:42.815Z","1.2.1":"2017-01-12T18:01:41.909Z","1.1.0":"2016-11-09T03:19:41.405Z","1.0.0":"2016-10-21T10:50:22.272Z","0.0.3":"2016-07-16T04:55:21.193Z","0.0.2":"2016-07-13T08:53:15.232Z","0.0.1":"2016-05-26T09:09:01.426Z"},"users":{},"author":{"name":"dead_horse"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"versions":{"2.1.0":{"name":"egg-onerror","version":"2.1.0","description":"error handler for egg","eggPlugin":{"name":"onerror","optionalDependencies":["jsonp"]},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^4.0.0","mustache":"^2.3.0","stack-trace":"^0.0.10"},"devDependencies":{"autod":"^3.0.0","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","pedding":"^1.1.0","rimraf":"^2.6.2"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"author":{"name":"dead_horse"},"gitHead":"4824a0420fe6eb569c400d8306bdb208b83c4d20","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@2.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"e05dc08e39aec16518b64053b8bc874110aba9f7","size":16248,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-2.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror_2.1.0_1528801685042_0.948180529361079"},"_hasShrinkwrap":false,"publish_time":1528801685091,"_cnpm_publish_time":1528801685091},"2.0.0":{"name":"egg-onerror","version":"2.0.0","description":"error handler for egg","eggPlugin":{"name":"onerror","optionalDependencies":["jsonp"]},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^4.0.0","mustache":"^2.3.0","stack-trace":"^0.0.10"},"devDependencies":{"autod":"^3.0.0","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.11.0","eslint-config-egg":"^5.1.1","pedding":"^1.1.0","rimraf":"^2.6.2"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"author":{"name":"dead_horse"},"gitHead":"1f0aae699205f37ace831a7dea3455ff3e7b64cd","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"e29297cc25bcc906999b5e514e7c427d6899293e","size":16122,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-2.0.0.tgz_1510545439113_0.5257513683754951"},"directories":{},"publish_time":1510545439181,"_hasShrinkwrap":false,"_cnpm_publish_time":1510545439181},"1.6.0":{"name":"egg-onerror","version":"1.6.0","description":"error handler for egg","eggPlugin":{"name":"onerror","optionalDependencies":["jsonp"]},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"^0.0.10"},"devDependencies":{"autod":"^2.9.0","egg":"^1.7.0","egg-bin":"^4.1.0","egg-ci":"^1.8.0","egg-mock":"^3.9.0","eslint":"^4.4.1","eslint-config-egg":"^5.0.0","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8"},"author":{"name":"dead_horse"},"gitHead":"dfc8ff231de3b4d24a318508e6ddfc2d95c3af72","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.6.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"0c072224d0a4ebdc78edd577832aa62c9f47e6a5","size":16045,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.6.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.6.0.tgz_1510543922114_0.7559483502991498"},"directories":{},"publish_time":1510543922304,"_hasShrinkwrap":false,"_cnpm_publish_time":1510543922304},"1.5.0":{"name":"egg-onerror","version":"1.5.0","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^4.0.2","egg-ci":"^1.8.0","egg-mock":"^3.7.2","eslint":"^4.0.0","eslint-config-egg":"^4.2.1","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8"},"author":{"name":"dead_horse"},"gitHead":"3677c61ac2ed91ed938231b84421fe7b6c7e292e","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.5.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.4","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"987dfdb45af655cfcae84c8662a6e9b6c0227ee0","size":15447,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.5.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.5.0.tgz_1500534900580_0.8684680813457817"},"directories":{},"publish_time":1500534900699,"_hasShrinkwrap":false,"_cnpm_publish_time":1500534900699},"1.4.6":{"name":"egg-onerror","version":"1.4.6","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^4.0.2","egg-ci":"^1.8.0","egg-mock":"^3.7.2","eslint":"^4.0.0","eslint-config-egg":"^4.2.1","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8"},"author":{"name":"dead_horse"},"gitHead":"8852284a5ac26a39d150bf72bb69e27a3e9e04fe","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.6","_shasum":"edf07ae0bbc6fff16bce885fb374910ed3619ccb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.0.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"edf07ae0bbc6fff16bce885fb374910ed3619ccb","size":15337,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.6.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.6.tgz_1497973633861_0.9194087735377252"},"directories":{},"publish_time":1497973633938,"_cnpm_publish_time":1497973633938,"_hasShrinkwrap":false},"1.4.5":{"name":"egg-onerror","version":"1.4.5","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^3.4.0","egg-ci":"^1.6.0","egg-mock":"^3.7.0","eslint":"^3.19.0","eslint-config-egg":"^4.2.0","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7, 8"},"author":{"name":"dead_horse"},"gitHead":"5e0f11792658841eea43df75c5739c842e4aa2c3","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.5","_shasum":"1bbdde8c174315d54f9efd860e03b201f980c1ec","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.0.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"1bbdde8c174315d54f9efd860e03b201f980c1ec","size":15273,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.5.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.5.tgz_1497926085015_0.4440989694558084"},"directories":{},"publish_time":1497926085113,"_hasShrinkwrap":false,"_cnpm_publish_time":1497926085113},"1.4.4":{"name":"egg-onerror","version":"1.4.4","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^3.4.0","egg-ci":"^1.6.0","egg-mock":"^3.7.0","eslint":"^3.19.0","eslint-config-egg":"^4.2.0","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7, 8"},"author":{"name":"dead_horse"},"gitHead":"fc2b39f5025c83356a2bee1eb59f4a54c4231a49","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.4","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"59b088f3546c7088310d51ce28925605792fd36f","size":15240,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.4.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.4.tgz_1497234645262_0.391792407957837"},"directories":{},"publish_time":1497234645382,"_hasShrinkwrap":false,"_cnpm_publish_time":1497234645382},"1.4.3":{"name":"egg-onerror","version":"1.4.3","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^3.4.0","egg-ci":"^1.6.0","egg-mock":"^3.7.0","eslint":"^3.19.0","eslint-config-egg":"^4.2.0","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7, 8"},"author":{"name":"dead_horse"},"gitHead":"59337273e48fe37834c87e5dc6095541f3aa6c07","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.3","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"2fc4522a7b4ea2168388ba776e9c392e362a35f8","size":15187,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.3.tgz_1496585730347_0.4888360530603677"},"directories":{},"publish_time":1496585730495,"_hasShrinkwrap":false,"_cnpm_publish_time":1496585730495},"1.4.2":{"name":"egg-onerror","version":"1.4.2","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^3.4.0","egg-ci":"^1.6.0","egg-mock":"^3.7.0","eslint":"^3.19.0","eslint-config-egg":"^4.2.0","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7, 8"},"author":{"name":"dead_horse"},"gitHead":"835c32a9093667f137cb5332c58e32804bee673b","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.2","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"3c8a4fc6ce74499c4fdd93df903ca6027f9a65a9","size":15163,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.2.tgz_1496301447360_0.9031096312683076"},"directories":{},"publish_time":1496301447514,"_hasShrinkwrap":false,"_cnpm_publish_time":1496301447514},"1.4.1":{"name":"egg-onerror","version":"1.4.1","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","lib","app.js","agent.js"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.1.0","mustache":"^2.3.0","stack-trace":"0.0.10"},"devDependencies":{"autod":"^2.8.0","egg":"^1.4.0","egg-bin":"^3.4.0","egg-ci":"^1.6.0","egg-mock":"^3.7.0","eslint":"^3.19.0","eslint-config-egg":"^4.2.0","pedding":"^1.1.0","rimraf":"^2.6.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7, 8"},"author":{"name":"dead_horse"},"gitHead":"d534da12ee28a0c7511bbf813d25d59389cdeb73","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.1","_shasum":"bd8ef89f68b3a33c5190b76829632b63999088be","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"bd8ef89f68b3a33c5190b76829632b63999088be","size":15094,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.1.tgz_1496251842069_0.3292755736038089"},"directories":{},"publish_time":1496251842269,"_hasShrinkwrap":false,"_cnpm_publish_time":1496251842269},"1.4.0":{"name":"egg-onerror","version":"1.4.0","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","agent.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"cookie":"^0.3.1","koa-onerror":"^3.0.1","mustache":"^2.3.0","stack-trace":"0.0.9"},"devDependencies":{"autod":"^2.7.1","egg":"^0.7.0","egg-bin":"^1.10.0","egg-ci":"^1.1.0","egg-mock":"^2.0.0","eslint":"^3.13.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0","rimraf":"^2.5.4","supertest":"^2.0.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"author":{"name":"dead_horse"},"gitHead":"211e01b7a20b1bc464f0e0d0d8e2042256abc667","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.4.0","_shasum":"29fb2db8e360959eaad65e1de7b093255c6880ad","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"29fb2db8e360959eaad65e1de7b093255c6880ad","size":3508,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.4.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-onerror-1.4.0.tgz_1496239003496_0.6093613060656935"},"directories":{},"publish_time":1496239003568,"_cnpm_publish_time":1496239003568,"_hasShrinkwrap":false},"1.3.0":{"name":"egg-onerror","version":"1.3.0","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","agent.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^3.0.1"},"devDependencies":{"autod":"^2.7.1","egg":"^0.7.0","egg-bin":"^1.10.0","egg-ci":"^1.1.0","egg-mock":"^2.0.0","eslint":"^3.13.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0","rimraf":"^2.5.4","supertest":"^2.0.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"author":{"name":"dead_horse"},"gitHead":"12ea04f2ff583a7a9cf80fc24ff3bc5b3c487371","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.3.0","_shasum":"90acdfb1d03ff8b246dc15dc22b89797530e1300","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"90acdfb1d03ff8b246dc15dc22b89797530e1300","size":4633,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.3.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-onerror-1.3.0.tgz_1485085392276_0.23140347213484347"},"directories":{},"publish_time":1485085392510,"_cnpm_publish_time":1485085392510,"_hasShrinkwrap":false},"1.2.2":{"name":"egg-onerror","version":"1.2.2","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","agent.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^3.0.1"},"devDependencies":{"autod":"^2.7.1","egg":"^0.7.0","egg-bin":"^1.10.0","egg-ci":"^1.1.0","egg-mock":"^2.0.0","eslint":"^3.13.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0","rimraf":"^2.5.4","supertest":"^2.0.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"author":{"name":"dead_horse"},"gitHead":"bdaebb9d3859f1c8ecf672802269d0bb62c0dc14","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.2.2","_shasum":"55a9f41b41939e4d43732d42a75562e748e2f1d0","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"55a9f41b41939e4d43732d42a75562e748e2f1d0","size":4710,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.2.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-onerror-1.2.2.tgz_1484284722571_0.7030776066239923"},"directories":{},"publish_time":1484284722815,"_cnpm_publish_time":1484284722815,"_hasShrinkwrap":false},"1.2.1":{"name":"egg-onerror","version":"1.2.1","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","agent.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","egg-plugin","onerror"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^3.0.1"},"devDependencies":{"autod":"^2.7.1","egg":"^0.7.0","egg-bin":"^1.10.0","egg-ci":"^1.1.0","egg-mock":"^2.0.0","eslint":"^3.13.1","eslint-config-egg":"^3.2.0","pedding":"^1.1.0","rimraf":"^2.5.4","supertest":"^2.0.1"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"author":{"name":"dead_horse"},"gitHead":"646cf6343c1ab3a09bcbe09bcd47e4a3f769dcc0","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.2.1","_shasum":"1384d3d1dcf17d34f2fbf8e4ad74996d4723fbc7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"1384d3d1dcf17d34f2fbf8e4ad74996d4723fbc7","size":4613,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.2.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-onerror-1.2.1.tgz_1484244101682_0.08481257408857346"},"directories":{},"publish_time":1484244101909,"_cnpm_publish_time":1484244101909,"_hasShrinkwrap":false},"1.1.0":{"name":"egg-onerror","version":"1.1.0","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","plugin","onerror"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^3.0.0"},"devDependencies":{"autod":"^2.7.1","egg":"^0.2.1","egg-bin":"^1.5.1","egg-ci":"^1.0.3","egg-mock":"^0.0.5","eslint":"^3.8.1","eslint-config-egg":"^3.1.0","intelli-espower-loader":"^1.0.1","pedding":"^1.0.0","power-assert":"^1.4.1","rimraf":"^2.5.4","supertest":"^2.0.1"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test -r intelli-espower-loader","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"author":{"name":"dead_horse"},"gitHead":"153d26cbf1560a4aac05737a2bc80b8caa29d978","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.1.0","_shasum":"51554de96141850d73055331d6ad9c3f89b0e2eb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"51554de96141850d73055331d6ad9c3f89b0e2eb","size":4235,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-onerror-1.1.0.tgz_1478661580841_0.03296403028070927"},"directories":{},"publish_time":1478661581405,"_cnpm_publish_time":1478661581405,"_hasShrinkwrap":false},"1.0.0":{"name":"egg-onerror","version":"1.0.0","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","plugin","onerror"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^3.0.0"},"devDependencies":{"autod":"^2.7.1","egg":"^0.2.1","egg-bin":"^1.5.1","egg-ci":"^1.0.3","egg-mock":"^0.0.5","eslint":"^3.8.1","eslint-config-egg":"^3.1.0","pedding":"^1.0.0","rimraf":"^2.5.4","supertest":"^2.0.1"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js --fix test config *.js","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"author":{"name":"dead_horse"},"gitHead":"9e5f448654a6fae7e9f5c3e0c0a78003f25bf1a9","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@1.0.0","_shasum":"44eb6c7eb0981c56ca3865a759b19aa09579c114","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"44eb6c7eb0981c56ca3865a759b19aa09579c114","size":4162,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-onerror-1.0.0.tgz_1477047020194_0.822468931786716"},"directories":{},"publish_time":1477047022272,"_cnpm_publish_time":1477047022272,"_hasShrinkwrap":false},"0.0.3":{"name":"egg-onerror","version":"0.0.3","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","onerror_page.html"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-onerror.git"},"keywords":["egg","plugin"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^2.0.0"},"devDependencies":{"autod":"^2.6.1","egg-bin":"^1.0.2","egg-ci":"^1.0.2","eslint":"^3.0.1","eslint-config-egg":"^3.1.0","should":"^9.0.2","supertest":"^1.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"author":{"name":"dead_horse"},"gitHead":"d47224318ca7157954b12f831bf0d84bca9f9714","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@0.0.3","_shasum":"ad17a402fbe3fc17ccf91d05264fd836ad1addc2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"ad17a402fbe3fc17ccf91d05264fd836ad1addc2","size":4102,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-0.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-onerror-0.0.3.tgz_1468644920107_0.43970328103750944"},"directories":{},"publish_time":1468644921193,"_cnpm_publish_time":1468644921193,"_hasShrinkwrap":false},"0.0.2":{"name":"egg-onerror","version":"0.0.2","description":"error handler for egg","eggPlugin":{"name":"onerror"},"files":["config","app.js","onerror_page.html"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-onerror.git"},"keywords":["egg","plugin"],"dependencies":{"escape-html":"^1.0.3","koa-onerror":"^2.0.0"},"devDependencies":{"autod":"^2.6.1","egg-bin":"^1.0.2","egg-ci":"^1.0.2","eslint":"^3.0.1","eslint-config-egg":"^3.1.0","should":"^9.0.2","supertest":"^1.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"author":{"name":"dead_horse"},"gitHead":"9fa4b623c25d5a78d5589abaad1c93575b9c33f4","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"homepage":"https://github.com/eggjs/egg-onerror#readme","_id":"egg-onerror@0.0.2","_shasum":"bcaec7fcfe0dd726798172dd82eec9e4d2de1356","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"bcaec7fcfe0dd726798172dd82eec9e4d2de1356","size":4088,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-0.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-onerror-0.0.2.tgz_1468399992568_0.35938641242682934"},"directories":{},"publish_time":1468399995232,"_cnpm_publish_time":1468399995232,"_hasShrinkwrap":false},"0.0.1":{"name":"egg-onerror","version":"0.0.1","description":"egg plugin <egg-onerror>","keywords":["egg","eggjs","egg-plugin"],"homepage":"https://github.com/eggjs/egg-onerror","license":"MIT","author":{"name":"eggjs"},"contributors":[{"name":"TZ","email":"atian25@qq.com"},{"name":"popomore","email":"sakura9515@gmail.com"},{"name":"fengmk2","email":"m@fengmk2.com"},{"name":"dead-horse","email":"heyiyu.deadhorse@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-onerror.git"},"bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"},"_id":"egg-onerror@0.0.1","scripts":{},"_shasum":"f388c7772ad0a939e78ea388c248172248744b80","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"f388c7772ad0a939e78ea388c248172248744b80","size":422,"noattachment":false,"key":"/egg-onerror/-/egg-onerror-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-onerror/download/egg-onerror-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-onerror-0.0.1.tgz_1464253738764_0.9529396379366517"},"directories":{},"publish_time":1464253741426,"_cnpm_publish_time":1464253741426,"_hasShrinkwrap":false}},"readme":"# egg-onerror\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-onerror.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-onerror\n[travis-image]: https://img.shields.io/travis/eggjs/egg-onerror.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-onerror\n[codecov-image]: https://codecov.io/github/eggjs/egg-onerror/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/egg-onerror?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-onerror.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-onerror\n[snyk-image]: https://snyk.io/test/npm/egg-onerror/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-onerror\n[download-image]: https://img.shields.io/npm/dm/egg-onerror.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-onerror\n\nDefault error handling plugin for egg.\n\n## Install\n\n```bash\n$ npm i egg-onerror\n```\n\n## Usage\n\n`egg-onerror` is on by default in egg. But you still can configure its properties to fits your scenarios.\n\n- `errorPageUrl: String or Function` - If user request html pages in production environment and unexpected error happened, it will redirect user to `errorPageUrl`.\n- `accepts: Function` - detect user's request accpet `json` or `html`.\n- `all: Function` - customize error handler, if `all` present, negotiation will be ignored.\n- `html: Function` - customize html error handler.\n- `text: Function` - customize text error handler.\n- `json: Function` - customize json error handler.\n- `jsonp: Function` - customize jsonp error handler.\n\n```js\n// config.default.js\n// errorPageUrl support funtion\nexports.onerror = {\n  errorPageUrl: (err, ctx) => ctx.errorPageUrl || '/500',\n};\n\n// an accept detect function that mark all request with `x-requested-with=XMLHttpRequest` header accepts json.\nfunction accepts(ctx) {\n  if (ctx.get('x-requested-with') === 'XMLHttpRequest') return 'json';\n  return 'html';\n}\n```\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](https://github.com/eggjs/egg-onerror/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-onerror#readme","bugs":{"url":"https://github.com/eggjs/egg-onerror/issues"}}