arky-sdk 0.3.1 → 0.3.2

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 CHANGED
@@ -1675,7 +1675,6 @@ function createHttpClient(cfg) {
1675
1675
  let data;
1676
1676
  try {
1677
1677
  const fullUrl = `${cfg.baseUrl}${finalPath}`;
1678
- console.log("[SDK] Fetching:", method, fullUrl, fetchOpts);
1679
1678
  res = await fetch(fullUrl, fetchOpts);
1680
1679
  data = await res.json();
1681
1680
  } catch (error) {
@@ -1710,7 +1709,7 @@ function createHttpClient(cfg) {
1710
1709
  }
1711
1710
 
1712
1711
  // src/index.ts
1713
- var SDK_VERSION = "0.3.1";
1712
+ var SDK_VERSION = "0.3.2";
1714
1713
  var SUPPORTED_FRAMEWORKS = ["astro", "react", "vue", "svelte", "vanilla"];
1715
1714
  function createArkySDK(config) {
1716
1715
  const httpClient = createHttpClient(config);
@@ -1743,12 +1742,10 @@ function createArkySDK(config) {
1743
1742
  apiConfig.businessId = businessId;
1744
1743
  },
1745
1744
  getBusinessId: () => apiConfig.businessId,
1746
- auth: {
1747
- isAuthenticated: config.isAuthenticated || (() => false),
1748
- logout: config.logout || config.onAuthFailure,
1749
- setUserToken: config.setUserToken || (() => {
1750
- })
1751
- },
1745
+ isAuthenticated: config.isAuthenticated || (() => false),
1746
+ logout: config.logout || config.onAuthFailure,
1747
+ setUserToken: config.setUserToken || (() => {
1748
+ }),
1752
1749
  utils: {
1753
1750
  getImageUrl: (imageBlock, isBlock = true) => getImageUrl(imageBlock, isBlock, storageUrl),
1754
1751
  thumbnailUrl: (service) => thumbnailUrl(service, storageUrl),