yakuza0 2.22.1-beta.1 → 2.22.1-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.1-beta.1",
3
+ "version": "2.22.1-beta.2",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -347,7 +347,7 @@ exports.default = function () {
347
347
  while (1) {
348
348
  switch (_context.prev = _context.next) {
349
349
  case 0:
350
- if (!(ctx.method.toUpperCase() === 'GET' && ctx.path === '/sys/health-check')) {
350
+ if (!(ctx.method.toUpperCase() === 'GET' && (ctx.path === '/sys/health-check' || ctx.path === config.appConf.server.basePathMU + 'sys/health-check'))) {
351
351
  _context.next = 5;
352
352
  break;
353
353
  }
@@ -732,71 +732,62 @@ var render = function () {
732
732
  });
733
733
 
734
734
  if (!conf.server.edas.enabled) {
735
- _context2.next = 33;
735
+ _context2.next = 27;
736
736
  break;
737
737
  }
738
738
 
739
739
  _context2.prev = 15;
740
-
741
- console.log(1);
742
740
  client = new _acmSdk2.default(conf.server.edas.options);
743
-
744
- console.log(2);
745
- _context2.next = 21;
741
+ _context2.next = 19;
746
742
  return client.getConfig(conf.server.edas.dataId, conf.server.edas.group);
747
743
 
748
- case 21:
744
+ case 19:
749
745
  content = _context2.sent;
750
-
751
- console.log(3, content);
752
746
  acmConf = JSON.parse(content);
753
747
 
754
- console.log(4, acmConf);
755
748
  setConf(acmConf);
756
- console.log(5, conf);
757
- _context2.next = 33;
749
+ _context2.next = 27;
758
750
  break;
759
751
 
760
- case 29:
761
- _context2.prev = 29;
752
+ case 24:
753
+ _context2.prev = 24;
762
754
  _context2.t0 = _context2['catch'](15);
763
755
 
764
- console.log(6, _context2.t0);
765
756
  console.log(_context2.t0);
766
757
 
767
- case 33:
758
+ case 27:
768
759
  _context2.t1 = conf.dkyMode;
769
- _context2.next = _context2.t1 === "dev" ? 36 : _context2.t1 === "normal" ? 39 : _context2.t1 === "prod" ? 42 : _context2.t1 === "stupid" ? 48 : _context2.t1 === "tire" ? 56 : 62;
760
+ _context2.next = _context2.t1 === "dev" ? 30 : _context2.t1 === "normal" ? 33 : _context2.t1 === "prod" ? 36 : _context2.t1 === "stupid" ? 42 : _context2.t1 === "tire" ? 50 : 56;
770
761
  break;
771
762
 
772
- case 36:
763
+ case 30:
773
764
  // conf.security.encrypt = "none";
774
765
  // conf.security.stupid = false;
775
766
  // conf.security.helmet = true;
776
767
  // conf.server.f5Offline = false;
777
768
  conf.security.isDev = true;
778
769
  conf.dev = true;
779
- return _context2.abrupt('break', 62);
770
+ return _context2.abrupt('break', 56);
780
771
 
781
- case 39:
772
+ case 33:
782
773
  // conf.security.encrypt = "none";
783
774
  // conf.security.stupid = false;
784
775
  // conf.security.helmet = true;
785
776
  // conf.server.f5Offline = false;
786
777
  conf.security.isNormal = true;
787
778
  conf.dev = false;
788
- return _context2.abrupt('break', 62);
779
+ return _context2.abrupt('break', 56);
789
780
 
790
- case 42:
781
+ case 36:
791
782
  conf.security.encrypt = "sm";
792
783
  conf.security.stupid = false;
793
784
  conf.security.helmet = true;
794
785
  // conf.server.f5Offline = false;
795
786
  conf.security.isProd = true;
796
787
  conf.dev = false;
797
- return _context2.abrupt('break', 62);
788
+ return _context2.abrupt('break', 56);
798
789
 
799
- case 48:
790
+ case 42:
800
791
  conf.security.encrypt = "sm";
801
792
  conf.security.stupid = true;
802
793
  conf.security.helmet = true;
@@ -805,18 +796,18 @@ var render = function () {
805
796
  conf.server.csp.enabled = true;
806
797
  conf.server.sri.enabled = true;
807
798
  conf.dev = false;
808
- return _context2.abrupt('break', 62);
799
+ return _context2.abrupt('break', 56);
809
800
 
810
- case 56:
801
+ case 50:
811
802
  conf.security.encrypt = "none";
812
803
  conf.security.stupid = false;
813
804
  conf.security.helmet = false;
814
805
  // conf.server.f5Offline = false;
815
806
  conf.security.isTire = true;
816
807
  conf.dev = false;
817
- return _context2.abrupt('break', 62);
808
+ return _context2.abrupt('break', 56);
818
809
 
819
- case 62:
810
+ case 56:
820
811
 
821
812
  // conf.router.config['app.examples'].enabled = true;
822
813
  if (conf.server.yk4Addr) {
@@ -916,7 +907,7 @@ var render = function () {
916
907
  conf.server.csp.directives = directives;
917
908
 
918
909
  // const appPortUsed = [];
919
- _context2.next = 83;
910
+ _context2.next = 77;
920
911
  return _yakuza._.asyncMap(conf.router.config, function () {
921
912
  var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(v, key) {
922
913
  var name, arr, length, num;
@@ -1099,7 +1090,7 @@ var render = function () {
1099
1090
  };
1100
1091
  }());
1101
1092
 
1102
- case 83:
1093
+ case 77:
1103
1094
  // console.log(conf.router.config);
1104
1095
 
1105
1096
  conf.shareRule.app = conf.shareRule.app.map(function (ap) {
@@ -1221,12 +1212,12 @@ var render = function () {
1221
1212
 
1222
1213
  return _context2.abrupt('return', { conf: conf });
1223
1214
 
1224
- case 94:
1215
+ case 88:
1225
1216
  case 'end':
1226
1217
  return _context2.stop();
1227
1218
  }
1228
1219
  }
1229
- }, _callee2, undefined, [[15, 29]]);
1220
+ }, _callee2, undefined, [[15, 24]]);
1230
1221
  }));
1231
1222
 
1232
1223
  return function render(_x) {