koa-better-error-handler
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -1,1 +0,1 @@ | ||
{"processes":{"6b54205f-27bb-46b8-aae1-7c245fa235f8":{"parent":null,"children":["8a8afcbb-5d6b-434f-8f58-c799c8296eac"]},"8a8afcbb-5d6b-434f-8f58-c799c8296eac":{"parent":"6b54205f-27bb-46b8-aae1-7c245fa235f8","children":[]}},"files":{"/Users/jack/Projects/koa-better-error-handler/lib/index.js":["8a8afcbb-5d6b-434f-8f58-c799c8296eac"]},"externalIds":{}} | ||
{"processes":{"272746d1-ad75-4391-9dd3-d180b925f2c1":{"parent":null,"children":["e93c6432-421d-480c-8b6c-c8898d89e417"]},"e93c6432-421d-480c-8b6c-c8898d89e417":{"parent":"272746d1-ad75-4391-9dd3-d180b925f2c1","children":[]}},"files":{"/Users/jack/Projects/koa-better-error-handler/lib/index.js":["e93c6432-421d-480c-8b6c-c8898d89e417"]},"externalIds":{}} |
@@ -110,7 +110,10 @@ "use strict"; | ||
this.state.meta = this.state.meta || {}; | ||
this.state.meta.title = this.body.error; | ||
this.state.meta.description = err.message; | ||
debug('set `this.state.meta.title` to %s', this.state.meta.title); | ||
debug('set `this.state.meta.desc` to %s', this.state.meta.description); | ||
if (!this.api) { | ||
this.state.meta = this.state.meta || {}; | ||
this.state.meta.title = this.body.error; | ||
this.state.meta.description = err.message; | ||
debug('set `this.state.meta.title` to %s', this.state.meta.title); | ||
debug('set `this.state.meta.desc` to %s', this.state.meta.description); | ||
} | ||
debug('type was %s', type); | ||
@@ -117,0 +120,0 @@ |
{ | ||
"name": "koa-better-error-handler", | ||
"description": "A better error-handler for Lad and Koa. Makes `ctx.throw` awesome (best used with koa-404-handler)", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"author": "Nick Baugh <niftylettuce@gmail.com>", | ||
@@ -28,10 +28,10 @@ "bugs": "https://github.com/ladjs/koa-better-error-handler/issues", | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.6", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/cli": "^7.10.1", | ||
"@babel/core": "^7.10.2", | ||
"@babel/preset-env": "^7.10.2", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@koa/router": "^8.0.8", | ||
"ava": "2.x", | ||
"codecov": "^3.6.5", | ||
"@koa/router": "^9.0.1", | ||
"ava": "^3.8.2", | ||
"codecov": "^3.7.0", | ||
"cross-env": "^7.0.2", | ||
@@ -43,3 +43,3 @@ "eslint": "6.x", | ||
"husky": "^4.2.5", | ||
"koa": "^2.11.0", | ||
"koa": "^2.12.0", | ||
"koa-404-handler": "^0.0.2", | ||
@@ -51,7 +51,7 @@ "koa-basic-auth": "^4.0.0", | ||
"koa-redis": "^4.0.1", | ||
"lint-staged": "^10.2.2", | ||
"lint-staged": "^10.2.7", | ||
"nyc": "^15.0.1", | ||
"redis": "^3.0.2", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-github": "^1.0.0", | ||
"remark-preset-github": "^1.0.1", | ||
"supertest": "^4.0.2", | ||
@@ -58,0 +58,0 @@ "xo": "0.25" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53758
333