limited-cache 2.1.1 → 2.2.0

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{index.cjs → cjs/index.cjs} +22 -7
  3. package/dist/cjs/index.d.cts +92 -0
  4. package/dist/esm/core/LimitedCache.d.ts.map +1 -0
  5. package/dist/esm/core/LimitedCache.js.map +1 -0
  6. package/dist/esm/core/LimitedCacheObject.d.ts.map +1 -0
  7. package/dist/esm/core/LimitedCacheObject.js.map +1 -0
  8. package/dist/esm/core/builtIns.d.ts.map +1 -0
  9. package/dist/esm/core/builtIns.js.map +1 -0
  10. package/dist/esm/core/defaultOptions.d.ts.map +1 -0
  11. package/dist/esm/core/defaultOptions.js.map +1 -0
  12. package/dist/esm/core/limitedCacheUtil.d.ts.map +1 -0
  13. package/dist/esm/core/limitedCacheUtil.js.map +1 -0
  14. package/dist/esm/core/lowLevelFunctions.d.ts.map +1 -0
  15. package/dist/esm/core/lowLevelFunctions.js.map +1 -0
  16. package/dist/esm/index.d.ts.map +1 -0
  17. package/dist/esm/index.js.map +1 -0
  18. package/dist/esm/types.d.ts.map +1 -0
  19. package/dist/esm/types.js.map +1 -0
  20. package/legacy-types/ts3.5/dist/esm/core/LimitedCache.d.ts +4 -0
  21. package/legacy-types/ts3.5/dist/esm/core/LimitedCacheObject.d.ts +5 -0
  22. package/legacy-types/ts3.5/dist/esm/core/builtIns.d.ts +12 -0
  23. package/legacy-types/ts3.5/dist/esm/core/defaultOptions.d.ts +6 -0
  24. package/legacy-types/ts3.5/dist/esm/core/limitedCacheUtil.d.ts +13 -0
  25. package/legacy-types/ts3.5/dist/esm/core/lowLevelFunctions.d.ts +14 -0
  26. package/legacy-types/ts3.5/dist/esm/index.d.ts +7 -0
  27. package/legacy-types/ts3.5/dist/esm/types.d.ts +61 -0
  28. package/legacy-types/ts4.0/dist/esm/core/LimitedCache.d.ts +4 -0
  29. package/legacy-types/ts4.0/dist/esm/core/LimitedCacheObject.d.ts +5 -0
  30. package/legacy-types/ts4.0/dist/esm/core/builtIns.d.ts +12 -0
  31. package/legacy-types/ts4.0/dist/esm/core/defaultOptions.d.ts +6 -0
  32. package/legacy-types/ts4.0/dist/esm/core/limitedCacheUtil.d.ts +13 -0
  33. package/legacy-types/ts4.0/dist/esm/core/lowLevelFunctions.d.ts +14 -0
  34. package/legacy-types/ts4.0/dist/esm/index.d.ts +7 -0
  35. package/legacy-types/ts4.0/dist/esm/types.d.ts +61 -0
  36. package/legacy-types/ts4.5/dist/esm/core/LimitedCache.d.ts +4 -0
  37. package/legacy-types/ts4.5/dist/esm/core/LimitedCacheObject.d.ts +5 -0
  38. package/legacy-types/ts4.5/dist/esm/core/builtIns.d.ts +12 -0
  39. package/legacy-types/ts4.5/dist/esm/core/defaultOptions.d.ts +6 -0
  40. package/legacy-types/ts4.5/dist/esm/core/limitedCacheUtil.d.ts +13 -0
  41. package/legacy-types/ts4.5/dist/esm/core/lowLevelFunctions.d.ts +14 -0
  42. package/legacy-types/ts4.5/dist/esm/index.d.ts +7 -0
  43. package/legacy-types/ts4.5/dist/esm/types.d.ts +61 -0
  44. package/package.json +40 -38
  45. package/dist/core/LimitedCache.d.ts.map +0 -1
  46. package/dist/core/LimitedCache.js.map +0 -1
  47. package/dist/core/LimitedCacheObject.d.ts.map +0 -1
  48. package/dist/core/LimitedCacheObject.js.map +0 -1
  49. package/dist/core/builtIns.d.ts.map +0 -1
  50. package/dist/core/builtIns.js.map +0 -1
  51. package/dist/core/defaultOptions.d.ts.map +0 -1
  52. package/dist/core/defaultOptions.js.map +0 -1
  53. package/dist/core/limitedCacheUtil.d.ts.map +0 -1
  54. package/dist/core/limitedCacheUtil.js.map +0 -1
  55. package/dist/core/lowLevelFunctions.d.ts.map +0 -1
  56. package/dist/core/lowLevelFunctions.js.map +0 -1
  57. package/dist/index.d.ts.map +0 -1
  58. package/dist/index.js.map +0 -1
  59. package/dist/types.d.ts.map +0 -1
  60. package/dist/types.js.map +0 -1
  61. /package/dist/{core → esm/core}/LimitedCache.d.ts +0 -0
  62. /package/dist/{core → esm/core}/LimitedCache.js +0 -0
  63. /package/dist/{core → esm/core}/LimitedCacheObject.d.ts +0 -0
  64. /package/dist/{core → esm/core}/LimitedCacheObject.js +0 -0
  65. /package/dist/{core → esm/core}/builtIns.d.ts +0 -0
  66. /package/dist/{core → esm/core}/builtIns.js +0 -0
  67. /package/dist/{core → esm/core}/defaultOptions.d.ts +0 -0
  68. /package/dist/{core → esm/core}/defaultOptions.js +0 -0
  69. /package/dist/{core → esm/core}/limitedCacheUtil.d.ts +0 -0
  70. /package/dist/{core → esm/core}/limitedCacheUtil.js +0 -0
  71. /package/dist/{core → esm/core}/lowLevelFunctions.d.ts +0 -0
  72. /package/dist/{core → esm/core}/lowLevelFunctions.js +0 -0
  73. /package/dist/{index.d.ts → esm/index.d.ts} +0 -0
  74. /package/dist/{index.js → esm/index.js} +0 -0
  75. /package/dist/{types.d.ts → esm/types.d.ts} +0 -0
  76. /package/dist/{types.js → esm/types.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update devDependencies and build system. No functional changes expected from this ([#68](https://github.com/spautz/limited-cache/issues/68)) ([05da16b](https://github.com/spautz/limited-cache/commit/05da16b9b97eb413b186334141b255ee4a03b687))
8
+ - Add support for bundler moduleResolution ([#68](https://github.com/spautz/limited-cache/issues/68)) ([05da16b](https://github.com/spautz/limited-cache/commit/05da16b9b97eb413b186334141b255ee4a03b687))
9
+
3
10
  ## 2.1.1
4
11
 
5
12
  ### Patch Changes
@@ -1,8 +1,25 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6
23
  var __export = (target, all) => {
7
24
  for (var name in all)
8
25
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -101,7 +118,7 @@ var lowLevelInit = (optionsOrCacheMeta) => {
101
118
  upgradeCacheMeta(existingCacheMeta);
102
119
  return existingCacheMeta;
103
120
  }
104
- const fullOptions = normalizeOptions({ ...defaultOptions, ...optionsOrCacheMeta });
121
+ const fullOptions = normalizeOptions(__spreadValues(__spreadValues({}, defaultOptions), optionsOrCacheMeta));
105
122
  const newCacheMeta = lowLevelReset({
106
123
  limitedCacheMetaVersion: CURRENT_META_VERSION,
107
124
  options: fullOptions
@@ -240,10 +257,9 @@ var lowLevelSet = (cacheMeta, cacheKey, item) => {
240
257
  const now = dateNow();
241
258
  const isNew = !keyInfo[cacheKey];
242
259
  if (cacheMeta.cache[cacheKey] !== item) {
243
- cacheMeta.cache = {
244
- ...cacheMeta.cache,
260
+ cacheMeta.cache = __spreadProps(__spreadValues({}, cacheMeta.cache), {
245
261
  [cacheKey]: item
246
- };
262
+ });
247
263
  }
248
264
  keyInfo[cacheKey] = [now, 0];
249
265
  if (isNew) {
@@ -266,10 +282,9 @@ var lowLevelRemove = (cacheMeta, cacheKey) => {
266
282
  const { cache, keyInfo } = cacheMeta;
267
283
  if (keyInfo[cacheKey]) {
268
284
  if (cache[cacheKey] !== void 0) {
269
- cacheMeta.cache = {
270
- ...cache,
285
+ cacheMeta.cache = __spreadProps(__spreadValues({}, cache), {
271
286
  [cacheKey]: void 0
272
- };
287
+ });
273
288
  }
274
289
  keyInfo[cacheKey] = void 0;
275
290
  }
@@ -0,0 +1,92 @@
1
+ type DefaultItemType = any;
2
+ interface LimitedCacheOptionsFull {
3
+ /** Items will be removed to keep the cache within the maxCacheSize limit */
4
+ maxCacheSize: number;
5
+ /** Items will be removed and never returned if they were set more than maxCacheTime milliseconds ago */
6
+ maxCacheTime: number;
7
+ /** (dev only) A warning will be emitted if an item rotates out of the cache before this many milliseconds have passed, to indicate the size is too small */
8
+ warnIfItemPurgedBeforeTime: number;
9
+ /** (private) Internal cleanup of old keys will be performed after this many operations */
10
+ opLimit: number;
11
+ /** (private) Internal optimization to adjust how much searching will be done to find expired items, to avoid being O(n) */
12
+ scanLimit: number;
13
+ }
14
+ type LimitedCacheOptions = Partial<LimitedCacheOptionsFull> | null;
15
+ type LimitedCacheOptionsReadonly = Readonly<LimitedCacheOptionsFull>;
16
+ interface LimitedCacheInstance<ItemType = DefaultItemType> {
17
+ /** Return the requested item, if it has not expired */
18
+ get: (cacheKey: string) => ItemType | undefined;
19
+ /** Return all non-expired items */
20
+ getAll: () => Record<string, ItemType>;
21
+ /** Indicate whether or not the requested item is present and has not expired */
22
+ has: (cacheKey: string) => boolean;
23
+ /** Add the item to the cache, or update its timestamp if it already exists */
24
+ set: (cacheKey: string, item: ItemType) => ItemType;
25
+ /** Remove the requested item from the cache, if necessary */
26
+ remove: (cacheKey: string) => true;
27
+ /** Remove all items and all timestamps from the cache */
28
+ reset: () => LimitedCacheMeta<ItemType>;
29
+ /** Return a serializable representation of the cache internals, suitable for long-term storage */
30
+ getCacheMeta: () => LimitedCacheMeta<ItemType>;
31
+ /** Return the cache's current values for all options */
32
+ getOptions: () => LimitedCacheOptionsFull;
33
+ /** Update one or more of the cache's options */
34
+ setOptions: (newOptions: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
35
+ /** Reduces cache size by cleaning up old keys and expired items */
36
+ doMaintenance: () => LimitedCacheMeta<ItemType>;
37
+ }
38
+ interface LimitedCacheObjectInstance<ItemType = DefaultItemType> {
39
+ [key: string]: ItemType;
40
+ }
41
+ /**
42
+ * A serializable representation of the cache internals, suitable for long-term storage
43
+ */
44
+ interface LimitedCacheMeta<ItemType = DefaultItemType> {
45
+ /** Schema version: old versions will be upgraded if possible, or a warning will be emitted if not */
46
+ limitedCacheMetaVersion: number;
47
+ /** Options to control cache size, time, and behavior */
48
+ options: LimitedCacheOptionsReadonly;
49
+ /** The values in the cache, stored by key. Will include old keys not yet garbage collected */
50
+ cache: Record<string, ItemType | undefined>;
51
+ /** List of keys that have been set, in chronological order. Used to find cache items most likely to be expired */
52
+ keyList: Array<string>;
53
+ /** The [setTime, expirationTime] for each key that has been set. Removed on unset. */
54
+ keyInfo: Record<string, [number, number] | undefined>;
55
+ /** Number of operations remaining until internal cleanup of old keys is performed. Based on options.opLimit */
56
+ opsLeft: number;
57
+ }
58
+
59
+ declare const CURRENT_META_VERSION = 2;
60
+ declare const MAXIMUM_CACHE_TIME: number;
61
+ declare const defaultOptions: LimitedCacheOptionsReadonly;
62
+
63
+ declare const LimitedCache: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheInstance<ItemType>;
64
+
65
+ declare const LimitedCacheObject: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheObjectInstance<ItemType>;
66
+ declare const getCacheMetaFromObject: (instance: LimitedCacheObjectInstance) => LimitedCacheMeta;
67
+
68
+ declare const limitedCacheUtil: {
69
+ init: <ItemType = any>(optionsOrCacheMeta?: LimitedCacheOptions | LimitedCacheMeta<ItemType> | undefined) => LimitedCacheMeta<ItemType>;
70
+ get: <ItemType_1 = any>(cacheMeta: LimitedCacheMeta<ItemType_1>, cacheKey: string) => ItemType_1 | undefined;
71
+ getAll: <ItemType_2 = any>(cacheMeta: LimitedCacheMeta<ItemType_2>) => Record<string, ItemType_2>;
72
+ has: <ItemType_3 = any>(cacheMeta: LimitedCacheMeta<ItemType_3>, cacheKey: string) => boolean;
73
+ set: <ItemType_4 = any>(cacheMeta: LimitedCacheMeta<ItemType_4>, cacheKey: string, item: ItemType_4) => LimitedCacheMeta<ItemType_4>;
74
+ remove: <ItemType_5 = any>(cacheMeta: LimitedCacheMeta<ItemType_5>, cacheKey: string) => LimitedCacheMeta<ItemType_5>;
75
+ reset: <ItemType_6 = any>(cacheMeta: LimitedCacheMeta<ItemType_6>) => LimitedCacheMeta<ItemType_6>;
76
+ doMaintenance: <ItemType_7 = any>(cacheMeta: LimitedCacheMeta<ItemType_7>) => LimitedCacheMeta<ItemType_7>;
77
+ setOptions: <ItemType_8 = any>(cacheMeta: LimitedCacheMeta<ItemType_8>, options: LimitedCacheOptions) => Readonly<LimitedCacheOptionsFull>;
78
+ };
79
+
80
+ declare const isCacheMeta: (cacheMeta: LimitedCacheMeta) => boolean;
81
+ declare const upgradeCacheMeta: (cacheMeta: LimitedCacheMeta) => void;
82
+ declare const lowLevelSetOptions: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, options: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
83
+ declare const lowLevelInit: <ItemType = any>(optionsOrCacheMeta?: LimitedCacheOptions | LimitedCacheMeta<ItemType> | undefined) => LimitedCacheMeta<ItemType>;
84
+ declare const lowLevelDoMaintenance: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
85
+ declare const lowLevelHas: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => boolean;
86
+ declare const lowLevelGetOne: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => ItemType | undefined;
87
+ declare const lowLevelGetAll: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => Record<string, ItemType>;
88
+ declare const lowLevelSet: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string, item: ItemType) => LimitedCacheMeta<ItemType>;
89
+ declare const lowLevelRemove: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => LimitedCacheMeta<ItemType>;
90
+ declare const lowLevelReset: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
91
+
92
+ export { CURRENT_META_VERSION, type DefaultItemType, LimitedCache, type LimitedCacheInstance, type LimitedCacheMeta, LimitedCacheObject, type LimitedCacheObjectInstance, type LimitedCacheOptions, type LimitedCacheOptionsFull, type LimitedCacheOptionsReadonly, MAXIMUM_CACHE_TIME, defaultOptions, getCacheMetaFromObject, isCacheMeta, limitedCacheUtil, lowLevelDoMaintenance, lowLevelGetAll, lowLevelGetOne, lowLevelHas, lowLevelInit, lowLevelRemove, lowLevelReset, lowLevelSet, lowLevelSetOptions, upgradeCacheMeta };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimitedCache.d.ts","sourceRoot":"","sources":["../../../src/core/LimitedCache.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,mBAAmB,EAEnB,oBAAoB,EAGrB,MAAM,aAAa,CAAC;AAUrB,QAAA,MAAM,YAAY,6BACN,mBAAmB,mCAsB9B,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimitedCache.js","sourceRoot":"","sources":["../../../src/core/LimitedCache.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,WAAW,EACX,WAAW,EACX,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAShC,wFAAwF;AACxF,qFAAqF;AACrF,MAAM,uBAAuB,GAAG;AAC9B,8DAA8D;AAC9D,EAAqE,EACrE,SA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AAC,SAA2B,EAAE,QAAgB,EAAQ,EAAE;QACtE,cAAc,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,EAAE,CAAC,SAA2B,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;CACjF,CAAC;AAEF;;;GAGG;AACH,MAAM,oBAAoB,GAAG,IAAI,OAAO,EAAE,CAAC;AAE3C,MAAM,kBAAkB,GAAG,CACzB,OAA6B,EACS,EAAE;IACxC,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,kBAAkB,GAAG,IAAI,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IAE9D,oBAAoB,CAAC,GAAG,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;IACxD,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,QAAoC,EAAoB,EAAE;IACxF,OAAO,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtIns.d.ts","sourceRoot":"","sources":["../../../src/core/builtIns.ts"],"names":[],"mappings":"AACA,QAAA,MACU,YAAY;;;GACZ,YAAY;;;;;GACP,cAAc,6BACnB,CAAC;AACX,QAAA,MAAM,OAAO,cAAW,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtIns.js","sourceRoot":"","sources":["../../../src/core/builtIns.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,MAAM,EACJ,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,EAAE,cAAc,EAAE,GAC9B,GAAG,MAAM,CAAC;AACX,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultOptions.d.ts","sourceRoot":"","sources":["../../../src/core/defaultOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,QAAA,MAAM,oBAAoB,IAAI,CAAC;AAC/B,QAAA,MAAM,kBAAkB,QAAqB,CAAC;AAE9C,QAAA,MAAM,cAAc,EAAE,2BASrB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultOptions.js","sourceRoot":"","sources":["../../../src/core/defaultOptions.ts"],"names":[],"mappings":"AAEA,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,kBAAkB,GAAG,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC;AAE9C,MAAM,cAAc,GAAgC;IAClD,SAAS;IACT,YAAY,EAAE,GAAG;IACjB,YAAY,EAAE,KAAK,GAAG,IAAI;IAC1B,mBAAmB;IACnB,0BAA0B,EAAE,IAAI;IAChC,UAAU;IACV,OAAO,EAAE,GAAG;IACZ,SAAS,EAAE,EAAE;CACd,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limitedCacheUtil.d.ts","sourceRoot":"","sources":["../../../src/core/limitedCacheUtil.ts"],"names":[],"mappings":"AAYA,QAAA,MAAM,gBAAgB;;;;;;;;;;CAUrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limitedCacheUtil.js","sourceRoot":"","sources":["../../../src/core/limitedCacheUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,WAAW,EACX,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,cAAc;IACnB,MAAM,EAAE,cAAc;IACtB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,WAAW;IAChB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,aAAa;IACpB,aAAa,EAAE,qBAAqB;IACpC,UAAU,EAAE,kBAAkB;CAC/B,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lowLevelFunctions.d.ts","sourceRoot":"","sources":["../../../src/core/lowLevelFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAGjB,MAAM,aAAa,CAAC;AAqBrB,QAAA,MAAM,WAAW,cAAe,gBAAgB,KAAG,OAElD,CAAC;AAEF,QAAA,MAAM,gBAAgB,cAAe,gBAAgB,KAAG,IAWvD,CAAC;AAEF,QAAA,MAAM,kBAAkB,mEAEb,mBAAmB,KAC3B,2BAGF,CAAC;AAEF,QAAA,MAAM,YAAY,mIAkBjB,CAAC;AA0BF,QAAA,MAAM,qBAAqB,uFA+B1B,CAAC;AA4FF,QAAA,MAAM,WAAW,oEAEL,MAAM,KACf,OAWF,CAAC;AAEF,QAAA,MAAM,cAAc,oEAER,MAAM,yBAOjB,CAAC;AAEF,QAAA,MAAM,cAAc,qFAQnB,CAAC;AAEF,QAAA,MAAM,WAAW,oEAEL,MAAM,+CA+CjB,CAAC;AAEF,QAAA,MAAM,cAAc,oEAER,MAAM,+BAgBjB,CAAC;AAEF,QAAA,MAAM,aAAa,uFAUlB,CAAC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AAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC;AAElC,MAAM,WAAW,uBAAuB;IACtC,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,wGAAwG;IACxG,YAAY,EAAE,MAAM,CAAC;IAErB,4JAA4J;IAC5J,0BAA0B,EAAE,MAAM,CAAC;IACnC,0FAA0F;IAC1F,OAAO,EAAE,MAAM,CAAC;IAChB,2HAA2H;IAC3H,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;AAC1E,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC,uBAAuB,CAAC,CAAC;AAE5E,MAAM,WAAW,oBAAoB,CAAC,QAAQ,GAAG,eAAe;IAC9D,uDAAuD;IACvD,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,QAAQ,GAAG,SAAS,CAAC;IAChD,mCAAmC;IACnC,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACvC,gFAAgF;IAChF,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACnC,8EAA8E;IAC9E,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,QAAQ,CAAC;IACpD,6DAA6D;IAC7D,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,yDAAyD;IACzD,KAAK,EAAE,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACxC,kGAAkG;IAClG,YAAY,EAAE,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC/C,wDAAwD;IACxD,UAAU,EAAE,MAAM,uBAAuB,CAAC;IAC1C,gDAAgD;IAChD,UAAU,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,2BAA2B,CAAC;IAC7E,mEAAmE;IACnE,aAAa,EAAE,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,0BAA0B,CAAC,QAAQ,GAAG,eAAe;IACpE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,QAAQ,GAAG,eAAe;IAC1D,qGAAqG;IACrG,uBAAuB,EAAE,MAAM,CAAC;IAChC,wDAAwD;IACxD,OAAO,EAAE,2BAA2B,CAAC;IACrC,8FAA8F;IAC9F,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;IAC5C,kHAAkH;IAClH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,sFAAsF;IACtF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC;IACtD,+GAA+G;IAC/G,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { LimitedCacheOptions, LimitedCacheInstance } from '../types.js';
2
+ declare const LimitedCache: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheInstance<ItemType>;
3
+ export { LimitedCache };
4
+ //# sourceMappingURL=LimitedCache.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { LimitedCacheOptions, LimitedCacheObjectInstance, LimitedCacheMeta } from '../types.js';
2
+ declare const LimitedCacheObject: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheObjectInstance<ItemType>;
3
+ declare const getCacheMetaFromObject: (instance: LimitedCacheObjectInstance) => LimitedCacheMeta;
4
+ export { LimitedCacheObject, getCacheMetaFromObject };
5
+ //# sourceMappingURL=LimitedCacheObject.d.ts.map
@@ -0,0 +1,12 @@
1
+ declare const objectCreate: {
2
+ (o: object | null): any;
3
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
4
+ }, objectAssign: {
5
+ <T extends {}, U>(target: T, source: U): T & U;
6
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
7
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
8
+ (target: object, ...sources: any[]): any;
9
+ }, hasOwnProperty: (v: PropertyKey) => boolean;
10
+ declare const dateNow: () => number;
11
+ export { objectAssign, objectCreate, dateNow, hasOwnProperty };
12
+ //# sourceMappingURL=builtIns.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { LimitedCacheOptionsReadonly } from '../types.js';
2
+ declare const CURRENT_META_VERSION = 2;
3
+ declare const MAXIMUM_CACHE_TIME: number;
4
+ declare const defaultOptions: LimitedCacheOptionsReadonly;
5
+ export { CURRENT_META_VERSION, MAXIMUM_CACHE_TIME, defaultOptions };
6
+ //# sourceMappingURL=defaultOptions.d.ts.map
@@ -0,0 +1,13 @@
1
+ declare const limitedCacheUtil: {
2
+ init: <ItemType = any>(optionsOrCacheMeta?: import("../types.js").LimitedCacheOptions | import("../types.js").LimitedCacheMeta<ItemType> | undefined) => import("../types.js").LimitedCacheMeta<ItemType>;
3
+ get: <ItemType_1 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_1>, cacheKey: string) => ItemType_1 | undefined;
4
+ getAll: <ItemType_2 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_2>) => Record<string, ItemType_2>;
5
+ has: <ItemType_3 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_3>, cacheKey: string) => boolean;
6
+ set: <ItemType_4 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_4>, cacheKey: string, item: ItemType_4) => import("../types.js").LimitedCacheMeta<ItemType_4>;
7
+ remove: <ItemType_5 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_5>, cacheKey: string) => import("../types.js").LimitedCacheMeta<ItemType_5>;
8
+ reset: <ItemType_6 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_6>) => import("../types.js").LimitedCacheMeta<ItemType_6>;
9
+ doMaintenance: <ItemType_7 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_7>) => import("../types.js").LimitedCacheMeta<ItemType_7>;
10
+ setOptions: <ItemType_8 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_8>, options: import("../types.js").LimitedCacheOptions) => Readonly<import("../types.js").LimitedCacheOptionsFull>;
11
+ };
12
+ export { limitedCacheUtil };
13
+ //# sourceMappingURL=limitedCacheUtil.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { LimitedCacheOptions, LimitedCacheOptionsReadonly, LimitedCacheMeta } from '../types.js';
2
+ declare const isCacheMeta: (cacheMeta: LimitedCacheMeta) => boolean;
3
+ declare const upgradeCacheMeta: (cacheMeta: LimitedCacheMeta) => void;
4
+ declare const lowLevelSetOptions: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, options: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
5
+ declare const lowLevelInit: <ItemType = any>(optionsOrCacheMeta?: LimitedCacheOptions | LimitedCacheMeta<ItemType> | undefined) => LimitedCacheMeta<ItemType>;
6
+ declare const lowLevelDoMaintenance: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
7
+ declare const lowLevelHas: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => boolean;
8
+ declare const lowLevelGetOne: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => ItemType | undefined;
9
+ declare const lowLevelGetAll: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => Record<string, ItemType>;
10
+ declare const lowLevelSet: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string, item: ItemType) => LimitedCacheMeta<ItemType>;
11
+ declare const lowLevelRemove: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => LimitedCacheMeta<ItemType>;
12
+ declare const lowLevelReset: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
13
+ export { isCacheMeta, upgradeCacheMeta, lowLevelInit, lowLevelGetOne, lowLevelGetAll, lowLevelHas, lowLevelSet, lowLevelRemove, lowLevelReset, lowLevelDoMaintenance, lowLevelSetOptions, };
14
+ //# sourceMappingURL=lowLevelFunctions.d.ts.map
@@ -0,0 +1,7 @@
1
+ export * from './core/defaultOptions.js';
2
+ export * from './core/LimitedCache.js';
3
+ export * from './core/LimitedCacheObject.js';
4
+ export * from './core/limitedCacheUtil.js';
5
+ export * from './core/lowLevelFunctions.js';
6
+ export * from './types.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,61 @@
1
+ export type DefaultItemType = any;
2
+ export interface LimitedCacheOptionsFull {
3
+ /** Items will be removed to keep the cache within the maxCacheSize limit */
4
+ maxCacheSize: number;
5
+ /** Items will be removed and never returned if they were set more than maxCacheTime milliseconds ago */
6
+ maxCacheTime: number;
7
+ /** (dev only) A warning will be emitted if an item rotates out of the cache before this many milliseconds have passed, to indicate the size is too small */
8
+ warnIfItemPurgedBeforeTime: number;
9
+ /** (private) Internal cleanup of old keys will be performed after this many operations */
10
+ opLimit: number;
11
+ /** (private) Internal optimization to adjust how much searching will be done to find expired items, to avoid being O(n) */
12
+ scanLimit: number;
13
+ }
14
+ export type LimitedCacheOptions = Partial<LimitedCacheOptionsFull> | null;
15
+ export type LimitedCacheOptionsReadonly = Readonly<LimitedCacheOptionsFull>;
16
+ export interface LimitedCacheInstance<ItemType = DefaultItemType> {
17
+ /** Return the requested item, if it has not expired */
18
+ get: (cacheKey: string) => ItemType | undefined;
19
+ /** Return all non-expired items */
20
+ getAll: () => Record<string, ItemType>;
21
+ /** Indicate whether or not the requested item is present and has not expired */
22
+ has: (cacheKey: string) => boolean;
23
+ /** Add the item to the cache, or update its timestamp if it already exists */
24
+ set: (cacheKey: string, item: ItemType) => ItemType;
25
+ /** Remove the requested item from the cache, if necessary */
26
+ remove: (cacheKey: string) => true;
27
+ /** Remove all items and all timestamps from the cache */
28
+ reset: () => LimitedCacheMeta<ItemType>;
29
+ /** Return a serializable representation of the cache internals, suitable for long-term storage */
30
+ getCacheMeta: () => LimitedCacheMeta<ItemType>;
31
+ /** Return the cache's current values for all options */
32
+ getOptions: () => LimitedCacheOptionsFull;
33
+ /** Update one or more of the cache's options */
34
+ setOptions: (newOptions: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
35
+ /** Reduces cache size by cleaning up old keys and expired items */
36
+ doMaintenance: () => LimitedCacheMeta<ItemType>;
37
+ }
38
+ export interface LimitedCacheObjectInstance<ItemType = DefaultItemType> {
39
+ [key: string]: ItemType;
40
+ }
41
+ /**
42
+ * A serializable representation of the cache internals, suitable for long-term storage
43
+ */
44
+ export interface LimitedCacheMeta<ItemType = DefaultItemType> {
45
+ /** Schema version: old versions will be upgraded if possible, or a warning will be emitted if not */
46
+ limitedCacheMetaVersion: number;
47
+ /** Options to control cache size, time, and behavior */
48
+ options: LimitedCacheOptionsReadonly;
49
+ /** The values in the cache, stored by key. Will include old keys not yet garbage collected */
50
+ cache: Record<string, ItemType | undefined>;
51
+ /** List of keys that have been set, in chronological order. Used to find cache items most likely to be expired */
52
+ keyList: Array<string>;
53
+ /** The [setTime, expirationTime] for each key that has been set. Removed on unset. */
54
+ keyInfo: Record<string, [
55
+ number,
56
+ number
57
+ ] | undefined>;
58
+ /** Number of operations remaining until internal cleanup of old keys is performed. Based on options.opLimit */
59
+ opsLeft: number;
60
+ }
61
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { LimitedCacheOptions, LimitedCacheInstance } from '../types.js';
2
+ declare const LimitedCache: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheInstance<ItemType>;
3
+ export { LimitedCache };
4
+ //# sourceMappingURL=LimitedCache.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { LimitedCacheOptions, LimitedCacheObjectInstance, LimitedCacheMeta } from '../types.js';
2
+ declare const LimitedCacheObject: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheObjectInstance<ItemType>;
3
+ declare const getCacheMetaFromObject: (instance: LimitedCacheObjectInstance) => LimitedCacheMeta;
4
+ export { LimitedCacheObject, getCacheMetaFromObject };
5
+ //# sourceMappingURL=LimitedCacheObject.d.ts.map
@@ -0,0 +1,12 @@
1
+ declare const objectCreate: {
2
+ (o: object | null): any;
3
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
4
+ }, objectAssign: {
5
+ <T extends {}, U>(target: T, source: U): T & U;
6
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
7
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
8
+ (target: object, ...sources: any[]): any;
9
+ }, hasOwnProperty: (v: PropertyKey) => boolean;
10
+ declare const dateNow: () => number;
11
+ export { objectAssign, objectCreate, dateNow, hasOwnProperty };
12
+ //# sourceMappingURL=builtIns.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { LimitedCacheOptionsReadonly } from '../types.js';
2
+ declare const CURRENT_META_VERSION = 2;
3
+ declare const MAXIMUM_CACHE_TIME: number;
4
+ declare const defaultOptions: LimitedCacheOptionsReadonly;
5
+ export { CURRENT_META_VERSION, MAXIMUM_CACHE_TIME, defaultOptions };
6
+ //# sourceMappingURL=defaultOptions.d.ts.map
@@ -0,0 +1,13 @@
1
+ declare const limitedCacheUtil: {
2
+ init: <ItemType = any>(optionsOrCacheMeta?: import("../types.js").LimitedCacheOptions | import("../types.js").LimitedCacheMeta<ItemType> | undefined) => import("../types.js").LimitedCacheMeta<ItemType>;
3
+ get: <ItemType_1 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_1>, cacheKey: string) => ItemType_1 | undefined;
4
+ getAll: <ItemType_2 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_2>) => Record<string, ItemType_2>;
5
+ has: <ItemType_3 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_3>, cacheKey: string) => boolean;
6
+ set: <ItemType_4 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_4>, cacheKey: string, item: ItemType_4) => import("../types.js").LimitedCacheMeta<ItemType_4>;
7
+ remove: <ItemType_5 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_5>, cacheKey: string) => import("../types.js").LimitedCacheMeta<ItemType_5>;
8
+ reset: <ItemType_6 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_6>) => import("../types.js").LimitedCacheMeta<ItemType_6>;
9
+ doMaintenance: <ItemType_7 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_7>) => import("../types.js").LimitedCacheMeta<ItemType_7>;
10
+ setOptions: <ItemType_8 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_8>, options: import("../types.js").LimitedCacheOptions) => Readonly<import("../types.js").LimitedCacheOptionsFull>;
11
+ };
12
+ export { limitedCacheUtil };
13
+ //# sourceMappingURL=limitedCacheUtil.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { LimitedCacheOptions, LimitedCacheOptionsReadonly, LimitedCacheMeta } from '../types.js';
2
+ declare const isCacheMeta: (cacheMeta: LimitedCacheMeta) => boolean;
3
+ declare const upgradeCacheMeta: (cacheMeta: LimitedCacheMeta) => void;
4
+ declare const lowLevelSetOptions: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, options: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
5
+ declare const lowLevelInit: <ItemType = any>(optionsOrCacheMeta?: LimitedCacheOptions | LimitedCacheMeta<ItemType> | undefined) => LimitedCacheMeta<ItemType>;
6
+ declare const lowLevelDoMaintenance: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
7
+ declare const lowLevelHas: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => boolean;
8
+ declare const lowLevelGetOne: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => ItemType | undefined;
9
+ declare const lowLevelGetAll: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => Record<string, ItemType>;
10
+ declare const lowLevelSet: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string, item: ItemType) => LimitedCacheMeta<ItemType>;
11
+ declare const lowLevelRemove: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => LimitedCacheMeta<ItemType>;
12
+ declare const lowLevelReset: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
13
+ export { isCacheMeta, upgradeCacheMeta, lowLevelInit, lowLevelGetOne, lowLevelGetAll, lowLevelHas, lowLevelSet, lowLevelRemove, lowLevelReset, lowLevelDoMaintenance, lowLevelSetOptions, };
14
+ //# sourceMappingURL=lowLevelFunctions.d.ts.map
@@ -0,0 +1,7 @@
1
+ export * from './core/defaultOptions.js';
2
+ export * from './core/LimitedCache.js';
3
+ export * from './core/LimitedCacheObject.js';
4
+ export * from './core/limitedCacheUtil.js';
5
+ export * from './core/lowLevelFunctions.js';
6
+ export * from './types.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,61 @@
1
+ export type DefaultItemType = any;
2
+ export interface LimitedCacheOptionsFull {
3
+ /** Items will be removed to keep the cache within the maxCacheSize limit */
4
+ maxCacheSize: number;
5
+ /** Items will be removed and never returned if they were set more than maxCacheTime milliseconds ago */
6
+ maxCacheTime: number;
7
+ /** (dev only) A warning will be emitted if an item rotates out of the cache before this many milliseconds have passed, to indicate the size is too small */
8
+ warnIfItemPurgedBeforeTime: number;
9
+ /** (private) Internal cleanup of old keys will be performed after this many operations */
10
+ opLimit: number;
11
+ /** (private) Internal optimization to adjust how much searching will be done to find expired items, to avoid being O(n) */
12
+ scanLimit: number;
13
+ }
14
+ export type LimitedCacheOptions = Partial<LimitedCacheOptionsFull> | null;
15
+ export type LimitedCacheOptionsReadonly = Readonly<LimitedCacheOptionsFull>;
16
+ export interface LimitedCacheInstance<ItemType = DefaultItemType> {
17
+ /** Return the requested item, if it has not expired */
18
+ get: (cacheKey: string) => ItemType | undefined;
19
+ /** Return all non-expired items */
20
+ getAll: () => Record<string, ItemType>;
21
+ /** Indicate whether or not the requested item is present and has not expired */
22
+ has: (cacheKey: string) => boolean;
23
+ /** Add the item to the cache, or update its timestamp if it already exists */
24
+ set: (cacheKey: string, item: ItemType) => ItemType;
25
+ /** Remove the requested item from the cache, if necessary */
26
+ remove: (cacheKey: string) => true;
27
+ /** Remove all items and all timestamps from the cache */
28
+ reset: () => LimitedCacheMeta<ItemType>;
29
+ /** Return a serializable representation of the cache internals, suitable for long-term storage */
30
+ getCacheMeta: () => LimitedCacheMeta<ItemType>;
31
+ /** Return the cache's current values for all options */
32
+ getOptions: () => LimitedCacheOptionsFull;
33
+ /** Update one or more of the cache's options */
34
+ setOptions: (newOptions: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
35
+ /** Reduces cache size by cleaning up old keys and expired items */
36
+ doMaintenance: () => LimitedCacheMeta<ItemType>;
37
+ }
38
+ export interface LimitedCacheObjectInstance<ItemType = DefaultItemType> {
39
+ [key: string]: ItemType;
40
+ }
41
+ /**
42
+ * A serializable representation of the cache internals, suitable for long-term storage
43
+ */
44
+ export interface LimitedCacheMeta<ItemType = DefaultItemType> {
45
+ /** Schema version: old versions will be upgraded if possible, or a warning will be emitted if not */
46
+ limitedCacheMetaVersion: number;
47
+ /** Options to control cache size, time, and behavior */
48
+ options: LimitedCacheOptionsReadonly;
49
+ /** The values in the cache, stored by key. Will include old keys not yet garbage collected */
50
+ cache: Record<string, ItemType | undefined>;
51
+ /** List of keys that have been set, in chronological order. Used to find cache items most likely to be expired */
52
+ keyList: Array<string>;
53
+ /** The [setTime, expirationTime] for each key that has been set. Removed on unset. */
54
+ keyInfo: Record<string, [
55
+ number,
56
+ number
57
+ ] | undefined>;
58
+ /** Number of operations remaining until internal cleanup of old keys is performed. Based on options.opLimit */
59
+ opsLeft: number;
60
+ }
61
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { LimitedCacheOptions, LimitedCacheInstance } from '../types.js';
2
+ declare const LimitedCache: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheInstance<ItemType>;
3
+ export { LimitedCache };
4
+ //# sourceMappingURL=LimitedCache.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { LimitedCacheOptions, LimitedCacheObjectInstance, LimitedCacheMeta } from '../types.js';
2
+ declare const LimitedCacheObject: <ItemType = any>(options?: LimitedCacheOptions) => LimitedCacheObjectInstance<ItemType>;
3
+ declare const getCacheMetaFromObject: (instance: LimitedCacheObjectInstance) => LimitedCacheMeta;
4
+ export { LimitedCacheObject, getCacheMetaFromObject };
5
+ //# sourceMappingURL=LimitedCacheObject.d.ts.map
@@ -0,0 +1,12 @@
1
+ declare const objectCreate: {
2
+ (o: object | null): any;
3
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
4
+ }, objectAssign: {
5
+ <T extends {}, U>(target: T, source: U): T & U;
6
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
7
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
8
+ (target: object, ...sources: any[]): any;
9
+ }, hasOwnProperty: (v: PropertyKey) => boolean;
10
+ declare const dateNow: () => number;
11
+ export { objectAssign, objectCreate, dateNow, hasOwnProperty };
12
+ //# sourceMappingURL=builtIns.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { LimitedCacheOptionsReadonly } from '../types.js';
2
+ declare const CURRENT_META_VERSION = 2;
3
+ declare const MAXIMUM_CACHE_TIME: number;
4
+ declare const defaultOptions: LimitedCacheOptionsReadonly;
5
+ export { CURRENT_META_VERSION, MAXIMUM_CACHE_TIME, defaultOptions };
6
+ //# sourceMappingURL=defaultOptions.d.ts.map
@@ -0,0 +1,13 @@
1
+ declare const limitedCacheUtil: {
2
+ init: <ItemType = any>(optionsOrCacheMeta?: import("../types.js").LimitedCacheOptions | import("../types.js").LimitedCacheMeta<ItemType> | undefined) => import("../types.js").LimitedCacheMeta<ItemType>;
3
+ get: <ItemType_1 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_1>, cacheKey: string) => ItemType_1 | undefined;
4
+ getAll: <ItemType_2 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_2>) => Record<string, ItemType_2>;
5
+ has: <ItemType_3 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_3>, cacheKey: string) => boolean;
6
+ set: <ItemType_4 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_4>, cacheKey: string, item: ItemType_4) => import("../types.js").LimitedCacheMeta<ItemType_4>;
7
+ remove: <ItemType_5 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_5>, cacheKey: string) => import("../types.js").LimitedCacheMeta<ItemType_5>;
8
+ reset: <ItemType_6 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_6>) => import("../types.js").LimitedCacheMeta<ItemType_6>;
9
+ doMaintenance: <ItemType_7 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_7>) => import("../types.js").LimitedCacheMeta<ItemType_7>;
10
+ setOptions: <ItemType_8 = any>(cacheMeta: import("../types.js").LimitedCacheMeta<ItemType_8>, options: import("../types.js").LimitedCacheOptions) => Readonly<import("../types.js").LimitedCacheOptionsFull>;
11
+ };
12
+ export { limitedCacheUtil };
13
+ //# sourceMappingURL=limitedCacheUtil.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { LimitedCacheOptions, LimitedCacheOptionsReadonly, LimitedCacheMeta } from '../types.js';
2
+ declare const isCacheMeta: (cacheMeta: LimitedCacheMeta) => boolean;
3
+ declare const upgradeCacheMeta: (cacheMeta: LimitedCacheMeta) => void;
4
+ declare const lowLevelSetOptions: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, options: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
5
+ declare const lowLevelInit: <ItemType = any>(optionsOrCacheMeta?: LimitedCacheOptions | LimitedCacheMeta<ItemType> | undefined) => LimitedCacheMeta<ItemType>;
6
+ declare const lowLevelDoMaintenance: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
7
+ declare const lowLevelHas: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => boolean;
8
+ declare const lowLevelGetOne: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => ItemType | undefined;
9
+ declare const lowLevelGetAll: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => Record<string, ItemType>;
10
+ declare const lowLevelSet: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string, item: ItemType) => LimitedCacheMeta<ItemType>;
11
+ declare const lowLevelRemove: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>, cacheKey: string) => LimitedCacheMeta<ItemType>;
12
+ declare const lowLevelReset: <ItemType = any>(cacheMeta: LimitedCacheMeta<ItemType>) => LimitedCacheMeta<ItemType>;
13
+ export { isCacheMeta, upgradeCacheMeta, lowLevelInit, lowLevelGetOne, lowLevelGetAll, lowLevelHas, lowLevelSet, lowLevelRemove, lowLevelReset, lowLevelDoMaintenance, lowLevelSetOptions, };
14
+ //# sourceMappingURL=lowLevelFunctions.d.ts.map
@@ -0,0 +1,7 @@
1
+ export * from './core/defaultOptions.js';
2
+ export * from './core/LimitedCache.js';
3
+ export * from './core/LimitedCacheObject.js';
4
+ export * from './core/limitedCacheUtil.js';
5
+ export * from './core/lowLevelFunctions.js';
6
+ export * from './types.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,61 @@
1
+ export type DefaultItemType = any;
2
+ export interface LimitedCacheOptionsFull {
3
+ /** Items will be removed to keep the cache within the maxCacheSize limit */
4
+ maxCacheSize: number;
5
+ /** Items will be removed and never returned if they were set more than maxCacheTime milliseconds ago */
6
+ maxCacheTime: number;
7
+ /** (dev only) A warning will be emitted if an item rotates out of the cache before this many milliseconds have passed, to indicate the size is too small */
8
+ warnIfItemPurgedBeforeTime: number;
9
+ /** (private) Internal cleanup of old keys will be performed after this many operations */
10
+ opLimit: number;
11
+ /** (private) Internal optimization to adjust how much searching will be done to find expired items, to avoid being O(n) */
12
+ scanLimit: number;
13
+ }
14
+ export type LimitedCacheOptions = Partial<LimitedCacheOptionsFull> | null;
15
+ export type LimitedCacheOptionsReadonly = Readonly<LimitedCacheOptionsFull>;
16
+ export interface LimitedCacheInstance<ItemType = DefaultItemType> {
17
+ /** Return the requested item, if it has not expired */
18
+ get: (cacheKey: string) => ItemType | undefined;
19
+ /** Return all non-expired items */
20
+ getAll: () => Record<string, ItemType>;
21
+ /** Indicate whether or not the requested item is present and has not expired */
22
+ has: (cacheKey: string) => boolean;
23
+ /** Add the item to the cache, or update its timestamp if it already exists */
24
+ set: (cacheKey: string, item: ItemType) => ItemType;
25
+ /** Remove the requested item from the cache, if necessary */
26
+ remove: (cacheKey: string) => true;
27
+ /** Remove all items and all timestamps from the cache */
28
+ reset: () => LimitedCacheMeta<ItemType>;
29
+ /** Return a serializable representation of the cache internals, suitable for long-term storage */
30
+ getCacheMeta: () => LimitedCacheMeta<ItemType>;
31
+ /** Return the cache's current values for all options */
32
+ getOptions: () => LimitedCacheOptionsFull;
33
+ /** Update one or more of the cache's options */
34
+ setOptions: (newOptions: LimitedCacheOptions) => LimitedCacheOptionsReadonly;
35
+ /** Reduces cache size by cleaning up old keys and expired items */
36
+ doMaintenance: () => LimitedCacheMeta<ItemType>;
37
+ }
38
+ export interface LimitedCacheObjectInstance<ItemType = DefaultItemType> {
39
+ [key: string]: ItemType;
40
+ }
41
+ /**
42
+ * A serializable representation of the cache internals, suitable for long-term storage
43
+ */
44
+ export interface LimitedCacheMeta<ItemType = DefaultItemType> {
45
+ /** Schema version: old versions will be upgraded if possible, or a warning will be emitted if not */
46
+ limitedCacheMetaVersion: number;
47
+ /** Options to control cache size, time, and behavior */
48
+ options: LimitedCacheOptionsReadonly;
49
+ /** The values in the cache, stored by key. Will include old keys not yet garbage collected */
50
+ cache: Record<string, ItemType | undefined>;
51
+ /** List of keys that have been set, in chronological order. Used to find cache items most likely to be expired */
52
+ keyList: Array<string>;
53
+ /** The [setTime, expirationTime] for each key that has been set. Removed on unset. */
54
+ keyInfo: Record<string, [
55
+ number,
56
+ number
57
+ ] | undefined>;
58
+ /** Number of operations remaining until internal cleanup of old keys is performed. Based on options.opLimit */
59
+ opsLeft: number;
60
+ }
61
+ //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limited-cache",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "A minimal JS cache: like using an object, except it won't grow forever",
5
5
  "keywords": [
6
6
  "limited cache",
@@ -18,12 +18,12 @@
18
18
  "bugs": "https://github.com/spautz/limited-cache/issues",
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/spautz/limited-cache.git",
21
+ "url": "https://github.com/spautz/limited-cache.git",
22
22
  "directory": "packages/limited-cache"
23
23
  },
24
24
  "author": {
25
25
  "name": "Steven Pautz",
26
- "url": "https://github.com/spautz"
26
+ "url": "https://github.com/spautz/"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",
@@ -42,52 +42,52 @@
42
42
  "type": "module",
43
43
  "exports": {
44
44
  ".": {
45
- "import": "./dist/index.js",
46
- "require": "./dist/index.cjs",
47
- "types": "./dist/index.d.ts"
45
+ "import": {
46
+ "types": "./dist/esm/index.d.ts",
47
+ "default": "./dist/esm/index.js"
48
+ },
49
+ "require": {
50
+ "types": "./dist/cjs/index.d.cts",
51
+ "default": "./dist/cjs/index.cjs"
52
+ }
48
53
  },
54
+ "./internal-raw-src": "./src/index.ts",
49
55
  "./package.json": "./package.json"
50
56
  },
51
- "main": "./dist/index.cjs",
52
- "module": "./dist/index.js",
53
- "jsnext:main": "./dist/index.js",
54
- "types": "./dist/index.d.ts",
57
+ "main": "./dist/cjs/index.cjs",
58
+ "module": "./dist/esm/index.js",
59
+ "jsnext:main": "./dist/esm/index.js",
60
+ "types": "./dist/esm/index.d.ts",
55
61
  "sideEffects": false,
56
62
  "dependencies": {},
57
- "devDependencies": {
58
- "@types/node": "20.1.1"
59
- },
63
+ "devDependencies": {},
60
64
  "peerDependencies": {},
61
65
  "size-limit": [
62
66
  {
63
- "path": "dist/index.js",
67
+ "path": "./dist/esm/index.js",
64
68
  "import": "{}",
65
69
  "limit": "20 B"
66
70
  },
67
71
  {
68
- "path": "dist/index.js",
69
- "limit": "2 kB"
72
+ "path": "./dist/esm/index.js",
73
+ "import": "{ LimitedCache }",
74
+ "limit": "1.2 kb"
70
75
  }
71
76
  ],
72
77
  "typesVersions": {
73
78
  "<4.0": {
74
79
  "*": [
75
- "legacy-types/ts3.5/index.d.ts"
80
+ "./legacy-types/ts3.5/*"
76
81
  ]
77
82
  },
78
83
  "<4.5": {
79
84
  "*": [
80
- "legacy-types/ts4.0/index.d.ts"
85
+ "./legacy-types/ts4.0/*"
81
86
  ]
82
87
  },
83
88
  "<4.7": {
84
89
  "*": [
85
- "legacy-types/ts4.5/index.d.ts"
86
- ]
87
- },
88
- "*": {
89
- "*": [
90
- "dist/index.d.ts"
90
+ "./legacy-types/ts4.5/*"
91
91
  ]
92
92
  }
93
93
  },
@@ -95,29 +95,31 @@
95
95
  "____ HOOKS _________________________________________________________": "",
96
96
  "____ INTEGRATION ___________________________________________________": "",
97
97
  "clean": "pnpm run build:clean && pnpm run test:clean && rimraf --glob ./node_modules/.cache *.log",
98
- "all": "pnpm run format && pnpm run typecheck && pnpm run lint:fix && pnpm run test:coverage && pnpm run build",
99
- "all:readonly": "pnpm run format:verify && pnpm run typecheck && pnpm run lint && pnpm run test:quick",
100
- "all:quick": "pnpm run format && pnpm run typecheck && pnpm run lint:fix",
101
- "all:ci": "pnpm run format:verify && pnpm run typecheck && pnpm run lint && pnpm run test:ci && pnpm run build",
98
+ "all": "pnpm run typecheck && pnpm run lint:fix && pnpm run test:coverage && pnpm run build",
99
+ "all:readonly": "pnpm run typecheck && pnpm run lint && pnpm run test:quick",
100
+ "all:quick": "pnpm run typecheck && pnpm run lint:fix",
101
+ "all:ci": "pnpm run typecheck && pnpm run lint && pnpm run test:ci && pnpm pack",
102
102
  "____ INDIVIDUAL COMMANDS ___________________________________________": "",
103
- "build": "pnpm run build:main && pnpm run sizecheck && pnpm run build:legacytypes",
104
- "build:clean": "rimraf ./dist ./legacy-types",
105
- "build:main": "pnpm run build:clean && tsup src/index.ts --format cjs && tsc -p ./tsconfig.build.json",
103
+ "build": "pnpm run build:clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:verify && pnpm run build:legacytypes",
104
+ "build:clean": "rimraf --glob ./dist ./legacy-types ./*.tgz",
105
+ "build:cjs": "tsup src/index.ts --format cjs --dts --outDir=./dist/cjs/ --tsconfig=./tsconfig.build-cjs.json",
106
+ "build:cjs:watch": "pnpm run build:cjs --watch",
107
+ "build:esm": "tsc -p tsconfig.build-esm.json",
108
+ "build:esm:watch": "pnpm run build:esm --watch",
106
109
  "build:legacytypes": "pnpm run build:legacytypes:3.5 && pnpm run build:legacytypes:4.0 && pnpm run build:legacytypes:4.5",
107
- "build:legacytypes:3.5": "downlevel-dts ./dist ./legacy-types/ts3.5 --to=3.5",
108
- "build:legacytypes:4.0": "downlevel-dts ./dist ./legacy-types/ts4.0 --to=4.0",
109
- "build:legacytypes:4.5": "downlevel-dts ./dist ./legacy-types/ts4.5 --to=4.5",
110
- "build:watch": "pnpm run build:clean && tsup src/index.ts --format esm,cjs --dts --watch",
111
- "format": "prettier --write .",
112
- "format:verify": "prettier --list-different .",
110
+ "build:legacytypes:3.5": "downlevel-dts ./dist ./legacy-types/ts3.5/dist --to=3.5",
111
+ "build:legacytypes:4.0": "downlevel-dts ./dist ./legacy-types/ts4.0/dist --to=4.0",
112
+ "build:legacytypes:4.5": "downlevel-dts ./dist ./legacy-types/ts4.5/dist --to=4.5",
113
+ "build:verify": "publint --strict && size-limit",
114
+ "build:verifypack": "ls *.tgz | xargs -I {} attw {} --exclude-entrypoints internal-raw-src",
113
115
  "lint": "eslint . --max-warnings 0",
114
116
  "lint:fix": "eslint . --max-warnings 0 --fix",
115
- "sizecheck": "size-limit",
116
117
  "test": "pnpm run test:coverage",
117
118
  "test:clean": "rimraf ./coverage",
118
119
  "test:ci": "pnpm run test:clean && vitest run --coverage",
119
120
  "test:coverage": "pnpm run test:clean && vitest run --coverage",
120
121
  "test:quick": "pnpm run test:clean && vitest run --coverage=false",
122
+ "test:ui": "pnpm run test:clean && vitest --ui",
121
123
  "test:watch": "pnpm run test:clean && vitest watch --coverage=false",
122
124
  "test:watchcoverage": "pnpm run test:clean && vitest watch --coverage",
123
125
  "typecheck": "tsc -p ./tsconfig.json --noEmit"
@@ -1 +0,0 @@
1
- {"version":3,"file":"LimitedCache.d.ts","sourceRoot":"","sources":["../../src/core/LimitedCache.ts"],"names":[],"mappings":"AAW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UAAU,EAAE,GAAgC,EAAE,CAAC,SAAS,CAAC,OAAO;QAChE,UAAU,EAAE,uBAAuB,CAAW,kBAAkB,EAAE,SAAS,CAAC;QAC5E,aAAa,EAAE,uBAAuB,CAAW,qBAAqB,EAAE,SAAS,CAAC;KACnF,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LimitedCacheObject.d.ts","sourceRoot":"","sources":["../../src/core/LimitedCacheObject.ts"],"names":[],"mappings":"AASA,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,gBAAgB,EAEjB,MAAM,aAAa,CAAC;AA4CrB,QAAA,MAAM,kBAAkB,6BACZ,mBAAmB,yCAO9B,CAAC;AAEF,QAAA,MAAM,sBAAsB,aAAc,0BAA0B,KAAG,gBAEtE,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LimitedCacheObject.js","sourceRoot":"","sources":["../../src/core/LimitedCacheObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,WAAW,EACX,WAAW,EACX,cAAc,GACf,MAAM,wBAAwB,CAAC;AAQhC,uFAAuF;AACvF,8DAA8D;AAC9D,MAAM,YAAY,GAAkD;IAClE,GAAG,EAAE,CAAC,SAA2B,EAAE,QAAgB,EAAE,EAAE;QACrD,IAAI,QAAQ,KAAK,gBAAgB,EAAE;YACjC,OAAO,cAAc,CAAC;SACvB;QACD,OAAO,cAAc,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,wBAAwB,EAAE,CAAC,SAA2B,EAAE,QAAgB,EAAE,EAAE;QAC1E,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACnD,M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}
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtIns.d.ts","sourceRoot":"","sources":["../../src/core/builtIns.ts"],"names":[],"mappings":"AACA,QAAA,MACU,YAAY;;;GACZ,YAAY;;;;;GACP,cAAc,6BACnB,CAAC;AACX,QAAA,MAAM,OAAO,cAAW,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtIns.js","sourceRoot":"","sources":["../../src/core/builtIns.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,MAAM,EACJ,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,EAAE,cAAc,EAAE,GAC9B,GAAG,MAAM,CAAC;AACX,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultOptions.d.ts","sourceRoot":"","sources":["../../src/core/defaultOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,QAAA,MAAM,oBAAoB,IAAI,CAAC;AAC/B,QAAA,MAAM,kBAAkB,QAAqB,CAAC;AAE9C,QAAA,MAAM,cAAc,EAAE,2BASrB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultOptions.js","sourceRoot":"","sources":["../../src/core/defaultOptions.ts"],"names":[],"mappings":"AAEA,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,kBAAkB,GAAG,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC;AAE9C,MAAM,cAAc,GAAgC;IAClD,SAAS;IACT,YAAY,EAAE,GAAG;IACjB,YAAY,EAAE,KAAK,GAAG,IAAI;IAC1B,mBAAmB;IACnB,0BAA0B,EAAE,IAAI;IAChC,UAAU;IACV,OAAO,EAAE,GAAG;IACZ,SAAS,EAAE,EAAE;CACd,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"limitedCacheUtil.d.ts","sourceRoot":"","sources":["../../src/core/limitedCacheUtil.ts"],"names":[],"mappings":"AAYA,QAAA,MAAM,gBAAgB;;;;;;;;;;CAUrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"limitedCacheUtil.js","sourceRoot":"","sources":["../../src/core/limitedCacheUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,WAAW,EACX,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,cAAc;IACnB,MAAM,EAAE,cAAc;IACtB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,WAAW;IAChB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,aAAa;IACpB,aAAa,EAAE,qBAAqB;IACpC,UAAU,EAAE,kBAAkB;CAC/B,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"lowLevelFunctions.d.ts","sourceRoot":"","sources":["../../src/core/lowLevelFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAGjB,MAAM,aAAa,CAAC;AAqBrB,QAAA,MAAM,WAAW,cAAe,gBAAgB,KAAG,OAElD,CAAC;AAEF,QAAA,MAAM,gBAAgB,cAAe,gBAAgB,KAAG,IAWvD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ceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC;AAElC,MAAM,WAAW,uBAAuB;IACtC,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,wGAAwG;IACxG,YAAY,EAAE,MAAM,CAAC;IAErB,4JAA4J;IAC5J,0BAA0B,EAAE,MAAM,CAAC;IACnC,0FAA0F;IAC1F,OAAO,EAAE,MAAM,CAAC;IAChB,2HAA2H;IAC3H,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;AAC1E,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC,uBAAuB,CAAC,CAAC;AAE5E,MAAM,WAAW,oBAAoB,CAAC,QAAQ,GAAG,eAAe;IAC9D,uDAAuD;IACvD,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,QAAQ,GAAG,SAAS,CAAC;IAChD,mCAAmC;IACnC,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACvC,gFAAgF;IAChF,G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ceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes