tnp-core 21.0.54 → 21.0.58
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/browser/README.md +24 -24
- package/browser/fesm2022/tnp-core-browser.mjs +29 -8
- package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser-prod/README.md +24 -24
- package/browser-prod/fesm2022/tnp-core-browser.mjs +29 -8
- package/browser-prod/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser-prod/package.json +1 -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/core-imports.js +4 -7
- package/lib/core-imports.js.map +1 -1
- package/lib/helpers.js +4 -7
- package/lib/helpers.js.map +1 -1
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/package.json +1 -1
- package/lib-prod/build-info._auto-generated_.ts +1 -1
- package/lib-prod/config.ts +16 -0
- package/lib-prod/constants.ts +1 -0
- package/lib-prod/core-cli.ts +6 -0
- package/lib-prod/core-config.ts +1 -1
- package/lib-prod/core-imports.ts +48 -8
- package/lib-prod/core-models.ts +3 -1
- package/lib-prod/framework-name.ts +1 -1
- package/lib-prod/helpers.ts +28 -7
- package/lib-prod/index.ts +1 -1
- package/lib-prod/lodash.namespace.ts +309 -1
- package/lib-prod/node-chalk-mock.ts +1 -1
- package/lib-prod/node-path-mock.ts +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/progress-data.ts +3 -0
- package/lib-prod/required-global-npm-packages.ts +1 -1
- package/lib-prod/utils.ts +26 -3
- package/package.json +1 -1
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-core-websql.mjs +29 -8
- package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql-prod/README.md +24 -24
- package/websql-prod/fesm2022/tnp-core-websql.mjs +29 -8
- package/websql-prod/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql-prod/package.json +1 -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
|
+
```
|
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.
|
|
@@ -851,11 +851,33 @@ const path$1 = {
|
|
|
851
851
|
};
|
|
852
852
|
//#endregion
|
|
853
853
|
|
|
854
|
-
let forceTrace = false;
|
|
855
|
-
//#region constants
|
|
854
|
+
// let forceTrace = false;
|
|
856
855
|
/* */
|
|
857
856
|
/* */
|
|
858
|
-
|
|
857
|
+
/* */
|
|
858
|
+
/* */
|
|
859
|
+
/* */
|
|
860
|
+
/* */
|
|
861
|
+
/* */
|
|
862
|
+
/* */
|
|
863
|
+
/* */
|
|
864
|
+
/* */
|
|
865
|
+
/* */
|
|
866
|
+
/* */
|
|
867
|
+
/* */
|
|
868
|
+
/* */
|
|
869
|
+
/* */
|
|
870
|
+
/* */
|
|
871
|
+
/* */
|
|
872
|
+
/* */
|
|
873
|
+
/* */
|
|
874
|
+
/* */
|
|
875
|
+
/* */
|
|
876
|
+
/* */
|
|
877
|
+
/* */
|
|
878
|
+
/* */
|
|
879
|
+
/* */
|
|
880
|
+
//#region @browser
|
|
859
881
|
//#region set up browser mocks
|
|
860
882
|
//#region set up browser mocks / mock jquery
|
|
861
883
|
let $;
|
|
@@ -1030,9 +1052,10 @@ const crossPlatformPath = (pathStringOrPathParts) => {
|
|
|
1030
1052
|
if (isExtendedLengthPath) {
|
|
1031
1053
|
console.warn(`[taon-core][crossPlatformPath]: Path starts with \\\\,
|
|
1032
1054
|
this is not supported in crossPlatformPath`);
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1055
|
+
/* */
|
|
1056
|
+
/* */
|
|
1057
|
+
/* */
|
|
1058
|
+
/* */
|
|
1036
1059
|
}
|
|
1037
1060
|
if (hasNonAscii) {
|
|
1038
1061
|
const allNonAscii = pathStringOrPathParts.match(/[^\u0000-\u0080]+/g) || '';
|
|
@@ -8035,8 +8058,6 @@ var UtilsCliClassMethod;
|
|
|
8035
8058
|
})(UtilsCliClassMethod || (UtilsCliClassMethod = {}));
|
|
8036
8059
|
//#endregion
|
|
8037
8060
|
|
|
8038
|
-
/* */
|
|
8039
|
-
/* */
|
|
8040
8061
|
/* */
|
|
8041
8062
|
/* */
|
|
8042
8063
|
const WEBSQL_PROC_MOCK_PROCESSES_PID = {};
|