🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@jsonjoy.com/json-pointer

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonjoy.com/json-pointer - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+8
-8
lib/get.js

@@ -13,10 +13,10 @@ "use strict";

if (val instanceof Array) {
if (key === '-')
return undefined;
const key2 = ~~key;
if ('' + key2 !== key)
return undefined;
key = key2;
if (key < 0)
return undefined;
if (typeof key !== 'number') {
if (key === '-')
return undefined;
const key2 = ~~key;
if ('' + key2 !== key)
return undefined;
key = key2;
}
val = val[key];

@@ -23,0 +23,0 @@ }

@@ -7,3 +7,3 @@ {

},
"version": "1.0.0",
"version": "1.0.1",
"description": "High-performance JSON Pointer implementation",

@@ -10,0 +10,0 @@ "author": {