@scayle/storefront-nuxt 8.19.1 → 8.20.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ **Dependencies**
8
+
9
+ **@scayle/storefront-core v8.20.1**
10
+
11
+ - Patch
12
+ - Re-exported `BasketKey` and `ApplicablePromotion` from `@scayle/storefront-api`
13
+
14
+ ## 8.20.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Add `originalIp` to the RPCContext which represents the IP address of the request without considering the `x-forwarded-for` header.
19
+
20
+ ### Patch Changes
21
+
22
+ **Dependencies**
23
+
24
+ **@scayle/storefront-core v8.20.0**
25
+
26
+ - Minor
27
+ - Include additional client information to Auth API requests to improve security.
28
+ - Add `originalIp` to the RPCContext which represents the IP address of the request without considering the `x-forwarded-for` header.
29
+ - Patch
30
+ - **\[Basket\]** Pass `campaignKey` to SAPI when updating an basket item using the `updateBasketItem` RPC.
31
+
3
32
  ## 8.19.1
4
33
 
5
34
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.19.1",
3
+ "version": "8.20.1",
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.1";
56
+ const PACKAGE_VERSION = "8.20.1";
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.1",
4
+ "version": "8.20.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -70,7 +70,8 @@
70
70
  "prep": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
71
71
  "format": "dprint check",
72
72
  "format:fix": "dprint fmt",
73
- "lint": "eslint . --format gitlab",
73
+ "lint": "eslint .",
74
+ "lint:ci": "eslint . --format gitlab",
74
75
  "lint:fix": "eslint . --fix",
75
76
  "typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
76
77
  "package:lint": "publint",
@@ -81,7 +82,7 @@
81
82
  "dependencies": {
82
83
  "@opentelemetry/api": "^1.9.0",
83
84
  "@scayle/h3-session": "0.6.0",
84
- "@scayle/storefront-core": "8.19.1",
85
+ "@scayle/storefront-core": "8.20.1",
85
86
  "@scayle/unstorage-compression-driver": "^0.2.6",
86
87
  "@vercel/nft": "0.29.2",
87
88
  "@vueuse/core": "13.1.0",
@@ -135,12 +136,6 @@
135
136
  "unstorage": "^1.10.1",
136
137
  "vue": "^3.4.0"
137
138
  },
138
- "resolutions": {
139
- "@nuxt/kit": "3.15.4",
140
- "@nuxt/schema": "3.15.4",
141
- "h3": "1.15.0",
142
- "vue": "3.5.13"
143
- },
144
139
  "volta": {
145
140
  "node": "22.14.0"
146
141
  }