Socket
Socket
Sign inDemoInstall

pipe-io

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pipe-io - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

8

lib/pipe.js

@@ -44,2 +44,6 @@ 'use strict';

isGzip = allStreams.some(function(write) {
return write instanceof zlib.Gzip
}),
rm = function(event, stream, fn) {

@@ -117,4 +121,2 @@ stream.removeListener(event, fn);

onEnd();
} else if (writeError && isGunzip) {
onEnd();
} else if (open && readError) {

@@ -124,3 +126,3 @@ onEnd();

onEnd();
} else if (error && isGunzip) {
} else if (error && (isGzip || isGunzip)) {
onEnd();

@@ -127,0 +129,0 @@ }

{
"name": "pipe-io",
"version": "1.2.5",
"version": "1.2.6",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "Pipe streams and handle events",

@@ -18,10 +18,10 @@ Pipe-io [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

```js
var pipe = require('pipe-io'),
fs = require('fs'),
NAME = 'README.md',
NAME2 = 'README2.md',
readStream = fs.createReadStream(NAME),
writeStream = fs.createWriteStream(NAME2);
const pipe = require('pipe-io');
const fs = require('fs');
const NAME = 'README.md';
const NAME2 = 'README2.md';
const readStream = fs.createReadStream(NAME);
const writeStream = fs.createWriteStream(NAME2);
pipe([readStream, writeStream], function(error) {
pipe([readStream, writeStream], (error) => {
console.log(error || 'done');

@@ -35,8 +35,8 @@ });

```js
var pipe = require('pipe-io'),
fs = require('fs'),
NAME = 'README.md',
readStream = fs.createReadStream(NAME);
const pipe = require('pipe-io');
const fs = require('fs');
const NAME = 'README.md';
const readStream = fs.createReadStream(NAME);
pipe.getBody(readStream, function(error, data) {
pipe.getBody(readStream, (error, data) => {
console.log(error || data);

@@ -62,1 +62,2 @@ });

[CoverageURL]: https://coveralls.io/github/coderaiser/pipe-io?branch=master

Sorry, the diff of this file is not supported yet

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