concat-stream
Advanced tools
Comparing version 1.4.0 to 1.4.1
10
index.js
@@ -1,2 +0,2 @@ | ||
var Writable = require('stream').Writable | ||
var Writable = require('readable-stream').Writable | ||
var inherits = require('inherits') | ||
@@ -17,3 +17,3 @@ var TA = require('typedarray') | ||
var shouldInferEncoding = false | ||
if (!encoding) { | ||
@@ -27,3 +27,3 @@ shouldInferEncoding = true | ||
} | ||
Writable.call(this, { objectMode: true }) | ||
@@ -46,4 +46,4 @@ | ||
ConcatStream.prototype.inferEncoding = function () { | ||
var firstBuffer = this.body[0] | ||
ConcatStream.prototype.inferEncoding = function (buff) { | ||
var firstBuffer = buff || this.body[0] | ||
if (!firstBuffer) return 'buffer' | ||
@@ -50,0 +50,0 @@ if (Buffer.isBuffer(firstBuffer)) return 'buffer' |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "Max Ogden <max@maxogden.com>", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
"engines": [ | ||
"node >= 0.10.0" | ||
"node >= 0.8" | ||
], | ||
@@ -31,3 +31,4 @@ "main": "index.js", | ||
"inherits": "~2.0.1", | ||
"typedarray": "~0.0.5" | ||
"typedarray": "~0.0.5", | ||
"readable-stream": "~1.1.9" | ||
}, | ||
@@ -34,0 +35,0 @@ "devDependencies": { |
@@ -7,3 +7,3 @@ # concat-stream | ||
[![browser support](https://ci.testling.com/maxogden/node-concat-stream.png)](https://ci.testling.com/maxogden/node-concat-stream) | ||
[![browser support](https://ci.testling.com/maxogden/concat-stream.png)](https://ci.testling.com/maxogden/concat-stream) | ||
@@ -10,0 +10,0 @@ ### examples |
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
13009
13
285
3
+ Addedreadable-stream@~1.1.9
+ Addedcore-util-is@1.0.3(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedstring_decoder@0.10.31(transitive)