normalize-exception
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -29,17 +29,6 @@ import{setErrorProperty}from"./descriptors.js"; | ||
return( | ||
supportsAggregateError()&&( | ||
"AggregateError"in globalThis&&( | ||
error.name==="AggregateError"||error instanceof AggregateError)); | ||
}; | ||
export const supportsAggregateError=function(){ | ||
try{ | ||
AggregateError; | ||
return true; | ||
}catch{ | ||
return false; | ||
} | ||
}; | ||
//# sourceMappingURL=aggregate.js.map |
import isPlainObj from"is-plain-obj"; | ||
import{supportsAggregateError}from"./aggregate.js"; | ||
import{setErrorProperty,isNonModifiableError}from"./descriptors.js"; | ||
@@ -66,3 +65,3 @@ import{setFullStack}from"./stack.js"; | ||
const newError=function(name,message){ | ||
if(name==="AggregateError"&&supportsAggregateError()){ | ||
if(name==="AggregateError"&&"AggregateError"in globalThis){ | ||
return new AggregateError([],message); | ||
@@ -69,0 +68,0 @@ } |
{ | ||
"name": "normalize-exception", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"type": "module", | ||
@@ -49,3 +49,3 @@ "exports": "./build/src/main.js", | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.76", | ||
"@ehmicky/dev-tasks": "^1.0.77", | ||
"test-each": "^5.0.0", | ||
@@ -52,0 +52,0 @@ "tsd": "^0.20.0" |
Sorry, the diff of this file is not supported yet
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
49048
315