Socket
Socket
Sign inDemoInstall

concat-stream

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concat-stream - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

test/infer.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc