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

stream-to-pull-stream

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-to-pull-stream - npm Package Compare versions

Comparing version 1.2.3 to 1.3.1

31

index.js

@@ -93,23 +93,6 @@ var pull = require('pull-core')

read()
return
;(function next () {
if(ended && ended !== true) //ERROR
return cb(ended)
var data = stream.read()
if(data == null) {
if(ended)
return cb(ended)
_cb = cb
stream.on('readable', next)
} else {
return cb(null, data)
}
})()
}
}
function read(stream) {
if('function' === typeof stream.read)
return read2(stream)
function read1(stream) {
var buffer = [], cbs = [], ended, paused = false

@@ -123,3 +106,3 @@

paused = false
stream.resume()
stream.resume()
}

@@ -157,2 +140,8 @@ }

function read (stream) {
if('function' === typeof stream.read)
return read2(stream)
return read1(stream)
}
var sink = function (stream) {

@@ -183,1 +172,5 @@ return pull.Sink(function (read) {

exports.source = source
exports.read = read
exports.read1 = read1
exports.read2 = read2
{
"name": "stream-to-pull-stream",
"description": "",
"version": "1.2.3",
"description": "convert a stream1 or streams2 stream into a pull-stream",
"version": "1.3.1",
"homepage": "https://github.com/dominictarr/stream-to-pull-stream",

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

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