level-sublevel
Advanced tools
Comparing version 3.4.0 to 4.0.0
@@ -41,3 +41,11 @@ var EventEmitter = require('events').EventEmitter | ||
var createReadStream = db.createReadStream | ||
db.createReadStream = function (opts) { | ||
opts = opts || {} | ||
if(!opts.end && !opts.start) | ||
opts.end = sep | ||
return createReadStream.call(db, opts) | ||
} | ||
var batch = db.batch | ||
@@ -44,0 +52,0 @@ db.batch = function (changes, opts, cb) { |
{ | ||
"name": "level-sublevel", | ||
"description": "", | ||
"version": "3.4.0", | ||
"version": "4.0.0", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -61,3 +61,3 @@ var test = require('tape') | ||
], function (err) { | ||
base.createReadStream() | ||
base.createReadStream({end: '\xff\xff'}) | ||
.on('data', function (ch) { | ||
@@ -102,3 +102,3 @@ obj[ch.key] = ch.value | ||
], function (err) { | ||
base.createReadStream() | ||
base.createReadStream({end: '\xff\xff'}) | ||
.on('data', function (ch) { | ||
@@ -105,0 +105,0 @@ obj[ch.key] = ch.value |
@@ -18,3 +18,3 @@ | ||
var o = {} | ||
db.createReadStream().on('data', function (data) { | ||
db.createReadStream({end: '\xff\xff'}).on('data', function (data) { | ||
o[data.key.toString()] = data.value.toString() | ||
@@ -21,0 +21,0 @@ }) |
@@ -17,3 +17,3 @@ | ||
var o = {} | ||
db.createReadStream().on('data', function (data) { | ||
db.createReadStream({end: '\xff\xff'}).on('data', function (data) { | ||
o[data.key.toString()] = data.value.toString() | ||
@@ -20,0 +20,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
17106
515