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 0.9.6 to 1.0.0

ChangeLog

32

lib/pipe.js
(function () {
'use strict';
var Util = require('util-io'),
fs = require('fs'),
zlib = require('zlib');
var fs = require('fs'),
zlib = require('zlib'),
Util = require('util-io'),
type = Util.type;
exports.create = create;
exports.getBody = getBody;
module.exports = create;
module.exports.getBody = getBody;

@@ -26,6 +28,6 @@ /**

function create(read, write, options, callback) {
var gzip, isFsWrite, func,
isStrRead = Util.type.string(read),
isStrWrite = Util.type.string(write),
isFunc = Util.type.function(options),
var gzip, isFsWrite,
isStrRead = type.string(read),
isStrWrite = type.string(write),
isFunc = type.function(options),
o = {},

@@ -36,3 +38,3 @@ optionsRead = {

Util.checkArgs(arguments, ['read', 'write', 'options']);
Util.checkArgs(arguments, ['read', 'write', 'callback']);

@@ -44,4 +46,2 @@ if (isFunc)

func = Util.exec.ret(callback);
if (options.range)

@@ -68,8 +68,8 @@ Util.extend(optionsRead, {

on('error', read, func);
on('error', read, callback);
read = read.pipe(gzip);
}
on('error', write, func);
on('error', read, func);
on('error', write, callback);
on('error', read, callback);

@@ -81,3 +81,3 @@ Util.exec.if(!isFsWrite, function() {

on('end', read, func);
on('end', read, callback);
}, function(callback) {

@@ -84,0 +84,0 @@ on('open', write, callback);

{
"name": "pipe-io",
"version": "0.9.6",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
"description": "Pipe streams and handle events",
"homepage": "http://github.com/coderaiser/pipe-io",
"repository": {
"type": "git",
"url": "git://github.com/coderaiser/pipe-io.git"
},
"dependencies": {
"util-io": "~1.4.0"
},
"license": "MIT",
"engines": {
"node": ">=0.4.x"
},
"main": "./lib/pipe.js"
"name": "pipe-io",
"version": "1.0.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
"description": "Pipe streams and handle events",
"homepage": "http://github.com/coderaiser/pipe-io",
"repository": {
"type": "git",
"url": "git://github.com/coderaiser/pipe-io.git"
},
"dependencies": {
"util-io": "~1.5.0"
},
"license": "MIT",
"engines": {
"node": ">=0.4.x"
},
"main": "./lib/pipe.js"
}
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