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

cached

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cached - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

v2.0.2
------
* Fix bug where backend errors while caching made getOrElse fail - @Kofia5 #4
v2.0.1

@@ -2,0 +6,0 @@ ------

6

lib/cache.js

@@ -148,3 +148,5 @@ /*

return function () {
return this$.set(rawKey, val, opts).then(function (this$1) {
var generatedValue;
generatedValue = toPromise(val);
return this$.set(rawKey, generatedValue, opts).then(function (this$1) {
return function (rawValue) {

@@ -157,3 +159,3 @@ delete this$1.staleOrPending[key];

delete this$1.staleOrPending[key];
return Q.reject(err);
return null != generatedValue ? generatedValue : null;
};

@@ -160,0 +162,0 @@ }(this$));

{
"name": "cached",
"version": "2.0.1",
"version": "2.0.2",
"description": "Simple access to a cache",

@@ -5,0 +5,0 @@ "main": "lib/cached.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