diff --git a/lib/index.js b/lib/index.js index 51b8c54..95b22c6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -151,8 +151,6 @@ LivePatch.prototype._patch = function(type, value) { var top = this.stack[this.stack.length - 1]; var parent = this.stack[this.stack.length - 2]; - if (!top) return - if (top.type == 'array') { parent = top; this._pushKey(parent.counter.toString()); diff --git a/package.json b/package.json index 1ce142b..c2252b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "livepatch", - "version": "1.1.2", + "version": "1.1.1", "description": "Patch JSON streams on the fly", "main": "lib/index.js", "scripts": {