tnp-core 21.0.153 → 21.0.155
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/README.md +20 -20
- package/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/bin/start.js +37 -37
- package/browser/README.md +24 -24
- package/browser/fesm2022/tnp-core-browser.mjs +261 -73
- package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-core-browser.d.ts +79 -12
- package/browser-prod/README.md +24 -24
- package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +258 -74
- package/browser-prod/fesm2022/tnp-core-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/tnp-core-browser-prod.d.ts +77 -12
- package/browser-prod.split-namespaces.json +17 -1
- package/cli.backend.js +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/constants.d.ts +11 -6
- package/lib/constants.js +29 -27
- package/lib/constants.js.map +1 -1
- package/lib/core-imports.js +8 -0
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +4 -0
- package/lib/core-models.js +20 -0
- package/lib/core-models.js.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/jsonc-parse.test.d.ts +1 -1
- package/lib/node-path-mock.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/utils-md-docs.d.ts +19 -0
- package/lib/utils-md-docs.js +124 -0
- package/lib/utils-md-docs.js.map +1 -0
- package/lib/utils-md-docs.test.d.ts +1 -0
- package/lib/utils-progress.test.d.ts +1 -1
- package/lib/utils-string-regex.d.ts +5 -0
- package/lib/utils-string-regex.js +17 -0
- package/lib/utils-string-regex.js.map +1 -1
- package/lib-esm/app.hosts.d.ts +2 -2
- package/lib-esm/app.hosts.js +7 -4
- package/lib-esm/app.hosts.js.map +1 -1
- package/lib-esm/cli.backend.d.ts +1 -1
- package/lib-esm/cli.backend.js +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/constants.d.ts +11 -6
- package/lib-esm/lib/constants.js +28 -26
- package/lib-esm/lib/constants.js.map +1 -1
- package/lib-esm/lib/core-imports.js +43 -0
- package/lib-esm/lib/core-imports.js.map +1 -1
- package/lib-esm/lib/core-models.d.ts +4 -0
- package/lib-esm/lib/core-models.js +20 -0
- package/lib-esm/lib/core-models.js.map +1 -1
- package/lib-esm/lib/index.d.ts +5 -0
- package/lib-esm/lib/index.js +8 -0
- package/lib-esm/lib/index.js.map +1 -1
- package/lib-esm/lib/node-path-mock.js.map +1 -1
- package/lib-esm/lib/utils-md-docs.d.ts +19 -0
- package/lib-esm/lib/utils-md-docs.js +121 -0
- package/lib-esm/lib/utils-md-docs.js.map +1 -0
- package/lib-esm/lib/utils-string-regex.d.ts +5 -0
- package/lib-esm/lib/utils-string-regex.js +17 -0
- package/lib-esm/lib/utils-string-regex.js.map +1 -1
- package/lib-esm/lib/utils-terminal.js +168 -0
- package/lib-esm/lib/utils-terminal.js.map +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/constants.d.ts +11 -6
- package/lib-prod/constants.js +28 -26
- package/lib-prod/constants.js.map +1 -1
- package/lib-prod/core-imports.js +8 -0
- package/lib-prod/core-imports.js.map +1 -1
- package/lib-prod/core-models.d.ts +4 -0
- package/lib-prod/core-models.js +19 -0
- package/lib-prod/core-models.js.map +1 -1
- package/lib-prod/helpers.js.map +1 -1
- package/lib-prod/index.d.ts +5 -0
- package/lib-prod/index.js +8 -0
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/node-path-mock.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/utils-binary.js.map +1 -1
- package/lib-prod/utils-cli.js.map +1 -1
- package/lib-prod/utils-files-folders.js.map +1 -1
- package/lib-prod/utils-md-docs.d.ts +17 -0
- package/lib-prod/utils-md-docs.js +118 -0
- package/lib-prod/utils-md-docs.js.map +1 -0
- package/lib-prod/utils-os.js.map +1 -1
- package/lib-prod/utils-string-regex.d.ts +5 -0
- package/lib-prod/utils-string-regex.js +17 -0
- package/lib-prod/utils-string-regex.js.map +1 -1
- package/lib-prod.split-namespaces.json +17 -1
- package/package.json +1 -1
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-core-websql.mjs +261 -73
- package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-core-websql.d.ts +79 -12
- package/websql-prod/README.md +24 -24
- package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +258 -74
- package/websql-prod/fesm2022/tnp-core-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/tnp-core-websql-prod.d.ts +77 -12
- package/websql-prod.split-namespaces.json +17 -1
- package/lib/jsonc-parse.test.js +0 -449
- package/lib/jsonc-parse.test.js.map +0 -1
- package/lib/lowdb/adapters/browser/LocalStorage.d.ts +0 -4
- package/lib/lowdb/adapters/browser/LocalStorage.js +0 -13
- package/lib/lowdb/adapters/browser/LocalStorage.js.map +0 -1
- package/lib/lowdb/adapters/browser/SessionStorage.d.ts +0 -4
- package/lib/lowdb/adapters/browser/SessionStorage.js +0 -13
- package/lib/lowdb/adapters/browser/SessionStorage.js.map +0 -1
- package/lib/lowdb/adapters/browser/WebStorage.d.ts +0 -8
- package/lib/lowdb/adapters/browser/WebStorage.js +0 -24
- package/lib/lowdb/adapters/browser/WebStorage.js.map +0 -1
- package/lib/utils-imports.test.js +0 -124
- package/lib/utils-imports.test.js.map +0 -1
- package/lib/utils-progress.test.js +0 -194
- package/lib/utils-progress.test.js.map +0 -1
- package/lib/utils-projects.test.js +0 -308
- package/lib/utils-projects.test.js.map +0 -1
- package/lib-esm/lib/jsonc-parse.test.d.ts +0 -1
- package/lib-esm/lib/jsonc-parse.test.js +0 -447
- package/lib-esm/lib/jsonc-parse.test.js.map +0 -1
- package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.d.ts +0 -4
- package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js +0 -9
- package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js.map +0 -1
- package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.d.ts +0 -4
- package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js +0 -9
- package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js.map +0 -1
- package/lib-esm/lib/lowdb/adapters/browser/WebStorage.d.ts +0 -8
- package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js +0 -20
- package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js.map +0 -1
- package/lib-esm/lib/utils-imports.test.d.ts +0 -0
- package/lib-esm/lib/utils-imports.test.js +0 -124
- package/lib-esm/lib/utils-imports.test.js.map +0 -1
- package/lib-esm/lib/utils-progress.test.d.ts +0 -1
- package/lib-esm/lib/utils-progress.test.js +0 -192
- package/lib-esm/lib/utils-progress.test.js.map +0 -1
- package/lib-esm/lib/utils-projects.test.d.ts +0 -0
- package/lib-esm/lib/utils-projects.test.js +0 -308
- package/lib-esm/lib/utils-projects.test.js.map +0 -1
- package/lib-prod/jsonc-parse.test.d.ts +0 -1
- package/lib-prod/jsonc-parse.test.js +0 -447
- package/lib-prod/jsonc-parse.test.js.map +0 -1
- package/lib-prod/lowdb/adapters/browser/LocalStorage.d.ts +0 -4
- package/lib-prod/lowdb/adapters/browser/LocalStorage.js +0 -9
- package/lib-prod/lowdb/adapters/browser/LocalStorage.js.map +0 -1
- package/lib-prod/lowdb/adapters/browser/SessionStorage.d.ts +0 -4
- package/lib-prod/lowdb/adapters/browser/SessionStorage.js +0 -9
- package/lib-prod/lowdb/adapters/browser/SessionStorage.js.map +0 -1
- package/lib-prod/lowdb/adapters/browser/WebStorage.d.ts +0 -8
- package/lib-prod/lowdb/adapters/browser/WebStorage.js +0 -20
- package/lib-prod/lowdb/adapters/browser/WebStorage.js.map +0 -1
- package/lib-prod/utils-imports.test.d.ts +0 -0
- package/lib-prod/utils-imports.test.js +0 -124
- package/lib-prod/utils-imports.test.js.map +0 -1
- package/lib-prod/utils-progress.test.d.ts +0 -1
- package/lib-prod/utils-progress.test.js +0 -192
- package/lib-prod/utils-progress.test.js.map +0 -1
- package/lib-prod/utils-projects.test.d.ts +0 -0
- package/lib-prod/utils-projects.test.js +0 -308
- package/lib-prod/utils-projects.test.js.map +0 -1
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
1
|
{
|
|
2
|
-
"commitHash": "
|
|
3
|
-
"commitName": "
|
|
4
|
-
"commitDate": "
|
|
2
|
+
"commitHash": "37283904853b98225a936b3ce8f6218f06b0663c",
|
|
3
|
+
"commitName": "refactor: cut tags proper full names",
|
|
4
|
+
"commitDate": "21-08-2026 21:38:48"
|
|
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.
|
|
@@ -1501,6 +1501,26 @@ var CoreModels;
|
|
|
1501
1501
|
EnvironmentName["STAGING"] = "staging";
|
|
1502
1502
|
})(EnvironmentName = CoreModels.EnvironmentName || (CoreModels.EnvironmentName = {}));
|
|
1503
1503
|
CoreModels.EnvironmentNameArr = Object.values(EnvironmentName);
|
|
1504
|
+
function splitEnv(value) {
|
|
1505
|
+
if (!value) {
|
|
1506
|
+
return {
|
|
1507
|
+
envName: value,
|
|
1508
|
+
envNumber: undefined,
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
const match = value.match(/^(.+?)(\d+)?$/);
|
|
1512
|
+
if (!match) {
|
|
1513
|
+
return {
|
|
1514
|
+
envName: value,
|
|
1515
|
+
envNumber: undefined,
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
return {
|
|
1519
|
+
envName: match[1],
|
|
1520
|
+
envNumber: match[2] !== undefined ? Number(match[2]) : undefined,
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
CoreModels.splitEnv = splitEnv;
|
|
1504
1524
|
CoreModels.GitConnectionArr = ['https', 'ssh'];
|
|
1505
1525
|
CoreModels.ImageFileExtensionArr = [
|
|
1506
1526
|
'jpg',
|
|
@@ -1865,6 +1885,7 @@ var UtilsProgress;
|
|
|
1865
1885
|
//#endregion
|
|
1866
1886
|
})(UtilsProgress || (UtilsProgress = {}));
|
|
1867
1887
|
|
|
1888
|
+
// @taonSkipCut
|
|
1868
1889
|
// @ts-ignore
|
|
1869
1890
|
const isCloudflareWorker = typeof WebSocketPair !== 'undefined';
|
|
1870
1891
|
const taonContainers = 'taon-containers';
|
|
@@ -1884,48 +1905,50 @@ var LibTypeEnum;
|
|
|
1884
1905
|
LibTypeEnum["UNKNOWN"] = "unknown";
|
|
1885
1906
|
})(LibTypeEnum || (LibTypeEnum = {}));
|
|
1886
1907
|
const GlobalLibTypeName = {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1908
|
+
//#region @backend
|
|
1909
|
+
isomorphicLib: LibTypeEnum.ISOMORPHIC_LIB,
|
|
1910
|
+
container: LibTypeEnum.CONTAINER,
|
|
1911
|
+
/**
|
|
1912
|
+
* @deprecated
|
|
1913
|
+
*/
|
|
1914
|
+
docker: 'docker',
|
|
1915
|
+
unknowNpmProject: LibTypeEnum.UNKNOWN_NPM_PROJECT,
|
|
1916
|
+
/**
|
|
1917
|
+
* @deprecated
|
|
1918
|
+
*/
|
|
1919
|
+
vscodeExt: 'vscode-ext',
|
|
1920
|
+
/**
|
|
1921
|
+
* @deprecated
|
|
1922
|
+
*/
|
|
1923
|
+
chromeExt: 'chrome-ext',
|
|
1924
|
+
/**
|
|
1925
|
+
* @deprecated
|
|
1926
|
+
*/
|
|
1927
|
+
singleFileProject: 'single-file-project',
|
|
1928
|
+
/**
|
|
1929
|
+
* @deprecated
|
|
1930
|
+
*/
|
|
1931
|
+
navi: 'navi',
|
|
1932
|
+
/**
|
|
1933
|
+
* @deprecated
|
|
1934
|
+
*/
|
|
1935
|
+
scenario: 'scenario',
|
|
1936
|
+
//#endregion
|
|
1915
1937
|
};
|
|
1916
1938
|
/**
|
|
1917
1939
|
* @deprecated
|
|
1918
1940
|
*/
|
|
1919
1941
|
const LibTypeArr = [
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1942
|
+
//#region @backend
|
|
1943
|
+
GlobalLibTypeName.isomorphicLib,
|
|
1944
|
+
GlobalLibTypeName.container,
|
|
1945
|
+
GlobalLibTypeName.docker,
|
|
1946
|
+
GlobalLibTypeName.unknowNpmProject,
|
|
1947
|
+
GlobalLibTypeName.vscodeExt,
|
|
1948
|
+
GlobalLibTypeName.chromeExt,
|
|
1949
|
+
GlobalLibTypeName.navi,
|
|
1950
|
+
GlobalLibTypeName.scenario,
|
|
1951
|
+
//#endregion
|
|
1929
1952
|
];
|
|
1930
1953
|
//#region constants / files not allowed to clean
|
|
1931
1954
|
const filesNotAllowedToClean = {
|
|
@@ -2088,14 +2111,15 @@ const folderName = {
|
|
|
2088
2111
|
//#endregion
|
|
2089
2112
|
//#region constants / trusted packages for update
|
|
2090
2113
|
const areTrustedForPatchUpdate = [
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2114
|
+
//#region @backend
|
|
2115
|
+
'@angular',
|
|
2116
|
+
'@ngrx',
|
|
2117
|
+
'rxjs',
|
|
2118
|
+
'zone.js',
|
|
2119
|
+
'tslib',
|
|
2120
|
+
'typescript',
|
|
2121
|
+
'webpack',
|
|
2122
|
+
//#endregion
|
|
2099
2123
|
];
|
|
2100
2124
|
//#endregion
|
|
2101
2125
|
const extAllowedToExportAndReplaceTSJSCodeFiles = [
|
|
@@ -2185,26 +2209,34 @@ const appRelatedFiles = [
|
|
|
2185
2209
|
'app.worker.ts',
|
|
2186
2210
|
];
|
|
2187
2211
|
const TAGS = {
|
|
2188
|
-
BACKEND:
|
|
2189
|
-
BACKEND_FUNC:
|
|
2190
|
-
BROWSER:
|
|
2191
|
-
WEBSQL_ONLY:
|
|
2192
|
-
WEBSQL:
|
|
2193
|
-
WEBSQL_FUNC:
|
|
2194
|
-
NOT_FOR_NPM:
|
|
2195
|
-
ESM_REMOVE:
|
|
2196
|
-
ESM_ONLY_LINE:
|
|
2197
|
-
CJS_REMOVE:
|
|
2198
|
-
CJS_ONLY_LINE:
|
|
2199
|
-
CUT_CODE_IF_TRUE: '@
|
|
2200
|
-
CUT_CODE_IF_FALSE: '@
|
|
2201
|
-
COMMENT_REGION:
|
|
2202
|
-
COMMENT_END_REGION:
|
|
2203
|
-
APP_TS_GENERATED:
|
|
2204
|
-
APP_TS_PLACEHOLDER_IMPORTS:
|
|
2205
|
-
APP_TS_PLACEHOLDER_ROUTES:
|
|
2206
|
-
APP_TS_PLACEHOLDER_CONTEXTS_INIT:
|
|
2212
|
+
BACKEND: `@backend`,
|
|
2213
|
+
BACKEND_FUNC: `@backendFunc`,
|
|
2214
|
+
BROWSER: `@browser`,
|
|
2215
|
+
WEBSQL_ONLY: `@websqlOnly`,
|
|
2216
|
+
WEBSQL: `@websql`,
|
|
2217
|
+
WEBSQL_FUNC: `@websqlFunc`,
|
|
2218
|
+
NOT_FOR_NPM: `@notForNpm`,
|
|
2219
|
+
ESM_REMOVE: `@esmRemove`,
|
|
2220
|
+
ESM_ONLY_LINE: `@esmOnlyLine`,
|
|
2221
|
+
CJS_REMOVE: `@cjsRemove`,
|
|
2222
|
+
CJS_ONLY_LINE: `@cjsOnlyLine`,
|
|
2223
|
+
CUT_CODE_IF_TRUE: '@cutCodeIfTrue',
|
|
2224
|
+
CUT_CODE_IF_FALSE: '@cutCodeIfFalse',
|
|
2225
|
+
COMMENT_REGION: `//#region`,
|
|
2226
|
+
COMMENT_END_REGION: `//#endregion`,
|
|
2227
|
+
APP_TS_GENERATED: `@app-ts-generated`,
|
|
2228
|
+
APP_TS_PLACEHOLDER_IMPORTS: `@placeholder-for-imports`,
|
|
2229
|
+
APP_TS_PLACEHOLDER_ROUTES: `@placeholder-for-routes`,
|
|
2230
|
+
APP_TS_PLACEHOLDER_CONTEXTS_INIT: `@placeholder-for-contexts-init`,
|
|
2207
2231
|
};
|
|
2232
|
+
/**
|
|
2233
|
+
* don't cut next line
|
|
2234
|
+
*/
|
|
2235
|
+
const taonCutNextLineCut = '// @taonSkipNextLineCut';
|
|
2236
|
+
/**
|
|
2237
|
+
* Don't cut anything from file
|
|
2238
|
+
*/
|
|
2239
|
+
const taonSkipCut = '// @taonSkipCut';
|
|
2208
2240
|
const BaselineSiteJoinprefix = '__';
|
|
2209
2241
|
const PREFIXES = {
|
|
2210
2242
|
BASELINE: BaselineSiteJoinprefix,
|
|
@@ -2293,13 +2325,6 @@ const encoding = 'utf8';
|
|
|
2293
2325
|
* output when building multiple projects
|
|
2294
2326
|
*/
|
|
2295
2327
|
const taonActionFromParent = 'taon-action-from-parent';
|
|
2296
|
-
const globalSpinner = {
|
|
2297
|
-
get instance() {
|
|
2298
|
-
/* */
|
|
2299
|
-
/* */
|
|
2300
|
-
return (void 0);
|
|
2301
|
-
},
|
|
2302
|
-
};
|
|
2303
2328
|
|
|
2304
2329
|
//#region imports
|
|
2305
2330
|
//#endregion
|
|
@@ -12916,6 +12941,22 @@ var UtilsString;
|
|
|
12916
12941
|
.toLowerCase());
|
|
12917
12942
|
};
|
|
12918
12943
|
//#endregion
|
|
12944
|
+
UtilsString.listDiff = (arr1, arr2) => {
|
|
12945
|
+
const added = _.difference(arr2, arr1);
|
|
12946
|
+
const removed = _.difference(arr1, arr2);
|
|
12947
|
+
return {
|
|
12948
|
+
added,
|
|
12949
|
+
removed,
|
|
12950
|
+
infoMessage: () => {
|
|
12951
|
+
if (added.length) {
|
|
12952
|
+
console.info(`added: ${added.join(', ')}`);
|
|
12953
|
+
}
|
|
12954
|
+
if (removed.length) {
|
|
12955
|
+
console.info(`removed: ${removed.join(', ')}`);
|
|
12956
|
+
}
|
|
12957
|
+
},
|
|
12958
|
+
};
|
|
12959
|
+
};
|
|
12919
12960
|
})(UtilsString || (UtilsString = {}));
|
|
12920
12961
|
//#endregion
|
|
12921
12962
|
//#region utils string regex
|
|
@@ -13238,6 +13279,147 @@ var UtilsStdinStdoutLogger;
|
|
|
13238
13279
|
//#endregion
|
|
13239
13280
|
})(UtilsStdinStdoutLogger || (UtilsStdinStdoutLogger = {}));
|
|
13240
13281
|
|
|
13282
|
+
var UtilsMdDocs;
|
|
13283
|
+
(function (UtilsMdDocs) {
|
|
13284
|
+
function getRenderImports(mdContent) {
|
|
13285
|
+
/* */
|
|
13286
|
+
/* */
|
|
13287
|
+
/* */
|
|
13288
|
+
/* */
|
|
13289
|
+
/* */
|
|
13290
|
+
/* */
|
|
13291
|
+
/* */
|
|
13292
|
+
/* */
|
|
13293
|
+
/* */
|
|
13294
|
+
/* */
|
|
13295
|
+
/* */
|
|
13296
|
+
/* */
|
|
13297
|
+
/* */
|
|
13298
|
+
/* */
|
|
13299
|
+
/* */
|
|
13300
|
+
/* */
|
|
13301
|
+
/* */
|
|
13302
|
+
/* */
|
|
13303
|
+
/* */
|
|
13304
|
+
/* */
|
|
13305
|
+
/* */
|
|
13306
|
+
/* */
|
|
13307
|
+
/* */
|
|
13308
|
+
/* */
|
|
13309
|
+
/* */
|
|
13310
|
+
/* */
|
|
13311
|
+
/* */
|
|
13312
|
+
/* */
|
|
13313
|
+
/* */
|
|
13314
|
+
/* */
|
|
13315
|
+
/* */
|
|
13316
|
+
/* */
|
|
13317
|
+
/* */
|
|
13318
|
+
/* */
|
|
13319
|
+
/* */
|
|
13320
|
+
/* */
|
|
13321
|
+
/* */
|
|
13322
|
+
/* */
|
|
13323
|
+
/* */
|
|
13324
|
+
/* */
|
|
13325
|
+
/* */
|
|
13326
|
+
/* */
|
|
13327
|
+
/* */
|
|
13328
|
+
/* */
|
|
13329
|
+
/* */
|
|
13330
|
+
/* */
|
|
13331
|
+
/* */
|
|
13332
|
+
/* */
|
|
13333
|
+
/* */
|
|
13334
|
+
/* */
|
|
13335
|
+
/* */
|
|
13336
|
+
/* */
|
|
13337
|
+
/* */
|
|
13338
|
+
/* */
|
|
13339
|
+
/* */
|
|
13340
|
+
/* */
|
|
13341
|
+
/* */
|
|
13342
|
+
/* */
|
|
13343
|
+
/* */
|
|
13344
|
+
/* */
|
|
13345
|
+
/* */
|
|
13346
|
+
/* */
|
|
13347
|
+
/* */
|
|
13348
|
+
return (void 0);
|
|
13349
|
+
}
|
|
13350
|
+
UtilsMdDocs.getRenderImports = getRenderImports;
|
|
13351
|
+
//#endregion
|
|
13352
|
+
//#region get assets
|
|
13353
|
+
/**
|
|
13354
|
+
* extract assets pathes from .md file
|
|
13355
|
+
*/
|
|
13356
|
+
UtilsMdDocs.getAssets = (mdfileContent) => {
|
|
13357
|
+
/* */
|
|
13358
|
+
/* */
|
|
13359
|
+
/* */
|
|
13360
|
+
/* */
|
|
13361
|
+
/* */
|
|
13362
|
+
/* */
|
|
13363
|
+
/* */
|
|
13364
|
+
/* */
|
|
13365
|
+
/* */
|
|
13366
|
+
/* */
|
|
13367
|
+
/* */
|
|
13368
|
+
/* */
|
|
13369
|
+
/* */
|
|
13370
|
+
/* */
|
|
13371
|
+
/* */
|
|
13372
|
+
/* */
|
|
13373
|
+
/* */
|
|
13374
|
+
/* */
|
|
13375
|
+
/* */
|
|
13376
|
+
/* */
|
|
13377
|
+
return (void 0);
|
|
13378
|
+
};
|
|
13379
|
+
//#endregion
|
|
13380
|
+
//#region get asset from file
|
|
13381
|
+
UtilsMdDocs.getAssetsFromFile = (absPathToFile) => {
|
|
13382
|
+
/* */
|
|
13383
|
+
/* */
|
|
13384
|
+
/* */
|
|
13385
|
+
/* */
|
|
13386
|
+
/* */
|
|
13387
|
+
/* */
|
|
13388
|
+
/* */
|
|
13389
|
+
/* */
|
|
13390
|
+
return (void 0);
|
|
13391
|
+
};
|
|
13392
|
+
//#endregion
|
|
13393
|
+
//#region get links to other md files
|
|
13394
|
+
/**
|
|
13395
|
+
* Extract links to other Markdown files from a given Markdown content.
|
|
13396
|
+
* @param mdfileContent
|
|
13397
|
+
*/
|
|
13398
|
+
UtilsMdDocs.getLinksToOtherMdFiles = (mdfileContent) => {
|
|
13399
|
+
/* */
|
|
13400
|
+
/* */
|
|
13401
|
+
/* */
|
|
13402
|
+
/* */
|
|
13403
|
+
/* */
|
|
13404
|
+
/* */
|
|
13405
|
+
/* */
|
|
13406
|
+
/* */
|
|
13407
|
+
/* */
|
|
13408
|
+
/* */
|
|
13409
|
+
/* */
|
|
13410
|
+
/* */
|
|
13411
|
+
/* */
|
|
13412
|
+
/* */
|
|
13413
|
+
/* */
|
|
13414
|
+
/* */
|
|
13415
|
+
/* */
|
|
13416
|
+
/* */
|
|
13417
|
+
/* */
|
|
13418
|
+
return (void 0);
|
|
13419
|
+
};
|
|
13420
|
+
//#endregion
|
|
13421
|
+
})(UtilsMdDocs || (UtilsMdDocs = {}));
|
|
13422
|
+
|
|
13241
13423
|
const jsoncFormattingOptions = {
|
|
13242
13424
|
insertSpaces: true,
|
|
13243
13425
|
tabSize: 2,
|
|
@@ -13756,12 +13938,18 @@ const config = {
|
|
|
13756
13938
|
// };
|
|
13757
13939
|
//#endregion
|
|
13758
13940
|
|
|
13759
|
-
|
|
13941
|
+
const globalSpinner = {
|
|
13942
|
+
get instance() {
|
|
13943
|
+
/* */
|
|
13944
|
+
/* */
|
|
13945
|
+
return (void 0);
|
|
13946
|
+
},
|
|
13947
|
+
};
|
|
13760
13948
|
var index = {};
|
|
13761
13949
|
|
|
13762
13950
|
/**
|
|
13763
13951
|
* Generated bundle index. Do not edit.
|
|
13764
13952
|
*/
|
|
13765
13953
|
|
|
13766
|
-
export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, Utils, UtilsBinary, UtilsCli, UtilsCliClassMethod, UtilsDotFile, UtilsEtcHosts, UtilsExecProc, UtilsFilesFolders, UtilsFilesFoldersSync, UtilsI18n, UtilsJson, UtilsMessages, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsProcess, UtilsProcessLogger, UtilsProgress, UtilsProjects, UtilsStdinStdoutLogger, UtilsString, UtilsStringRegex, UtilsSudo, UtilsTerminal, UtilsTime, UtilsWaitNotifier, UtilsYaml, _, appRelatedFiles, areTrustedForPatchUpdate, axios, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, execAsyncVscode, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, micromatch, mkdirp, ncp, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, tempFoldersName, tnpPackageName, updateJsoncContent, urlRepoTaon, urlRepoTaonContainers, win32Path };
|
|
13954
|
+
export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, Utils, UtilsBinary, UtilsCli, UtilsCliClassMethod, UtilsDotFile, UtilsEtcHosts, UtilsExecProc, UtilsFilesFolders, UtilsFilesFoldersSync, UtilsI18n, UtilsJson, UtilsMdDocs, UtilsMessages, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsProcess, UtilsProcessLogger, UtilsProgress, UtilsProjects, UtilsStdinStdoutLogger, UtilsString, UtilsStringRegex, UtilsSudo, UtilsTerminal, UtilsTime, UtilsWaitNotifier, UtilsYaml, _, appRelatedFiles, areTrustedForPatchUpdate, axios, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, execAsyncVscode, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, micromatch, mkdirp, ncp, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonCutNextLineCut, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, taonSkipCut, tempFoldersName, tnpPackageName, updateJsoncContent, urlRepoTaon, urlRepoTaonContainers, win32Path };
|
|
13767
13955
|
//# sourceMappingURL=tnp-core-browser.mjs.map
|