tnp-core 16.100.20 → 16.100.21

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 (87) hide show
  1. package/README.md +20 -20
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/README.md +24 -24
  4. package/browser/esm2022/lib/core-config.mjs +4 -3
  5. package/browser/esm2022/lib/core-imports.mjs +35 -4
  6. package/browser/esm2022/lib/core-models.mjs +93 -81
  7. package/browser/esm2022/lib/framework-name.mjs +4 -3
  8. package/browser/esm2022/lib/helpers-isomorphic.mjs +13 -7
  9. package/browser/esm2022/lib/helpers-messages.mjs +13 -10
  10. package/browser/esm2022/lib/helpers.mjs +288 -25
  11. package/browser/esm2022/lib/index.mjs +1 -1
  12. package/browser/esm2022/lib/node-chalk-mock.mjs +1 -1
  13. package/browser/esm2022/lib/node-path-mock.mjs +21 -14
  14. package/browser/esm2022/lib/progress-data.mjs +4 -1
  15. package/browser/esm2022/lib/utils.mjs +17 -9
  16. package/browser/fesm2022/tnp-core.mjs +479 -144
  17. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  18. package/browser/lib/core-imports.d.ts +1 -1
  19. package/browser/lib/core-models.d.ts +172 -164
  20. package/browser/lib/helpers.d.ts +4 -3
  21. package/browser/lib/utils.d.ts +1 -1
  22. package/cli.backend.js +3 -3
  23. package/client/README.md +24 -24
  24. package/client/esm2022/lib/core-config.mjs +4 -3
  25. package/client/esm2022/lib/core-imports.mjs +35 -4
  26. package/client/esm2022/lib/core-models.mjs +93 -81
  27. package/client/esm2022/lib/framework-name.mjs +4 -3
  28. package/client/esm2022/lib/helpers-isomorphic.mjs +13 -7
  29. package/client/esm2022/lib/helpers-messages.mjs +13 -10
  30. package/client/esm2022/lib/helpers.mjs +288 -25
  31. package/client/esm2022/lib/index.mjs +1 -1
  32. package/client/esm2022/lib/node-chalk-mock.mjs +1 -1
  33. package/client/esm2022/lib/node-path-mock.mjs +21 -14
  34. package/client/esm2022/lib/progress-data.mjs +4 -1
  35. package/client/esm2022/lib/utils.mjs +17 -9
  36. package/client/fesm2022/tnp-core.mjs +479 -144
  37. package/client/fesm2022/tnp-core.mjs.map +1 -1
  38. package/client/lib/core-imports.d.ts +1 -1
  39. package/client/lib/core-models.d.ts +172 -164
  40. package/client/lib/helpers.d.ts +4 -3
  41. package/client/lib/utils.d.ts +1 -1
  42. package/client/package.json +41 -30
  43. package/firedev.jsonc +69 -73
  44. package/lib/core-config.js +2 -2
  45. package/lib/core-config.js.map +1 -1
  46. package/lib/core-imports.d.ts +3 -5
  47. package/lib/core-imports.js +7 -8
  48. package/lib/core-imports.js.map +1 -1
  49. package/lib/core-models.d.ts +172 -164
  50. package/lib/core-models.js +92 -80
  51. package/lib/core-models.js.map +1 -1
  52. package/lib/framework-name.js +5 -4
  53. package/lib/framework-name.js.map +1 -1
  54. package/lib/helpers-isomorphic.js +12 -6
  55. package/lib/helpers-isomorphic.js.map +1 -1
  56. package/lib/helpers-messages.js +31 -18
  57. package/lib/helpers-messages.js.map +1 -1
  58. package/lib/helpers.d.ts +11 -10
  59. package/lib/helpers.js +247 -116
  60. package/lib/helpers.js.map +1 -1
  61. package/lib/node-chalk-mock.js +3 -3
  62. package/lib/node-path-mock.js +3 -3
  63. package/lib/progress-data.js.map +1 -1
  64. package/lib/utils.d.ts +1 -1
  65. package/lib/utils.js +12 -10
  66. package/lib/utils.js.map +1 -1
  67. package/package.json +2 -2
  68. package/tmp-environment.json +45 -34
  69. package/websql/README.md +24 -24
  70. package/websql/esm2022/lib/core-config.mjs +4 -3
  71. package/websql/esm2022/lib/core-imports.mjs +35 -4
  72. package/websql/esm2022/lib/core-models.mjs +93 -81
  73. package/websql/esm2022/lib/framework-name.mjs +4 -3
  74. package/websql/esm2022/lib/helpers-isomorphic.mjs +13 -7
  75. package/websql/esm2022/lib/helpers-messages.mjs +13 -10
  76. package/websql/esm2022/lib/helpers.mjs +288 -27
  77. package/websql/esm2022/lib/index.mjs +1 -1
  78. package/websql/esm2022/lib/node-chalk-mock.mjs +1 -1
  79. package/websql/esm2022/lib/node-path-mock.mjs +21 -14
  80. package/websql/esm2022/lib/progress-data.mjs +4 -1
  81. package/websql/esm2022/lib/utils.mjs +17 -9
  82. package/websql/fesm2022/tnp-core.mjs +479 -146
  83. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  84. package/websql/lib/core-imports.d.ts +1 -1
  85. package/websql/lib/core-models.d.ts +172 -164
  86. package/websql/lib/helpers.d.ts +4 -3
  87. package/websql/lib/utils.d.ts +1 -1
@@ -14,10 +14,11 @@ import axios from 'axios';
14
14
 
15
15
  let isBrowser = false;
16
16
  isBrowser = true;
17
- const frameworkNameBe = (''
17
+ const frameworkNameBeTmp = '';
18
18
  /* */
19
19
  /* */
20
- );
20
+ /* */
21
+ const frameworkNameBe = frameworkNameBeTmp;
21
22
  const frameworkName = isBrowser ? 'firedev' : frameworkNameBe;
22
23
  ;
23
24
  ({}); // @--end-of-file-for-module=tnp-core lib/framework-name.ts
@@ -44,7 +45,10 @@ function normalizeStringPosix(path, allowAboveRoot) {
44
45
  if (lastSlash === i - 1 || dots === 1) {
45
46
  }
46
47
  else if (lastSlash !== i - 1 && dots === 2) {
47
- if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
48
+ if (res.length < 2 ||
49
+ lastSegmentLength !== 2 ||
50
+ res.charCodeAt(res.length - 1) !== 46 /*.*/ ||
51
+ res.charCodeAt(res.length - 2) !== 46 /*.*/) {
48
52
  if (res.length > 2) {
49
53
  var lastSlashIndex = res.lastIndexOf('/');
50
54
  if (lastSlashIndex !== res.length - 1) {
@@ -115,8 +119,8 @@ const path$1 = {
115
119
  assertPath(pathArg);
116
120
  if (pathArg.length === 0)
117
121
  return '.';
118
- var isAbsolute = pathArg.charCodeAt(0) === 47 /*/*/;
119
- var trailingSeparator = pathArg.charCodeAt(pathArg.length - 1) === 47 /*/*/;
122
+ var isAbsolute = pathArg.charCodeAt(0) === 47; /*/*/
123
+ var trailingSeparator = pathArg.charCodeAt(pathArg.length - 1) === 47; /*/*/
120
124
  pathArg = normalizeStringPosix(pathArg, !isAbsolute);
121
125
  if (pathArg.length === 0 && !isAbsolute)
122
126
  pathArg = '.';
@@ -227,7 +231,7 @@ const path$1 = {
227
231
  if (path.length === 0)
228
232
  return '.';
229
233
  var code = path.charCodeAt(0);
230
- var hasRoot = code === 47 /*/*/;
234
+ var hasRoot = code === 47; /*/*/
231
235
  var end = -1;
232
236
  var matchedSlash = true;
233
237
  for (var i = path.length - 1; i >= 1; --i) {
@@ -341,16 +345,18 @@ const path$1 = {
341
345
  preDotState = -1;
342
346
  }
343
347
  }
344
- if (startDot === -1 || end === -1 ||
348
+ if (startDot === -1 ||
349
+ end === -1 ||
345
350
  preDotState === 0 ||
346
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
351
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
347
352
  return '';
348
353
  }
349
354
  return pathArg.slice(startDot, end);
350
355
  },
351
356
  format: function format(pathObject) {
352
357
  if (pathObject === null || typeof pathObject !== 'object') {
353
- throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
358
+ throw new TypeError('The "pathObject" argument must be of type Object. Received type ' +
359
+ typeof pathObject);
354
360
  }
355
361
  return _format('/', pathObject);
356
362
  },
@@ -360,7 +366,7 @@ const path$1 = {
360
366
  if (pathArg.length === 0)
361
367
  return ret;
362
368
  var code = pathArg.charCodeAt(0);
363
- var isAbsolute = code === 47 /*/*/;
369
+ var isAbsolute = code === 47; /*/*/
364
370
  var start;
365
371
  if (isAbsolute) {
366
372
  ret.root = '/';
@@ -398,9 +404,10 @@ const path$1 = {
398
404
  preDotState = -1;
399
405
  }
400
406
  }
401
- if (startDot === -1 || end === -1 ||
407
+ if (startDot === -1 ||
408
+ end === -1 ||
402
409
  preDotState === 0 ||
403
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
410
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
404
411
  if (end !== -1) {
405
412
  if (startPart === 0 && isAbsolute)
406
413
  ret.base = ret.name = pathArg.slice(1, end);
@@ -428,11 +435,12 @@ const path$1 = {
428
435
  sep: '/',
429
436
  delimiter: ':',
430
437
  win32: {
431
- normalize: (p) => {
438
+ // @ts-ignore
439
+ normalize: p => {
432
440
  return p;
433
- }
441
+ },
434
442
  },
435
- posix: null
443
+ posix: null,
436
444
  };
437
445
  ;
438
446
  ({}); // @--end-of-file-for-module=tnp-core lib/node-path-mock.ts
@@ -508,12 +516,12 @@ const chalk$1 = allObj;
508
516
  /* */
509
517
  let $;
510
518
  $ = jQuery;
511
- let path;
519
+ let path = void 0;
512
520
  /* */
513
521
  /* */
514
522
  // @ts-ignore
515
523
  path = path$1;
516
- let chalk;
524
+ let chalk = void 0;
517
525
  /* */
518
526
  /* */
519
527
  // @ts-ignore
@@ -553,95 +561,138 @@ const crossPlatformPath = (pathStringOrPathParts) => {
553
561
  }
554
562
  return pathStringOrPathParts.replace(/\\/g, '/').replace(/\/\//g, '/');
555
563
  };
564
+ /* */
565
+ /* */
566
+ /* */
567
+ /* */
568
+ /* */
569
+ /* */
570
+ /* */
571
+ /* */
572
+ /* */
573
+ /* */
574
+ /* */
575
+ /* */
576
+ /* */
577
+ /* */
578
+ /* */
579
+ /* */
580
+ /* */
581
+ /* */
582
+ /* */
583
+ /* */
584
+ /* */
585
+ /* */
586
+ /* */
587
+ /* */
588
+ /* */
589
+ /* */
590
+ /* */
591
+ /* */
592
+ /* */
593
+ /* */
594
+ ;
556
595
  ({}); // @--end-of-file-for-module=tnp-core lib/core-imports.ts
557
596
 
558
597
  var CoreModels;
559
598
  (function (CoreModels) {
560
- CoreModels.BaseProjectTypeArr = ['typescript', 'angular', 'angular-lib', 'unknow', 'unknow-npm-project'];
599
+ CoreModels.BaseProjectTypeArr = [
600
+ 'typescript',
601
+ 'angular',
602
+ 'angular-lib',
603
+ 'unknow',
604
+ 'unknow-npm-project',
605
+ ];
561
606
  CoreModels.mimeTypes = {
562
- ".aac": "audio/aac",
563
- ".abw": "application/x-abiword",
564
- ".arc": "application/x-freearc",
565
- ".avi": "video/x-msvideo",
566
- ".azw": "application/vnd.amazon.ebook",
567
- ".bin": "application/octet-stream",
568
- ".bmp": "image/bmp",
569
- ".bz": "application/x-bzip",
570
- ".bz2": "application/x-bzip2",
571
- ".csh": "application/x-csh",
572
- ".css": "text/css",
573
- ".csv": "text/csv",
574
- ".doc": "application/msword",
575
- ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
576
- ".eot": "application/vnd.ms-fontobject",
577
- ".epub": "application/epub+zip",
578
- ".gz": "application/gzip",
579
- ".gif": "image/gif",
580
- ".htm": "text/html",
581
- ".html": "text/html",
582
- ".ico": "image/vnd.microsoft.icon",
583
- ".ics": "text/calendar",
584
- ".jar": "application/java-archive",
585
- ".jpeg": "image/jpeg",
586
- ".jpg": "image/jpeg",
587
- ".js": "text/javascript",
588
- ".json": "application/json",
589
- ".jsonld": "application/ld+json",
590
- ".mid": "application/midi",
591
- ".midi": "application/midi",
592
- ".mjs": "text/javascript",
593
- ".mp3": "audio/mpeg",
594
- ".mp4": "video/mp4",
595
- ".mpeg": "video/mpeg",
596
- ".mpkg": "application/vnd.apple.installer+xml",
597
- ".odp": "application/vnd.oasis.opendocument.presentation",
598
- ".ods": "application/vnd.oasis.opendocument.spreadsheet",
599
- ".odt": "application/vnd.oasis.opendocument.text",
600
- ".oga": "audio/ogg",
601
- ".ogg": "audio/ogg",
602
- ".ogv": "video/ogg",
603
- ".ogx": "application/ogg",
604
- ".opus": "audio/opus",
605
- ".otf": "font/otf",
606
- ".png": "image/png",
607
- ".pdf": "application/pdf",
608
- ".php": "application/php",
609
- ".ppt": "application/vnd.ms-powerpoint",
610
- ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
611
- ".rar": "application/vnd.rar",
612
- ".rtf": "application/rtf",
613
- ".sh": "application/x-sh",
614
- ".svg": "image/svg+xml",
615
- ".swf": "application/x-shockwave-flash",
616
- ".tar": "application/x-tar",
617
- ".tif": "image/tiff",
618
- ".tiff": "image/tiff",
619
- ".ts": "video/mp2t",
620
- ".ttf": "font/ttf",
621
- ".txt": "text/plain",
622
- ".vsd": "application/vnd.visio",
623
- ".wav": "audio/wav",
624
- ".weba": "audio/webm",
625
- ".webm": "video/webm",
626
- ".webp": "image/webp",
627
- ".woff": "font/woff",
628
- ".woff2": "font/woff2",
629
- ".xhtml": "application/xhtml+xml",
630
- ".xls": "application/vnd.ms-excel",
631
- ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
632
- ".xml": "application/xml",
633
- ".xul": "application/vnd.mozilla.xul+xml",
634
- ".zip": "application/zip",
635
- ".3gp": "video/3gpp",
636
- ".3g2": "video/3gpp2",
637
- ".7z": "application/x-7z-compressed"
607
+ '.aac': 'audio/aac',
608
+ '.abw': 'application/x-abiword',
609
+ '.arc': 'application/x-freearc',
610
+ '.avi': 'video/x-msvideo',
611
+ '.azw': 'application/vnd.amazon.ebook',
612
+ '.bin': 'application/octet-stream',
613
+ '.bmp': 'image/bmp',
614
+ '.bz': 'application/x-bzip',
615
+ '.bz2': 'application/x-bzip2',
616
+ '.csh': 'application/x-csh',
617
+ '.css': 'text/css',
618
+ '.csv': 'text/csv',
619
+ '.doc': 'application/msword',
620
+ '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
621
+ '.eot': 'application/vnd.ms-fontobject',
622
+ '.epub': 'application/epub+zip',
623
+ '.gz': 'application/gzip',
624
+ '.gif': 'image/gif',
625
+ '.htm': 'text/html',
626
+ '.html': 'text/html',
627
+ '.ico': 'image/vnd.microsoft.icon',
628
+ '.ics': 'text/calendar',
629
+ '.jar': 'application/java-archive',
630
+ '.jpeg': 'image/jpeg',
631
+ '.jpg': 'image/jpeg',
632
+ '.js': 'text/javascript',
633
+ '.json': 'application/json',
634
+ '.jsonld': 'application/ld+json',
635
+ '.mid': 'application/midi',
636
+ '.midi': 'application/midi',
637
+ '.mjs': 'text/javascript',
638
+ '.mp3': 'audio/mpeg',
639
+ '.mp4': 'video/mp4',
640
+ '.mpeg': 'video/mpeg',
641
+ '.mpkg': 'application/vnd.apple.installer+xml',
642
+ '.odp': 'application/vnd.oasis.opendocument.presentation',
643
+ '.ods': 'application/vnd.oasis.opendocument.spreadsheet',
644
+ '.odt': 'application/vnd.oasis.opendocument.text',
645
+ '.oga': 'audio/ogg',
646
+ '.ogg': 'audio/ogg',
647
+ '.ogv': 'video/ogg',
648
+ '.ogx': 'application/ogg',
649
+ '.opus': 'audio/opus',
650
+ '.otf': 'font/otf',
651
+ '.png': 'image/png',
652
+ '.pdf': 'application/pdf',
653
+ '.php': 'application/php',
654
+ '.ppt': 'application/vnd.ms-powerpoint',
655
+ '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
656
+ '.rar': 'application/vnd.rar',
657
+ '.rtf': 'application/rtf',
658
+ '.sh': 'application/x-sh',
659
+ '.svg': 'image/svg+xml',
660
+ '.swf': 'application/x-shockwave-flash',
661
+ '.tar': 'application/x-tar',
662
+ '.tif': 'image/tiff',
663
+ '.tiff': 'image/tiff',
664
+ '.ts': 'video/mp2t',
665
+ '.ttf': 'font/ttf',
666
+ '.txt': 'text/plain',
667
+ '.vsd': 'application/vnd.visio',
668
+ '.wav': 'audio/wav',
669
+ '.weba': 'audio/webm',
670
+ '.webm': 'video/webm',
671
+ '.webp': 'image/webp',
672
+ '.woff': 'font/woff',
673
+ '.woff2': 'font/woff2',
674
+ '.xhtml': 'application/xhtml+xml',
675
+ '.xls': 'application/vnd.ms-excel',
676
+ '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
677
+ '.xml': 'application/xml',
678
+ '.xul': 'application/vnd.mozilla.xul+xml',
679
+ '.zip': 'application/zip',
680
+ '.3gp': 'video/3gpp',
681
+ '.3g2': 'video/3gpp2',
682
+ '.7z': 'application/x-7z-compressed',
638
683
  };
639
684
  CoreModels.MediaTypeAllArr = [
640
- 'text', 'image', 'audio', 'video', 'font',
641
- 'application', 'multipart', 'message', 'model'
685
+ 'text',
686
+ 'image',
687
+ 'audio',
688
+ 'video',
689
+ 'font',
690
+ 'application',
691
+ 'multipart',
692
+ 'message',
693
+ 'model',
642
694
  ];
643
695
  CoreModels.MimeTypesObj = CoreModels.mimeTypes;
644
- ;
645
696
  })(CoreModels || (CoreModels = {}));
646
697
  ;
647
698
  ({}); // @--end-of-file-for-module=tnp-core lib/core-models.ts
@@ -666,31 +717,37 @@ class HelpersIsomorphic {
666
717
  }
667
718
  get isElectron() {
668
719
  // @ts-ignore
669
- if (typeof window !== 'undefined' && typeof window.process === 'object' && window.process.type === 'renderer') {
720
+ if (typeof window !== 'undefined' &&
721
+ typeof window.process === 'object' &&
722
+ window.process.type === 'renderer') {
670
723
  return true;
671
724
  }
672
725
  // @ts-ignore
673
- if (typeof process !== 'undefined' && typeof process.versions === 'object' && !!process.versions.electron) {
726
+ if (typeof process !== 'undefined' &&
727
+ typeof process.versions === 'object' &&
728
+ !!process.versions.electron) {
674
729
  return true;
675
730
  }
676
- if (typeof navigator === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent.indexOf('Electron') >= 0) {
731
+ if (typeof navigator === 'object' &&
732
+ typeof navigator.userAgent === 'string' &&
733
+ navigator.userAgent.indexOf('Electron') >= 0) {
677
734
  return true;
678
735
  }
679
736
  return false;
680
737
  }
681
738
  contain(arr, item) {
682
- return arr.filter(l => {
739
+ return (arr.filter(l => {
683
740
  if (l instanceof RegExp) {
684
741
  return l.test(item);
685
742
  }
686
743
  if (l === item) {
687
744
  return true;
688
745
  }
689
- if ((item.match && typeof item.match === 'function') ? item.match(l) : false) {
746
+ if (item.match && typeof item.match === 'function' ? item.match(l) : false) {
690
747
  return true;
691
748
  }
692
749
  return false;
693
- }).length > 0;
750
+ }).length > 0);
694
751
  }
695
752
  }
696
753
  ;
@@ -747,7 +804,6 @@ const KEY_IMPORTANTCE = {
747
804
  /* */
748
805
  /* */
749
806
  /* */
750
- /* */
751
807
  const LIMIT = 10;
752
808
  class HelpersMessages extends HelpersIsomorphic {
753
809
  msgCacheClear() {
@@ -767,6 +823,9 @@ class HelpersMessages extends HelpersIsomorphic {
767
823
  /* */
768
824
  /* */
769
825
  /* */
826
+ /* */
827
+ /* */
828
+ /* */
770
829
  }
771
830
  }
772
831
  error(details, noExit = false, noTrace = false) {
@@ -824,8 +883,6 @@ class HelpersMessages extends HelpersIsomorphic {
824
883
  /* */
825
884
  /* */
826
885
  /* */
827
- /* */
828
- /* */
829
886
  }
830
887
  info(details, repeatable = false) {
831
888
  /* */
@@ -872,7 +929,6 @@ class HelpersMessages extends HelpersIsomorphic {
872
929
  /* */
873
930
  /* */
874
931
  /* */
875
- /* */
876
932
  }
877
933
  success(details) {
878
934
  if (Helpers.isBrowser) {
@@ -916,7 +972,6 @@ class HelpersMessages extends HelpersIsomorphic {
916
972
  /* */
917
973
  /* */
918
974
  /* */
919
- /* */
920
975
  }
921
976
  /**
922
977
  *
@@ -975,6 +1030,7 @@ class HelpersMessages extends HelpersIsomorphic {
975
1030
  /* */
976
1031
  /* */
977
1032
  /* */
1033
+ /* */
978
1034
  }
979
1035
  taskDone(details, isLessImportant = false) {
980
1036
  if (Helpers.isBrowser) {
@@ -1032,6 +1088,7 @@ class HelpersMessages extends HelpersIsomorphic {
1032
1088
  /* */
1033
1089
  /* */
1034
1090
  /* */
1091
+ /* */
1035
1092
  }
1036
1093
  log(details, debugLevel = 0) {
1037
1094
  if (Helpers.isBrowser) {
@@ -1088,10 +1145,6 @@ class HelpersMessages extends HelpersIsomorphic {
1088
1145
  /* */
1089
1146
  /* */
1090
1147
  /* */
1091
- /* */
1092
- /* */
1093
- /* */
1094
- /* */
1095
1148
  }
1096
1149
  /* */
1097
1150
  /* */
@@ -1183,6 +1236,13 @@ class HelpersMessages extends HelpersIsomorphic {
1183
1236
  /* */
1184
1237
  /* */
1185
1238
  /* */
1239
+ /* */
1240
+ /* */
1241
+ /* */
1242
+ /* */
1243
+ /* */
1244
+ /* */
1245
+ /* */
1186
1246
  }
1187
1247
  }
1188
1248
  function transformData(details) {
@@ -1255,7 +1315,8 @@ class HelpersCore extends HelpersMessages {
1255
1315
  if (!this.isElectron) {
1256
1316
  return;
1257
1317
  }
1258
- return window.require('electron').ipcRenderer;
1318
+ return window.require('electron')
1319
+ .ipcRenderer;
1259
1320
  }
1260
1321
  /**
1261
1322
  * get electron web frame
@@ -1279,8 +1340,7 @@ class HelpersCore extends HelpersMessages {
1279
1340
  /* */
1280
1341
  return (void 0);
1281
1342
  }
1282
- getElectronWindow({ allowRunningInsecureContent = true } = {}) {
1283
- /* */
1343
+ getElectronWindow({ allowRunningInsecureContent = true, } = {}) {
1284
1344
  /* */
1285
1345
  /* */
1286
1346
  /* */
@@ -1368,7 +1428,8 @@ class HelpersCore extends HelpersMessages {
1368
1428
  removeEmptyLineFromString(str) {
1369
1429
  const lines = (str || '').split('\n');
1370
1430
  let previousWasEmpty = false;
1371
- return lines.filter(line => {
1431
+ return lines
1432
+ .filter(line => {
1372
1433
  if (line.trim() === '') {
1373
1434
  if (previousWasEmpty) {
1374
1435
  return false;
@@ -1382,9 +1443,9 @@ class HelpersCore extends HelpersMessages {
1382
1443
  previousWasEmpty = false;
1383
1444
  return true;
1384
1445
  }
1385
- }).join('\n');
1446
+ })
1447
+ .join('\n');
1386
1448
  }
1387
- ;
1388
1449
  /**
1389
1450
  * @deprecated
1390
1451
  */
@@ -1422,6 +1483,8 @@ class HelpersCore extends HelpersMessages {
1422
1483
  /* */
1423
1484
  /* */
1424
1485
  /* */
1486
+ /* */
1487
+ /* */
1425
1488
  return (void 0);
1426
1489
  }
1427
1490
  remove(fileOrFolderPathOrPatter, exactFolder = false) {
@@ -1453,7 +1516,9 @@ class HelpersCore extends HelpersMessages {
1453
1516
  isClass(funcOrClass) {
1454
1517
  let isClass = false;
1455
1518
  if (typeof funcOrClass === 'function') {
1456
- isClass = !!funcOrClass.prototype && Object.getOwnPropertyNames(funcOrClass.prototype).filter(f => f !== 'constructor').length > 0;
1519
+ isClass =
1520
+ !!funcOrClass.prototype &&
1521
+ Object.getOwnPropertyNames(funcOrClass.prototype).filter(f => f !== 'constructor').length > 0;
1457
1522
  }
1458
1523
  return isClass;
1459
1524
  }
@@ -1724,6 +1789,27 @@ class HelpersCore extends HelpersMessages {
1724
1789
  /* */
1725
1790
  /* */
1726
1791
  /* */
1792
+ /* */
1793
+ /* */
1794
+ /* */
1795
+ /* */
1796
+ /* */
1797
+ /* */
1798
+ /* */
1799
+ /* */
1800
+ /* */
1801
+ /* */
1802
+ /* */
1803
+ /* */
1804
+ /* */
1805
+ /* */
1806
+ /* */
1807
+ /* */
1808
+ /* */
1809
+ /* */
1810
+ /* */
1811
+ /* */
1812
+ /* */
1727
1813
  /**
1728
1814
  * symlink may have existed or unexisted destiantion url
1729
1815
  * @param destUrl M
@@ -1760,6 +1846,8 @@ class HelpersCore extends HelpersMessages {
1760
1846
  /* */
1761
1847
  /* */
1762
1848
  /* */
1849
+ /* */
1850
+ /* */
1763
1851
  return (void 0);
1764
1852
  }
1765
1853
  isSymlinkFileExitedOrUnexisted(filePath) {
@@ -1794,6 +1882,11 @@ class HelpersCore extends HelpersMessages {
1794
1882
  /* */
1795
1883
  /* */
1796
1884
  /* */
1885
+ /* */
1886
+ /* */
1887
+ /* */
1888
+ /* */
1889
+ /* */
1797
1890
  return (void 0);
1798
1891
  }
1799
1892
  /**
@@ -1815,6 +1908,13 @@ class HelpersCore extends HelpersMessages {
1815
1908
  /* */
1816
1909
  /* */
1817
1910
  /* */
1911
+ /* */
1912
+ /* */
1913
+ /* */
1914
+ /* */
1915
+ /* */
1916
+ /* */
1917
+ /* */
1818
1918
  return (void 0);
1819
1919
  }
1820
1920
  /* */
@@ -1855,18 +1955,24 @@ class HelpersCore extends HelpersMessages {
1855
1955
  /* */
1856
1956
  /* */
1857
1957
  /* */
1958
+ /* */
1959
+ /* */
1960
+ /* */
1961
+ /* */
1962
+ /* */
1858
1963
  return (void 0);
1859
1964
  }
1860
1965
  /**
1861
1966
  * this is HACK for running procesess inside processes
1862
1967
  */
1863
1968
  _fixCommand(command) {
1864
- if ((command.startsWith('tnp ') || command.startsWith('firedev ')) // TODO every cli projects here that uses run and need to kill process easly!
1865
- &&
1866
- (command.search('-spinner=false') === -1) && (command.search('-spinner=off') === -1)) {
1969
+ if ((command.startsWith('tnp ') || command.startsWith('firedev ')) && // TODO every cli projects here that uses run and need to kill process easly!
1970
+ command.search('-spinner=false') === -1 &&
1971
+ command.search('-spinner=off') === -1) {
1867
1972
  command = `${command} -spinner=false`;
1868
1973
  }
1869
- if (global.skipCoreCheck && (command.startsWith('tnp ') || command.startsWith('firedev '))) {
1974
+ if (global.skipCoreCheck &&
1975
+ (command.startsWith('tnp ') || command.startsWith('firedev '))) {
1870
1976
  command = `${command} --skipCoreCheck`;
1871
1977
  }
1872
1978
  return command;
@@ -1927,8 +2033,6 @@ class HelpersCore extends HelpersMessages {
1927
2033
  /* */
1928
2034
  /* */
1929
2035
  /* */
1930
- /* */
1931
- /* */
1932
2036
  };
1933
2037
  }
1934
2038
  wait(second) {
@@ -2013,6 +2117,10 @@ class HelpersCore extends HelpersMessages {
2013
2117
  /* */
2014
2118
  /* */
2015
2119
  /* */
2120
+ /* */
2121
+ /* */
2122
+ /* */
2123
+ /* */
2016
2124
  async killProcessByPort(portOrPortsToKill, options) {
2017
2125
  /* */
2018
2126
  /* */
@@ -2051,6 +2159,13 @@ class HelpersCore extends HelpersMessages {
2051
2159
  /* */
2052
2160
  /* */
2053
2161
  /* */
2162
+ /* */
2163
+ /* */
2164
+ /* */
2165
+ /* */
2166
+ /* */
2167
+ /* */
2168
+ /* */
2054
2169
  return (void 0);
2055
2170
  }
2056
2171
  async killOnPort(portOrPortsToKill, options) {
@@ -2080,6 +2195,10 @@ class HelpersCore extends HelpersMessages {
2080
2195
  /* */
2081
2196
  /* */
2082
2197
  /* */
2198
+ /* */
2199
+ /* */
2200
+ /* */
2201
+ /* */
2083
2202
  }
2084
2203
  run(command, options) {
2085
2204
  command = Helpers._fixCommand(command);
@@ -2120,6 +2239,13 @@ class HelpersCore extends HelpersMessages {
2120
2239
  /* */
2121
2240
  /* */
2122
2241
  /* */
2242
+ /* */
2243
+ /* */
2244
+ /* */
2245
+ /* */
2246
+ /* */
2247
+ /* */
2248
+ /* */
2123
2249
  return (void 0);
2124
2250
  },
2125
2251
  /**
@@ -2140,7 +2266,7 @@ class HelpersCore extends HelpersMessages {
2140
2266
  stdoutCallback(d);
2141
2267
  }));
2142
2268
  }
2143
- }
2269
+ },
2144
2270
  },
2145
2271
  stderr: {
2146
2272
  on(action, stdoutCallback) {
@@ -2149,7 +2275,7 @@ class HelpersCore extends HelpersMessages {
2149
2275
  stdoutCallback(d);
2150
2276
  }));
2151
2277
  }
2152
- }
2278
+ },
2153
2279
  },
2154
2280
  on(action, exitFun) {
2155
2281
  if (action == 'exit') {
@@ -2171,24 +2297,27 @@ class HelpersCore extends HelpersMessages {
2171
2297
  }
2172
2298
  WEBSQL_PROC_MOCK_PROCESSES_PPID[procDummy.ppid].childProcesses.push(procDummy.pid);
2173
2299
  const checkIfProcessShouldBeDead = () => {
2174
- return _.isNil(WEBSQL_PROC_MOCK_PROCESSES_PID[procDummy.pid]) || _.isNil(WEBSQL_PROC_MOCK_PROCESSES_PPID[procDummy.ppid]);
2300
+ return (_.isNil(WEBSQL_PROC_MOCK_PROCESSES_PID[procDummy.pid]) ||
2301
+ _.isNil(WEBSQL_PROC_MOCK_PROCESSES_PPID[procDummy.ppid]));
2175
2302
  };
2176
2303
  const f = Helpers.runSyncOrAsync({
2177
2304
  functionFn: mockFun,
2178
2305
  arrayOfParams: [
2179
- (d) => {
2306
+ d => {
2180
2307
  setTimeout(() => {
2181
2308
  subStdoutSub.next(d);
2182
2309
  });
2183
- }, (d) => {
2310
+ },
2311
+ d => {
2184
2312
  setTimeout(() => {
2185
2313
  subStderSub.next(d);
2186
2314
  });
2187
- }, () => {
2315
+ },
2316
+ () => {
2188
2317
  const shouldBeDead = checkIfProcessShouldBeDead();
2189
2318
  return shouldBeDead;
2190
- }
2191
- ]
2319
+ },
2320
+ ],
2192
2321
  });
2193
2322
  f.then(exitCode => {
2194
2323
  if (_.isNil(exitCode)) {
@@ -2198,7 +2327,7 @@ class HelpersCore extends HelpersMessages {
2198
2327
  exitSub.next(exitCode);
2199
2328
  subscribtions.forEach(s => s.unsubscribe());
2200
2329
  });
2201
- }).catch((e) => {
2330
+ }).catch(e => {
2202
2331
  console.error(e);
2203
2332
  console.error(`Something wrong with your mock funciton`);
2204
2333
  exitSub.next(1);
@@ -2233,7 +2362,6 @@ class HelpersCore extends HelpersMessages {
2233
2362
  /* */
2234
2363
  /* */
2235
2364
  /* */
2236
- /* */
2237
2365
  return (void 0);
2238
2366
  },
2239
2367
  /**
@@ -2317,8 +2445,12 @@ class HelpersCore extends HelpersMessages {
2317
2445
  /* */
2318
2446
  /* */
2319
2447
  /* */
2448
+ /* */
2449
+ /* */
2450
+ /* */
2451
+ /* */
2320
2452
  return (void 0);
2321
- }
2453
+ },
2322
2454
  };
2323
2455
  }
2324
2456
  async questionYesNo(message, callbackTrue, callbackFalse, defaultValue = true,
@@ -2772,6 +2904,125 @@ class HelpersCore extends HelpersMessages {
2772
2904
  /* */
2773
2905
  /* */
2774
2906
  /* */
2907
+ /* */
2908
+ /* */
2909
+ /* */
2910
+ /* */
2911
+ /* */
2912
+ /* */
2913
+ /* */
2914
+ /* */
2915
+ /* */
2916
+ /* */
2917
+ /* */
2918
+ /* */
2919
+ /* */
2920
+ /* */
2921
+ /* */
2922
+ /* */
2923
+ /* */
2924
+ /* */
2925
+ /* */
2926
+ /* */
2927
+ /* */
2928
+ /* */
2929
+ /* */
2930
+ /* */
2931
+ /* */
2932
+ /* */
2933
+ /* */
2934
+ /* */
2935
+ /* */
2936
+ /* */
2937
+ /* */
2938
+ /* */
2939
+ /* */
2940
+ /* */
2941
+ /* */
2942
+ /* */
2943
+ /* */
2944
+ /* */
2945
+ /* */
2946
+ /* */
2947
+ /* */
2948
+ /* */
2949
+ /* */
2950
+ /* */
2951
+ /* */
2952
+ /* */
2953
+ /* */
2954
+ /* */
2955
+ /* */
2956
+ /* */
2957
+ /* */
2958
+ /* */
2959
+ /* */
2960
+ /* */
2961
+ /* */
2962
+ /* */
2963
+ /* */
2964
+ /* */
2965
+ /* */
2966
+ /* */
2967
+ /* */
2968
+ /* */
2969
+ /* */
2970
+ /* */
2971
+ /* */
2972
+ /* */
2973
+ /* */
2974
+ /* */
2975
+ /* */
2976
+ /* */
2977
+ /* */
2978
+ /* */
2979
+ /* */
2980
+ /* */
2981
+ /* */
2982
+ /* */
2983
+ /* */
2984
+ /* */
2985
+ /* */
2986
+ /* */
2987
+ /* */
2988
+ /* */
2989
+ /* */
2990
+ /* */
2991
+ /* */
2992
+ /* */
2993
+ /* */
2994
+ /* */
2995
+ /* */
2996
+ /* */
2997
+ /* */
2998
+ /* */
2999
+ /* */
3000
+ /* */
3001
+ /* */
3002
+ /* */
3003
+ /* */
3004
+ /* */
3005
+ /* */
3006
+ /* */
3007
+ /* */
3008
+ /* */
3009
+ /* */
3010
+ /* */
3011
+ /* */
3012
+ /* */
3013
+ /* */
3014
+ /* */
3015
+ /* */
3016
+ /* */
3017
+ /* */
3018
+ /* */
3019
+ /* */
3020
+ /* */
3021
+ /* */
3022
+ /* */
3023
+ /* */
3024
+ /* */
3025
+ /* */
2775
3026
  /**
2776
3027
  * Quick fix for object values
2777
3028
  * @deprecated
@@ -2907,10 +3158,49 @@ class HelpersCore extends HelpersMessages {
2907
3158
  /* */
2908
3159
  /* */
2909
3160
  /* */
3161
+ /* */
3162
+ /* */
3163
+ /* */
3164
+ /* */
3165
+ /* */
3166
+ /* */
3167
+ /* */
3168
+ /* */
3169
+ /* */
3170
+ /* */
3171
+ /* */
3172
+ /* */
3173
+ /* */
3174
+ /* */
3175
+ /* */
3176
+ /* */
3177
+ /* */
3178
+ /* */
3179
+ /* */
3180
+ /* */
3181
+ /* */
3182
+ /* */
3183
+ /* */
3184
+ /* */
3185
+ /* */
3186
+ /* */
3187
+ /* */
3188
+ /* */
3189
+ /* */
3190
+ /* */
3191
+ /* */
3192
+ /* */
3193
+ /* */
3194
+ /* */
3195
+ /* */
3196
+ /* */
2910
3197
  replaceLinesInFile(absoluteFilePath, lineReplaceFn) {
2911
3198
  /* */
2912
3199
  /* */
2913
3200
  /* */
3201
+ /* */
3202
+ /* */
3203
+ /* */
2914
3204
  }
2915
3205
  /* */
2916
3206
  /* */
@@ -3198,6 +3488,39 @@ class HelpersCore extends HelpersMessages {
3198
3488
  /* */
3199
3489
  /* */
3200
3490
  /* */
3491
+ /* */
3492
+ /* */
3493
+ /* */
3494
+ /* */
3495
+ /* */
3496
+ /* */
3497
+ /* */
3498
+ /* */
3499
+ /* */
3500
+ /* */
3501
+ /* */
3502
+ /* */
3503
+ /* */
3504
+ /* */
3505
+ /* */
3506
+ /* */
3507
+ /* */
3508
+ /* */
3509
+ /* */
3510
+ /* */
3511
+ /* */
3512
+ /* */
3513
+ /* */
3514
+ /* */
3515
+ /* */
3516
+ /* */
3517
+ /* */
3518
+ /* */
3519
+ /* */
3520
+ /* */
3521
+ /* */
3522
+ /* */
3523
+ /* */
3201
3524
  hideNodeWarnings() {
3202
3525
  /* */
3203
3526
  /* */
@@ -3209,9 +3532,10 @@ class HelpersCore extends HelpersMessages {
3209
3532
 
3210
3533
  const CoreConfig = {
3211
3534
  message: {
3212
- globalSystemToolMode: 'globalSystemToolMode'
3213
- }
3535
+ globalSystemToolMode: 'globalSystemToolMode',
3536
+ },
3214
3537
  };
3538
+ ;
3215
3539
  ({}); // @--end-of-file-for-module=tnp-core lib/core-config.ts
3216
3540
 
3217
3541
  class PROGRESS_DATA {
@@ -3223,6 +3547,9 @@ class PROGRESS_DATA {
3223
3547
  /* */
3224
3548
  /* */
3225
3549
  /* */
3550
+ /* */
3551
+ /* */
3552
+ /* */
3226
3553
  }
3227
3554
  static resolveFrom(chunk, callbackOnFounded, checkSplit = true) {
3228
3555
  let progress;
@@ -3438,16 +3765,19 @@ var Utils;
3438
3765
  /* */
3439
3766
  /* */
3440
3767
  /* */
3768
+ /* */
3769
+ /* */
3770
+ /* */
3441
3771
  async function fileToBlob(file) {
3442
- return new Blob([new Uint8Array(await file.arrayBuffer())], { type: file.type });
3772
+ return new Blob([new Uint8Array(await file.arrayBuffer())], {
3773
+ type: file.type,
3774
+ });
3443
3775
  }
3444
3776
  binary.fileToBlob = fileToBlob;
3445
- ;
3446
3777
  async function blobToFile(blob, nameForFile = 'my-file-name') {
3447
3778
  if (!nameForFile) {
3448
- nameForFile = 'nonamefile' + (new Date()).getTime();
3779
+ nameForFile = 'nonamefile' + new Date().getTime();
3449
3780
  }
3450
- ;
3451
3781
  // @ts-ignore
3452
3782
  return new File([blob], nameForFile);
3453
3783
  }
@@ -3475,6 +3805,9 @@ var Utils;
3475
3805
  /* */
3476
3806
  /* */
3477
3807
  /* */
3808
+ /* */
3809
+ /* */
3810
+ /* */
3478
3811
  async function textToBlob(text, type = 'text/plain') {
3479
3812
  const blob = new Blob([text], { type });
3480
3813
  return blob;
@@ -3497,7 +3830,9 @@ var Utils;
3497
3830
  }
3498
3831
  binary.fileToText = fileToText;
3499
3832
  async function jsonToBlob(jsonObj) {
3500
- const blob = new Blob([JSON.stringify(jsonObj, null, 2)], { type: 'application/json' });
3833
+ const blob = new Blob([JSON.stringify(jsonObj, null, 2)], {
3834
+ type: 'application/json',
3835
+ });
3501
3836
  return blob;
3502
3837
  }
3503
3838
  binary.jsonToBlob = jsonToBlob;
@@ -3512,7 +3847,7 @@ var Utils;
3512
3847
  const response = await axios({
3513
3848
  url,
3514
3849
  method: 'get',
3515
- responseType: 'blob'
3850
+ responseType: 'blob',
3516
3851
  });
3517
3852
  return response.data;
3518
3853
  }