Socket
Socket
Sign inDemoInstall

stream-lines

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-lines - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

20

lib/line-stream.js

@@ -18,2 +18,5 @@ var through = require('through3')

this.eol = /\r?\n/;
if(options.buffer) {
this.body = [];
}
}

@@ -58,3 +61,7 @@

lines = str.split(this.eol);
this.push(lines);
if(this.body) {
this.body = this.body.concat(lines);
}else{
this.push(lines);
}
this.emit('lines', lines);

@@ -69,5 +76,14 @@ cb();

lines = [this.buffer.toString(this.encoding)];
this.push(lines);
if(this.body) {
this.body = this.body.concat(lines);
}else{
this.push(lines);
}
this.emit('lines', lines);
}
// buffered array of all lines
if(this.body) {
this.push(this.body);
this.body = null;
}
this.buffer = null;

@@ -74,0 +90,0 @@ cb();

2

package.json
{
"name": "stream-lines",
"description": "Line transform stream, reads bytes writes arrays of lines.",
"version": "1.1.2",
"version": "1.1.3",
"author": "muji <noop@xpm.io>",

@@ -6,0 +6,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc