Socket
Socket
Sign inDemoInstall

concat-stream

Package Overview
Dependencies
10
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.1 to 1.6.2

11

index.js
var Writable = require('readable-stream').Writable
var inherits = require('inherits')
var bufferFrom = require('buffer-from')

@@ -90,5 +91,5 @@ if (typeof Uint8Array === 'undefined') {

} else if (isBufferish(p)) {
strings.push(new Buffer(p))
strings.push(bufferFrom(p))
} else {
strings.push(new Buffer(String(p)))
strings.push(bufferFrom(String(p)))
}

@@ -112,5 +113,5 @@ }

} else if (isBufferish(p)) {
bufs.push(new Buffer(p))
bufs.push(bufferFrom(p))
} else {
bufs.push(new Buffer(String(p)))
bufs.push(bufferFrom(String(p)))
}

@@ -133,3 +134,3 @@ }

if (typeof parts[i] === 'string') {
parts[i] = new Buffer(parts[i])
parts[i] = bufferFrom(parts[i])
}

@@ -136,0 +137,0 @@ len += parts[i].length

{
"name": "concat-stream",
"version": "1.6.1",
"version": "1.6.2",
"description": "writable stream that concatenates strings or binary data and calls a callback with the result",

@@ -31,5 +31,6 @@ "tags": [

"dependencies": {
"buffer-from": "^1.0.0",
"inherits": "^2.0.3",
"typedarray": "^0.0.6",
"readable-stream": "^2.2.2"
"readable-stream": "^2.2.2",
"typedarray": "^0.0.6"
},

@@ -36,0 +37,0 @@ "devDependencies": {

@@ -65,3 +65,3 @@ # concat-stream

write.write('!')
write.end(Buffer('!!1'))
write.end(Buffer.from('!!1'))
```

@@ -68,0 +68,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc