@jsonjoy.com/json-pointer
Advanced tools
+8
-8
@@ -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 @@ } |
+1
-1
@@ -7,3 +7,3 @@ { | ||
| }, | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "High-performance JSON Pointer implementation", | ||
@@ -10,0 +10,0 @@ "author": { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
29608
0.07%