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);
218
217
}// only parse key when it's an integer for `arr.prop` to work
219
-
elseif((0,helpers_js_1.isInteger)(key)){
218
+
elseif(helpers_js_1.isInteger(key)){
220
219
key=~~key;
221
220
}
222
221
}
@@ -273,7 +272,7 @@ function applyPatch(document, patch, validateOperation, mutateDocument, banProto
273
272
}
274
273
}
275
274
if(!mutateDocument){
276
-
document=(0,helpers_js_1._deepClone)(document);
275
+
document=helpers_js_1._deepClone(document);
277
276
}
278
277
varresults=newArray(patch.length);
279
278
for(vari=0,length_1=patch.length;i<length_1;i++){
@@ -329,7 +328,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);
334
333
}
335
334
elseif(document){
@@ -369,7 +368,7 @@ function validate(sequence, document, externalValidator) {
369
368
}
370
369
if(document){
371
370
//clone document and sequence so that we can safely try applying operations
0 commit comments