@hyperjump/json-pointer
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -37,3 +37,3 @@ const curry = require("just-curry-it"); | ||
} else if (Array.isArray(subject)) { | ||
const clonedSubject = subject.map((a) => a); | ||
const clonedSubject = { ...subject }; | ||
clonedSubject[pointer[0]] = value; | ||
@@ -44,3 +44,3 @@ return clonedSubject; | ||
} else { | ||
return applySegment(value, pointer[0], cursor); | ||
return applySegment(subject, pointer[0], cursor); | ||
} | ||
@@ -47,0 +47,0 @@ }; |
{ | ||
"name": "@hyperjump/json-pointer", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "An RFC-6901 JSON Pointer implementation", | ||
@@ -5,0 +5,0 @@ "main": "lib/json-pointer.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5758