Comparing version 2.0.1 to 2.0.2
@@ -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 @@ ------ |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30638
497