Socket
Socket
Sign inDemoInstall

m3u8stream

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m3u8stream - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

27

lib/m3u8-parser.js

@@ -28,17 +28,18 @@ const Writable = require('stream').Writable;

decodeStrings: false,
write: function(chunk, encoding, callback) {
var lines = chunk.toString('utf8').split('\n');
if (lastLine) { lines[0] = lastLine + lines[0]; }
lines.forEach(function(line, i) {
if (i < lines.length - 1) {
parseLine(line);
} else {
// Save the last line in case it has been broken up.
lastLine = line;
}
});
callback();
},
}),
this._write = function(chunk, encoding, callback) {
var lines = chunk.toString('utf8').split('\n');
if (lastLine) { lines[0] = lastLine + lines[0]; }
lines.forEach(function(line, i) {
if (i < lines.length - 1) {
parseLine(line);
} else {
// Save the last line in case it has been broken up.
lastLine = line;
}
});
callback();
};
this.on('finish', function() {

@@ -45,0 +46,0 @@ parseLine(lastLine);

@@ -9,3 +9,3 @@ {

],
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -12,0 +12,0 @@ "type": "git",

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