@curveball/problem
Advanced tools
Comparing version 0.3.1 to 0.4.0
Changelog | ||
========= | ||
0.4.0 (2022-09-03) | ||
------------------ | ||
* Upgraded from `@curveball/core` to `@curveball/kernel`. | ||
0.3.1 (2022-01-17) | ||
@@ -5,0 +11,0 @@ ------------------ |
@@ -1,2 +0,2 @@ | ||
import { Middleware } from '@curveball/core'; | ||
import { Middleware } from '@curveball/kernel'; | ||
declare type ProblemMwSettings = { | ||
@@ -3,0 +3,0 @@ debug?: boolean; |
@@ -6,3 +6,3 @@ "use strict"; | ||
let debugMode = false; | ||
if ((settings === null || settings === void 0 ? void 0 : settings.debug) !== undefined) { | ||
if (settings?.debug !== undefined) { | ||
debugMode = settings.debug; | ||
@@ -14,3 +14,3 @@ } | ||
let quiet = false; | ||
if ((settings === null || settings === void 0 ? void 0 : settings.quiet) !== undefined) { | ||
if (settings?.quiet !== undefined) { | ||
quiet = settings.quiet; | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "@curveball/problem", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "A middleware for converting errors into application/problem+json", | ||
@@ -9,2 +9,3 @@ "main": "dist/index.js", | ||
"test": "make lint test", | ||
"lint": "make lint", | ||
"tsc": "tsc", | ||
@@ -44,15 +45,15 @@ "start": "make start" | ||
"devDependencies": { | ||
"@curveball/core": "^0.16.1", | ||
"@curveball/kernel": "^0.20.0", | ||
"@types/chai": "^4.2.15", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^12.20.41", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^14.18.26", | ||
"@types/sinon": "^10.0.6", | ||
"@typescript-eslint/eslint-plugin": "^5.9.1", | ||
"@typescript-eslint/parser": "^5.9.1", | ||
"@typescript-eslint/eslint-plugin": "^5.36.1", | ||
"@typescript-eslint/parser": "^5.36.1", | ||
"chai": "^4.3.0", | ||
"eslint": "^8.6.0", | ||
"mocha": "^9.1.4", | ||
"eslint": "^8.23.0", | ||
"mocha": "^10.0.0", | ||
"nyc": "^15.1.0", | ||
"sinon": "^12.0.1", | ||
"ts-node": "^10.4.0", | ||
"sinon": "^14.0.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.5.4" | ||
@@ -66,5 +67,2 @@ }, | ||
}, | ||
"peerDependencies": { | ||
"@curveball/core": ">=0.16.1 <1" | ||
}, | ||
"mocha": { | ||
@@ -78,3 +76,6 @@ "require": "ts-node/register", | ||
] | ||
}, | ||
"peerDependencies": { | ||
"@curveball/kernel": ">=0.20.0 <1" | ||
} | ||
} |
@@ -23,3 +23,3 @@ Curveball Problem Middleware | ||
import problemMw from '@curveball/problem'; | ||
import { Application } from '@curveball/core'; | ||
import { Application } from '@curveball/kernel'; | ||
@@ -26,0 +26,0 @@ const app = new Application(); |
@@ -1,2 +0,2 @@ | ||
import { Middleware } from '@curveball/core'; | ||
import { Middleware } from '@curveball/kernel'; | ||
import { isClientError, isHttpError, isHttpProblem } from '@curveball/http-errors'; | ||
@@ -3,0 +3,0 @@ |
Sorry, the diff of this file is not supported yet
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
12580