level-sublevel
Advanced tools
Comparing version 6.1.8 to 6.2.0
@@ -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')) | ||
}) | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74394
3
50
2221
- Removeddeferred-leveldown@~0.2.0
- Removedabstract-leveldown@0.12.4(transitive)
- Removeddeferred-leveldown@0.2.0(transitive)
- Removedxtend@3.0.0(transitive)