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
@@ -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 || '')
@@ -2448,6 +2449,44 @@ var UtilsOs;
2448
2449
  /* */
2449
2450
  /* */
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
+ /* */
2489
+ /* */
2451
2490
  return (void 0);
2452
2491
  };
2453
2492
  //#endregion
@@ -3212,6 +3251,103 @@ var UtilsTerminal;
3212
3251
  //#endregion
3213
3252
  })(UtilsTerminal || (UtilsTerminal = {}));
3214
3253
  //#endregion
3254
+ //#region utils json
3255
+ var UtilsJson;
3256
+ (function (UtilsJson) {
3257
+ //#region read json
3258
+ /**
3259
+ * read json from absolute path
3260
+ * @returns json object
3261
+ */
3262
+ UtilsJson.readJson = (absoluteFilePath, defaultValue = {}, useJson5 = false) => {
3263
+ /* */
3264
+ /* */
3265
+ /* */
3266
+ /* */
3267
+ /* */
3268
+ /* */
3269
+ /* */
3270
+ /* */
3271
+ /* */
3272
+ /* */
3273
+ /* */
3274
+ /* */
3275
+ /* */
3276
+ /* */
3277
+ /* */
3278
+ /* */
3279
+ /* */
3280
+ /* */
3281
+ /* */
3282
+ return (void 0);
3283
+ };
3284
+ //#endregion
3285
+ //#region read json with comments
3286
+ UtilsJson.readJsonWithComments = (absoluteFilePath, defaultValue = {}) => {
3287
+ /* */
3288
+ /* */
3289
+ return (void 0);
3290
+ };
3291
+ //#endregion
3292
+ })(UtilsJson || (UtilsJson = {}));
3293
+ //#endregion
3294
+ var UtilsYaml;
3295
+ (function (UtilsYaml) {
3296
+ UtilsYaml.yamlToJson = (yamlString) => {
3297
+ /* */
3298
+ /* */
3299
+ /* */
3300
+ /* */
3301
+ /* */
3302
+ /* */
3303
+ /* */
3304
+ /* */
3305
+ /* */
3306
+ return (void 0);
3307
+ };
3308
+ UtilsYaml.jsonToYaml = (json) => {
3309
+ /* */
3310
+ /* */
3311
+ /* */
3312
+ /* */
3313
+ /* */
3314
+ /* */
3315
+ /* */
3316
+ /* */
3317
+ /* */
3318
+ /* */
3319
+ /* */
3320
+ /* */
3321
+ return (void 0);
3322
+ };
3323
+ //#region read yaml as json
3324
+ UtilsYaml.readYamlAsJson = (absFilePathToYamlOrYmlFile, options) => {
3325
+ /* */
3326
+ /* */
3327
+ /* */
3328
+ /* */
3329
+ /* */
3330
+ /* */
3331
+ /* */
3332
+ /* */
3333
+ /* */
3334
+ /* */
3335
+ /* */
3336
+ return (void 0);
3337
+ };
3338
+ //#endregion
3339
+ //#region write json to yaml
3340
+ UtilsYaml.writeJsonToYaml = (destinationYamlfileAbsPath, json) => {
3341
+ /* */
3342
+ /* */
3343
+ /* */
3344
+ /* */
3345
+ /* */
3346
+ /* */
3347
+ return (void 0);
3348
+ };
3349
+ //#endregion
3350
+ })(UtilsYaml || (UtilsYaml = {}));
3215
3351
 
3216
3352
  class HelpersIsomorphic {
3217
3353
  /**
@@ -5831,42 +5967,22 @@ class HelpersCore extends HelpersMessages {
5831
5967
  //#endregion
5832
5968
  //#region methods / read json
5833
5969
  /**
5834
- * read json from absolute path
5835
- * @returns json object
5970
+ * @deprecated use UtilsJson.readJson or UtilsJson.readJson5
5836
5971
  */
5837
5972
  readJson(absoluteFilePath, defaultValue = {}, useJson5 = false) {
5838
- /* */
5839
- /* */
5840
- /* */
5841
- /* */
5842
- /* */
5843
- /* */
5844
- /* */
5845
- /* */
5846
- /* */
5847
- /* */
5848
- /* */
5849
- /* */
5850
- /* */
5851
- /* */
5852
- /* */
5853
- /* */
5854
- /* */
5855
- /* */
5856
- /* */
5857
- /* */
5858
- /* */
5859
- return (void 0);
5973
+ return UtilsJson.readJson(absoluteFilePath, defaultValue, useJson5);
5860
5974
  }
5975
+ /**
5976
+ * @deprecated use UtilsJson.readJsonWithComments
5977
+ */
5861
5978
  readJson5(absoluteFilePath, defaultValue = {}) {
5862
- /* */
5863
- /* */
5864
- return (void 0);
5979
+ return UtilsJson.readJsonWithComments(absoluteFilePath, defaultValue);
5865
5980
  }
5981
+ /**
5982
+ * @deprecated use UtilsJson.readJsonWithComments
5983
+ */
5866
5984
  readJsonC(absoluteFilePath, defaultValue = {}) {
5867
- /* */
5868
- /* */
5869
- return (void 0);
5985
+ return UtilsJson.readJsonWithComments(absoluteFilePath, defaultValue);
5870
5986
  }
5871
5987
  //#endregion
5872
5988
  //#region methods / parse
@@ -6134,6 +6250,25 @@ class HelpersCore extends HelpersMessages {
6134
6250
  /* */
6135
6251
  /* */
6136
6252
  /* */
6253
+ /* */
6254
+ /* */
6255
+ /* */
6256
+ /* */
6257
+ /* */
6258
+ /* */
6259
+ /* */
6260
+ /* */
6261
+ /* */
6262
+ /* */
6263
+ /* */
6264
+ /* */
6265
+ /* */
6266
+ /* */
6267
+ /* */
6268
+ /* */
6269
+ /* */
6270
+ /* */
6271
+ /* */
6137
6272
  //#endregion
6138
6273
  //#region methods / links from
6139
6274
  /* */
@@ -6471,5 +6606,5 @@ let Helpers = HelpersCore.InstanceCore;
6471
6606
  * Generated bundle index. Do not edit.
6472
6607
  */
6473
6608
 
6474
- 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 };
6609
+ 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 };
6475
6610
  //# sourceMappingURL=tnp-core.mjs.map