set-error-message
Advanced tools
Comparing version
@@ -28,3 +28,4 @@ import normalizeException from"normalize-exception"; | ||
const stackIncludesMessage=function(){ | ||
return new Error(EXAMPLE_MESSAGE).stack.includes(EXAMPLE_MESSAGE); | ||
const{stack}=new Error(EXAMPLE_MESSAGE); | ||
return typeof stack==="string"&&stack.includes(EXAMPLE_MESSAGE); | ||
}; | ||
@@ -31,0 +32,0 @@ |
{ | ||
"name": "set-error-message", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"type": "module", | ||
@@ -49,3 +49,3 @@ "exports": "./build/src/main.js", | ||
"dependencies": { | ||
"normalize-exception": "^2.4.0" | ||
"normalize-exception": "^2.5.1" | ||
}, | ||
@@ -52,0 +52,0 @@ "devDependencies": { |
20966
0.19%95
1.06%Updated