Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-parser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-parser - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

5

History.md

@@ -0,1 +1,6 @@

0.0.5 / 2012-03-06
==================
- Update for node v0.9.12 streams2 API Writable/Transform API changes
0.0.4 / 2012-02-23

@@ -2,0 +7,0 @@ ==================

17

lib/parser.js

@@ -69,2 +69,7 @@

// XXX: backwards compat with the old Transform API... remove at some point..
if ('function' == typeof stream.push) {
stream._parserOutput = stream.push.bind(stream);
}
stream._parserInit = true;

@@ -116,5 +121,9 @@ }

function write (chunk, fn) {
function write (chunk, encoding, fn) {
if (!this._parserInit) init(this);
debug('write(%d bytes)', chunk.length);
// XXX: old Writable stream API compat... remove at some point...
if ('function' == typeof encoding) fn = encoding;
data(this, chunk, null, fn);

@@ -133,2 +142,8 @@ }

debug('transform(%d bytes)', chunk.length);
// XXX: old Transform stream API compat... remove at some point...
if ('function' != typeof output) {
output = this._parserOutput;
}
data(this, chunk, output, fn);

@@ -135,0 +150,0 @@ }

2

package.json
{
"name": "stream-parser",
"version": "0.0.4",
"version": "0.0.5",
"description": "Generic interruptible \"parser\" mixin for Transform & Writable streams",

@@ -5,0 +5,0 @@ "main": "lib/parser.js",

Sorry, the diff of this file is not supported yet

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