arky-sdk 0.3.72 → 0.3.74
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/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +18 -12
- package/dist/types.d.ts +18 -12
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1672,7 +1672,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
1674
|
// src/index.ts
|
|
1675
|
-
var SDK_VERSION = "0.3.
|
|
1675
|
+
var SDK_VERSION = "0.3.73";
|
|
1676
1676
|
var SUPPORTED_FRAMEWORKS = [
|
|
1677
1677
|
"astro",
|
|
1678
1678
|
"react",
|
|
@@ -1682,9 +1682,6 @@ var SUPPORTED_FRAMEWORKS = [
|
|
|
1682
1682
|
];
|
|
1683
1683
|
async function createArkySDK(config) {
|
|
1684
1684
|
const locale = config.locale || "en";
|
|
1685
|
-
console.log(
|
|
1686
|
-
`[Arky SDK v${SDK_VERSION}] Initializing with market: ${config.market}, businessId: ${config.businessId}, locale: ${locale}`
|
|
1687
|
-
);
|
|
1688
1685
|
const httpClient = createHttpClient(config);
|
|
1689
1686
|
const apiConfig = {
|
|
1690
1687
|
httpClient,
|
|
@@ -1708,15 +1705,8 @@ async function createArkySDK(config) {
|
|
|
1708
1705
|
if (token) {
|
|
1709
1706
|
config.setToken(result);
|
|
1710
1707
|
}
|
|
1711
|
-
console.log(
|
|
1712
|
-
"[SDK Init] Created guest token:",
|
|
1713
|
-
token ? "Success" : "Failed"
|
|
1714
|
-
);
|
|
1715
|
-
} else {
|
|
1716
|
-
console.log("[SDK Init] Using existing token from storage");
|
|
1717
1708
|
}
|
|
1718
1709
|
} catch (error) {
|
|
1719
|
-
console.error("[SDK Init] Failed to initialize auth:", error);
|
|
1720
1710
|
}
|
|
1721
1711
|
}
|
|
1722
1712
|
const sdk = {
|