@ztimson/utils 0.24.9 → 0.24.11

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.
package/dist/index.mjs CHANGED
@@ -489,7 +489,7 @@ class Cache {
489
489
  * @return {[K, T][]} Key-value pairs array
490
490
  */
491
491
  entries(expired) {
492
- return deepCopy(Object.entries(this.store).filter((v) => expired || !v._expired));
492
+ return deepCopy(Object.entries(this.store).filter((v) => expired || !(v == null ? void 0 : v._expired)));
493
493
  }
494
494
  /**
495
495
  * Manually expire a cached item
@@ -507,7 +507,7 @@ class Cache {
507
507
  */
508
508
  get(key, expired) {
509
509
  const cached = deepCopy(this.store[key] ?? null);
510
- if (expired || !cached._expired) return cached;
510
+ if (expired || !(cached == null ? void 0 : cached._expired)) return cached;
511
511
  return null;
512
512
  }
513
513
  /**