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

json-version-control

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-version-control - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

package.json
{
"name": "json-version-control",
"version": "1.2.3",
"version": "1.2.4",
"description": "A lightweight and easy-to-use package that provides version control functionality for JSON files.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -262,3 +262,4 @@ const fs = require("fs");

// Calculate the difference between the source and target objects.
const diff = this.calculateDiff(sourceObj, targetJson);
const parsedJson = JSON.parse(targetJson)
const diff = this.calculateDiff(sourceObj, parsedJson);

@@ -265,0 +266,0 @@ // If no changes are found, log a message and return.

@@ -160,3 +160,4 @@ const fs = require("fs");

// Calculate the difference between the source and target objects.
const diff = this.calculateDiff(sourceObj, targetJson);
const parsedJson = JSON.parse(targetJson)
const diff = this.calculateDiff(sourceObj, parsedJson);

@@ -163,0 +164,0 @@ // If no changes are found, log a message and return.

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