@springworks/error-factory
Advanced tools
Comparing version 3002.19.74 to 3002.19.75
@@ -9,2 +9,3 @@ "use strict"; | ||
function getStatusCode(code, cause) { | ||
var _a; | ||
if (typeof code === 'number' && code >= 400 && http_1.STATUS_CODES[code]) { | ||
@@ -14,3 +15,3 @@ return code; | ||
if (cause) { | ||
if (cause.output && cause.output.statusCode) { | ||
if ((_a = cause.output) === null || _a === void 0 ? void 0 : _a.statusCode) { | ||
return getStatusCode(cause.output.statusCode, null); | ||
@@ -17,0 +18,0 @@ } |
@@ -6,2 +6,10 @@ # Change Log | ||
## 3002.19.75 (2020-07-23) | ||
**Note:** Version bump only for package @springworks/error-factory | ||
## 3002.19.74 (2020-06-29) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@springworks/error-factory", | ||
"version": "3002.19.74", | ||
"version": "3002.19.75", | ||
"description": "Custom error that makes use of HTTP error codes to identify different error types.", | ||
@@ -16,4 +16,4 @@ "main": "build/main.js", | ||
"@hapi/boom": "^9.0.0", | ||
"@springworks/random-string": "3002.19.74", | ||
"@springworks/swagger-schema-interfaces": "3002.19.74" | ||
"@springworks/random-string": "3002.19.75", | ||
"@springworks/swagger-schema-interfaces": "3002.19.75" | ||
}, | ||
@@ -33,3 +33,3 @@ "devDependencies": { | ||
"homepage": "https://github.com/Springworks/m2h-mono/tree/master/packages/error-factory#readme", | ||
"gitHead": "d4cbf452bbc31c283c5a635fabd48eff6b6be675" | ||
"gitHead": "341c049fa253979faa41542cd21f59a64aa9d266" | ||
} |
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
35312
467
+ Added@springworks/random-string@3002.19.75(transitive)
+ Added@types/node@22.8.0(transitive)
- Removed@springworks/random-string@3002.19.74(transitive)
- Removed@types/node@22.8.1(transitive)