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

optimism

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimism - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

6

lib/cache.js

@@ -75,2 +75,6 @@ "use strict";

return entry.value;
};
Cp.clean = function () {
if (typeof this.max === "number") {

@@ -82,4 +86,2 @@ while (this.oldest &&

}
return entry.value;
};

@@ -86,0 +88,0 @@

@@ -80,2 +80,13 @@ "use strict";

// Move this entry to the front of the least-recently used queue,
// since we just finished computing its value.
cache.set(key, entry);
// Clean up any excess entries in the cache, but only if this entry
// has no parents, which means we're not in the middle of a larger
// computation that might be flummoxed by the cleaning.
if (entry.parents.size === 0) {
cache.clean();
}
// If options.disposable is truthy, the caller of wrap is telling us

@@ -82,0 +93,0 @@ // they don't care about the result of entry.recompute(), so we should

{
"name": "optimism",
"version": "0.6.7",
"version": "0.6.8",
"author": "Ben Newman <ben@benjamn.com>",

@@ -5,0 +5,0 @@ "description": "Composable reactive caching with efficient invalidation.",

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