Comparing version 0.9.6 to 1.0.0
(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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6637
7
0
+ Addedutil-io@1.5.1(transitive)
- Removedutil-io@1.4.0(transitive)
Updatedutil-io@~1.5.0