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

streaming

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streaming - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

10

lib/json.js

@@ -43,8 +43,14 @@ /*jslint node: true */

var chunk = buffer.toString(this._encoding);
var obj;
try {
var obj = JSON.parse(chunk);
this.push(obj);
obj = JSON.parse(chunk);
} catch (err) {
this.emit('error', err);
}
if (obj !== undefined) {
// this.push() inside the try-catch can lead to catching errors farther
// down the pipeline, which is undesirable
this.push(obj);
}
};

2

package.json
{
"name": "streaming",
"version": "0.3.10",
"version": "0.3.11",
"description": "Transforms and other streaming helpers",

@@ -5,0 +5,0 @@ "keywords": [

# streaming
A few stream helpers, abiding by the new-style Node.js stream standards ("Streams2").
A few stream helpers, built for Node.js 0.10+ streams ("Streams2").
npm install streaming
* [Glob](#glob)
### `streaming.Glob`

@@ -15,2 +17,9 @@

### `streaming.Filter`
`new Filter(predicate)` inherits `stream.Readable`
* _readableState.objectMode: true
### `streaming.json.Stringifier`

@@ -91,3 +100,2 @@

var streaming = require('./');
var walk = new streaming.Walk('/usr/local');

@@ -94,0 +102,0 @@ walk.on('error', function(err) {

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