@hyper-fetch/core 3.3.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,9 @@ export class Cache {
205
205
  // Garbage collect
206
206
  if (cacheData) {
207
207
  const timeLeft = cacheData.garbageCollection + cacheData.details.timestamp - +new Date();
208
- if (timeLeft >= 0) {
208
+ if (cacheData.garbageCollection !== null && JSON.stringify(cacheData.garbageCollection) === "null") {
209
+ this.logger.info("Cache value is Infinite", { cacheKey });
210
+ } else if (timeLeft >= 0) {
209
211
  this.garbageCollectors.set(
210
212
  cacheKey,
211
213
  setTimeout(() => {