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 4.0.1 to 4.1.0

4

lib/batch.js
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 @@

2

package.json
{
"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",

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