arky-sdk 0.3.72 → 0.3.73
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/index.cjs +1 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -44,7 +44,7 @@ interface RunScriptResponse {
|
|
|
44
44
|
message: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare const SDK_VERSION = "0.3.
|
|
47
|
+
declare const SDK_VERSION = "0.3.73";
|
|
48
48
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
49
49
|
interface ApiConfig {
|
|
50
50
|
httpClient: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface RunScriptResponse {
|
|
|
44
44
|
message: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare const SDK_VERSION = "0.3.
|
|
47
|
+
declare const SDK_VERSION = "0.3.73";
|
|
48
48
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
49
49
|
interface ApiConfig {
|
|
50
50
|
httpClient: any;
|
package/dist/index.js
CHANGED
|
@@ -1670,7 +1670,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
|
|
1672
1672
|
// src/index.ts
|
|
1673
|
-
var SDK_VERSION = "0.3.
|
|
1673
|
+
var SDK_VERSION = "0.3.73";
|
|
1674
1674
|
var SUPPORTED_FRAMEWORKS = [
|
|
1675
1675
|
"astro",
|
|
1676
1676
|
"react",
|
|
@@ -1680,9 +1680,6 @@ var SUPPORTED_FRAMEWORKS = [
|
|
|
1680
1680
|
];
|
|
1681
1681
|
async function createArkySDK(config) {
|
|
1682
1682
|
const locale = config.locale || "en";
|
|
1683
|
-
console.log(
|
|
1684
|
-
`[Arky SDK v${SDK_VERSION}] Initializing with market: ${config.market}, businessId: ${config.businessId}, locale: ${locale}`
|
|
1685
|
-
);
|
|
1686
1683
|
const httpClient = createHttpClient(config);
|
|
1687
1684
|
const apiConfig = {
|
|
1688
1685
|
httpClient,
|
|
@@ -1706,15 +1703,8 @@ async function createArkySDK(config) {
|
|
|
1706
1703
|
if (token) {
|
|
1707
1704
|
config.setToken(result);
|
|
1708
1705
|
}
|
|
1709
|
-
console.log(
|
|
1710
|
-
"[SDK Init] Created guest token:",
|
|
1711
|
-
token ? "Success" : "Failed"
|
|
1712
|
-
);
|
|
1713
|
-
} else {
|
|
1714
|
-
console.log("[SDK Init] Using existing token from storage");
|
|
1715
1706
|
}
|
|
1716
1707
|
} catch (error) {
|
|
1717
|
-
console.error("[SDK Init] Failed to initialize auth:", error);
|
|
1718
1708
|
}
|
|
1719
1709
|
}
|
|
1720
1710
|
const sdk = {
|