Comparing version 0.7.1 to 0.7.2
{ | ||
"name": "lowdb", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Flat JSON file database", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -91,3 +91,8 @@ var fs = require('fs') | ||
if (data) { | ||
db.object = low.parse(data) | ||
try { | ||
db.object = low.parse(data) | ||
} catch (e) { | ||
e.message += ' (' + file + ')' | ||
throw e | ||
} | ||
} else { | ||
@@ -94,0 +99,0 @@ db.saveSync() |
@@ -5,5 +5,5 @@ { | ||
"a": 1, | ||
"id": "e7f79cd4-6307-4d0a-ac25-de4bfaee4dfa" | ||
"id": "aced2566-f5e2-4f7d-8235-dc9ff5d94045" | ||
} | ||
] | ||
} |
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
10332
132