@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.19.0",
3
+ "version": "8.20.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -53,7 +53,7 @@ export default {
53
53
  }`;
54
54
  }
55
55
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
56
- const PACKAGE_VERSION = "8.19.0";
56
+ const PACKAGE_VERSION = "8.20.0";
57
57
  const logger = createConsola({
58
58
  fancy: true,
59
59
  formatOptions: {
@@ -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.19.0",
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.19.0",
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",