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

lru-cache-for-clusters-as-promised

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lru-cache-for-clusters-as-promised - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.eslintignore

10

index.js

@@ -0,1 +1,9 @@

/**
* Provide a cluster-safe lru-cache with Promises
*
* @module lru-cache-for-clusters-as-promised
* @exports LRUCacheForClustersAsPromised
*/
/* eslint comma-dangle: [2, "always"] */
const cluster = require('cluster');

@@ -102,7 +110,5 @@ const uuid = require('uuid');

return Promise.resolve(lru[func]);
break;
default:
// just call the function on the lru-cache
return Promise.resolve(lru[func](...funcArgs));
break;
}

@@ -109,0 +115,0 @@ }

2

package.json
{
"name": "lru-cache-for-clusters-as-promised",
"version": "1.0.0",
"version": "1.0.1",
"description": "LRU Cache that is safe for clusters",

@@ -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