@devite/shopware-client 1.5.3 → 1.5.4
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 -3
- package/dist/index.mjs +1 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13058,9 +13058,7 @@ class CartClient extends Client {
|
|
|
13058
13058
|
async addLineItems(request) {
|
|
13059
13059
|
const response = await this.post(
|
|
13060
13060
|
"/checkout/cart/line-item",
|
|
13061
|
-
this.client.withContextToken({
|
|
13062
|
-
body: new JsonPayload(request)
|
|
13063
|
-
})
|
|
13061
|
+
this.client.authStore.getEntry(AuthenticationType.CONTEXT_TOKEN) ? this.client.withContextToken({ body: new JsonPayload(request) }) : { body: new JsonPayload(request) }
|
|
13064
13062
|
);
|
|
13065
13063
|
if (response.statusCode === 200)
|
|
13066
13064
|
return response.body.data;
|
package/dist/index.mjs
CHANGED
|
@@ -13056,9 +13056,7 @@ class CartClient extends Client {
|
|
|
13056
13056
|
async addLineItems(request) {
|
|
13057
13057
|
const response = await this.post(
|
|
13058
13058
|
"/checkout/cart/line-item",
|
|
13059
|
-
this.client.withContextToken({
|
|
13060
|
-
body: new JsonPayload(request)
|
|
13061
|
-
})
|
|
13059
|
+
this.client.authStore.getEntry(AuthenticationType.CONTEXT_TOKEN) ? this.client.withContextToken({ body: new JsonPayload(request) }) : { body: new JsonPayload(request) }
|
|
13062
13060
|
);
|
|
13063
13061
|
if (response.statusCode === 200)
|
|
13064
13062
|
return response.body.data;
|