@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.
- package/dist/sesamy-js.cjs +3 -3
- package/dist/sesamy-js.iife.js +3 -3
- package/dist/sesamy-js.mjs +5 -3
- package/package.json +1 -1
package/dist/sesamy-js.mjs
CHANGED
|
@@ -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.
|
|
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
|
}
|