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

streaming-cache

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streaming-cache - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

22

index.js

@@ -171,3 +171,10 @@ 'use strict';

stream._read = function () {
this.push(chunks.shift());
var chunk = chunks.shift();
if(!chunk){
this.needRead = true;
}
else{
this.push(chunk);
this.needRead = false;
}
}

@@ -177,3 +184,9 @@ stream._write = function (chunk, encoding, next) {

emitters[key].emit('data', chunk);
chunks.push(chunk);
if(this.needRead){
this.push(chunk);
}
else{
chunks.push(chunk);
}
next(null, chunk);

@@ -192,3 +205,8 @@ }

stream.on('finish', function () {
if(this.needRead){
this.push(null);
}
else{
chunks.push(null);
}
var c = self.cache.get(key);

@@ -195,0 +213,0 @@

2

package.json
{
"name": "streaming-cache",
"version": "0.3.0",
"version": "0.3.1",
"description": "Cache and replay NodeJS streams",

@@ -5,0 +5,0 @@ "main": "index.js",

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