tnp-core 16.444.15 → 16.444.18

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 (37) hide show
  1. package/assets/shared/shared_folder_info.txt +1 -1
  2. package/browser/esm2022/lib/core-imports.mjs +20 -15
  3. package/browser/esm2022/lib/core-models.mjs +7 -1
  4. package/browser/esm2022/lib/helpers.mjs +25 -2
  5. package/browser/fesm2022/tnp-core.mjs +86 -73
  6. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  7. package/browser/lib/core-models.d.ts +3 -0
  8. package/browser/lib/helpers.d.ts +3 -1
  9. package/cli.backend.js +3 -3
  10. package/client/esm2022/lib/core-imports.mjs +20 -15
  11. package/client/esm2022/lib/core-models.mjs +7 -1
  12. package/client/esm2022/lib/helpers.mjs +25 -2
  13. package/client/fesm2022/tnp-core.mjs +86 -73
  14. package/client/fesm2022/tnp-core.mjs.map +1 -1
  15. package/client/lib/core-models.d.ts +3 -0
  16. package/client/lib/helpers.d.ts +3 -1
  17. package/client/package.json +32 -31
  18. package/lib/core-imports.d.ts +10 -10
  19. package/lib/core-imports.js +44 -24
  20. package/lib/core-imports.js.map +1 -1
  21. package/lib/core-models.d.ts +3 -0
  22. package/lib/core-models.js +6 -0
  23. package/lib/core-models.js.map +1 -1
  24. package/lib/helpers.d.ts +3 -1
  25. package/lib/helpers.js +39 -3
  26. package/lib/helpers.js.map +1 -1
  27. package/lib/node-chalk-mock.js +3 -3
  28. package/lib/node-path-mock.js +3 -3
  29. package/package.json +2 -2
  30. package/tmp-environment.json +36 -35
  31. package/websql/esm2022/lib/core-imports.mjs +20 -15
  32. package/websql/esm2022/lib/core-models.mjs +7 -1
  33. package/websql/esm2022/lib/helpers.mjs +25 -2
  34. package/websql/fesm2022/tnp-core.mjs +86 -73
  35. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  36. package/websql/lib/core-models.d.ts +3 -0
  37. package/websql/lib/helpers.d.ts +3 -1
@@ -1,3 +1,4 @@
1
+ import jQuery from 'jquery';
1
2
  import * as _ from 'lodash';
2
3
  export { _ };
3
4
  import * as q from 'q';
@@ -8,7 +9,6 @@ import * as dateformat from 'dateformat';
8
9
  export { dateformat };
9
10
  import * as json5 from 'json5';
10
11
  export { json5 };
11
- import jQuery from 'jquery';
12
12
  import { Subject } from 'rxjs';
13
13
  import axios from 'axios';
14
14
 
@@ -23,6 +23,48 @@ const frameworkName = isBrowser ? 'firedev' : frameworkNameBe;
23
23
  ;
24
24
  ({}); // @--end-of-file-for-module=tnp-core lib/framework-name.ts
25
25
 
26
+ const allObj = {
27
+ black(a) {
28
+ console.log(a);
29
+ },
30
+ gray(a) {
31
+ console.log(a);
32
+ },
33
+ red(a) {
34
+ console.log(a);
35
+ },
36
+ green(a) {
37
+ console.log(a);
38
+ },
39
+ italic(a) {
40
+ console.log(a);
41
+ },
42
+ magenta(a) {
43
+ console.log(a);
44
+ },
45
+ bold(a) {
46
+ console.log(a);
47
+ },
48
+ underline(a) {
49
+ console.log(a);
50
+ },
51
+ };
52
+ const map = new Map();
53
+ const all = Object.keys(allObj).map(key => {
54
+ map.set(allObj[key], key);
55
+ return allObj[key];
56
+ });
57
+ for (let i = 0; i < all.length; i++) {
58
+ const e1 = all[i];
59
+ for (let j = 0; j < all.length; j++) {
60
+ const e2 = all[j]; // @ts-ignore
61
+ e1[map.get(e2)] = e2;
62
+ }
63
+ }
64
+ const chalk$1 = allObj;
65
+ ;
66
+ ({}); // @--end-of-file-for-module=tnp-core lib/node-chalk-mock.ts
67
+
26
68
  function assertPath(path) {
27
69
  if (typeof path !== 'string') {
28
70
  throw new TypeError('[firedev-core] Path must be a string. Received ' + JSON.stringify(path));
@@ -445,77 +487,11 @@ const path$1 = {
445
487
  ;
446
488
  ({}); // @--end-of-file-for-module=tnp-core lib/node-path-mock.ts
447
489
 
448
- const allObj = {
449
- black(a) {
450
- console.log(a);
451
- },
452
- gray(a) {
453
- console.log(a);
454
- },
455
- red(a) {
456
- console.log(a);
457
- },
458
- green(a) {
459
- console.log(a);
460
- },
461
- italic(a) {
462
- console.log(a);
463
- },
464
- magenta(a) {
465
- console.log(a);
466
- },
467
- bold(a) {
468
- console.log(a);
469
- },
470
- underline(a) {
471
- console.log(a);
472
- },
473
- };
474
- const map = new Map();
475
- const all = Object.keys(allObj).map(key => {
476
- map.set(allObj[key], key);
477
- return allObj[key];
478
- });
479
- for (let i = 0; i < all.length; i++) {
480
- const e1 = all[i];
481
- for (let j = 0; j < all.length; j++) {
482
- const e2 = all[j]; // @ts-ignore
483
- e1[map.get(e2)] = e2;
484
- }
485
- }
486
- const chalk$1 = allObj;
487
- ;
488
- ({}); // @--end-of-file-for-module=tnp-core lib/node-chalk-mock.ts
489
-
490
- /* */
491
- /* */
492
- /* */
493
- /* */
494
- /* */
495
- /* */
496
- /* */
497
- /* */
498
- /* */
499
- /* */
500
- /* */
501
- /* */
502
- /* */
503
- /* */
504
- /* */
505
- /* */
506
- /* */
507
- /* */
508
- /* */
509
- /* */
510
- /* */
511
- /* */
512
- /* */
513
- /* */
514
- /* */
515
- /* */
516
- /* */
490
+ let forceTrace = false;
517
491
  let $;
518
492
  $ = jQuery;
493
+ /* */
494
+ /* */
519
495
  let path = void 0;
520
496
  /* */
521
497
  /* */
@@ -526,6 +502,10 @@ let chalk = void 0;
526
502
  /* */
527
503
  // @ts-ignore
528
504
  chalk = chalk$1;
505
+ /* */
506
+ /* */
507
+ /* */
508
+ /* */
529
509
  /**
530
510
  * transform unix path to win32 path
531
511
  */
@@ -558,11 +538,15 @@ const crossPlatformPath = (pathStringOrPathParts) => {
558
538
  if (isExtendedLengthPath) {
559
539
  console.warn(`[firedev-core][crossPlatformPath]: Path starts with \\\\,
560
540
  this is not supported in crossPlatformPath`);
561
- console.trace(`path: "${pathStringOrPathParts}"`);
541
+ if (forceTrace) {
542
+ console.trace(`path: "${pathStringOrPathParts}"`);
543
+ }
562
544
  }
563
545
  if (hasNonAscii) {
564
546
  console.warn(`[firedev-core][crossPlatformPath]: Path contains non-ascii characters`);
565
- console.trace(`path: "${pathStringOrPathParts}"`);
547
+ if (forceTrace) {
548
+ console.trace(`path: "${pathStringOrPathParts}"`);
549
+ }
566
550
  }
567
551
  pathStringOrPathParts = (pathStringOrPathParts || '')
568
552
  .replace(/\\/g, '/')
@@ -615,6 +599,12 @@ const crossPlatformPath = (pathStringOrPathParts) => {
615
599
  var CoreModels;
616
600
  (function (CoreModels) {
617
601
  CoreModels.InstalationTypeArr = ['-g', '--save', '--save-dev'];
602
+ CoreModels.PackageJsonDependencyObjArr = [
603
+ 'dependencies',
604
+ 'devDependencies',
605
+ 'peerDependencies',
606
+ 'resolutions',
607
+ ];
618
608
  CoreModels.BaseProjectTypeArr = [
619
609
  'typescript',
620
610
  'angular',
@@ -1316,6 +1306,26 @@ class HelpersCore extends HelpersMessages {
1316
1306
  /* */
1317
1307
  /* */
1318
1308
  }
1309
+ get isWsl() {
1310
+ /* */
1311
+ /* */
1312
+ /* */
1313
+ /* */
1314
+ /* */
1315
+ /* */
1316
+ /* */
1317
+ /* */
1318
+ /* */
1319
+ /* */
1320
+ /* */
1321
+ /* */
1322
+ /* */
1323
+ /* */
1324
+ /* */
1325
+ /* */
1326
+ /* */
1327
+ return (void 0);
1328
+ }
1319
1329
  isRunningInDocker() {
1320
1330
  /* */
1321
1331
  /* */
@@ -1326,6 +1336,10 @@ class HelpersCore extends HelpersMessages {
1326
1336
  /* */
1327
1337
  return (void 0);
1328
1338
  }
1339
+ clearConsole() {
1340
+ Helpers.msgCacheClear();
1341
+ console.log('\x1Bc');
1342
+ }
1329
1343
  /**
1330
1344
  * get electron browser ipc renderer
1331
1345
  */
@@ -2159,7 +2173,6 @@ class HelpersCore extends HelpersMessages {
2159
2173
  /* */
2160
2174
  /* */
2161
2175
  /* */
2162
- /* */
2163
2176
  async killProcessByPort(portOrPortsToKill, options) {
2164
2177
  /* */
2165
2178
  /* */