yakuza0 2.22.14-beta.0 → 2.22.14

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/cli/index.js CHANGED
@@ -62,7 +62,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
62
62
  process.env.YK_USAGE = 'CLI';
63
63
 
64
64
  var _require = require('child_process'),
65
- execSync = _require.execSync,
65
+ spawnSync = _require.spawnSync,
66
66
  spawn = _require.spawn;
67
67
  // const util = require('util');
68
68
  // const spawn = util.promisify(require('child_process').spawn);
@@ -193,15 +193,11 @@ var alias = function alias() {
193
193
  _server.global.__cln_appName__ = options.appName;
194
194
  };
195
195
 
196
- var execCmd = function execCmd(cmd) {
197
- execSync(cmd, { shell: true, stdio: 'inherit' });
198
- };
199
-
200
196
  var run = exports.run = function () {
201
- var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(_argv) {
202
- return _regenerator2.default.wrap(function _callee15$(_context15) {
197
+ var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(_argv) {
198
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
203
199
  while (1) {
204
- switch (_context15.prev = _context15.next) {
200
+ switch (_context14.prev = _context14.next) {
205
201
  case 0:
206
202
  _commander2.default.version(_package2.default.version, '-v, --version');
207
203
 
@@ -310,50 +306,18 @@ var run = exports.run = function () {
310
306
  };
311
307
  }());
312
308
 
313
- _commander2.default.command('image').description('Build image.')
314
- // .option('-y0ba, --yk0-build-app <appName>', 'Building a specified application')
315
- .action(function () {
316
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(cmd) {
317
- var CS, CLNENV, CLNWORKERS, CLNVERSION;
318
- return _regenerator2.default.wrap(function _callee5$(_context5) {
319
- while (1) {
320
- switch (_context5.prev = _context5.next) {
321
- case 0:
322
- CS = (0, _server.gPwd)();
323
- CLNENV = process.env.CLN_IMAGE_ENV || 'docker';
324
- CLNWORKERS = process.env.CLN_IMAGE_WORKERS || '2';
325
- CLNVERSION = process.env.CLN_IMAGE_VERSION || CS;
326
-
327
- execCmd('npm i -g pxnpm');
328
- // execCmd('pxnpm update');
329
- execCmd('cross-env YK_ENV=' + CLNENV + ' YK_SERVER_ENV=' + CLNENV + ' YK_VERSIONSHA=' + CS + ' YK_DOCKERNAME=' + CS + ' YK_MACHINE_TYPE=workstation YK0_env=docker pxnpm run build -workers=' + CLNWORKERS);
330
- execCmd('cross-env docker build --build-arg YK_VERSIONSHA=' + CS + ' --build-arg YK_ENV=' + CLNENV + ' -t cln_img:' + CLNVERSION + ' .');
331
-
332
- case 7:
333
- case 'end':
334
- return _context5.stop();
335
- }
336
- }
337
- }, _callee5, undefined);
338
- }));
339
-
340
- return function (_x7) {
341
- return _ref9.apply(this, arguments);
342
- };
343
- }());
344
-
345
309
  _commander2.default.command('build').description('build a model').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-e, --env <envName>', 'yk server env')
346
310
  // .action(async ({app}) => {
347
311
  .action(function () {
348
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_ref10) {
349
- var yk0BuildApp = _ref10.yk0BuildApp,
350
- env = _ref10.env;
312
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_ref9) {
313
+ var yk0BuildApp = _ref9.yk0BuildApp,
314
+ env = _ref9.env;
351
315
 
352
- var _ref12, apps, workers, cpuLen, i, run;
316
+ var _ref11, apps, workers, cpuLen, i, run;
353
317
 
354
- return _regenerator2.default.wrap(function _callee7$(_context7) {
318
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
355
319
  while (1) {
356
- switch (_context7.prev = _context7.next) {
320
+ switch (_context6.prev = _context6.next) {
357
321
  case 0:
358
322
  // process.env.NODE_ENV = 'production';
359
323
  // process.env.NODE_CMD = 'build';
@@ -363,12 +327,12 @@ var run = exports.run = function () {
363
327
  _consola2.default.log('In the preparation...');
364
328
  process.env.NODE_ENV = 'production';
365
329
  process.env.NODE_CMD = 'build';
366
- _context7.next = 5;
330
+ _context6.next = 5;
367
331
  return gi({ app: yk0BuildApp, ykServerEnv: env });
368
332
 
369
333
  case 5:
370
- _ref12 = _context7.sent;
371
- apps = _ref12.apps;
334
+ _ref11 = _context6.sent;
335
+ apps = _ref11.apps;
372
336
  workers = process.env.npm_config_workers;
373
337
  cpuLen = _os2.default.cpus().length;
374
338
 
@@ -391,10 +355,10 @@ var run = exports.run = function () {
391
355
  };
392
356
 
393
357
  _server._.asyncMap(apps, function () {
394
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(key, j) {
395
- return _regenerator2.default.wrap(function _callee6$(_context6) {
358
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(key, j) {
359
+ return _regenerator2.default.wrap(function _callee5$(_context5) {
396
360
  while (1) {
397
- switch (_context6.prev = _context6.next) {
361
+ switch (_context5.prev = _context5.next) {
398
362
  case 0:
399
363
  if (j < cpuLen) {
400
364
  i = j;
@@ -403,27 +367,27 @@ var run = exports.run = function () {
403
367
 
404
368
  case 1:
405
369
  case 'end':
406
- return _context6.stop();
370
+ return _context5.stop();
407
371
  }
408
372
  }
409
- }, _callee6, undefined);
373
+ }, _callee5, undefined);
410
374
  }));
411
375
 
412
- return function (_x9, _x10) {
413
- return _ref13.apply(this, arguments);
376
+ return function (_x8, _x9) {
377
+ return _ref12.apply(this, arguments);
414
378
  };
415
379
  }());
416
380
 
417
381
  case 13:
418
382
  case 'end':
419
- return _context7.stop();
383
+ return _context6.stop();
420
384
  }
421
385
  }
422
- }, _callee7, undefined);
386
+ }, _callee6, undefined);
423
387
  }));
424
388
 
425
- return function (_x8) {
426
- return _ref11.apply(this, arguments);
389
+ return function (_x7) {
390
+ return _ref10.apply(this, arguments);
427
391
  };
428
392
  }());
429
393
 
@@ -431,131 +395,131 @@ var run = exports.run = function () {
431
395
  // .option('-y0ba, --yk0-build-app <appName>', 'Building a specified application')
432
396
  // .action(async ({app}) => {
433
397
  .action(function () {
434
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(cmd) {
435
- return _regenerator2.default.wrap(function _callee8$(_context8) {
398
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(cmd) {
399
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
436
400
  while (1) {
437
- switch (_context8.prev = _context8.next) {
401
+ switch (_context7.prev = _context7.next) {
438
402
  case 0:
439
403
  process.env.NODE_ENV = 'production';
440
404
  process.env.NODE_CMD = 'build';
441
405
  // console.log(app);
442
406
  // gi({app: yk0BuildApp});
443
407
  alias({ appName: cmd });
444
- _context8.next = 5;
408
+ _context7.next = 5;
445
409
  return require(params.serverPath)('build', cmd);
446
410
 
447
411
  case 5:
448
412
  case 'end':
449
- return _context8.stop();
413
+ return _context7.stop();
450
414
  }
451
415
  }
452
- }, _callee8, undefined);
416
+ }, _callee7, undefined);
453
417
  }));
454
418
 
455
- return function (_x11) {
456
- return _ref14.apply(this, arguments);
419
+ return function (_x10) {
420
+ return _ref13.apply(this, arguments);
457
421
  };
458
422
  }());
459
423
 
460
- _commander2.default.command('generate').alias('g').description('generate a model').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
461
- return _regenerator2.default.wrap(function _callee9$(_context9) {
424
+ _commander2.default.command('generate').alias('g').description('generate a model').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
425
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
462
426
  while (1) {
463
- switch (_context9.prev = _context9.next) {
427
+ switch (_context8.prev = _context8.next) {
464
428
  case 0:
465
429
  process.env.NODE_ENV = 'production';
466
- _context9.next = 3;
430
+ _context8.next = 3;
467
431
  return gi();
468
432
 
469
433
  case 3:
470
- _context9.prev = 3;
471
- _context9.next = 6;
434
+ _context8.prev = 3;
435
+ _context8.next = 6;
472
436
  return nuxtCli.run(['generate']);
473
437
 
474
438
  case 6:
475
- _context9.next = 12;
439
+ _context8.next = 12;
476
440
  break;
477
441
 
478
442
  case 8:
479
- _context9.prev = 8;
480
- _context9.t0 = _context9['catch'](3);
443
+ _context8.prev = 8;
444
+ _context8.t0 = _context8['catch'](3);
481
445
 
482
- _consola2.default.fatal(_context9.t0);
446
+ _consola2.default.fatal(_context8.t0);
483
447
  process.exit(2);
484
448
 
485
449
  case 12:
486
450
  case 'end':
487
- return _context9.stop();
451
+ return _context8.stop();
488
452
  }
489
453
  }
490
- }, _callee9, undefined, [[3, 8]]);
454
+ }, _callee8, undefined, [[3, 8]]);
491
455
  })));
492
456
 
493
- _commander2.default.command('clean').description('clean cache').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
494
- return _regenerator2.default.wrap(function _callee10$(_context10) {
457
+ _commander2.default.command('clean').description('clean cache').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
458
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
495
459
  while (1) {
496
- switch (_context10.prev = _context10.next) {
460
+ switch (_context9.prev = _context9.next) {
497
461
  case 0:
498
462
  _rimraf2.default.sync(_paths2.default.hardSourceCache);
499
463
  _rimraf2.default.sync(_paths2.default.ykRootCacheDir);
500
464
 
501
465
  case 2:
502
466
  case 'end':
503
- return _context10.stop();
467
+ return _context9.stop();
504
468
  }
505
469
  }
506
- }, _callee10, undefined);
470
+ }, _callee9, undefined);
507
471
  })));
508
472
 
509
473
  _commander2.default.command('verify <cmd>').option('-ed, --edit <envName>', 'commit file').option('-m, --msg <msg>', 'commit msg').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-e, --env <envName>', 'yk server env').description('husky').action(function () {
510
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(cmd, _ref17) {
511
- var edit = _ref17.edit,
512
- msg = _ref17.msg,
513
- yk0BuildApp = _ref17.yk0BuildApp,
514
- env = _ref17.env;
515
- return _regenerator2.default.wrap(function _callee11$(_context11) {
474
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(cmd, _ref16) {
475
+ var edit = _ref16.edit,
476
+ msg = _ref16.msg,
477
+ yk0BuildApp = _ref16.yk0BuildApp,
478
+ env = _ref16.env;
479
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
516
480
  while (1) {
517
- switch (_context11.prev = _context11.next) {
481
+ switch (_context10.prev = _context10.next) {
518
482
  case 0:
519
483
  alias({ appName: "__common" });
520
484
 
521
485
  if (!(cmd !== "commit-init")) {
522
- _context11.next = 4;
486
+ _context10.next = 4;
523
487
  break;
524
488
  }
525
489
 
526
- _context11.next = 4;
490
+ _context10.next = 4;
527
491
  return gi({ app: yk0BuildApp, ykServerEnv: env, appsNoneExit: false });
528
492
 
529
493
  case 4:
530
- _context11.t0 = cmd;
531
- _context11.next = _context11.t0 === "commit-init" ? 7 : 8;
494
+ _context10.t0 = cmd;
495
+ _context10.next = _context10.t0 === "commit-init" ? 7 : 8;
532
496
  break;
533
497
 
534
498
  case 7:
535
- return _context11.abrupt('break', 14);
499
+ return _context10.abrupt('break', 14);
536
500
 
537
501
  case 8:
538
- _context11.next = 10;
502
+ _context10.next = 10;
539
503
  return (0, _verify.commitEsLint)({ edit: edit });
540
504
 
541
505
  case 10:
542
- _context11.next = 12;
506
+ _context10.next = 12;
543
507
  return (0, _verify.commitStyleLint)({ edit: edit });
544
508
 
545
509
  case 12:
546
- _context11.next = 14;
510
+ _context10.next = 14;
547
511
  return (0, _verify.commitMsg)({ edit: msg });
548
512
 
549
513
  case 14:
550
514
  case 'end':
551
- return _context11.stop();
515
+ return _context10.stop();
552
516
  }
553
517
  }
554
- }, _callee11, undefined);
518
+ }, _callee10, undefined);
555
519
  }));
556
520
 
557
- return function (_x12, _x13) {
558
- return _ref18.apply(this, arguments);
521
+ return function (_x11, _x12) {
522
+ return _ref17.apply(this, arguments);
559
523
  };
560
524
  }()
561
525
  // case "commit-eslint":
@@ -570,78 +534,78 @@ var run = exports.run = function () {
570
534
  );
571
535
 
572
536
  _commander2.default.command('server <cmd>').alias('s').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-e, --env <envName>', 'yk server env').description('service control').action(function () {
573
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(cmd, _ref19) {
574
- var yk0BuildApp = _ref19.yk0BuildApp,
575
- env = _ref19.env;
537
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(cmd, _ref18) {
538
+ var yk0BuildApp = _ref18.yk0BuildApp,
539
+ env = _ref18.env;
576
540
 
577
- var _ref21, apps;
541
+ var _ref20, apps;
578
542
 
579
- return _regenerator2.default.wrap(function _callee13$(_context13) {
543
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
580
544
  while (1) {
581
- switch (_context13.prev = _context13.next) {
545
+ switch (_context12.prev = _context12.next) {
582
546
  case 0:
583
547
  if (!(_os2.default.platform() === 'win32')) {
584
- _context13.next = 3;
548
+ _context12.next = 3;
585
549
  break;
586
550
  }
587
551
 
588
552
  _consola2.default.error(_msg.errMsg['os.win32.cmd.server']);
589
- return _context13.abrupt('return');
553
+ return _context12.abrupt('return');
590
554
 
591
555
  case 3:
592
556
  process.env.NODE_ENV = 'production';
593
557
  process.env.NODE_CMD = 'server ' + cmd;
594
- _context13.next = 7;
558
+ _context12.next = 7;
595
559
  return gi({ app: yk0BuildApp, ykServerEnv: env });
596
560
 
597
561
  case 7:
598
- _ref21 = _context13.sent;
599
- apps = _ref21.apps;
562
+ _ref20 = _context12.sent;
563
+ apps = _ref20.apps;
600
564
 
601
565
  if (!['start', 'stop', 'restart', 'lite', 'container'].includes(cmd)) {
602
- _context13.next = 21;
566
+ _context12.next = 21;
603
567
  break;
604
568
  }
605
569
 
606
- _context13.t0 = cmd;
607
- _context13.next = _context13.t0 === 'lite' ? 13 : 17;
570
+ _context12.t0 = cmd;
571
+ _context12.next = _context12.t0 === 'lite' ? 13 : 17;
608
572
  break;
609
573
 
610
574
  case 13:
611
575
  alias({ appName: apps[0] });
612
- _context13.next = 16;
576
+ _context12.next = 16;
613
577
  return require(params.serverLite)(cmd);
614
578
 
615
579
  case 16:
616
- return _context13.abrupt('break', 19);
580
+ return _context12.abrupt('break', 19);
617
581
 
618
582
  case 17:
619
- _context13.next = 19;
583
+ _context12.next = 19;
620
584
  return _server._.asyncMap(apps, function () {
621
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(key, j) {
622
- return _regenerator2.default.wrap(function _callee12$(_context12) {
585
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(key, j) {
586
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
623
587
  while (1) {
624
- switch (_context12.prev = _context12.next) {
588
+ switch (_context11.prev = _context11.next) {
625
589
  case 0:
626
590
  alias({ appName: key });
627
- _context12.next = 3;
591
+ _context11.next = 3;
628
592
  return require(params.serverPath)(cmd, key, j !== apps.length - 1);
629
593
 
630
594
  case 3:
631
595
  case 'end':
632
- return _context12.stop();
596
+ return _context11.stop();
633
597
  }
634
598
  }
635
- }, _callee12, undefined);
599
+ }, _callee11, undefined);
636
600
  }));
637
601
 
638
- return function (_x16, _x17) {
639
- return _ref22.apply(this, arguments);
602
+ return function (_x15, _x16) {
603
+ return _ref21.apply(this, arguments);
640
604
  };
641
605
  }());
642
606
 
643
607
  case 19:
644
- _context13.next = 23;
608
+ _context12.next = 23;
645
609
  break;
646
610
 
647
611
  case 21:
@@ -650,14 +614,14 @@ var run = exports.run = function () {
650
614
 
651
615
  case 23:
652
616
  case 'end':
653
- return _context13.stop();
617
+ return _context12.stop();
654
618
  }
655
619
  }
656
- }, _callee13, undefined);
620
+ }, _callee12, undefined);
657
621
  }));
658
622
 
659
- return function (_x14, _x15) {
660
- return _ref20.apply(this, arguments);
623
+ return function (_x13, _x14) {
624
+ return _ref19.apply(this, arguments);
661
625
  };
662
626
  }()).on('--help', function () {
663
627
  console.log('');
@@ -669,29 +633,29 @@ var run = exports.run = function () {
669
633
  });
670
634
 
671
635
  _commander2.default.command('publish').alias('pub').description('Publish to server').action(function () {
672
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(env, options) {
673
- return _regenerator2.default.wrap(function _callee14$(_context14) {
636
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(env, options) {
637
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
674
638
  while (1) {
675
- switch (_context14.prev = _context14.next) {
639
+ switch (_context13.prev = _context13.next) {
676
640
  case 0:
677
641
  process.env.NODE_TYPE = 'publish';
678
- _context14.next = 3;
642
+ _context13.next = 3;
679
643
  return gi();
680
644
 
681
645
  case 3:
682
- _context14.next = 5;
646
+ _context13.next = 5;
683
647
  return require('../utils/deployment')();
684
648
 
685
649
  case 5:
686
650
  case 'end':
687
- return _context14.stop();
651
+ return _context13.stop();
688
652
  }
689
653
  }
690
- }, _callee14, undefined);
654
+ }, _callee13, undefined);
691
655
  }));
692
656
 
693
- return function (_x18, _x19) {
694
- return _ref23.apply(this, arguments);
657
+ return function (_x17, _x18) {
658
+ return _ref22.apply(this, arguments);
695
659
  };
696
660
  }());
697
661
 
@@ -702,12 +666,12 @@ var run = exports.run = function () {
702
666
 
703
667
  _commander2.default.parse(process.argv);
704
668
 
705
- case 13:
669
+ case 12:
706
670
  case 'end':
707
- return _context15.stop();
671
+ return _context14.stop();
708
672
  }
709
673
  }
710
- }, _callee15, undefined);
674
+ }, _callee14, undefined);
711
675
  }));
712
676
 
713
677
  return function run(_x3) {
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.22.14-beta.0",
3
+ "version": "2.22.14",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "base": "babel --no-babelrc src -d /Users/ningfujun/work/repo/web/CLN_BASE_TEST/node_modules/yakuza0 -w --presets=env --plugins=transform-runtime,transform-object-rest-spread,add-module-exports",
8
7
  "build": "babel --no-babelrc src -d . --presets=env --plugins=transform-runtime,transform-object-rest-spread,add-module-exports",
9
8
  "pub:beta": "npm run build && npm version prerelease --preid=beta && npm publish --tag beta",
10
9
  "pub:hotfix": "npm run build && npm version prerelease --preid=hotfix && npm publish --tag hotfix",
@@ -42,7 +41,6 @@
42
41
  "babel-plugin-transform-object-rest-spread": "^6.26.0",
43
42
  "babel-plugin-transform-runtime": "^6.23.0",
44
43
  "babel-preset-env": "^1.6.1",
45
- "cross-env": "^7.0.3",
46
44
  "chalk": "^2.4.1",
47
45
  "chokidar": "^3.0.0",
48
46
  "cli-progress": "^2.1.1",
@@ -416,7 +416,7 @@ exports.default = function () {
416
416
  if (_config2.default.security.isTire) {
417
417
  app.use('/apiv1', createProxyMiddleware((0, _extends5.default)({}, baseConfig, {
418
418
  target: _config2.default.server.orbProtocol.http + "//" + _config2.default.server.orbHost + ":" + _config2.default.server.orbPort,
419
- 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), _headers),
419
+ 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),
420
420
  pathRewrite: {
421
421
  '^/apiv1': "/" + _config2.default.proxyServer.apiKey + "/" + _config2.default.name + "/client/backend" // rewrite path
422
422
  }