yakuza0 2.22.31 → 2.22.32-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.22.31",
3
+ "version": "2.22.32-beta.1",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -418,7 +418,7 @@ exports.default = function () {
418
418
 
419
419
  app.use(basePath + "apiv1", createProxyMiddleware((0, _extends5.default)({}, baseConfig, {
420
420
  target: _config2.default.server.orbProtocol.http + "//" + _config2.default.server.orbHost + ":" + _config2.default.server.orbPort,
421
- headers: (_headers = {}, (0, _defineProperty3.default)(_headers, _def.variable.ipHeader, '127.0.0.1'), (0, _defineProperty3.default)(_headers, _def.variable.childKeyHeader, _config2.default.childKey), (0, _defineProperty3.default)(_headers, _def.variable.appCodeHeader, config.appConf.appCode), (0, _defineProperty3.default)(_headers, _def.variable.appKeyHeader, config.appKey), _headers),
421
+ headers: (_headers = {}, (0, _defineProperty3.default)(_headers, _def.variable.ipHeader, '127.0.0.1'), (0, _defineProperty3.default)(_headers, _def.variable.childKeyHeader, _config2.default.childKey), (0, _defineProperty3.default)(_headers, _def.variable.appCodeHeader, config.appConf.appCode), (0, _defineProperty3.default)(_headers, _def.variable.appKeyHeader, config.appKey), (0, _defineProperty3.default)(_headers, _def.variable.shareRuleHeader, (0, _stringify2.default)(_config2.default.shareRule)), _headers),
422
422
  pathRewrite: (0, _defineProperty3.default)({}, "^" + basePath + "apiv1", "/" + _config2.default.proxyServer.apiKey + "/" + _config2.default.name + "/client/backend")
423
423
  })));
424
424
 
@@ -432,10 +432,10 @@ exports.default = function () {
432
432
  // let clientPath = `${main}/dist/client`;
433
433
  // app.use(`/_nuxt`, express.static(clientPath))
434
434
  // app.use(`${_.bothAddFix(server.basePath, "/")}_nuxt`, express.static(clientPath))
435
-
436
435
  app.use('/', createProxyMiddleware((0, _extends5.default)({}, baseConfig, {
437
436
  target: "http://127.0.0.1:" + config.appConf.appPort,
438
437
  ws: true,
438
+ // pathRewrite: {['^/' + server.basePath + '/api-ws'] : '/api-ws'},
439
439
  onProxyRes: function onProxyRes(proxyRes, req, res) {
440
440
  var isDoc = ['text/html; charset=utf-8'].includes((proxyRes.headers['content-type'] || '').toLowerCase());
441
441