New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsonpatch

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonpatch - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

8

lib/jsonpatch.js

@@ -239,5 +239,5 @@ /* @preserve

}
node.splice(lastSegment, 0, clone(value));
node.splice(lastSegment, 0, value);
} else {
node[lastSegment] = clone(value);
node[lastSegment] = value;
}

@@ -307,5 +307,5 @@ return node;

if (isArray(node)) {
node.splice(lastSegment, 1, clone(value));
node.splice(lastSegment, 1, value);
} else {
node[lastSegment] = clone(value);
node[lastSegment] = value;
}

@@ -312,0 +312,0 @@ return node;

{
"name": "jsonpatch",
"version": "2.0.0",
"version": "3.0.0",
"description": "An implementation of JSON Patch and JSON Pointer IETF RFCs",

@@ -5,0 +5,0 @@ "keywords": ["diff", "patch", "json", "jsonpatch", "jsonpointer"],

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