level-codec
Advanced tools
Comparing version 1.0.0 to 1.0.1
exports.utf8 = { | ||
exports.utf8 = exports['utf-8'] = { | ||
encode: function(data){ | ||
@@ -33,4 +33,2 @@ return isBinary(data) | ||
'hex', | ||
'utf8', | ||
'utf-8', | ||
'ascii', | ||
@@ -44,4 +42,4 @@ 'base64', | ||
bufferEncodings.forEach(function(name){ | ||
exports[name] = { | ||
bufferEncodings.forEach(function(type){ | ||
exports[type] = { | ||
encode: function(data){ | ||
@@ -57,6 +55,6 @@ return isBinary(data) | ||
type: type | ||
} | ||
}; | ||
}); | ||
function identify(value){ | ||
function identity(value){ | ||
return value; | ||
@@ -63,0 +61,0 @@ } |
@@ -10,3 +10,3 @@ | ||
key = keys[j]; | ||
if (object[key] !== null) value = object[key]; | ||
if (object[key]) value = object[key]; | ||
} | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "level-codec", | ||
"repository": "Level/codec", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
3612
11
122