@syntrologie/runtime-sdk 2.6.0-canary.4 → 2.6.0-canary.6

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.
@@ -19285,7 +19285,7 @@ var SyntrologieSDK = (() => {
19285
19285
  }
19286
19286
 
19287
19287
  // src/version.ts
19288
- var SDK_VERSION = "2.6.0-canary.4";
19288
+ var SDK_VERSION = "2.6.0-canary.6";
19289
19289
 
19290
19290
  // src/types.ts
19291
19291
  var SDK_SCHEMA_VERSION = "2.0";
@@ -37746,15 +37746,10 @@ ${cssRules}
37746
37746
  __publicField(this, "namespace");
37747
37747
  __publicField(this, "namespacedStorages", /* @__PURE__ */ new Map());
37748
37748
  this.namespace = options.namespace ?? DEFAULT_NAMESPACE;
37749
+ const isUsable = (s2) => typeof s2 === "object" && s2 !== null && typeof s2.setItem === "function";
37749
37750
  if (typeof window !== "undefined") {
37750
- this.session = createBrowserStorage(
37751
- typeof sessionStorage !== "undefined" ? sessionStorage : void 0,
37752
- this.namespace
37753
- );
37754
- this.user = createBrowserStorage(
37755
- typeof localStorage !== "undefined" ? localStorage : void 0,
37756
- this.namespace
37757
- );
37751
+ this.session = isUsable(window.sessionStorage) ? createBrowserStorage(window.sessionStorage, this.namespace) : createMemoryStorage(this.namespace);
37752
+ this.user = isUsable(window.localStorage) ? createBrowserStorage(window.localStorage, this.namespace) : createMemoryStorage(this.namespace);
37758
37753
  } else {
37759
37754
  this.session = createMemoryStorage(this.namespace);
37760
37755
  this.user = createMemoryStorage(this.namespace);
@@ -39385,7 +39380,7 @@ ${cssRules}
39385
39380
  }
39386
39381
 
39387
39382
  // src/index.ts
39388
- var RUNTIME_SDK_BUILD = true ? `${"2026-03-06T11:14:43.991Z"} (${"4749de0617"})` : "dev";
39383
+ var RUNTIME_SDK_BUILD = true ? `${"2026-03-06T13:50:58.236Z"} (${"441a6ae52a"})` : "dev";
39389
39384
  if (typeof window !== "undefined") {
39390
39385
  console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
39391
39386
  const existing = window.SynOS;