Comparing version 0.10.1 to 0.10.2
{ | ||
"name": "lowdb", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "Flat JSON file database", | ||
@@ -34,5 +34,6 @@ "keywords": [ | ||
"dependencies": { | ||
"graceful-fs": "^3.0.8", | ||
"json-parse-helpfulerror": "^1.0.3", | ||
"lodash": "^3.1.0", | ||
"steno": "^0.4.1", | ||
"graceful-fs": "^3.0.8" | ||
"steno": "^0.4.1" | ||
}, | ||
@@ -39,0 +40,0 @@ "devDependencies": { |
var lodash = require('lodash') | ||
var disk = require('./disk') | ||
var jph = require('json-parse-helpfulerror') | ||
@@ -97,4 +98,3 @@ // Returns a lodash chain that calls .value() and cb() | ||
} catch (e) { | ||
if (e instanceof SyntaxError) e.message = 'Malformed JSON' | ||
e.message += ' in file:' + file | ||
if (e instanceof SyntaxError) e.message = 'Malformed JSON in file: ' + file + '\n' + e.message | ||
throw e | ||
@@ -115,5 +115,5 @@ } | ||
low.parse = function (str) { | ||
return JSON.parse(str) | ||
return jph.parse(str) | ||
} | ||
module.exports = low |
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
10244
4
+ Addedjju@1.4.0(transitive)
+ Addedjson-parse-helpfulerror@1.0.3(transitive)