@plentymarkets/shop-core 1.10.3 → 1.11.0

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shop-core",
3
3
  "configKey": "shopCore",
4
- "version": "1.10.3",
4
+ "version": "1.11.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -20,7 +20,7 @@ export const useSdk = () => {
20
20
  const noCache = runtimeConfig.public.noCache || $router.currentRoute.value.query?.noCache?.toString() || "";
21
21
  const configId = runtimeConfig.public.configId?.toString();
22
22
  const pwaHashCookie = useCookie("pwa");
23
- return {
23
+ const headers = {
24
24
  ...configId && { "x-config-id": configId },
25
25
  ...token.value && { "x-csrf-token": token.value },
26
26
  ...pwaHashCookie.value && { "x-pwa-edit-hash": pwaHashCookie.value },
@@ -30,6 +30,9 @@ export const useSdk = () => {
30
30
  ...useRequestHeaders(),
31
31
  ...import.meta.server && ssrCookie.value && { cookie: ssrCookie.value }
32
32
  };
33
+ return {
34
+ ...headers
35
+ };
33
36
  };
34
37
  const headersProxy = new Proxy(
35
38
  {},
@@ -27,6 +27,7 @@ export type Events = {
27
27
  };
28
28
  'frontend:orderCreated': Order;
29
29
  'frontend:searchProduct': string;
30
+ 'frontend:paypalAPMsLoaded': null;
30
31
  'backend:AfterBasketChanged': AfterBasketChanged;
31
32
  'backend:CheckoutChanged': CheckoutChanged;
32
33
  'backend:AfterAccountAuthentication': AfterAccountAuthentication;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plentymarkets/shop-core",
3
- "version": "1.10.3",
3
+ "version": "1.11.0",
4
4
  "description": "Core module for PlentyONE Shop",
5
5
  "repository": {
6
6
  "type": "git",