Comparing version 1.2.0 to 1.2.1
@@ -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 @@ }) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37984
765
0