Skip to content

Commit

Permalink
use stream.pipeline() if available
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Jul 8, 2019
1 parent 848ce30 commit e910682
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.js
@@ -1,10 +1,10 @@
'use strict';

const {inspect, promisify} = require('util');
const {pipeline, Transform} = require('stream');
const {resolve} = require('path');
const {Transform} = require('stream');

const cancelablePump = require('cancelable-pump');
const cancelablePump = require(`cancelable-${pipeline ? 'pipeline' : 'pump'}`);
const {Unpack} = require('tar');
const inspectWithKind = require('inspect-with-kind');
const isPlainObj = require('is-plain-obj');
Expand Down
16 changes: 13 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -29,6 +29,7 @@
"observable"
],
"dependencies": {
"cancelable-pipeline": "^1.0.0",
"cancelable-pump": "^0.4.0",
"inspect-with-kind": "^1.0.5",
"is-plain-obj": "^1.1.0",
Expand Down

0 comments on commit e910682

Please sign in to comment.