cosmiconfig
Advanced tools
Comparing version 2.1.2 to 2.1.3
# Changelog | ||
## 2.1.3 | ||
- Licensing improvement: switched from `json-parse-helpfulerror` to `parse-json`. | ||
## 2.1.2 | ||
@@ -4,0 +8,0 @@ |
'use strict'; | ||
var jph = require('json-parse-helpfulerror'); | ||
var parseJson = require('parse-json'); | ||
module.exports = function (json, filepath) { | ||
try { | ||
return jph.parse(json); | ||
return parseJson(json); | ||
} catch (err) { | ||
@@ -9,0 +9,0 @@ err.message = 'JSON Error in ' + filepath + ':\n' + err.message; |
{ | ||
"name": "cosmiconfig", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module", | ||
@@ -37,6 +37,6 @@ "main": "index.js", | ||
"js-yaml": "^3.4.3", | ||
"json-parse-helpfulerror": "^1.0.3", | ||
"minimist": "^1.2.0", | ||
"object-assign": "^4.1.0", | ||
"os-homedir": "^1.0.1", | ||
"parse-json": "^2.2.0", | ||
"require-from-string": "^1.1.0" | ||
@@ -43,0 +43,0 @@ }, |
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
22221
+ Addedparse-json@^2.2.0
+ Addederror-ex@1.3.2(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedparse-json@2.2.0(transitive)
- Removedjson-parse-helpfulerror@^1.0.3
- Removedjju@1.4.0(transitive)
- Removedjson-parse-helpfulerror@1.0.3(transitive)