Socket
Socket
Sign inDemoInstall

string-stream

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

3

index.js

@@ -34,6 +34,7 @@ var Stream = require('stream'),

var chunk;
n = n || -1;
/*! We must take care: The buffer doesn't like .slice(0, -1) */
if (n === -1 || n == null) {
if (n === -1) {
chunk = this._data;

@@ -40,0 +41,0 @@ } else {

{
"name": "string-stream",
"version": "0.0.2",
"version": "0.0.3",
"description": "A stream that works on a string.",

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

@@ -8,3 +8,3 @@ var Readable = require('..').Readable,

pipe = new Pipe();
pipe.reader.on('end', function (data) {
stream.on('end', function (data) {
done();

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