Socket
Socket
Sign inDemoInstall

bl

Package Overview
Dependencies
8
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

6

bl.js

@@ -203,5 +203,2 @@ var DuplexStream = require('readable-stream/duplex')

if (startOffset[1] != 0)
buffers[0] = buffers[0].slice(startOffset[1])
if (endOffset[1] == 0)

@@ -212,2 +209,5 @@ buffers.pop()

if (startOffset[1] != 0)
buffers[0] = buffers[0].slice(startOffset[1])
return new BufferList(buffers)

@@ -214,0 +214,0 @@ }

{
"name": "bl",
"version": "1.2.0",
"version": "1.2.1",
"description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!",

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

@@ -563,5 +563,7 @@ var tape = require('tape')

tape('shallow slice within single buffer', function (t) {
t.plan(2)
var bl = new BufferList(['First', 'Second', 'Third'])
t.equal(bl.shallowSlice(5, 10).toString(), 'Secon')
t.equal(bl.shallowSlice(7, 10).toString(), 'con')
t.end()

@@ -568,0 +570,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