Comparing version
@@ -102,13 +102,16 @@ 'use strict'; | ||
if (readError && finish) { | ||
onEnd(); | ||
} else if (writeError && end) { | ||
onEnd(); | ||
} else if (readError) { | ||
onEnd(); | ||
} else if (bothFinish || justEnd) { | ||
onEnd(); | ||
} else if (error && (isGzip || isGunzip)) { | ||
onEnd(); | ||
} | ||
if (readError && finish) | ||
return onEnd(); | ||
if (writeError && end) | ||
return onEnd(); | ||
if (readError) | ||
return onEnd(); | ||
if (bothFinish || justEnd) | ||
return onEnd(); | ||
if (error && (isGzip || isGunzip)) | ||
return onEnd(); | ||
} | ||
@@ -155,1 +158,2 @@ | ||
} | ||
{ | ||
"name": "pipe-io", | ||
"version": "2.0.5", | ||
"version": "3.0.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -19,11 +19,7 @@ "description": "Pipe streams and handle events", | ||
"lint:lib": "eslint lib", | ||
"lint:test": "eslint --rule 'no-console:0' test", | ||
"lint:test": "eslint -c .eslintrc.test test", | ||
"watch:test": "npm run watcher -- \"npm test\"", | ||
"watcher": "nodemon -w lib -w test -x", | ||
"coverage": "nyc npm test", | ||
"report": "nyc report --reporter=text-lcov | coveralls", | ||
"wisdom": "npm run build", | ||
"6to5": "buble lib -o legacy", | ||
"build": "redrun 6to5 legacy", | ||
"legacy": "echo \"module.exports = require('./pipe');\" > legacy/index.js" | ||
"report": "nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
@@ -33,13 +29,13 @@ "dependencies": {}, | ||
"engines": { | ||
"node": ">=0.8" | ||
"node": ">=4" | ||
}, | ||
"main": "lib/pipe.js", | ||
"devDependencies": { | ||
"buble": "^0.15.1", | ||
"coveralls": "^2.11.6", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^4.0.0", | ||
"eslint-plugin-node": "^6.0.1", | ||
"nodemon": "^1.11.0", | ||
"nyc": "^11.0.2", | ||
"pullout": "^1.0.1", | ||
"redrun": "^5.9.2", | ||
"redrun": "^6.0.0", | ||
"tape": "^4.2.0", | ||
@@ -46,0 +42,0 @@ "tar-fs": "^1.14.0" |
@@ -30,10 +30,2 @@ Pipe-io [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
## Environments | ||
In old `node.js` environments that not fully supports `es2015`, `pipe` could be used with: | ||
```js | ||
var pipe = require('pipe-io/legacy'); | ||
``` | ||
## Related | ||
@@ -40,0 +32,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11743
-22.92%5
-28.57%118
-50.63%48
-14.29%