level-codec
Advanced tools
Comparing version 4.0.1 to 4.1.0
var encodeKey = require('./encode-key'); | ||
var encodeValue = require('./encode-value'); | ||
var keyAsBuffer = require('./key-as-buffer'); | ||
var valueAsBuffer = require('./value-as-buffer'); | ||
@@ -12,5 +14,7 @@ module.exports = function(ops, optionObjects){ | ||
}; | ||
if (keyAsBuffer(localOptionObjects)) op.keyEncoding = 'binary'; | ||
if ('value' in _op) { | ||
op.value = encodeValue(_op.value, localOptionObjects); | ||
if (valueAsBuffer(localOptionObjects)) op.valueEncoding = 'binary'; | ||
} | ||
@@ -17,0 +21,0 @@ |
{ | ||
"name": "level-codec", | ||
"repository": "Level/codec", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Levelup's encoding logic", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
6668
194