Comparing version 6.0.0-alpha-0.0.5 to 6.0.0-alpha-0.0.6
{ | ||
"name": "enmap", | ||
"version": "6.0.0-alpha-0.0.5", | ||
"version": "6.0.0-alpha-0.0.6", | ||
"description": "A simple database wrapper to make sqlite database interactions much easier for beginners, with additional array helper methods.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1018,3 +1018,14 @@ import { | ||
#parse(value) { | ||
return this.#deserializer(parse(value)); | ||
let parsed; | ||
try { | ||
parsed = parse(value); | ||
try { | ||
parsed = this.#deserializer(parsed); | ||
} catch (e) { | ||
throw new Err('Error while deserializing data: ', e.message, 'EnmapParseError'); | ||
} | ||
} catch (e) { | ||
throw new Err('Error while deserializing data: ', e.message, 'EnmapParseError'); | ||
} | ||
return parsed; | ||
} | ||
@@ -1021,0 +1032,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
178400
2218