yakuza0 2.23.21 → 2.23.22-beta.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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.23.21",
3
+ "version": "2.23.22-beta.0",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -114,13 +114,13 @@
114
114
  "ua-parser-js": "^0.7.20",
115
115
  "uglify-js": "^3.17.4",
116
116
  "v8-compile-cache": "^2.0.2",
117
- "yakuza1": "^2.6.16"
117
+ "yakuza1": "^2.6.17"
118
118
  },
119
119
  "peerDependencies": {
120
120
  "@evolvere/nuxt": "2.15.9",
121
121
  "core-js": "3.10.1",
122
122
  "eslint": "7.2.0",
123
- "yakuza1": "^2.6.16"
123
+ "yakuza1": "^2.6.17"
124
124
  },
125
125
  "__npminstall_done": false
126
126
  }
package/pxnpm-lock.yaml CHANGED
@@ -285,8 +285,8 @@ dependencies:
285
285
  specifier: ^2.0.2
286
286
  version: 2.4.0
287
287
  yakuza1:
288
- specifier: ^2.6.16
289
- version: 2.6.16(core-js@3.10.1)
288
+ specifier: ^2.6.17
289
+ version: 2.6.17(core-js@3.10.1)
290
290
 
291
291
  devDependencies:
292
292
  babel-cli:
@@ -7771,7 +7771,7 @@ packages:
7771
7771
  vue-template-compiler:
7772
7772
  optional: true
7773
7773
  dependencies:
7774
- '@babel/code-frame': 7.10.4
7774
+ '@babel/code-frame': 7.26.2
7775
7775
  chalk: 2.4.2
7776
7776
  eslint: 7.32.0
7777
7777
  micromatch: 3.1.10
@@ -16782,8 +16782,8 @@ packages:
16782
16782
  resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
16783
16783
  dev: false
16784
16784
 
16785
- /yakuza1@2.6.16(core-js@3.10.1):
16786
- resolution: {integrity: sha512-/zs0BuG5XzIz3K4MhCA66M8iW7AY2D75FnqJZF6ql+uknyb1S5AONn9wx8rdo86JGloaSmFmGrzg5JN6Y8hyAw==}
16785
+ /yakuza1@2.6.17(core-js@3.10.1):
16786
+ resolution: {integrity: sha512-TJYgz2Bv+27+IyeRSfbKWYhtwOKfGFjYjRelU7/wxtiI/KOO5VjAlhcWIvfWXIa8X/fm9O2YR6SAo5tbxjL91w==}
16787
16787
  peerDependencies:
16788
16788
  core-js: 3.10.1
16789
16789
  dependencies:
@@ -227,6 +227,10 @@ exports.default = function () {
227
227
  // console.log(req.headers, 11);
228
228
  // console.log(req.crossParams.originUrl, 11);
229
229
  // console.log(req.crossParams.originUrl.match(new RegExp(`^\/(apiv2)\/`)), 22);
230
+ // 保存原始的 Host 到 X-Host 请求头中
231
+ var originalHost = req.headers.host;
232
+ proxyReq.setHeader('x-cln-Host', originalHost);
233
+
230
234
  if (!_config2.default.security.helmet) {
231
235
  proxyReq.setHeader(_def.variable.appCodeHeader, req && req.headers[_def.variable.appCodeHeader.toLowerCase()] || config.appConf && config.appConf.appCode);
232
236
  } else {