Comparing version 2.2.3 to 2.2.4
@@ -68,3 +68,7 @@ module.exports = Level | ||
if (Buffer.isBuffer(obj.value)) { | ||
obj.value = new Uint8Array(value.toArrayBuffer()) | ||
if (typeof value.toArrayBuffer === 'function') { | ||
obj.value = new Uint8Array(value.toArrayBuffer()) | ||
} else { | ||
obj.value = new Uint8Array(value) | ||
} | ||
} | ||
@@ -71,0 +75,0 @@ this.idb.put(obj.key, obj.value, function() { callback() }, callback) |
{ | ||
"name": "level-js", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "leveldown/leveldb library for browsers using IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
95298
1993