normalize-exception
Advanced tools
Comparing version 1.1.4 to 1.1.5
import{normalizeAggregate}from"./aggregate.js"; | ||
import{normalizeCause}from"./cause.js"; | ||
import{createError}from"./create.js"; | ||
import{createError}from"./create/main.js"; | ||
import{setErrorProperty,normalizeDescriptors}from"./descriptors.js"; | ||
@@ -37,6 +37,3 @@ import{setFullStack,fixStack}from"./stack.js"; | ||
if(!isDefinedString(error.name)){ | ||
const name=isDefinedString(error.constructor.name)? | ||
error.constructor.name: | ||
"Error"; | ||
setErrorProperty(error,"name",name); | ||
setErrorProperty(error,"name",error.constructor.name); | ||
} | ||
@@ -43,0 +40,0 @@ }; |
{ | ||
"name": "normalize-exception", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": "./build/src/main.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
51412
20
332