level-codec
Advanced tools
Comparing version 6.2.0 to 7.0.0
@@ -8,3 +8,7 @@ | ||
}, | ||
decode: identity, | ||
decode: function(data){ | ||
return typeof data === 'string' | ||
? data | ||
: String(data) | ||
}, | ||
buffer: false, | ||
@@ -11,0 +15,0 @@ type: 'utf8' |
{ | ||
"name": "level-codec", | ||
"repository": "Level/codec", | ||
"version": "6.2.0", | ||
"version": "7.0.0", | ||
"description": "Levelup's encoding logic", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -74,2 +74,7 @@ var test = require('tape'); | ||
buf = codec.decodeValue(new Buffer('hey'), { | ||
valueEncoding: 'utf8' | ||
}); | ||
t.equal(buf, 'hey'); | ||
t.end(); | ||
@@ -76,0 +81,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
14699
392