encoding-down
Advanced tools
Comparing version 2.1.1 to 2.1.2
14
index.js
@@ -89,8 +89,12 @@ 'use strict' | ||
if (err) return cb(err) | ||
if (typeof key !== 'undefined') { | ||
key = self.codec.decodeKey(key, self.opts) | ||
try { | ||
if (typeof key !== 'undefined') { | ||
key = self.codec.decodeKey(key, self.opts) | ||
} | ||
if (typeof value !== 'undefined') { | ||
value = self.codec.decodeValue(value, self.opts) | ||
} | ||
} catch (err) { | ||
return cb(new EncodingError(err)) | ||
} | ||
if (typeof value !== 'undefined') { | ||
value = self.codec.decodeValue(value, self.opts) | ||
} | ||
cb(null, key, value) | ||
@@ -97,0 +101,0 @@ }) |
{ | ||
"name": "encoding-down", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "level/encoding-down", |
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
3811
107