Socket
Socket
Sign inDemoInstall

stream-shift

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

5

index.js

@@ -11,7 +11,8 @@ module.exports = shift

if (state.buffer.length) {
var idx = state.bufferIndex || 0
// Since node 6.3.0 state.buffer is a BufferList not an array
if (state.buffer.head) {
return state.buffer.head.data.length
} else if (state.buffer.length > 0 && state.buffer[0]) {
return state.buffer[0].length
} else if (state.buffer.length - idx > 0 && state.buffer[idx]) {
return state.buffer[idx].length
}

@@ -18,0 +19,0 @@ }

2

package.json
{
"name": "stream-shift",
"version": "1.0.2",
"version": "1.0.3",
"description": "Returns the next buffer/object in a stream's readable queue",

@@ -5,0 +5,0 @@ "main": "index.js",

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