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