@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.
- package/dist/{chunk-DLW4A4JJ.js → chunk-6KBZVVD3.js} +5 -10
- package/dist/{chunk-DLW4A4JJ.js.map → chunk-6KBZVVD3.js.map} +2 -2
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +23 -23
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +5 -10
- package/dist/smart-canvas.js.map +3 -3
- package/dist/smart-canvas.min.js +23 -23
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
package/dist/smart-canvas.js
CHANGED
|
@@ -19285,7 +19285,7 @@ var SyntrologieSDK = (() => {
|
|
|
19285
19285
|
}
|
|
19286
19286
|
|
|
19287
19287
|
// src/version.ts
|
|
19288
|
-
var SDK_VERSION = "2.6.0-canary.
|
|
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
|
-
|
|
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-
|
|
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;
|