@vitrical/utils
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -19,10 +19,2 @@ "use strict"; | ||
} | ||
else { | ||
if (typeof err === 'object' && !!err && 'message' in err && typeof err.message === 'string') { | ||
const newError = new Error(err.message); | ||
newError.stack = newStack; | ||
newError.message = err.message; | ||
return newError; | ||
} | ||
} | ||
return err; | ||
@@ -29,0 +21,0 @@ } |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Collection of useful functions and typings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
47094
810