node-code-error
Advanced tools
Comparing version 0.1.32 to 0.1.33
@@ -69,3 +69,5 @@ 'use strict' | ||
Errors.wrap = function (err, type) { | ||
type = type || 'system' | ||
if (!type) { | ||
type = err.status || err.statusCode || err.code || 500 | ||
} | ||
var Err = this.get(type) | ||
@@ -72,0 +74,0 @@ if (!Err) return null |
{ | ||
"name": "node-code-error", | ||
"version": "0.1.32", | ||
"version": "0.1.33", | ||
"description": "define node error with code", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
11407
219