read-package-json
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "read-package-json", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
@@ -18,2 +18,3 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation", | ||
"glob": "^4.0.2", | ||
"json-parse-helpfulerror": "^1.0.2", | ||
"lru-cache": "2", | ||
@@ -23,3 +24,3 @@ "normalize-package-data": "^1.0.0" | ||
"devDependencies": { | ||
"tap": "~0.2.5" | ||
"tap": "^0.7.1" | ||
}, | ||
@@ -26,0 +27,0 @@ "optionalDependencies": { |
@@ -17,2 +17,3 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
var normalizeData = require("normalize-package-data") | ||
var jsonparse = require("json-parse-helpfulerror") | ||
@@ -83,3 +84,3 @@ // put more stuff on here to customize. | ||
try { | ||
d = JSON.parse(stripBOM(d)) | ||
d = jsonparse.parse(stripBOM(d)) | ||
} catch (er) { | ||
@@ -400,3 +401,3 @@ d = parseIndex(d) | ||
try { | ||
return JSON.parse(data) | ||
return jsonparse.parse(data) | ||
} catch (er) { | ||
@@ -403,0 +404,0 @@ return null |
{ | ||
"name": "badbin-test", | ||
"name": "emptybin-test", | ||
"description": "my desc", | ||
@@ -4,0 +4,0 @@ "repository": { |
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
32381
23
666
7
7
+ Addedjju@1.4.0(transitive)
+ Addedjson-parse-helpfulerror@1.0.3(transitive)