node-json-minify
Advanced tools
Comparing version 0.1.3-a to 0.1.4-a
/*! JSON.minify() | ||
v0.1.3-a (c) Kyle Simpson | ||
v0.1.4-a (c) Kyle Simpson | ||
MIT License | ||
@@ -7,3 +7,3 @@ */ | ||
module.exports = function(json) { | ||
var tokenizer = /"|(\/\*)|(\*\/)|(\/\/)|\n|\r/g, | ||
@@ -15,5 +15,5 @@ in_string = false, | ||
; | ||
tokenizer.lastIndex = 0; | ||
while (tmp = tokenizer.exec(json)) { | ||
@@ -30,3 +30,3 @@ lc = RegExp.leftContext; | ||
from = tokenizer.lastIndex; | ||
if (tmp[0] == "\"" && !in_multiline_comment && !in_singleline_comment) { | ||
@@ -59,2 +59,1 @@ tmp2 = lc.match(/(\\)*$/); | ||
}; | ||
{ | ||
"name": "node-json-minify", | ||
"version": "0.1.4-a", | ||
"description": "minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments", | ||
"keywords": ["util","functional","json", "minify"], | ||
"main": "json.minify.js", | ||
"scripts": { | ||
"test": "node tests.js" | ||
}, | ||
"keywords": ["util", "json", "minify"], | ||
"author": "Kyle Simpson <getify@gmail.com>", | ||
@@ -12,5 +17,3 @@ "contributors": [ | ||
], | ||
"repository" : {"type": "git", "url": "git://github.com/getify/JSON.minify.git"}, | ||
"main": "json.minify.js", | ||
"version": "0.1.3-a" | ||
"repository": "git://github.com/getify/JSON.minify.git" | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the 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
7364
6
111
30
1