@moosty/lisk-connection-provider
Advanced tools
Comparing version 0.0.114 to 0.0.115
@@ -43,6 +43,6 @@ "use strict"; | ||
const now = new Date().getTime(); | ||
if (cache?.result && now > cache.expire) { | ||
if (cache?.result && now < cache.expire) { | ||
return { cache }; | ||
} | ||
if (cache && !cache.result) { | ||
if (cache && !cache.result && now < cache.expire) { | ||
this.cache = [{ ...cache, subscriptions: [cb, ...cache?.subscriptions] }, ...this.cache]; | ||
@@ -71,3 +71,5 @@ return { cache: true }; | ||
} | ||
resolve({}); | ||
else { | ||
resolve({}); | ||
} | ||
}); | ||
@@ -74,0 +76,0 @@ this.getMore = async (method, params = {}, v1 = false) => { |
{ | ||
"name": "@moosty/lisk-connection-provider", | ||
"version": "0.0.114", | ||
"version": "0.0.115", | ||
"description": "Lisk connection provider component to connect react to Lisk endpoints", | ||
@@ -37,3 +37,3 @@ "author": "Moosty <info@moosty.com>", | ||
}, | ||
"gitHead": "70ef3469ad8c73c3d9926c21591f6a44162c4e19" | ||
"gitHead": "696871d21482efc8425f5d8a99662a527262a695" | ||
} |
Sorry, the diff of this file is not supported yet
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
50499
763