tnp-core 21.0.142 → 21.0.143

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 (93) hide show
  1. package/README.md +20 -20
  2. package/VERIFIED-BUILD-DATA.jsonc +4 -4
  3. package/bin/start.js +37 -37
  4. package/browser/README.md +24 -24
  5. package/browser/fesm2022/tnp-core-browser.mjs +225 -1
  6. package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
  7. package/browser/package.json +1 -1
  8. package/browser/types/tnp-core-browser.d.ts +9 -1
  9. package/browser-prod/README.md +24 -24
  10. package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +223 -1
  11. package/browser-prod/fesm2022/tnp-core-browser-prod.mjs.map +1 -1
  12. package/browser-prod/package.json +1 -1
  13. package/browser-prod/types/tnp-core-browser-prod.d.ts +8 -2
  14. package/browser-prod.split-namespaces.json +6 -0
  15. package/cli.backend.js +2 -2
  16. package/lib/build-info._auto-generated_.d.ts +1 -1
  17. package/lib/build-info._auto-generated_.js +1 -1
  18. package/lib/index.d.ts +1 -0
  19. package/lib/index.js +1 -0
  20. package/lib/index.js.map +1 -1
  21. package/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
  22. package/lib/lowdb/adapters/browser/LocalStorage.js +13 -0
  23. package/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
  24. package/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
  25. package/lib/lowdb/adapters/browser/SessionStorage.js +13 -0
  26. package/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
  27. package/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
  28. package/lib/lowdb/adapters/browser/WebStorage.js +24 -0
  29. package/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
  30. package/lib/node-chalk-mock.js +2 -2
  31. package/lib/node-path-mock.js +2 -2
  32. package/lib/package.json +1 -1
  33. package/lib/utils-stdin-stdout-logger.d.ts +7 -0
  34. package/lib/utils-stdin-stdout-logger.js +150 -0
  35. package/lib/utils-stdin-stdout-logger.js.map +1 -0
  36. package/lib-esm/cli.backend.d.ts +1 -1
  37. package/lib-esm/cli.backend.js +1 -1
  38. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  39. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  40. package/lib-esm/lib/index.d.ts +1 -0
  41. package/lib-esm/lib/index.js +1 -0
  42. package/lib-esm/lib/index.js.map +1 -1
  43. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
  44. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js +9 -0
  45. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
  46. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
  47. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js +9 -0
  48. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
  49. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
  50. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js +20 -0
  51. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
  52. package/lib-esm/lib/node-chalk-mock.d.ts +1 -1
  53. package/lib-esm/lib/node-chalk-mock.js +1 -1
  54. package/lib-esm/lib/node-path-mock.d.ts +1 -1
  55. package/lib-esm/lib/node-path-mock.js +1 -1
  56. package/lib-esm/lib/utils-stdin-stdout-logger.d.ts +7 -0
  57. package/lib-esm/lib/utils-stdin-stdout-logger.js +147 -0
  58. package/lib-esm/lib/utils-stdin-stdout-logger.js.map +1 -0
  59. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  60. package/lib-prod/build-info._auto-generated_.js +1 -1
  61. package/lib-prod/index.d.ts +1 -0
  62. package/lib-prod/index.js +1 -0
  63. package/lib-prod/index.js.map +1 -1
  64. package/lib-prod/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
  65. package/lib-prod/lowdb/adapters/browser/LocalStorage.js +9 -0
  66. package/lib-prod/lowdb/adapters/browser/LocalStorage.js.map +1 -0
  67. package/lib-prod/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
  68. package/lib-prod/lowdb/adapters/browser/SessionStorage.js +9 -0
  69. package/lib-prod/lowdb/adapters/browser/SessionStorage.js.map +1 -0
  70. package/lib-prod/lowdb/adapters/browser/WebStorage.d.ts +8 -0
  71. package/lib-prod/lowdb/adapters/browser/WebStorage.js +20 -0
  72. package/lib-prod/lowdb/adapters/browser/WebStorage.js.map +1 -0
  73. package/lib-prod/node-chalk-mock.d.ts +1 -1
  74. package/lib-prod/node-chalk-mock.js +1 -1
  75. package/lib-prod/node-path-mock.d.ts +1 -1
  76. package/lib-prod/node-path-mock.js +1 -1
  77. package/lib-prod/package.json +1 -1
  78. package/lib-prod/utils-stdin-stdout-logger.d.ts +5 -0
  79. package/lib-prod/utils-stdin-stdout-logger.js +145 -0
  80. package/lib-prod/utils-stdin-stdout-logger.js.map +1 -0
  81. package/lib-prod.split-namespaces.json +6 -0
  82. package/package.json +1 -1
  83. package/websql/README.md +24 -24
  84. package/websql/fesm2022/tnp-core-websql.mjs +225 -1
  85. package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
  86. package/websql/package.json +1 -1
  87. package/websql/types/tnp-core-websql.d.ts +9 -1
  88. package/websql-prod/README.md +24 -24
  89. package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +223 -1
  90. package/websql-prod/fesm2022/tnp-core-websql-prod.mjs.map +1 -1
  91. package/websql-prod/package.json +1 -1
  92. package/websql-prod/types/tnp-core-websql-prod.d.ts +8 -2
  93. package/websql-prod.split-namespaces.json +6 -0
package/README.md CHANGED
@@ -1,20 +1,20 @@
1
- # taon-core ( tnp-core )
2
-
3
- - Part of [taon.dev](https://github.com/darekf77/taon)
4
- - JavasScript/Typescript most essential helpers
5
- - Basic taon releated helpers
6
- - Purpose:
7
- + lightweight most essential helpers library
8
- + crossplatform helpers for NodeJs/Browser
9
-
10
-
11
- ## Usage
12
- - in taon isomorphic libs/apps or any NodeJS apps/libs:
13
- ```ts
14
- import { Helpers } from 'tnp-core';
15
- ```
16
-
17
- - in any frontend browser apps (except taon libs/apps)
18
- ```ts
19
- import { Helpers } from 'tnp-core/browser';
20
- ```
1
+ # taon-core ( tnp-core )
2
+
3
+ - Part of [taon.dev](https://github.com/darekf77/taon)
4
+ - JavasScript/Typescript most essential helpers
5
+ - Basic taon releated helpers
6
+ - Purpose:
7
+ + lightweight most essential helpers library
8
+ + crossplatform helpers for NodeJs/Browser
9
+
10
+
11
+ ## Usage
12
+ - in taon isomorphic libs/apps or any NodeJS apps/libs:
13
+ ```ts
14
+ import { Helpers } from 'tnp-core';
15
+ ```
16
+
17
+ - in any frontend browser apps (except taon libs/apps)
18
+ ```ts
19
+ import { Helpers } from 'tnp-core/browser';
20
+ ```
@@ -1,5 +1,5 @@
1
- {
2
- "commitHash": "d3c9a9254da04fe0f0a909c4a915ef0006201b21",
3
- "commitName": "chore: update",
4
- "commitDate": "21-07-2026 20:53:29"
1
+ {
2
+ "commitHash": "dc3fbda01952a0dedaebc762490867c6b7005e00",
3
+ "commitName": "feat: logger for workers",
4
+ "commitDate": "23-07-2026 14:46:36"
5
5
  }
package/bin/start.js CHANGED
@@ -1,38 +1,38 @@
1
- global.frameworkName = 'tnp-core';
2
- Error.stackTraceLimit = 100;
3
- global.i0 = {
4
- defineInjectable: function () { }
5
- }
6
- const process= require('process');
7
- global.currentTaonScriptStartDateTime = process.hrtime.bigint();
8
-
9
- process.removeAllListeners('warning');
10
- var argv = process.argv;
11
-
12
- global.hideLog = true;
13
- global.verboseLevel = 0;
14
- var verboseLevel = argv.find(a => a.startsWith('-verbose='));
15
- if (typeof verboseLevel !== 'undefined') {
16
- global.hideLog = false;
17
- verboseLevel = Number(verboseLevel.replace('-verbose=', ''));
18
- if (!isNaN(verboseLevel)) {
19
- global.verboseLevel = verboseLevel;
20
- }
21
- argv = argv.filter(a => !a.startsWith('-verbose='));
22
- }
23
-
24
- if (argv.includes('-verbose')) {
25
- global.hideLog = false;
26
- argv = argv.filter(a => a !== '-verbose');
27
- }
28
-
29
- const fs = require('fs');
30
- const path = require('path');
31
- var pathToCliJS = {
32
- distDev: path.join(__dirname, '../dist/cli.js'),
33
- localOrNPm: path.join(__dirname, '../cli.js')
34
- }
35
- var p = fs.existsSync(pathToCliJS.distDev) ? pathToCliJS.distDev : pathToCliJS.localOrNPm;
36
- global.globalSystemToolMode = true;
37
- var run = require(p).startCli;
1
+ global.frameworkName = 'tnp-core';
2
+ Error.stackTraceLimit = 100;
3
+ global.i0 = {
4
+ defineInjectable: function () { }
5
+ }
6
+ const process= require('process');
7
+ global.currentTaonScriptStartDateTime = process.hrtime.bigint();
8
+
9
+ process.removeAllListeners('warning');
10
+ var argv = process.argv;
11
+
12
+ global.hideLog = true;
13
+ global.verboseLevel = 0;
14
+ var verboseLevel = argv.find(a => a.startsWith('-verbose='));
15
+ if (typeof verboseLevel !== 'undefined') {
16
+ global.hideLog = false;
17
+ verboseLevel = Number(verboseLevel.replace('-verbose=', ''));
18
+ if (!isNaN(verboseLevel)) {
19
+ global.verboseLevel = verboseLevel;
20
+ }
21
+ argv = argv.filter(a => !a.startsWith('-verbose='));
22
+ }
23
+
24
+ if (argv.includes('-verbose')) {
25
+ global.hideLog = false;
26
+ argv = argv.filter(a => a !== '-verbose');
27
+ }
28
+
29
+ const fs = require('fs');
30
+ const path = require('path');
31
+ var pathToCliJS = {
32
+ distDev: path.join(__dirname, '../dist/cli.js'),
33
+ localOrNPm: path.join(__dirname, '../cli.js')
34
+ }
35
+ var p = fs.existsSync(pathToCliJS.distDev) ? pathToCliJS.distDev : pathToCliJS.localOrNPm;
36
+ global.globalSystemToolMode = true;
37
+ var run = require(p).startCli;
38
38
  run(argv,__filename);
package/browser/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -12374,6 +12374,230 @@ var UtilsI18n;
12374
12374
  UtilsI18n.detectLocale = detectLocale;
12375
12375
  })(UtilsI18n || (UtilsI18n = {}));
12376
12376
 
12377
+ /* */
12378
+ var UtilsStdinStdoutLogger;
12379
+ (function (UtilsStdinStdoutLogger) {
12380
+ //#region register loggin app
12381
+ UtilsStdinStdoutLogger.registerFor = (workerName, groupName) => {
12382
+ /* */
12383
+ /* */
12384
+ /* */
12385
+ /* */
12386
+ /* */
12387
+ /* */
12388
+ /* */
12389
+ /* */
12390
+ /* */
12391
+ /* */
12392
+ /* */
12393
+ /* */
12394
+ /* */
12395
+ /* */
12396
+ /* */
12397
+ /* */
12398
+ /* */
12399
+ /* */
12400
+ /* */
12401
+ /* */
12402
+ /* */
12403
+ /* */
12404
+ /* */
12405
+ /* */
12406
+ /* */
12407
+ /* */
12408
+ /* */
12409
+ /* */
12410
+ /* */
12411
+ /* */
12412
+ /* */
12413
+ /* */
12414
+ /* */
12415
+ /* */
12416
+ /* */
12417
+ /* */
12418
+ /* */
12419
+ /* */
12420
+ /* */
12421
+ /* */
12422
+ /* */
12423
+ /* */
12424
+ /* */
12425
+ /* */
12426
+ /* */
12427
+ /* */
12428
+ /* */
12429
+ /* */
12430
+ /* */
12431
+ /* */
12432
+ /* */
12433
+ /* */
12434
+ /* */
12435
+ /* */
12436
+ /* */
12437
+ /* */
12438
+ /* */
12439
+ /* */
12440
+ /* */
12441
+ /* */
12442
+ /* */
12443
+ /* */
12444
+ /* */
12445
+ /* */
12446
+ /* */
12447
+ /* */
12448
+ /* */
12449
+ /* */
12450
+ /* */
12451
+ /* */
12452
+ /* */
12453
+ /* */
12454
+ /* */
12455
+ /* */
12456
+ /* */
12457
+ /* */
12458
+ /* */
12459
+ /* */
12460
+ /* */
12461
+ /* */
12462
+ /* */
12463
+ /* */
12464
+ /* */
12465
+ /* */
12466
+ /* */
12467
+ /* */
12468
+ /* */
12469
+ /* */
12470
+ /* */
12471
+ /* */
12472
+ /* */
12473
+ /* */
12474
+ /* */
12475
+ /* */
12476
+ /* */
12477
+ /* */
12478
+ /* */
12479
+ /* */
12480
+ /* */
12481
+ /* */
12482
+ /* */
12483
+ /* */
12484
+ /* */
12485
+ /* */
12486
+ /* */
12487
+ /* */
12488
+ /* */
12489
+ /* */
12490
+ /* */
12491
+ /* */
12492
+ /* */
12493
+ /* */
12494
+ /* */
12495
+ /* */
12496
+ /* */
12497
+ /* */
12498
+ /* */
12499
+ /* */
12500
+ /* */
12501
+ /* */
12502
+ /* */
12503
+ /* */
12504
+ /* */
12505
+ /* */
12506
+ /* */
12507
+ /* */
12508
+ /* */
12509
+ /* */
12510
+ /* */
12511
+ /* */
12512
+ /* */
12513
+ /* */
12514
+ /* */
12515
+ /* */
12516
+ /* */
12517
+ /* */
12518
+ /* */
12519
+ /* */
12520
+ /* */
12521
+ /* */
12522
+ /* */
12523
+ /* */
12524
+ /* */
12525
+ /* */
12526
+ /* */
12527
+ /* */
12528
+ /* */
12529
+ /* */
12530
+ /* */
12531
+ /* */
12532
+ /* */
12533
+ /* */
12534
+ /* */
12535
+ /* */
12536
+ /* */
12537
+ /* */
12538
+ /* */
12539
+ /* */
12540
+ /* */
12541
+ /* */
12542
+ /* */
12543
+ /* */
12544
+ /* */
12545
+ /* */
12546
+ /* */
12547
+ /* */
12548
+ /* */
12549
+ /* */
12550
+ /* */
12551
+ /* */
12552
+ /* */
12553
+ /* */
12554
+ /* */
12555
+ /* */
12556
+ return (void 0);
12557
+ };
12558
+ //#region create patched write
12559
+ const createPatchedWrite = (stream, originalWrite, appendSynchronously) => {
12560
+ /* */
12561
+ /* */
12562
+ /* */
12563
+ /* */
12564
+ /* */
12565
+ /* */
12566
+ /* */
12567
+ /* */
12568
+ /* */
12569
+ /* */
12570
+ /* */
12571
+ /* */
12572
+ /* */
12573
+ /* */
12574
+ /* */
12575
+ /* */
12576
+ /* */
12577
+ /* */
12578
+ /* */
12579
+ /* */
12580
+ /* */
12581
+ /* */
12582
+ /* */
12583
+ /* */
12584
+ /* */
12585
+ /* */
12586
+ return (void 0);
12587
+ };
12588
+ //#endregion
12589
+ //#region sanitize filename
12590
+ const sanitizeFileName = (value) => {
12591
+ const sanitized = value
12592
+ .trim()
12593
+ .replace(/[<>:"/\\|?*\u0000-\u001F]/g, '-')
12594
+ .replace(/\s+/g, '-')
12595
+ .replace(/-+/g, '-');
12596
+ return sanitized || 'unnamed-worker';
12597
+ };
12598
+ //#endregion
12599
+ })(UtilsStdinStdoutLogger || (UtilsStdinStdoutLogger = {}));
12600
+
12377
12601
  /**
12378
12602
  * TODO slowly refactor this.. only actually globally needed are:
12379
12603
  * pm2, yarn, npm-run, ts-node ???
@@ -12835,5 +13059,5 @@ var index = {};
12835
13059
  * Generated bundle index. Do not edit.
12836
13060
  */
12837
13061
 
12838
- export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, PROGRESS_DATA, REGEX_REGION, TAGS, Utils, UtilsBinary, UtilsCli, UtilsCliClassMethod, UtilsDotFile, UtilsEtcHosts, UtilsExecProc, UtilsFilesFolders, UtilsFilesFoldersSync, UtilsI18n, UtilsJson, UtilsMessages, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsProcess, UtilsProcessLogger, UtilsProjects, UtilsString, UtilsStringRegex, UtilsSudo, UtilsTerminal, UtilsTime, UtilsWaitNotifier, UtilsYaml, _, appRelatedFiles, areTrustedForPatchUpdate, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, fkill, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, load, mkdirp, ncp, net, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, tempFoldersName, tnpPackageName, urlRepoTaon, urlRepoTaonContainers, win32Path };
13062
+ export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, PROGRESS_DATA, REGEX_REGION, TAGS, Utils, UtilsBinary, UtilsCli, UtilsCliClassMethod, UtilsDotFile, UtilsEtcHosts, UtilsExecProc, UtilsFilesFolders, UtilsFilesFoldersSync, UtilsI18n, UtilsJson, UtilsMessages, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsProcess, UtilsProcessLogger, UtilsProjects, UtilsStdinStdoutLogger, UtilsString, UtilsStringRegex, UtilsSudo, UtilsTerminal, UtilsTime, UtilsWaitNotifier, UtilsYaml, _, appRelatedFiles, areTrustedForPatchUpdate, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, fkill, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, load, mkdirp, ncp, net, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, tempFoldersName, tnpPackageName, urlRepoTaon, urlRepoTaonContainers, win32Path };
12839
13063
  //# sourceMappingURL=tnp-core-browser.mjs.map