Comparing version 0.0.5 to 0.0.6
@@ -29,3 +29,3 @@ /* | ||
// it's either closing or opening inString and it is not escaped | ||
if (curChar === '"' && str.charAt(i - 1) !== '\\') { | ||
if (!inComment && curChar === '"' && str.charAt(i - 1) !== '\\') { | ||
inString = !inString; | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "cjson", | ||
"description": "cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": "git://github.com/kof/node-cjson.git", | ||
@@ -6,0 +6,0 @@ "keywords": [ "json", "parser", "comments", "config", "loader"], |
@@ -17,4 +17,4 @@ var a = require('assert'); | ||
conf6: {"key\"/*test*/": "value\"//test"}, | ||
conf7: {"key": "{{root}}/src"} | ||
conf7: {"key": "{{root}}/src"}, | ||
conf8: {} | ||
}; | ||
@@ -40,2 +40,4 @@ | ||
a.deepEqual(cjson.load(fixtures + '/conf8.json'), data.conf8, 'string-like comment'); | ||
var data1 = { | ||
@@ -42,0 +44,0 @@ conf1: {key: 'value'}, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
11559
14
228
0
1