@forgecharts/sdk 1.3.8 → 1.3.10

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.js CHANGED
@@ -10782,6 +10782,7 @@ function validateLicensePolicy(payload) {
10782
10782
  }
10783
10783
 
10784
10784
  // src/licensing/LicenseManager.ts
10785
+ var GLOBAL_INSTANCE_KEY = /* @__PURE__ */ Symbol.for("@forgecharts/sdk:LicenseManager");
10785
10786
  var DEFAULT_MODE = "unmanaged";
10786
10787
  var DEFAULT_PRODUCT_TIER = "core";
10787
10788
  var DEFAULT_FEATURES = {};
@@ -10816,10 +10817,12 @@ var LicenseManager = class _LicenseManager {
10816
10817
  });
10817
10818
  }
10818
10819
  static getInstance() {
10819
- if (!_LicenseManager.instance) {
10820
- _LicenseManager.instance = new _LicenseManager();
10820
+ const registry = globalThis;
10821
+ if (!registry[GLOBAL_INSTANCE_KEY]) {
10822
+ registry[GLOBAL_INSTANCE_KEY] = _LicenseManager.instance ?? new _LicenseManager();
10821
10823
  }
10822
- return _LicenseManager.instance;
10824
+ _LicenseManager.instance = registry[GLOBAL_INSTANCE_KEY];
10825
+ return registry[GLOBAL_INSTANCE_KEY];
10823
10826
  }
10824
10827
  /**
10825
10828
  * Validate a license key against the licensing endpoint.