@scayle/storefront-nuxt 7.58.3 → 7.59.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.59.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Breaking: Change default `sameSite` cookie attribute from `none` to `lax`
|
|
8
|
+
- Attach `headers` to the RPC context
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @scayle/storefront-core@7.43.0
|
|
14
|
+
|
|
3
15
|
## 7.58.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -54,7 +54,7 @@ const module = defineNuxtModule({
|
|
|
54
54
|
// How do we mark some as required?
|
|
55
55
|
session: {
|
|
56
56
|
cookieName: "$session",
|
|
57
|
-
sameSite: "
|
|
57
|
+
sameSite: "lax"
|
|
58
58
|
// TODO: If we give a default value here, nuxt will generate the runtime type incorrectly
|
|
59
59
|
// secret needs to be typed as string | string[]
|
|
60
60
|
// secret: 'current-secret',
|
package/dist/runtime/context.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getRequestIP } from "h3";
|
|
2
|
-
import { Cached } from "@scayle/storefront-core";
|
|
1
|
+
import { getRequestIP, getRequestHeaders } from "h3";
|
|
2
|
+
import { Cached, createAndPurifyHeaders } from "@scayle/storefront-core";
|
|
3
3
|
import { init as initBapi } from "@scayle/storefront-core/dist/bapi/init";
|
|
4
4
|
import {
|
|
5
5
|
generateBasketKey,
|
|
@@ -123,6 +123,7 @@ export const buildContext = async (context) => {
|
|
|
123
123
|
withParams: $storefront.withParams,
|
|
124
124
|
campaignKey: $shopConfig.storeCampaignKeyword,
|
|
125
125
|
runtimeConfiguration: config,
|
|
126
|
-
ip: getRequestIP(event, { xForwardedFor: true })
|
|
126
|
+
ip: getRequestIP(event, { xForwardedFor: true }),
|
|
127
|
+
headers: createAndPurifyHeaders(getRequestHeaders(event))
|
|
127
128
|
};
|
|
128
129
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.59.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@nuxt/kit": "3.10.2",
|
|
64
64
|
"@scayle/h3-session": "0.3.5",
|
|
65
|
-
"@scayle/storefront-core": "7.
|
|
65
|
+
"@scayle/storefront-core": "7.43.0",
|
|
66
66
|
"@scayle/unstorage-compression-driver": "0.1.2",
|
|
67
67
|
"@vueuse/core": "10.8.0",
|
|
68
68
|
"consola": "3.2.3",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"@scayle/eslint-config-storefront": "3.2.6",
|
|
86
86
|
"@scayle/prettier-config-storefront": "2.0.2",
|
|
87
87
|
"@types/node": "20.11.20",
|
|
88
|
-
"eslint": "8.
|
|
88
|
+
"eslint": "8.57.0",
|
|
89
89
|
"eslint-formatter-gitlab": "5.1.0",
|
|
90
|
-
"h3": "1.
|
|
90
|
+
"h3": "1.11.0",
|
|
91
91
|
"node-mocks-http": "1.14.1",
|
|
92
92
|
"nuxt": "3.10.2",
|
|
93
93
|
"prettier": "3.0.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"vue": ">=3.4.0"
|
|
103
103
|
},
|
|
104
104
|
"resolutions": {
|
|
105
|
-
"h3": "1.
|
|
105
|
+
"h3": "1.11.0",
|
|
106
106
|
"@vue/compiler-core": "3.4.19",
|
|
107
107
|
"@vue/shared": "3.4.19",
|
|
108
108
|
"@vue/compiler-dom": "3.4.19",
|