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

pull-level

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-level - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

package.json
{
"name": "pull-level",
"description": "pull-stream interface to levelup",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/dominictarr/pull-level",

@@ -12,3 +12,3 @@ "repository": {

"level-fix-range": "~1.1",
"pull-stream": "~2.10",
"pull-stream": "~2.18",
"pull-pushable": "~1.0.2",

@@ -15,0 +15,0 @@ "pull-window": "~1.0.1",

@@ -67,1 +67,11 @@ var pull = require('pull-stream')

}
exports.exactly = function (n) {
return function (read) {
return function (abort, cb) {
if(0 <=--n) read(abort, cb)
else cb(true)
}
}
}

@@ -27,10 +27,3 @@

}})
.pipe(function (read) {
return function (abort, cb) {
read(abort, function (end, data) {
cb(end, data)
})
}
})
.pipe(pull.take(20, true))
.pipe(h.exactly(20))
.pipe(pull.collect(function (err, ary) {

@@ -37,0 +30,0 @@ process.nextTick(function () {

@@ -25,11 +25,3 @@

}})
.pipe(function (read) { //it's like pull.take(), but check BEFORE reading
var n = 20
return function (a, cb) {
if(n--)
read(a, cb)
else
cb(true)
}
})
.pipe(h.exactly(20))
.pipe(pull.map(function (e) {

@@ -36,0 +28,0 @@ return {key: e.key, value: e.value}//drop 'type' from live updates

@@ -15,4 +15,2 @@

.pipe(pull.map(function (e) {
// throw new Error('wtf')
return {

@@ -19,0 +17,0 @@ key: e.toString(),

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