@scayle/storefront-nuxt 7.66.0 → 7.66.1
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 +6 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/context.mjs +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
};
|
package/package.json
CHANGED