normalize-exception
Advanced tools
Comparing version
@@ -0,5 +1,6 @@ | ||
import isPlainObj from"is-plain-obj"; | ||
import{supportsAggregateError}from"./aggregate.js"; | ||
import{setErrorProperty,isNonModifiableError}from"./descriptors.js"; | ||
import{setFullStack}from"./stack.js"; | ||
import{isPlainObj}from"./utils.js"; | ||
@@ -25,5 +26,7 @@ | ||
const isError=function(value){ | ||
return( | ||
objectToString.call(value)==="[object Error]"&& | ||
!(Symbol.toStringTag in value)); | ||
const isError=function(value){ | ||
return objectToString.call(value)==="[object Error]"; | ||
}; | ||
@@ -30,0 +33,0 @@ |
{ | ||
"name": "normalize-exception", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"type": "module", | ||
@@ -55,3 +55,6 @@ "exports": "./build/src/main.js", | ||
"node": ">=14.18.0" | ||
}, | ||
"dependencies": { | ||
"is-plain-obj": "^4.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
49685
-1.6%1
Infinity%16
-11.11%324
-1.52%+ Added
+ Added