@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.
package/dist/internal.js CHANGED
@@ -10792,6 +10792,7 @@ function validateLicensePolicy(payload) {
10792
10792
  }
10793
10793
 
10794
10794
  // src/licensing/LicenseManager.ts
10795
+ var GLOBAL_INSTANCE_KEY = /* @__PURE__ */ Symbol.for("@forgecharts/sdk:LicenseManager");
10795
10796
  var DEFAULT_MODE = "unmanaged";
10796
10797
  var DEFAULT_PRODUCT_TIER = "core";
10797
10798
  var DEFAULT_FEATURES = {};
@@ -10826,10 +10827,12 @@ var LicenseManager = class _LicenseManager {
10826
10827
  });
10827
10828
  }
10828
10829
  static getInstance() {
10829
- if (!_LicenseManager.instance) {
10830
- _LicenseManager.instance = new _LicenseManager();
10830
+ const registry = globalThis;
10831
+ if (!registry[GLOBAL_INSTANCE_KEY]) {
10832
+ registry[GLOBAL_INSTANCE_KEY] = _LicenseManager.instance ?? new _LicenseManager();
10831
10833
  }
10832
- return _LicenseManager.instance;
10834
+ _LicenseManager.instance = registry[GLOBAL_INSTANCE_KEY];
10835
+ return registry[GLOBAL_INSTANCE_KEY];
10833
10836
  }
10834
10837
  /**
10835
10838
  * Validate a license key against the licensing endpoint.