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

ttl-mem-cache

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttl-mem-cache - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

14

lib/cache.js

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

const stream = require('stream');
const stream = require('readable-stream');
const crypto = require('crypto');

@@ -47,3 +47,3 @@ const utils = require('./utils');

this.on('broadcast', (entry) => {
if (this._readableState.flowing) {
if (this.readableFlowing) {
if (this._readableState.objectMode) {

@@ -56,2 +56,12 @@ this.push(entry);

});
// Avoid hitting the max listeners limit when multiple
// streams is piped into the same stream.
this.on('pipe', () => {
this.setMaxListeners(this.getMaxListeners() + 1);
});
this.on('unpipe', () => {
this.setMaxListeners(this.getMaxListeners() - 1);
});
}

@@ -58,0 +68,0 @@

13

package.json
{
"name": "ttl-mem-cache",
"version": "4.0.2",
"version": "4.1.0",
"description": "A in memory time to live cache with streaming support.",

@@ -37,9 +37,12 @@ "main": "lib/cache.js",

"devDependencies": {
"eslint": "5.7.0",
"eslint": "5.16.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-import": "2.16.0",
"benchmark": "2.1.4",
"lolex": "3.0.0",
"tap": "12.0.1"
"lolex": "3.1.0",
"tap": "12.6.1"
},
"dependencies": {
"readable-stream": "^3.3.0"
}
}

@@ -5,3 +5,6 @@ # ![ttl-mem-cache](logo.png)

[![Dependencies](https://img.shields.io/david/trygve-lie/ttl-mem-cache.svg?style=flat-square)](https://david-dm.org/trygve-lie/ttl-mem-cache)[![Build Status](http://img.shields.io/travis/trygve-lie/ttl-mem-cache/master.svg?style=flat-square)](https://travis-ci.org/trygve-lie/ttl-mem-cache) [![Greenkeeper badge](https://badges.greenkeeper.io/trygve-lie/ttl-mem-cache.svg)](https://greenkeeper.io/)
[![Dependencies](https://img.shields.io/david/trygve-lie/ttl-mem-cache.svg?style=flat-square)](https://david-dm.org/trygve-lie/ttl-mem-cache)
[![Build Status](http://img.shields.io/travis/trygve-lie/ttl-mem-cache/master.svg?style=flat-square)](https://travis-ci.org/trygve-lie/ttl-mem-cache)
[![Greenkeeper badge](https://badges.greenkeeper.io/trygve-lie/ttl-mem-cache.svg?style=flat-square)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/github/trygve-lie/ttl-mem-cache/badge.svg?targetFile=package.json&style=flat-square)](https://snyk.io/test/github/trygve-lie/ttl-mem-cache?targetFile=package.json)

@@ -8,0 +11,0 @@

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