comment-json
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "comment-json", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -99,2 +99,3 @@ // JSON formatting | ||
// Move the reader to the next | ||
const next = () => { | ||
@@ -212,2 +213,6 @@ const new_token = tokens[++ index] | ||
parse_comments() | ||
if (is(CURLY_BRACKET_CLOSE)) { | ||
break | ||
} | ||
} | ||
@@ -266,2 +271,6 @@ | ||
parse_comments() | ||
if (is(BRACKET_CLOSE)) { | ||
break | ||
} | ||
} | ||
@@ -332,2 +341,3 @@ | ||
const parse = (code, rev, no_comments) => { | ||
// Clean variables in closure | ||
clean() | ||
@@ -334,0 +344,0 @@ |
@@ -53,2 +53,3 @@ const { | ||
ESCAPABLE.lastIndex = 0 | ||
if (!ESCAPABLE.test(string)) { | ||
@@ -55,0 +56,0 @@ return string |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34036
829