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

pull-to-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-to-stream - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

12

changelog.md

@@ -1,4 +0,14 @@

# 0.1.0 (2019-02-22)
## [0.1.1](https://github.com/hugomrdias/pull-to-stream/compare/v0.1.0...v0.1.1) (2019-04-24)
### Bug Fixes
* dont drain source while drain in progress ([72629c9](https://github.com/hugomrdias/pull-to-stream/commit/72629c9))
* improve drain recursion stop condition ([d28c0b4](https://github.com/hugomrdias/pull-to-stream/commit/d28c0b4))
# [0.1.0](https://github.com/hugomrdias/pull-to-stream/compare/64761f2...v0.1.0) (2019-02-22)
### Features

@@ -5,0 +15,0 @@

@@ -9,2 +9,3 @@ 'use strict';

this.source = source;
this.drainingSource = false;
this.sink = sink;

@@ -22,2 +23,3 @@ this.input = [];

this.drainingSource = true;
this.source(null, function next(end, data) {

@@ -34,2 +36,4 @@ if (end instanceof Error) {

self.source(null, next);
} else {
self.drainingSource = false;
}

@@ -40,3 +44,3 @@ });

_read() {
if (this.source) {
if (this.source && !this.drainingSource) {
this.drainPull();

@@ -43,0 +47,0 @@ }

2

package.json
{
"name": "pull-to-stream",
"version": "0.1.0",
"version": "0.1.1",
"description": "pull-stream to stream module ",

@@ -5,0 +5,0 @@ "repository": "hugomrdias/pull-to-stream",

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