Socket
Socket
Sign inDemoInstall

pull-stream

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-stream - npm Package Compare versions

Comparing version 2.8.0 to 2.9.0

test/through.js

2

package.json
{
"name": "pull-stream",
"description": "minimal pull stream",
"version": "2.8.0",
"version": "2.9.0",
"homepage": "https://github.com/dominictarr/pull-stream",

@@ -6,0 +6,0 @@ "repository": {

@@ -55,6 +55,14 @@ function prop (map) {

var through = exports.through =
function (read, op) {
function (read, op, onEnd) {
var a = false
function once (abort) {
if(a || !onEnd) return
a = true
onEnd(abort === true ? null : abort)
}
return function (end, cb) {
return read(end, function (end, data) {
if(!end) op && op(data)
else once(end)
cb(end, data)

@@ -192,1 +200,3 @@ })

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