@scayle/storefront-nuxt 8.19.0 → 8.20.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 +29 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/context.js +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `originalIp` to the RPCContext which represents the IP address of the request without considering the `x-forwarded-for` header.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
**Dependencies**
|
|
12
|
+
|
|
13
|
+
**@scayle/storefront-core v8.20.0**
|
|
14
|
+
|
|
15
|
+
- Minor
|
|
16
|
+
- Include additional client information to Auth API requests to improve security.
|
|
17
|
+
- Add `originalIp` to the RPCContext which represents the IP address of the request without considering the `x-forwarded-for` header.
|
|
18
|
+
- Patch
|
|
19
|
+
- **\[Basket\]** Pass `campaignKey` to SAPI when updating an basket item using the `updateBasketItem` RPC.
|
|
20
|
+
|
|
21
|
+
## 8.19.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
**Dependencies**
|
|
26
|
+
|
|
27
|
+
**@scayle/storefront-core v8.19.1**
|
|
28
|
+
|
|
29
|
+
- Patch
|
|
30
|
+
- Fix `getCategoriesByPath` RPC to return 404 for non-existing categories.
|
|
31
|
+
|
|
3
32
|
## 8.19.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
package/dist/runtime/context.js
CHANGED
|
@@ -122,6 +122,9 @@ export const buildContext = async (context) => {
|
|
|
122
122
|
get ip() {
|
|
123
123
|
return getRequestIP(event, { xForwardedFor: true });
|
|
124
124
|
},
|
|
125
|
+
get originalIp() {
|
|
126
|
+
return getRequestIP(event, { xForwardedFor: false });
|
|
127
|
+
},
|
|
125
128
|
get headers() {
|
|
126
129
|
return createAndPurifyHeaders(getRequestHeaders(event));
|
|
127
130
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.20.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@opentelemetry/api": "^1.9.0",
|
|
83
83
|
"@scayle/h3-session": "0.6.0",
|
|
84
|
-
"@scayle/storefront-core": "8.
|
|
84
|
+
"@scayle/storefront-core": "8.20.0",
|
|
85
85
|
"@scayle/unstorage-compression-driver": "^0.2.6",
|
|
86
86
|
"@vercel/nft": "0.29.2",
|
|
87
87
|
"@vueuse/core": "13.1.0",
|