@plentymarkets/shop-core 1.21.3 → 1.21.5

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": "@plentymarkets/shop-core",
3
3
  "configKey": "shopCore",
4
- "version": "1.21.3",
4
+ "version": "1.21.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -1,5 +1,5 @@
1
1
  import { isServer } from "../runtime.js";
2
- import cookie from "cookie";
2
+ import { parse } from "cookie-es";
3
3
  const parseOnlyNameAndValue = (cookieString) => {
4
4
  const equalIndex = cookieString.indexOf("=");
5
5
  if (equalIndex === -1) return null;
@@ -13,10 +13,10 @@ const parseOnlyNameAndValue = (cookieString) => {
13
13
  export const parseHeaderCookies = (context) => {
14
14
  if (isServer()) {
15
15
  if (context.ssrCookie && context.ssrCookie.length > 0) {
16
- const parsedCookie = cookie.parse(context?.requestHeaders?.cookie ?? "");
16
+ const parsedCookie = parse(context?.requestHeaders?.cookie ?? "");
17
17
  const ssrParsedCookie = {};
18
- for (const cookie2 of context.ssrCookie) {
19
- const parsed = parseOnlyNameAndValue(cookie2);
18
+ for (const cookie of context.ssrCookie) {
19
+ const parsed = parseOnlyNameAndValue(cookie);
20
20
  if (parsed) {
21
21
  ssrParsedCookie[parsed.name] = parsed.value;
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plentymarkets/shop-core",
3
- "version": "1.21.3",
3
+ "version": "1.21.5",
4
4
  "description": "Core module for PlentyONE Shop",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@plentymarkets/shop-api": "^0.154.1",
53
53
  "@vue-storefront/sdk": "^3.4.1",
54
- "cookie": "^1.0.2",
54
+ "cookie-es": "^2.0.0",
55
55
  "js-sha256": "^0.11.0",
56
56
  "knitwork": "^1.3.0",
57
57
  "ofetch": "^1.5.1",
@@ -61,15 +61,15 @@
61
61
  "prettier": "^3.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@testing-library/vue": "^8.1.0",
65
64
  "@nuxt/devtools": "^3.1.0",
66
65
  "@nuxt/eslint-config": "^0.7.6",
67
- "@nuxt/kit": "^4.1.3",
66
+ "@nuxt/kit": "^4.3.1",
68
67
  "@nuxt/module-builder": "^1.0.2",
69
- "@nuxt/schema": "^4.1.3",
68
+ "@nuxt/schema": "^4.3.1",
70
69
  "@nuxt/test-utils": "^3.19.0",
71
70
  "@nuxtjs/i18n": "9.5.4",
72
71
  "@playwright/test": "^1.57.0",
72
+ "@testing-library/vue": "^8.1.0",
73
73
  "@types/node": "latest",
74
74
  "@typescript-eslint/parser": "^8.47.0",
75
75
  "@vitest/coverage-v8": "^3.2.4",
@@ -85,7 +85,7 @@
85
85
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
86
86
  "happy-dom": "^20.0.2",
87
87
  "nuxi": "3.32.0",
88
- "nuxt": "^4.1.3",
88
+ "nuxt": "^4.3.1",
89
89
  "prettier": "^3.6.2",
90
90
  "tsx": "^4.21.0",
91
91
  "typescript": "~5.9.2",