tnp-core 21.0.158 → 21.0.159

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 (79) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/fesm2022/tnp-core-browser.mjs +93 -2
  3. package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
  4. package/browser/package.json +1 -1
  5. package/browser/types/tnp-core-browser.d.ts +23 -2
  6. package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +93 -2
  7. package/browser-prod/fesm2022/tnp-core-browser-prod.mjs.map +1 -1
  8. package/browser-prod/package.json +1 -1
  9. package/browser-prod/types/tnp-core-browser-prod.d.ts +23 -2
  10. package/browser-prod.split-namespaces.json +7 -1
  11. package/cli.backend.js +0 -4
  12. package/cli.backend.js.map +1 -1
  13. package/lib/build-info._auto-generated_.d.ts +1 -1
  14. package/lib/build-info._auto-generated_.js +1 -1
  15. package/lib/config.d.ts +1 -1
  16. package/lib/constants.d.ts +1 -0
  17. package/lib/constants.js +2 -1
  18. package/lib/constants.js.map +1 -1
  19. package/lib/core-imports.d.ts +12 -1
  20. package/lib/core-imports.js +30 -1
  21. package/lib/core-imports.js.map +1 -1
  22. package/lib/framework-name.d.ts +1 -1
  23. package/lib/package.json +1 -1
  24. package/lib/utils-json.d.ts +15 -0
  25. package/lib/utils-json.js +79 -0
  26. package/lib/utils-json.js.map +1 -1
  27. package/lib/utils-json.test.d.ts +1 -0
  28. package/lib-esm/app.d.ts +0 -2
  29. package/lib-esm/app.electron.js +0 -81
  30. package/lib-esm/app.electron.js.map +1 -1
  31. package/lib-esm/app.hosts.d.ts +0 -95
  32. package/lib-esm/app.hosts.js +0 -169
  33. package/lib-esm/app.hosts.js.map +1 -1
  34. package/lib-esm/app.js +0 -188
  35. package/lib-esm/app.js.map +1 -1
  36. package/lib-esm/app.vscode.js +0 -46
  37. package/lib-esm/app.vscode.js.map +1 -1
  38. package/lib-esm/cli.backend.d.ts +0 -1
  39. package/lib-esm/cli.backend.js +0 -1
  40. package/lib-esm/cli.backend.js.map +1 -1
  41. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  42. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  43. package/lib-esm/lib/config.d.ts +1 -1
  44. package/lib-esm/lib/constants.d.ts +1 -0
  45. package/lib-esm/lib/constants.js +1 -0
  46. package/lib-esm/lib/constants.js.map +1 -1
  47. package/lib-esm/lib/core-imports.d.ts +8 -0
  48. package/lib-esm/lib/core-imports.js +34 -1
  49. package/lib-esm/lib/core-imports.js.map +1 -1
  50. package/lib-esm/lib/framework-name.d.ts +2 -2
  51. package/lib-esm/lib/utils-json.d.ts +15 -0
  52. package/lib-esm/lib/utils-json.js +79 -0
  53. package/lib-esm/lib/utils-json.js.map +1 -1
  54. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  55. package/lib-prod/build-info._auto-generated_.js +1 -1
  56. package/lib-prod/config.d.ts +1 -1
  57. package/lib-prod/constants.d.ts +1 -0
  58. package/lib-prod/constants.js +1 -0
  59. package/lib-prod/constants.js.map +1 -1
  60. package/lib-prod/core-imports.d.ts +8 -0
  61. package/lib-prod/core-imports.js +34 -1
  62. package/lib-prod/core-imports.js.map +1 -1
  63. package/lib-prod/framework-name.d.ts +2 -2
  64. package/lib-prod/helpers.js.map +1 -1
  65. package/lib-prod/package.json +1 -1
  66. package/lib-prod/utils-json.d.ts +15 -0
  67. package/lib-prod/utils-json.js +80 -1
  68. package/lib-prod/utils-json.js.map +1 -1
  69. package/lib-prod.split-namespaces.json +7 -1
  70. package/package.json +1 -1
  71. package/websql/fesm2022/tnp-core-websql.mjs +93 -2
  72. package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
  73. package/websql/package.json +1 -1
  74. package/websql/types/tnp-core-websql.d.ts +23 -2
  75. package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +93 -2
  76. package/websql-prod/fesm2022/tnp-core-websql-prod.mjs.map +1 -1
  77. package/websql-prod/package.json +1 -1
  78. package/websql-prod/types/tnp-core-websql-prod.d.ts +23 -2
  79. package/websql-prod.split-namespaces.json +7 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "commitHash": "459cd49214a899c27793037da98778ea384703ad",
3
- "commitName": "release: v21.0.157",
4
- "commitDate": "26-08-2026 00:51:02"
2
+ "commitHash": "968830c3fe70eb26638031fb1047201cfb7f143e",
3
+ "commitName": "chore: remove ignored file",
4
+ "commitDate": "01-09-2026 12:25:59"
5
5
  }
@@ -307,6 +307,7 @@ import jQuery from 'jquery';
307
307
  import { format } from 'date-fns';
308
308
  import * as json5 from 'json5';
309
309
  export { json5 };
310
+ export { Injectable, inject, signal } from '@angular/core';
310
311
  import { Subject, BehaviorSubject } from 'rxjs';
311
312
  import 'reflect-metadata';
312
313
  import { parse, printParseErrorCode, modify, applyEdits } from 'jsonc-parser';
@@ -1299,7 +1300,7 @@ let chokidar = void 0;
1299
1300
  /* */
1300
1301
  //#endregion
1301
1302
  //#region set up browser mocks / mock mkdirp
1302
- let mkdirp = (args) => void 0;
1303
+ let mkdirp = args => void 0;
1303
1304
  /* */
1304
1305
  /* */
1305
1306
  /* */
@@ -2160,6 +2161,7 @@ const backendNodejsOnlyFiles = [
2160
2161
  // '.repository.ts', // deprecated in typeorm
2161
2162
  ].map(ext => `.${ext}`);
2162
2163
  const backendWebsqlNodejsFiles = ['subscriber.ts', 'test.ts'].map(ext => `.${ext}`);
2164
+ const stateServiceSuffix = '.state.service.ts';
2163
2165
  const frontendFiles = [
2164
2166
  'browser.ts',
2165
2167
  'component.ts',
@@ -3449,6 +3451,95 @@ var UtilsJson;
3449
3451
  return (void 0);
3450
3452
  };
3451
3453
  //#endregion
3454
+ //#region lodash path validation
3455
+ UtilsJson.validateLodashPath = (lodashGetPath) => {
3456
+ if (_.isArray(lodashGetPath)) {
3457
+ lodashGetPath = lodashGetPath.join('.');
3458
+ }
3459
+ if (!_.isString(lodashGetPath)) {
3460
+ throw new Error(`Invalid lodash path: path cannot be empty.`);
3461
+ }
3462
+ const path = lodashGetPath.trim();
3463
+ /**
3464
+ * Allowed:
3465
+ * foo
3466
+ * foo.bar
3467
+ * foo.bar.baz
3468
+ * foo[0].bar
3469
+ * foo.bar[123].baz
3470
+ *
3471
+ * Rejected:
3472
+ * foo..bar
3473
+ * .foo
3474
+ * foo.
3475
+ * foo[]
3476
+ * foo[abc]
3477
+ * foo[asd].bar
3478
+ */
3479
+ const validPathRegex = /^[a-zA-Z_$][a-zA-Z0-9_$]*(?:\[\d+\])*(?:\.[a-zA-Z_$][a-zA-Z0-9_$]*(?:\[\d+\])*)*$/;
3480
+ if (!validPathRegex.test(path)) {
3481
+ throw new Error(`Invalid lodash path: "${path}"`);
3482
+ }
3483
+ const forbiddenKeys = ['__proto__', 'prototype', 'constructor'];
3484
+ const parts = path.replace(/\[(\d+)\]/g, '.$1').split('.');
3485
+ const forbiddenKey = parts.find(part => forbiddenKeys.includes(part));
3486
+ if (forbiddenKey) {
3487
+ throw new Error(`Invalid lodash path: forbidden key "${forbiddenKey}" in "${path}"`);
3488
+ }
3489
+ return path;
3490
+ };
3491
+ //#endregion
3492
+ //#region get value
3493
+ UtilsJson.getValue = (filepath, lodashGetPath, options) => {
3494
+ /* */
3495
+ /* */
3496
+ /* */
3497
+ /* */
3498
+ /* */
3499
+ /* */
3500
+ /* */
3501
+ /* */
3502
+ /* */
3503
+ /* */
3504
+ /* */
3505
+ /* */
3506
+ /* */
3507
+ /* */
3508
+ /* */
3509
+ /* */
3510
+ /* */
3511
+ /* */
3512
+ /* */
3513
+ return (void 0);
3514
+ };
3515
+ //#endregion
3516
+ //#region set value
3517
+ UtilsJson.setValue = (filepath, lodashGetPath, value, options) => {
3518
+ /* */
3519
+ /* */
3520
+ /* */
3521
+ /* */
3522
+ /* */
3523
+ /* */
3524
+ /* */
3525
+ /* */
3526
+ /* */
3527
+ /* */
3528
+ /* */
3529
+ /* */
3530
+ /* */
3531
+ /* */
3532
+ /* */
3533
+ /* */
3534
+ /* */
3535
+ /* */
3536
+ /* */
3537
+ /* */
3538
+ /* */
3539
+ /* */
3540
+ return (void 0);
3541
+ };
3542
+ //#endregion
3452
3543
  })(UtilsJson || (UtilsJson = {}));
3453
3544
 
3454
3545
  //#region utils process / start async
@@ -14024,5 +14115,5 @@ var index = {};
14024
14115
  * Generated bundle index. Do not edit.
14025
14116
  */
14026
14117
 
14027
- export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, TaonStateMachine, 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 };
14118
+ export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, TaonStateMachine, 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, stateServiceSuffix, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonCutNextLineCut, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, taonSkipCut, tempFoldersName, tnpPackageName, updateJsoncContent, urlRepoTaon, urlRepoTaonContainers, win32Path };
14028
14119
  //# sourceMappingURL=tnp-core-browser.mjs.map