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

@broofa/jsondiff

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@broofa/jsondiff - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

index.js

@@ -25,3 +25,3 @@ // Reserved values

if (after === undefined) return DROP;
if (after == null) return null;
if (after === null) return before === null ? KEEP : null;
if (before == null) return after;

@@ -28,0 +28,0 @@

{
"name": "@broofa/jsondiff",
"version": "1.3.1",
"version": "1.3.2",
"description": "Pragmatic, intuitive diffing and patching of JSON objects",

@@ -9,3 +9,3 @@ "main": "index.js",

"mocha": "^5.2.0",
"runmd": "^1.0.1"
"runmd": "1.2.1"
},

@@ -12,0 +12,0 @@ "scripts": {

@@ -11,2 +11,3 @@ var assert = require('assert');

it('Null', async () => {
assert.equal(KEEP, diff(null, null));
assert.equal(123, diff(null, 123));

@@ -13,0 +14,0 @@ assert.equal(null, diff(123, null));

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