@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 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/shopware-client",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Third party API client for Shopware 6.",
5
5
  "repository": "devite-io/shopware-client",
6
6
  "license": "MIT",