@scayle/storefront-nuxt 7.66.0 → 7.66.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.66.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- We fixed a bug where we would attach a session to a request for `/favicon.ico` when no favicon was present in the public directory.
|
|
8
|
+
|
|
9
|
+
This leads to a session conflict when using a path-based shop selector.
|
|
10
|
+
|
|
11
|
+
## 7.66.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Fix RpcContext containing outdated data for the remainder of the request after mutating the session data
|
|
16
|
+
|
|
3
17
|
## 7.66.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
package/dist/runtime/context.mjs
CHANGED
|
@@ -78,7 +78,7 @@ export const buildContext = async (context) => {
|
|
|
78
78
|
const bapiConfig = $shopConfig.bapi ?? $storefront.bapi;
|
|
79
79
|
const appKeys = $shopConfig.appKeys ?? $storefront.appKeys;
|
|
80
80
|
const idpConfig = $shopConfig.idp ?? $storefront.idp;
|
|
81
|
-
|
|
81
|
+
const baseContext = {
|
|
82
82
|
cached: new Cached($cache, $log, "", $storefront.cache?.enabled ?? true).execute,
|
|
83
83
|
bapiClient: initBapi({
|
|
84
84
|
host: bapiConfig.host,
|
|
@@ -86,7 +86,6 @@ export const buildContext = async (context) => {
|
|
|
86
86
|
authentication: "token",
|
|
87
87
|
token: bapiConfig.token
|
|
88
88
|
}),
|
|
89
|
-
...await sessionProperties(context),
|
|
90
89
|
auth: {
|
|
91
90
|
resetPasswordUrl: $shopConfig.auth?.resetPasswordUrl
|
|
92
91
|
},
|
|
@@ -130,4 +129,8 @@ export const buildContext = async (context) => {
|
|
|
130
129
|
ip: getRequestIP(event, { xForwardedFor: true }),
|
|
131
130
|
headers: createAndPurifyHeaders(getRequestHeaders(event))
|
|
132
131
|
};
|
|
132
|
+
return Object.defineProperties({}, {
|
|
133
|
+
...Object.getOwnPropertyDescriptors(baseContext),
|
|
134
|
+
...Object.getOwnPropertyDescriptors(await sessionProperties(context))
|
|
135
|
+
});
|
|
133
136
|
};
|
|
@@ -114,6 +114,9 @@ export default defineEventHandler(async (event) => {
|
|
|
114
114
|
if (path.startsWith("/__nuxt")) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
|
+
if (path === "/favicon.ico") {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
117
120
|
const config = useRuntimeConfig();
|
|
118
121
|
const $storefrontConfig = config.storefront;
|
|
119
122
|
if (path === `${$storefrontConfig.apiBasePath ?? "/api"}/up`) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.66.
|
|
4
|
+
"version": "7.66.2",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@scayle/unstorage-compression-driver": "0.1.3",
|
|
68
68
|
"@vueuse/core": "10.9.0",
|
|
69
69
|
"consola": "3.2.3",
|
|
70
|
-
"core-js": "3.
|
|
70
|
+
"core-js": "3.37.0",
|
|
71
71
|
"defu": "6.1.4",
|
|
72
72
|
"jose": "^5.2.0",
|
|
73
73
|
"knitwork": "1.1.0",
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"radash": "12.1.0",
|
|
77
77
|
"uncrypto": "0.1.3",
|
|
78
78
|
"unstorage": "1.10.2",
|
|
79
|
-
"vue-router": "4.3.
|
|
79
|
+
"vue-router": "4.3.2",
|
|
80
80
|
"yn": "5.0.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@nuxt/module-builder": "0.5.5",
|
|
84
84
|
"@nuxt/schema": "3.11.1",
|
|
85
|
-
"@nuxt/test-utils": "3.12.
|
|
85
|
+
"@nuxt/test-utils": "3.12.1",
|
|
86
86
|
"@scayle/eslint-config-storefront": "3.2.7",
|
|
87
87
|
"@scayle/eslint-plugin-vue-composable": "0.1.1",
|
|
88
88
|
"@types/node": "20.12.7",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"nuxt": "3.11.1",
|
|
95
95
|
"publint": "0.2.7",
|
|
96
96
|
"vitest": "1.5.0",
|
|
97
|
-
"vue-tsc": "2.0.
|
|
97
|
+
"vue-tsc": "2.0.14"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"h3": "^1.10.0",
|