safe-json-value
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -0,2 +1,4 @@ | ||
import normalizeException from"normalize-exception"; | ||
export const safeGetChangeProp=function({parent,key}){ | ||
@@ -22,3 +24,3 @@ try{ | ||
reason:"unsafeGetter", | ||
error}); | ||
error:normalizeException(error)}); | ||
@@ -25,0 +27,0 @@ return{prop:undefined,safe:false}; |
@@ -0,1 +1,3 @@ | ||
import normalizeException from"normalize-exception"; | ||
import{isObject}from"./is_object.js"; | ||
@@ -32,3 +34,3 @@ | ||
reason:"unsafeToJSON", | ||
error}); | ||
error:normalizeException(error)}); | ||
@@ -35,0 +37,0 @@ } |
@@ -0,1 +1,2 @@ | ||
import normalizeException from"normalize-exception"; | ||
@@ -14,2 +15,3 @@ | ||
export const handleUnsafeException=function({ | ||
@@ -27,3 +29,3 @@ value, | ||
reason:"unsafeException", | ||
error}); | ||
error:normalizeException(error)}); | ||
@@ -30,0 +32,0 @@ return{value:undefined,size}; |
{ | ||
"name": "safe-json-value", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"type": "module", | ||
@@ -49,3 +49,4 @@ "exports": "./build/src/main.js", | ||
"dependencies": { | ||
"is-plain-obj": "^4.1.0" | ||
"is-plain-obj": "^4.1.0", | ||
"normalize-exception": "^1.4.1" | ||
}, | ||
@@ -52,0 +53,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
77664
657
2
+ Addednormalize-exception@^1.4.1
+ Addednormalize-exception@1.9.0(transitive)