yakuza0 2.22.32-beta.0 → 2.22.32-beta.2

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.32-beta.0",
3
+ "version": "2.22.32-beta.2",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -84,7 +84,7 @@ exports.default = function () {
84
84
  var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(_ref) {
85
85
  var config = _ref.config;
86
86
 
87
- var appConf, appName, server, pIp, pHost, timeout, commonHeaders, getHeader, isFastDfs, apiVer, getUc, build, baseConfig, app, _headers, basePath;
87
+ var appConf, appName, server, pIp, pHost, timeout, commonHeaders, getHeader, isFastDfs, apiVer, getUc, build, baseConfig, app, _th, th, basePath;
88
88
 
89
89
  return _regenerator2.default.wrap(function _callee3$(_context3) {
90
90
  while (1) {
@@ -413,17 +413,20 @@ exports.default = function () {
413
413
  }
414
414
  });
415
415
 
416
- if (_config2.default.security.isTire) {
416
+ if (_config2.default.security.isTire || true) {
417
+ console.log(_def.variable.shareRuleHeader, (0, _stringify2.default)(_config2.default.shareRule), 22);
418
+ th = (_th = {}, (0, _defineProperty3.default)(_th, _def.variable.ipHeader, '127.0.0.1'), (0, _defineProperty3.default)(_th, _def.variable.childKeyHeader, _config2.default.childKey), (0, _defineProperty3.default)(_th, _def.variable.appCodeHeader, config.appConf.appCode), (0, _defineProperty3.default)(_th, _def.variable.appKeyHeader, config.appKey), (0, _defineProperty3.default)(_th, _def.variable.shareRuleHeader, (0, _stringify2.default)(_config2.default.shareRule)), _th);
417
419
  basePath = _server._.bothAddFix(config.appConf.server.basePath, "/");
418
420
 
419
421
  app.use(basePath + "apiv1", createProxyMiddleware((0, _extends5.default)({}, baseConfig, {
420
422
  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), (0, _defineProperty3.default)(_headers, _def.variable.shareRuleHeader, (0, _stringify2.default)(config.shareRule)), _headers),
423
+ headers: th,
422
424
  pathRewrite: (0, _defineProperty3.default)({}, "^" + basePath + "apiv1", "/" + _config2.default.proxyServer.apiKey + "/" + _config2.default.name + "/client/backend")
423
425
  })));
424
426
 
425
427
  app.use(basePath + "apiv2", createProxyMiddleware((0, _extends5.default)({}, baseConfig, {
426
428
  target: _config2.default.server.orbProtocol.http + "//" + _config2.default.server.orbHost + ":" + _config2.default.server.orbPort,
429
+ headers: th,
427
430
  pathRewrite: (0, _defineProperty3.default)({}, "^" + basePath + "apiv2", "/apiv2")
428
431
  })));
429
432
  }