@syntrologie/runtime-sdk 2.6.0 → 2.7.0-canary.1
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-KETP7BVG.js → chunk-LQCEGJW5.js} +5 -10
- package/dist/chunk-LQCEGJW5.js.map +7 -0
- 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/chunk-KETP7BVG.js.map +0 -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.
|
|
19288
|
+
var SDK_VERSION = "2.7.0-canary.1";
|
|
19289
19289
|
|
|
19290
19290
|
// src/types.ts
|
|
19291
19291
|
var SDK_SCHEMA_VERSION = "2.0";
|
|
@@ -37749,15 +37749,10 @@ ${cssRules}
|
|
|
37749
37749
|
__publicField(this, "namespace");
|
|
37750
37750
|
__publicField(this, "namespacedStorages", /* @__PURE__ */ new Map());
|
|
37751
37751
|
this.namespace = options.namespace ?? DEFAULT_NAMESPACE;
|
|
37752
|
+
const isUsable = (s2) => typeof s2 === "object" && s2 !== null && typeof s2.setItem === "function";
|
|
37752
37753
|
if (typeof window !== "undefined") {
|
|
37753
|
-
this.session = createBrowserStorage(
|
|
37754
|
-
|
|
37755
|
-
this.namespace
|
|
37756
|
-
);
|
|
37757
|
-
this.user = createBrowserStorage(
|
|
37758
|
-
typeof localStorage !== "undefined" ? localStorage : void 0,
|
|
37759
|
-
this.namespace
|
|
37760
|
-
);
|
|
37754
|
+
this.session = isUsable(window.sessionStorage) ? createBrowserStorage(window.sessionStorage, this.namespace) : createMemoryStorage(this.namespace);
|
|
37755
|
+
this.user = isUsable(window.localStorage) ? createBrowserStorage(window.localStorage, this.namespace) : createMemoryStorage(this.namespace);
|
|
37761
37756
|
} else {
|
|
37762
37757
|
this.session = createMemoryStorage(this.namespace);
|
|
37763
37758
|
this.user = createMemoryStorage(this.namespace);
|
|
@@ -39391,7 +39386,7 @@ ${cssRules}
|
|
|
39391
39386
|
}
|
|
39392
39387
|
|
|
39393
39388
|
// src/index.ts
|
|
39394
|
-
var RUNTIME_SDK_BUILD = true ? `${"2026-03-
|
|
39389
|
+
var RUNTIME_SDK_BUILD = true ? `${"2026-03-06T19:12:21.408Z"} (${"fc4b2176dd"})` : "dev";
|
|
39395
39390
|
if (typeof window !== "undefined") {
|
|
39396
39391
|
console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
|
|
39397
39392
|
const existing = window.SynOS;
|