You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewexports.JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",index,operation,document);
217
218
}// only parse key when it's an integer for `arr.prop` to work
218
-
elseif(helpers_js_1.isInteger(key)){
219
+
elseif((0,helpers_js_1.isInteger)(key)){
219
220
key=~~key;
220
221
}
221
222
}
@@ -272,7 +273,7 @@ function applyPatch(document, patch, validateOperation, mutateDocument, banProto
272
273
}
273
274
}
274
275
if(!mutateDocument){
275
-
document=helpers_js_1._deepClone(document);
276
+
document=(0,helpers_js_1._deepClone)(document);
276
277
}
277
278
varresults=newArray(patch.length);
278
279
for(vari=0,length_1=patch.length;i<length_1;i++){
@@ -328,7 +329,7 @@ function validator(operation, index, document, existingPathFragment) {
thrownewexports.JsonPatchError('Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)','OPERATION_VALUE_REQUIRED',index,operation,document);
thrownewexports.JsonPatchError('Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)','OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED',index,operation,document);
333
334
}
334
335
elseif(document){
@@ -368,7 +369,7 @@ function validate(sequence, document, externalValidator) {
368
369
}
369
370
if(document){
370
371
//clone document and sequence so that we can safely try applying operations
0 commit comments