Skip to content

Commit b259612

Browse files
committed
Breaking: Use is-stream to test for stream (closes #111)
1 parent 3411e59 commit b259612

File tree

5 files changed

+5
-46
lines changed

5 files changed

+5
-46
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var cloneStats = require('clone-stats');
44
var cloneBuffer = require('./lib/cloneBuffer');
55
var removeTrailingSep = require('remove-trailing-separator');
66
var isBuffer = require('./lib/isBuffer');
7-
var isStream = require('./lib/isStream');
7+
var isStream = require('is-stream');
88
var isNull = require('./lib/isNull');
99
var inspectStream = require('./lib/inspectStream');
1010
var normalize = require('./lib/normalize');

lib/inspectStream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var isStream = require('./isStream');
1+
var isStream = require('is-stream');
22

33
module.exports = function(stream) {
44
if (!isStream(stream)) {

lib/isStream.js

-5
This file was deleted.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"clone": "^1.0.0",
1515
"clone-stats": "^1.0.0",
1616
"cloneable-readable": "^0.5.0",
17-
"readable-stream": "^2.1.0",
1817
"remove-trailing-separator": "^1.0.1",
18+
"is-stream": "^1.1.0",
1919
"replace-ext": "^1.0.0"
2020
},
2121
"devDependencies": {
@@ -28,7 +28,8 @@
2828
"jscs": "^2.3.5",
2929
"jscs-preset-gulp": "^1.0.0",
3030
"mississippi": "^1.2.0",
31-
"mocha": "^2.4.5"
31+
"mocha": "^2.4.5",
32+
"readable-stream": "^2.1.0"
3233
},
3334
"scripts": {
3435
"lint": "eslint . && jscs index.js lib/ test/",

test/is-stream.js

-37
This file was deleted.

0 commit comments

Comments
 (0)