Skip to content

Commit 3993ac4

Browse files
committed
0.0.10
1 parent 5e1f3bf commit 3993ac4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

dist/jsonpatcherproxy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JSONPatcherProxy version: 0.0.9 */
1+
/*! JSONPatcherProxy version: 0.0.10 */
22
var JSONPatcherProxy =
33
/******/ (function(modules) { // webpackBootstrap
44
/******/ // The module cache
@@ -209,6 +209,9 @@ const JSONPatcherProxy = (function() {
209209
} else {
210210
if (Array.isArray(target) && !Number.isInteger(+key.toString())) {
211211
/* array props (as opposed to indices) don't emit any patches, to avoid needless `length` patches */
212+
if(key != 'length') {
213+
console.warn('JSONPatcherProxy noticed a non-integer prop was set for an array. This will not emit a patch');
214+
}
212215
return Reflect.set(target, key, newValue);
213216
}
214217
operation.op = 'add';

dist/jsonpatcherproxy.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonpatcherproxy",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.",
55
"main": "src/jsonpatcherproxy.js",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)