jsonc-parser
Advanced tools
Comparing version 2.2.0 to 2.2.1
2.2.0 2019-10-25 | ||
================== | ||
* added *ParseOptions.allowTrailingComma*. Default is `false`. | ||
* added *ParseOptions.allowEmptyContent*. Default is `false`. | ||
* New API *getNodeType*: Returns the type of a value returned by parse. | ||
@@ -5,0 +5,0 @@ * parse: Fix issue with empty property name |
@@ -208,2 +208,3 @@ /*--------------------------------------------------------------------------------------------- | ||
onObjectEnd: function (offset, length) { | ||
ensurePropertyComplete(offset + length); // in case of a missing value for a property: make sure property is complete | ||
currentParent.length = offset + length - currentParent.offset; | ||
@@ -210,0 +211,0 @@ currentParent = currentParent.parent; |
@@ -220,2 +220,3 @@ (function (factory) { | ||
onObjectEnd: function (offset, length) { | ||
ensurePropertyComplete(offset + length); // in case of a missing value for a property: make sure property is complete | ||
currentParent.length = offset + length - currentParent.offset; | ||
@@ -222,0 +223,0 @@ currentParent = currentParent.parent; |
{ | ||
"name": "jsonc-parser", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Scanner and parser for JSON with comments.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/main.js", |
166146
3629