level-sublevel
Advanced tools
Comparing version 6.5.3 to 6.5.4
{ | ||
"name": "level-sublevel", | ||
"description": "partition levelup databases", | ||
"version": "6.5.3", | ||
"version": "6.5.4", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -19,4 +19,4 @@ "repository": { | ||
"devDependencies": { | ||
"level": "~0.18.0", | ||
"level-test": ">=1.5.1 <2", | ||
"level": "^1.4.0", | ||
"level-test": "^2.0.1", | ||
"monotonic-timestamp": "0.0.8", | ||
@@ -28,4 +28,3 @@ "pull-level": "~1.1.1", | ||
"tape": "~2.14.0", | ||
"through": "~2.3.4", | ||
"leveldown": "~1.0.1" | ||
"through": "~2.3.4" | ||
}, | ||
@@ -32,0 +31,0 @@ "scripts": { |
@@ -10,3 +10,3 @@ | ||
var db = sublevel(level('simple', {encoding: 'json'})) | ||
var db = sublevel(level('simple', {valueEncoding: 'json'})) | ||
db.put('hello', {ok: true}, function (err) { | ||
@@ -20,3 +20,3 @@ if(err) throw err | ||
var db2 = db.sublevel('sub') | ||
db2.put('hello', {ok: true}, function (err) { | ||
db2.put('hello', {ok: true}, function (err) { | ||
if(err) throw err | ||
@@ -35,3 +35,3 @@ | ||
tape('override json encoding', function (t) { | ||
var db = sublevel(level('level-sublevel_override', {encoding: 'json'})) | ||
var db = sublevel(level('level-sublevel_override', {valueEncoding: 'json'})) | ||
var buf = new Buffer([1,2,3,4]) | ||
@@ -47,3 +47,3 @@ | ||
var db2 = db.sublevel('sub', {valueEncoding: 'binary'}) | ||
db2.put('hello', buf, function (err) { | ||
db2.put('hello', buf, function (err) { | ||
if(err) throw err | ||
@@ -50,0 +50,0 @@ |
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
9
83711