@sesamy/sesamy-js 1.96.0 → 1.97.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.
@@ -4600,7 +4600,7 @@ function Mv(e) {
4600
4600
  localStorage.setItem(Bo, JSON.stringify({ value: t }));
4601
4601
  }
4602
4602
  }
4603
- const Es = "@sesamy/sesamy-js", Dt = "1.96.0", Fv = "sesamyFlags";
4603
+ const Es = "@sesamy/sesamy-js", Dt = "1.97.0", Fv = "sesamyFlags";
4604
4604
  async function Bv(e) {
4605
4605
  try {
4606
4606
  localStorage.setItem(Fv, JSON.stringify(e));
@@ -7723,7 +7723,7 @@ function ob(e) {
7723
7723
  // Deprecated. This is to handle that the old apps used it on web components
7724
7724
  setToken: Mo
7725
7725
  };
7726
- return e.namespace && (window[e.namespace] = T), T;
7726
+ return e.namespace && typeof window < "u" && (window[e.namespace] = T), T;
7727
7727
  }
7728
7728
  function sb() {
7729
7729
  return Dt;
@@ -8257,7 +8257,9 @@ async function Gb(e, r) {
8257
8257
  clientId: e.clientId,
8258
8258
  vendorId: e.vendorId,
8259
8259
  environment: e.environment,
8260
- ...e.api
8260
+ ...e.api,
8261
+ namespace: t
8262
+ // always set the resolved namespace so window[namespace] is populated
8261
8263
  });
8262
8264
  return fn() ? (e.awaitAllServices ? await Md(e, n, r?.authPlugin) : Md(e, n, r?.authPlugin), n) : (dn = !0, n);
8263
8265
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "registry": "https://registry.npmjs.org/",
7
7
  "tag": "latest"
8
8
  },
9
- "version": "1.96.0",
9
+ "version": "1.97.0",
10
10
  "main": "dist/sesamy-js.cjs",
11
11
  "module": "dist/sesamy-js.mjs",
12
12
  "types": "dist/sesamy-js.d.ts",