@devite/shopware-client 1.4.1 → 1.4.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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12092,7 +12092,7 @@ class CartClient extends Client {
|
|
|
12092
12092
|
async getOrCreateCart() {
|
|
12093
12093
|
const response = await this.get(
|
|
12094
12094
|
"/checkout/cart",
|
|
12095
|
-
this.client.withContextToken()
|
|
12095
|
+
this.client.authStore.getEntry(AuthenticationType.CONTEXT_TOKEN) ? this.client.withContextToken() : void 0
|
|
12096
12096
|
);
|
|
12097
12097
|
if (response.statusCode === 200)
|
|
12098
12098
|
return response.body.data;
|
package/dist/index.mjs
CHANGED
|
@@ -12090,7 +12090,7 @@ class CartClient extends Client {
|
|
|
12090
12090
|
async getOrCreateCart() {
|
|
12091
12091
|
const response = await this.get(
|
|
12092
12092
|
"/checkout/cart",
|
|
12093
|
-
this.client.withContextToken()
|
|
12093
|
+
this.client.authStore.getEntry(AuthenticationType.CONTEXT_TOKEN) ? this.client.withContextToken() : void 0
|
|
12094
12094
|
);
|
|
12095
12095
|
if (response.statusCode === 200)
|
|
12096
12096
|
return response.body.data;
|