Skip to content

Commit

Permalink
Update: Use readable-stream to normalize for Streams3 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored Sep 13, 2016
1 parent d14ba4a commit d832c6e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var isStream = require('./lib/isStream');
var isNull = require('./lib/isNull');
var inspectStream = require('./lib/inspectStream');
var normalize = require('./lib/normalize');
var Stream = require('stream');
var Stream = require('readable-stream');
var replaceExt = require('replace-ext');

var builtInFields = [
Expand Down
2 changes: 1 addition & 1 deletion lib/isStream.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Stream = require('stream').Stream;
var Stream = require('readable-stream').Stream;

module.exports = function(o) {
return !!o && o instanceof Stream;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"clone": "^1.0.0",
"clone-stats": "^1.0.0",
"readable-stream": "^2.1.0",
"replace-ext": "^1.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/File.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Stream = require('stream');
var Stream = require('readable-stream');
var fs = require('fs');
var path = require('path');
var es = require('event-stream');
Expand Down
4 changes: 2 additions & 2 deletions test/inspectStream.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var inspectStream = require('../lib/inspectStream');
var Stream = require('stream');
var Stream = require('readable-stream');
var should = require('should');
require('mocha');

describe('inspectStream()', function() {
it('should work on a core Stream', function(done) {
var testStream = new Stream();
var testStream = new Stream.Stream();
inspectStream(testStream).should.equal('<Stream>');
done();
});
Expand Down
2 changes: 1 addition & 1 deletion test/isBuffer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var isBuffer = require('../lib/isBuffer');
var Stream = require('stream');
var Stream = require('readable-stream');
require('should');
require('mocha');

Expand Down
1 change: 1 addition & 0 deletions test/isStream.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var isStream = require('../lib/isStream');
// Use node stream to test readable-stream inherits from it
var Stream = require('stream');
require('should');
require('mocha');
Expand Down

0 comments on commit d832c6e

Please sign in to comment.