Socket
Socket
Sign inDemoInstall

json-diff

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-diff - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

lib/colorize.js

@@ -32,3 +32,3 @@ // Generated by IcedCoffeeScript 1.2.0t

subvalue = diff[subkey];
if (m = subkey.match(/^(.*)__removed$/)) {
if (m = subkey.match(/^(.*)__deleted$/)) {
subcolorize(m[1], subvalue, output, '-', subindent);

@@ -35,0 +35,0 @@ } else if (m = subkey.match(/^(.*)__added$/)) {

@@ -5,3 +5,3 @@ {

"description": "JSON diff",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/andreyvit/json-diff",

@@ -8,0 +8,0 @@ "repository": {

@@ -20,3 +20,3 @@ (function() {

return assert.deepEqual([' {', '- foo: 42', ' }'], colorizeToArray({
foo__removed: 42
foo__deleted: 42
}));

@@ -23,0 +23,0 @@ });

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