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

jsonref

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonref - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

6

dist/patch.js

@@ -31,4 +31,4 @@ "use strict";

if (src.length > dst.length) {
for (let i = dst.length; i < src.length; i++) {
out.push({ op: 'remove', path: `${path === '/' ? '' : path}/${i}` });
for (let i = src.length; i > dst.length; i--) {
out.push({ op: 'remove', path: `${path === '/' ? '' : path}/${i - 1}` });
}

@@ -124,3 +124,3 @@ }

else if (typeof parent[key] === 'undefined') {
throw new Error('cannot remove, path does not exist');
throw new Error(`cannot remove, path ${p.path} does not exist`);
}

@@ -127,0 +127,0 @@ if (Array.isArray(parent)) {

{
"name": "jsonref",
"version": "6.0.2",
"version": "6.0.3",
"description": "Javascript References ($ref) and Pointers library",

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

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