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

levelup

Package Overview
Dependencies
Maintainers
3
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 1.0.0-2 to 1.0.0-3

24

lib/levelup.js

@@ -12,2 +12,3 @@ /* Copyright (c) 2012-2015 LevelUP contributors

, DeferredLevelDOWN = require('deferred-leveldown')
, IteratorStream = require('level-iterator-stream')

@@ -22,3 +23,2 @@ , errors = require('level-errors')

, ReadStream = require('./read-stream')
, util = require('./util')

@@ -350,3 +350,2 @@ , Batch = require('./batch')

LevelUP.prototype.createReadStream = function (options) {
var self = this
options = extend( {keys: true, values: true}, this.options, options)

@@ -364,20 +363,5 @@

var makeData = options.keys && options.values
? function (key, value) {
return {
key: self._codec.decodeKey(key, options)
, value: self._codec.decodeValue(value, options)
}
}
: options.keys
? function (key) {
return self._codec.decodeKey(key, options)
}
: options.values
? function (_, value) {
return self._codec.decodeValue(value, options)
}
: function () {}
return new ReadStream(this.db.iterator(options), options, makeData)
return new IteratorStream(this.db.iterator(options), extend(options, {
decoder: this._codec.createStreamDecoder(options)
}))
}

@@ -384,0 +368,0 @@

17

package.json
{
"name": "levelup",
"description": "Fast & simple storage - a Node.js-style LevelDB wrapper",
"version": "1.0.0-2",
"version": "1.0.0-3",
"contributors": [

@@ -38,6 +38,6 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)",

"deferred-leveldown": "~1.0.0",
"level-codec": "~5.5.0",
"level-codec": "~6.0.0",
"level-errors": "~1.0.3",
"level-iterator-stream": "~1.3.0",
"prr": "~1.0.1",
"readable-stream": "~1.0.26",
"semver": "~4.3.3",

@@ -48,6 +48,7 @@ "xtend": "~4.0.0"

"async": "~0.9.0",
"bustermove": "~0.4.1",
"bustermove": "~1.0.0",
"delayed": "~1.0.1",
"du": "~0.1.0",
"leveldown": "~1.0.0",
"faucet": "~0.0.1",
"leveldown": "~1.0.5",
"memdown": "~1.0.0",

@@ -57,4 +58,4 @@ "msgpack-js": "~0.3.0",

"rimraf": "~2.3.2",
"tap": "~0.4.13",
"slow-stream": "0.0.4"
"slow-stream": "0.0.4",
"tape": "~4.0.0"
},

@@ -67,5 +68,5 @@ "browser": {

"scripts": {
"test": "tap test/*-test.js --stderr"
"test": "tape test/*-test.js | faucet"
},
"license": "MIT"
}

@@ -690,18 +690,2 @@ /* Copyright (c) 2012-2015 LevelUP contributors

}
, 'test readable-stream@1.0.x': function () {
// this is here to be an explicit reminder that we're tied to
// readable-stream@1.0.x so if someone comes along and wants
// to bump version they'll have to come here and read that we're
// using Streams2 explicitly across Node versions and will
// probably delay Streams3 adoption until Node 0.12 is released
// as readable-stream@1.1.x causes some problems with downstream
// modules
// see: https://github.com/level/levelup/issues/216
assert(
(/^~1\.0\.\d+$/).test(require('../package.json').dependencies['readable-stream'])
, 'using readable-stream@1.0.x'
)
}
})
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