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

levelup

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

levelup - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

npm-shrinkwrap.json

4

lib/read-stream.js

@@ -37,5 +37,5 @@ /* Copyright (c) 2012 Rod Vagg <@rvagg> */

this._options = extend(extend({}, defaultOptions), options)
if (this._options.start)
if (typeof this._options.start !== 'undefined')
this._options.start = toBuffer(this._options.start)
if (this._options.end)
if (typeof this._options.end !== 'undefined')
this._options.end = toBuffer(this._options.end)

@@ -42,0 +42,0 @@

@@ -18,3 +18,3 @@ {

]
, "version" : "0.1.1"
, "version" : "0.1.2"
, "main" : "lib/levelup.js"

@@ -21,0 +21,0 @@ , "dependencies" : {

@@ -458,2 +458,40 @@ /* Copyright (c) 2012 Rod Vagg <@rvagg> */

}
, 'test ReadStream, start=0': function (done) {
this.openTestDatabase(function (db) {
// execute
db.batch(this.sourceData.slice(), function (err) {
refute(err)
var rs = db.readStream({ start: 0 })
assert.isFalse(rs.writable)
assert.isTrue(rs.readable)
rs.on('ready', this.readySpy)
rs.on('data' , this.dataSpy)
rs.on('end' , this.endSpy)
rs.on('close', this.verify.bind(this, rs, done))
}.bind(this))
}.bind(this))
}
// we don't expect any data to come out of here because the keys start at '00' not 0
// we just want to ensure that we don't kill the process
, 'test ReadStream, end=0': function (done) {
this.openTestDatabase(function (db) {
// execute
db.batch(this.sourceData.slice(), function (err) {
refute(err)
var rs = db.readStream({ end: 0 })
assert.isFalse(rs.writable)
assert.isTrue(rs.readable)
rs.on('ready', this.readySpy)
rs.on('data' , this.dataSpy)
rs.on('end' , this.endSpy)
rs.on('close', this.verify.bind(this, rs, done))
this.sourceData = [ ]
}.bind(this))
}.bind(this))
}
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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