Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

safe-json-value

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safe-json-value - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

4

build/src/get.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc