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

level-sublevel

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-sublevel - npm Package Compare versions

Comparing version 6.3.1 to 6.3.2

23

nut.js

@@ -37,2 +37,12 @@ var hooks = require('./hooks')

function addEncodings(op, prefix) {
if(prefix && prefix.options) {
op.keyEncoding =
op.keyEncoding || prefix.options.keyEncoding
op.valueEncoding =
op.valueEncoding || prefix.options.valueEncoding
}
return op
}
function start () {

@@ -58,8 +68,9 @@ ready = true

var op = ops[i]
addEncodings(op, op.prefix)
op.prefix = getPrefix(op.prefix)
prehooks.trigger([op.prefix, op.key], [op, add, ops])
function add(ch) {
if(ch === false) return delete ops[i]
ops.push(ch)
function add(op) {
if(op === false) return delete ops[i]
ops.push(op)
}

@@ -81,3 +92,7 @@ }

op.type !== 'del'
? codec.encodeValue(op.value, opts, op)
? codec.encodeValue(
op.value,
opts,
op
)
: undefined,

@@ -84,0 +99,0 @@ type:

2

package.json
{
"name": "level-sublevel",
"description": "partition levelup databases",
"version": "6.3.1",
"version": "6.3.2",
"homepage": "https://github.com/dominictarr/level-sublevel",

@@ -6,0 +6,0 @@ "repository": {

@@ -23,2 +23,3 @@ var EventEmitter = require('events').EventEmitter

emitter.sublevels = {}
emitter.options = options

@@ -25,0 +26,0 @@ emitter.version = version

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