New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

asset-pipe-js-reader

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-pipe-js-reader - npm Package Compare versions

Comparing version 1.0.0-beta.7 to 1.0.0-beta.8

19

lib/reader.js

@@ -42,3 +42,3 @@ 'use strict';

// bubbles up
if (!this.rows.has(row.id)) {
if (row && row.id && !this.rows.has(row.id)) {
this.rows.set(row.id, row);

@@ -65,8 +65,14 @@ }

let count = 0;
streams.forEach((strm, index) => {
const orderDecorator = new OrderDecorator(index);
streams.forEach((readStream, index) => {
const tmpStream = new stream.PassThrough({ objectMode: true });
merged.add(tmpStream);
strm.on('file found', (file) => {
readStream.on('file found', (file) => {
const orderDecorator = new OrderDecorator(index);
readStream
.pipe(JSONStream.parse('*'))
.pipe(orderDecorator)
.pipe(tmpStream);
this.emit('file found', file);
merged.add(strm.pipe(JSONStream.parse('*')).pipe(orderDecorator));
count++;

@@ -81,3 +87,4 @@ if (count === streams.length) {

});
strm.on('file not found', (file) => {
readStream.on('file not found', (file) => {
tmpStream.end();
this.emit('file not found', file);

@@ -84,0 +91,0 @@ count++;

{
"name": "asset-pipe-js-reader",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"author": {

@@ -5,0 +5,0 @@ "name": "Trygve Lie",

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