New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0 to 6.0.1

10

dist/patch.js

@@ -72,3 +72,3 @@ "use strict";

else {
if (parent[key]) {
if (typeof parent[key] !== 'undefined') {
throw new Error('cannot add, path exists');

@@ -83,3 +83,3 @@ }

}
if (!parent[key]) {
if (typeof parent[key] === 'undefined') {
throw new Error('cannot replace, path does not exist');

@@ -100,3 +100,3 @@ }

const fromParent = from.length ? pointer.resolve(out, `/${from.join('/')}`) : out;
if (!fromParent[fromKey]) {
if (typeof fromParent[fromKey] === 'undefined') {
throw new Error('cannot move, from path does not exist');

@@ -125,3 +125,3 @@ }

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

@@ -147,3 +147,3 @@ }

const fromParent = from.length ? pointer.resolve(out, `/${from.join('/')}`) : out;
if (!fromParent[fromKey]) {
if (typeof fromParent[fromKey] === 'undefined') {
throw new Error('cannot move, from path does not exist');

@@ -150,0 +150,0 @@ }

{
"name": "jsonref",
"version": "6.0.0",
"version": "6.0.1",
"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