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 2.0.0 to 2.0.1

2

lib/decode-key.js

@@ -5,5 +5,5 @@ var encodings = require('./encodings');

module.exports = function decodeKey(key, optionObjects){
var encoding = walk(optionObjects, ['keyEncoding', 'encoding']) || 'utf8';
var encoding = walk(optionObjects, ['keyEncoding']) || 'utf8';
if (typeof encoding == 'string') encoding = encodings[encoding];
return encoding.decode(key);
};

@@ -5,5 +5,5 @@ var encodings = require('./encodings');

module.exports = function encodeKey(key, optionObjects){
var encoding = walk(optionObjects, ['keyEncoding', 'encoding']) || 'utf8';
var encoding = walk(optionObjects, ['keyEncoding']) || 'utf8';
if (typeof encoding == 'string') encoding = encodings[encoding];
return encoding.encode(key);
};

@@ -5,5 +5,5 @@ var encodings = require('./encodings');

module.exports = function keyAsBuffer(optionObjects){
var encoding = walk(optionObjects, ['keyEncoding', 'encoding']) || 'utf8';
var encoding = walk(optionObjects, ['keyEncoding']) || 'utf8';
if (typeof encoding == 'string') encoding = encodings[encoding];
return encoding.buffer;
};
{
"name": "level-codec",
"repository": "Level/codec",
"version": "2.0.0",
"version": "2.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