@forgecharts/sdk 1.3.8 → 1.3.9

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.
@@ -10726,6 +10726,7 @@ function validateLicensePolicy(payload) {
10726
10726
  }
10727
10727
 
10728
10728
  // src/licensing/LicenseManager.ts
10729
+ var GLOBAL_INSTANCE_KEY = /* @__PURE__ */ Symbol.for("@forgecharts/sdk:LicenseManager");
10729
10730
  var DEFAULT_MODE = "unmanaged";
10730
10731
  var DEFAULT_PRODUCT_TIER = "core";
10731
10732
  var DEFAULT_FEATURES = {};
@@ -10760,10 +10761,12 @@ var LicenseManager = class _LicenseManager {
10760
10761
  });
10761
10762
  }
10762
10763
  static getInstance() {
10763
- if (!_LicenseManager.instance) {
10764
- _LicenseManager.instance = new _LicenseManager();
10764
+ const registry = globalThis;
10765
+ if (!registry[GLOBAL_INSTANCE_KEY]) {
10766
+ registry[GLOBAL_INSTANCE_KEY] = _LicenseManager.instance ?? new _LicenseManager();
10765
10767
  }
10766
- return _LicenseManager.instance;
10768
+ _LicenseManager.instance = registry[GLOBAL_INSTANCE_KEY];
10769
+ return registry[GLOBAL_INSTANCE_KEY];
10767
10770
  }
10768
10771
  /**
10769
10772
  * Validate a license key against the licensing endpoint.