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.1.8 to 6.2.0

bytewise.js

1

index.js

@@ -7,3 +7,2 @@

var codec = require('levelup/lib/codec')
var DeferredLevelDown = require('deferred-leveldown')
// Currently this uses pull streams,

@@ -10,0 +9,0 @@ // and not levelup's readstream, but in theory

@@ -78,3 +78,4 @@ var hooks = require('./hooks')

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

@@ -81,0 +82,0 @@ }),

{
"name": "level-sublevel",
"description": "partition levelup databases",
"version": "6.1.8",
"version": "6.2.0",
"homepage": "https://github.com/dominictarr/level-sublevel",

@@ -13,3 +13,2 @@ "repository": {

"ltgt": "~1.0.2",
"deferred-leveldown": "~0.2.0",
"levelup": "https://codeload.github.com/dominictarr/node-levelup/tar.gz/inject"

@@ -16,0 +15,0 @@ },

@@ -10,12 +10,15 @@ var tape = require('tape')

var codec = require('levelup/lib/codec')
var bytewise = require('bytewise')
var concat = require('../codec')
var pullReadStream = require('../pull')
var legacy = require('../codec/legacy')
var bytewise = require('../codec/bytewise')
bytewise.lowerBound = null
bytewise.upperBound = undefined
concat.lowerBound = '\x00'
concat.upperBound = '\xff'
var codex = [
concat,
legacy,
bytewise
]
var pullReadStream = require('../pull')
function create (precodec, db) {

@@ -199,29 +202,20 @@

tests.forEach(function (test) {
codex.forEach(function (codec) {
var db1 = create(concat)
tests.forEach(function (test) {
test(db1)
test(db1.sublevel('foo'))
test(db1.sublevel('foo').sublevel('blah'))
var db1 = create(codec)
var db2 = create(bytewise)
test(db1)
test(db1.sublevel('foo'))
test(db1.sublevel('foo').sublevel('blah'))
test(db2)
test(db2.sublevel('foo'))
test(db2.sublevel('foo').sublevel('blah'))
var db3 = create(codec, createTestDb())
var db3 = create(concat, createTestDb())
test(db3)
test(db3.sublevel('foo'))
test(db3.sublevel('foo').sublevel('blah'))
test(db3)
test(db3.sublevel('foo'))
test(db3.sublevel('foo').sublevel('blah'))
})
var db4 = create(bytewise, createTestDb())
test(db4)
test(db4.sublevel('foo'))
test(db4.sublevel('foo').sublevel('blah'))
})
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