tnp-core 19.0.48 → 19.0.49

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 (67) hide show
  1. package/README.md +20 -20
  2. package/browser/README.md +24 -24
  3. package/browser/fesm2022/tnp-core.mjs +167 -32
  4. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  5. package/browser/lib/helpers.d.ts +7 -2
  6. package/browser/lib/utils.d.ts +16 -0
  7. package/browser/package.json +1 -1
  8. package/cli.backend.js +2 -2
  9. package/cli.backend.js.map +1 -1
  10. package/index.js.map +1 -1
  11. package/lib/build-info._auto-generated_.d.ts +1 -1
  12. package/lib/build-info._auto-generated_.js +1 -1
  13. package/lib/build-info._auto-generated_.js.map +1 -1
  14. package/lib/command-exists.js.map +1 -1
  15. package/lib/core-cli.js.map +1 -1
  16. package/lib/core-config.js.map +1 -1
  17. package/lib/core-imports.js +2 -1
  18. package/lib/core-imports.js.map +1 -1
  19. package/lib/core-models.js.map +1 -1
  20. package/lib/env/env.angular-node-app.d.ts +1 -0
  21. package/lib/env/env.angular-node-app.js +3 -2
  22. package/lib/env/env.angular-node-app.js.map +1 -1
  23. package/lib/env/env.docs-webapp.d.ts +1 -0
  24. package/lib/env/env.docs-webapp.js +3 -2
  25. package/lib/env/env.docs-webapp.js.map +1 -1
  26. package/lib/env/env.electron-app.d.ts +1 -0
  27. package/lib/env/env.electron-app.js +3 -2
  28. package/lib/env/env.electron-app.js.map +1 -1
  29. package/lib/env/env.mobile-app.d.ts +1 -0
  30. package/lib/env/env.mobile-app.js +3 -2
  31. package/lib/env/env.mobile-app.js.map +1 -1
  32. package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
  33. package/lib/env/env.npm-lib-and-cli-tool.js +3 -2
  34. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
  35. package/lib/env/env.vscode-plugin.d.ts +1 -0
  36. package/lib/env/env.vscode-plugin.js +3 -2
  37. package/lib/env/env.vscode-plugin.js.map +1 -1
  38. package/lib/env/index.js.map +1 -1
  39. package/lib/framework-name.d.ts +2 -2
  40. package/lib/framework-name.js.map +1 -1
  41. package/lib/helpers-isomorphic.js.map +1 -1
  42. package/lib/helpers-messages.js.map +1 -1
  43. package/lib/helpers.d.ts +9 -2
  44. package/lib/helpers.js +22 -27
  45. package/lib/helpers.js.map +1 -1
  46. package/lib/index._auto-generated_.js.map +1 -1
  47. package/lib/index.js.map +1 -1
  48. package/lib/node-chalk-mock.js +2 -2
  49. package/lib/node-chalk-mock.js.map +1 -1
  50. package/lib/node-path-mock.js +2 -2
  51. package/lib/node-path-mock.js.map +1 -1
  52. package/lib/progress-data.js.map +1 -1
  53. package/lib/public-api.js.map +1 -1
  54. package/lib/required-global-npm-packages.js.map +1 -1
  55. package/lib/utils.d.ts +16 -0
  56. package/lib/utils.js +128 -5
  57. package/lib/utils.js.map +1 -1
  58. package/migrations/index.js.map +1 -1
  59. package/migrations/migrations_index._auto-generated_.js.map +1 -1
  60. package/package.json +1 -1
  61. package/websql/README.md +24 -24
  62. package/websql/fesm2022/tnp-core.mjs +167 -32
  63. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  64. package/websql/lib/helpers.d.ts +7 -2
  65. package/websql/lib/utils.d.ts +16 -0
  66. package/websql/package.json +1 -1
  67. package/tmp-environment.json +0 -33
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.
@@ -729,7 +729,8 @@ const crossPlatformPath = (pathStringOrPathParts) => {
729
729
  }
730
730
  if (hasNonAscii) {
731
731
  const allNonAscii = pathStringOrPathParts.match(/[^\u0000-\u0080]+/g) || '';
732
- Helpers.logWarn(`[taon-core][crossPlatformPath]: Path contains non-ascii characters: ${allNonAscii}`);
732
+ Helpers.logWarn(`[taon-core][crossPlatformPath]: path below contains non-ascii characters (${allNonAscii}):
733
+ "${pathStringOrPathParts}"`);
733
734
  Helpers.logWarn(pathStringOrPathParts);
734
735
  }
735
736
  pathStringOrPathParts = (pathStringOrPathParts || '')
@@ -2447,6 +2448,44 @@ var UtilsOs;
2447
2448
  /* */
2448
2449
  /* */
2449
2450
  /* */
2451
+ /* */
2452
+ /* */
2453
+ /* */
2454
+ /* */
2455
+ /* */
2456
+ /* */
2457
+ /* */
2458
+ /* */
2459
+ /* */
2460
+ /* */
2461
+ /* */
2462
+ /* */
2463
+ /* */
2464
+ /* */
2465
+ /* */
2466
+ /* */
2467
+ /* */
2468
+ /* */
2469
+ /* */
2470
+ /* */
2471
+ /* */
2472
+ /* */
2473
+ /* */
2474
+ /* */
2475
+ /* */
2476
+ /* */
2477
+ /* */
2478
+ /* */
2479
+ /* */
2480
+ /* */
2481
+ /* */
2482
+ /* */
2483
+ /* */
2484
+ /* */
2485
+ /* */
2486
+ /* */
2487
+ /* */
2488
+ /* */
2450
2489
  return (void 0);
2451
2490
  };
2452
2491
  //#endregion
@@ -3211,6 +3250,103 @@ var UtilsTerminal;
3211
3250
  //#endregion
3212
3251
  })(UtilsTerminal || (UtilsTerminal = {}));
3213
3252
  //#endregion
3253
+ //#region utils json
3254
+ var UtilsJson;
3255
+ (function (UtilsJson) {
3256
+ //#region read json
3257
+ /**
3258
+ * read json from absolute path
3259
+ * @returns json object
3260
+ */
3261
+ UtilsJson.readJson = (absoluteFilePath, defaultValue = {}, useJson5 = false) => {
3262
+ /* */
3263
+ /* */
3264
+ /* */
3265
+ /* */
3266
+ /* */
3267
+ /* */
3268
+ /* */
3269
+ /* */
3270
+ /* */
3271
+ /* */
3272
+ /* */
3273
+ /* */
3274
+ /* */
3275
+ /* */
3276
+ /* */
3277
+ /* */
3278
+ /* */
3279
+ /* */
3280
+ /* */
3281
+ return (void 0);
3282
+ };
3283
+ //#endregion
3284
+ //#region read json with comments
3285
+ UtilsJson.readJsonWithComments = (absoluteFilePath, defaultValue = {}) => {
3286
+ /* */
3287
+ /* */
3288
+ return (void 0);
3289
+ };
3290
+ //#endregion
3291
+ })(UtilsJson || (UtilsJson = {}));
3292
+ //#endregion
3293
+ var UtilsYaml;
3294
+ (function (UtilsYaml) {
3295
+ UtilsYaml.yamlToJson = (yamlString) => {
3296
+ /* */
3297
+ /* */
3298
+ /* */
3299
+ /* */
3300
+ /* */
3301
+ /* */
3302
+ /* */
3303
+ /* */
3304
+ /* */
3305
+ return (void 0);
3306
+ };
3307
+ UtilsYaml.jsonToYaml = (json) => {
3308
+ /* */
3309
+ /* */
3310
+ /* */
3311
+ /* */
3312
+ /* */
3313
+ /* */
3314
+ /* */
3315
+ /* */
3316
+ /* */
3317
+ /* */
3318
+ /* */
3319
+ /* */
3320
+ return (void 0);
3321
+ };
3322
+ //#region read yaml as json
3323
+ UtilsYaml.readYamlAsJson = (absFilePathToYamlOrYmlFile, options) => {
3324
+ /* */
3325
+ /* */
3326
+ /* */
3327
+ /* */
3328
+ /* */
3329
+ /* */
3330
+ /* */
3331
+ /* */
3332
+ /* */
3333
+ /* */
3334
+ /* */
3335
+ return (void 0);
3336
+ };
3337
+ //#endregion
3338
+ //#region write json to yaml
3339
+ UtilsYaml.writeJsonToYaml = (destinationYamlfileAbsPath, json) => {
3340
+ /* */
3341
+ /* */
3342
+ /* */
3343
+ /* */
3344
+ /* */
3345
+ /* */
3346
+ return (void 0);
3347
+ };
3348
+ //#endregion
3349
+ })(UtilsYaml || (UtilsYaml = {}));
3214
3350
 
3215
3351
  class HelpersIsomorphic {
3216
3352
  /**
@@ -5832,42 +5968,22 @@ class HelpersCore extends HelpersMessages {
5832
5968
  //#endregion
5833
5969
  //#region methods / read json
5834
5970
  /**
5835
- * read json from absolute path
5836
- * @returns json object
5971
+ * @deprecated use UtilsJson.readJson or UtilsJson.readJson5
5837
5972
  */
5838
5973
  readJson(absoluteFilePath, defaultValue = {}, useJson5 = false) {
5839
- /* */
5840
- /* */
5841
- /* */
5842
- /* */
5843
- /* */
5844
- /* */
5845
- /* */
5846
- /* */
5847
- /* */
5848
- /* */
5849
- /* */
5850
- /* */
5851
- /* */
5852
- /* */
5853
- /* */
5854
- /* */
5855
- /* */
5856
- /* */
5857
- /* */
5858
- /* */
5859
- /* */
5860
- return (void 0);
5974
+ return UtilsJson.readJson(absoluteFilePath, defaultValue, useJson5);
5861
5975
  }
5976
+ /**
5977
+ * @deprecated use UtilsJson.readJsonWithComments
5978
+ */
5862
5979
  readJson5(absoluteFilePath, defaultValue = {}) {
5863
- /* */
5864
- /* */
5865
- return (void 0);
5980
+ return UtilsJson.readJsonWithComments(absoluteFilePath, defaultValue);
5866
5981
  }
5982
+ /**
5983
+ * @deprecated use UtilsJson.readJsonWithComments
5984
+ */
5867
5985
  readJsonC(absoluteFilePath, defaultValue = {}) {
5868
- /* */
5869
- /* */
5870
- return (void 0);
5986
+ return UtilsJson.readJsonWithComments(absoluteFilePath, defaultValue);
5871
5987
  }
5872
5988
  //#endregion
5873
5989
  //#region methods / parse
@@ -6135,6 +6251,25 @@ class HelpersCore extends HelpersMessages {
6135
6251
  /* */
6136
6252
  /* */
6137
6253
  /* */
6254
+ /* */
6255
+ /* */
6256
+ /* */
6257
+ /* */
6258
+ /* */
6259
+ /* */
6260
+ /* */
6261
+ /* */
6262
+ /* */
6263
+ /* */
6264
+ /* */
6265
+ /* */
6266
+ /* */
6267
+ /* */
6268
+ /* */
6269
+ /* */
6270
+ /* */
6271
+ /* */
6272
+ /* */
6138
6273
  //#endregion
6139
6274
  //#region methods / links from
6140
6275
  /* */
@@ -6472,5 +6607,5 @@ let Helpers = HelpersCore.InstanceCore;
6472
6607
  * Generated bundle index. Do not edit.
6473
6608
  */
6474
6609
 
6475
- export { $, CLI, CoreConfig, HelpersCore as CoreHelpers, CoreModels, Helpers, PROGRESS_DATA, Utils, UtilsMigrations, UtilsOs, UtilsProcess, UtilsString, UtilsTerminal, chalk, child_process, chokidar, crossPlatformPath, fg, fkill, frameworkName, frameworkNameBe, fse, glob, http, https, isElevated, mkdirp, ncp, net, os, path, ps, psList, requiredForDev, rimraf, spawn, win32Path };
6610
+ export { $, CLI, CoreConfig, HelpersCore as CoreHelpers, CoreModels, Helpers, PROGRESS_DATA, Utils, UtilsJson, UtilsMigrations, UtilsOs, UtilsProcess, UtilsString, UtilsTerminal, UtilsYaml, chalk, child_process, chokidar, crossPlatformPath, fg, fkill, frameworkName, frameworkNameBe, fse, glob, http, https, isElevated, mkdirp, ncp, net, os, path, ps, psList, requiredForDev, rimraf, spawn, win32Path };
6476
6611
  //# sourceMappingURL=tnp-core.mjs.map