Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

level-codec

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-codec - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/walk.js

12

lib/encodings.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc