api-core-lib 12.0.5 → 12.0.7

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.cjs CHANGED
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
9
  var __export = (target, all) => {
9
10
  for (var name in all)
10
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -26,6 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
27
  mod
27
28
  ));
28
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
29
31
 
30
32
  // src/index.ts
31
33
  var index_exports = {};
@@ -544,7 +546,9 @@ var createInitialState = () => ({
544
546
  rawResponse: null
545
547
  });
546
548
  var GlobalStateManager = class {
547
- store = /* @__PURE__ */ new Map();
549
+ constructor() {
550
+ __publicField(this, "store", /* @__PURE__ */ new Map());
551
+ }
548
552
  /**
549
553
  * يحصل على لقطة (snapshot) للحالة الحالية لمفتاح معين.
550
554
  */
@@ -636,8 +640,10 @@ var globalStateManager = new GlobalStateManager();
636
640
 
637
641
  // src/core/cache.ts
638
642
  var CacheManager = class {
639
- cache = /* @__PURE__ */ new Map();
640
- defaultDuration = 15 * 60 * 1e3;
643
+ constructor() {
644
+ __publicField(this, "cache", /* @__PURE__ */ new Map());
645
+ __publicField(this, "defaultDuration", 15 * 60 * 1e3);
646
+ }
641
647
  // 15 minutes
642
648
  set(key, data, duration) {
643
649
  this.cache.set(key, {