@blotoutio/providers-shop-gpt-sdk 1.55.0 → 1.55.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/package.json
CHANGED
|
@@ -303,7 +303,8 @@ const createShopApi = ({ fetchImpl: fetchOverride = window.fetch, }) => ({
|
|
|
303
303
|
},
|
|
304
304
|
getCustomerId() {
|
|
305
305
|
var _a, _b, _c;
|
|
306
|
-
|
|
306
|
+
const id = (_c = (_b = (_a = window.ShopifyAnalytics) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.page) === null || _c === void 0 ? void 0 : _c.customerId;
|
|
307
|
+
return Promise.resolve(id != null ? String(id) : undefined);
|
|
307
308
|
},
|
|
308
309
|
/**
|
|
309
310
|
* Refreshes the cart UI: updates the header cart icon count, dispatches cart events,
|
package/stores/shopify/index.js
CHANGED
|
@@ -304,7 +304,8 @@
|
|
|
304
304
|
},
|
|
305
305
|
getCustomerId() {
|
|
306
306
|
var _a, _b, _c;
|
|
307
|
-
|
|
307
|
+
const id = (_c = (_b = (_a = window.ShopifyAnalytics) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.page) === null || _c === void 0 ? void 0 : _c.customerId;
|
|
308
|
+
return Promise.resolve(id != null ? String(id) : undefined);
|
|
308
309
|
},
|
|
309
310
|
/**
|
|
310
311
|
* Refreshes the cart UI: updates the header cart icon count, dispatches cart events,
|
package/stores/shopify/index.mjs
CHANGED
|
@@ -301,7 +301,8 @@ const createShopApi = ({ fetchImpl: fetchOverride = window.fetch, }) => ({
|
|
|
301
301
|
},
|
|
302
302
|
getCustomerId() {
|
|
303
303
|
var _a, _b, _c;
|
|
304
|
-
|
|
304
|
+
const id = (_c = (_b = (_a = window.ShopifyAnalytics) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.page) === null || _c === void 0 ? void 0 : _c.customerId;
|
|
305
|
+
return Promise.resolve(id != null ? String(id) : undefined);
|
|
305
306
|
},
|
|
306
307
|
/**
|
|
307
308
|
* Refreshes the cart UI: updates the header cart icon count, dispatches cart events,
|