tnp-core 21.0.157 → 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.
- package/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/tnp-core-browser.mjs +93 -2
- package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-core-browser.d.ts +23 -2
- package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +93 -2
- 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 +23 -2
- package/browser-prod.split-namespaces.json +7 -1
- package/cli.backend.js +0 -4
- package/cli.backend.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +2 -1
- package/lib/constants.js.map +1 -1
- package/lib/core-imports.d.ts +12 -1
- package/lib/core-imports.js +30 -1
- package/lib/core-imports.js.map +1 -1
- package/lib/framework-name.d.ts +1 -1
- package/lib/package.json +1 -1
- package/lib/utils-json.d.ts +15 -0
- package/lib/utils-json.js +79 -0
- package/lib/utils-json.js.map +1 -1
- package/lib/utils-json.test.d.ts +1 -0
- package/lib-esm/app.d.ts +0 -2
- package/lib-esm/app.electron.js +0 -81
- package/lib-esm/app.electron.js.map +1 -1
- package/lib-esm/app.hosts.d.ts +0 -95
- package/lib-esm/app.hosts.js +0 -169
- package/lib-esm/app.hosts.js.map +1 -1
- package/lib-esm/app.js +0 -188
- package/lib-esm/app.js.map +1 -1
- package/lib-esm/app.vscode.js +0 -46
- package/lib-esm/app.vscode.js.map +1 -1
- package/lib-esm/cli.backend.d.ts +0 -1
- package/lib-esm/cli.backend.js +0 -1
- package/lib-esm/cli.backend.js.map +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/config.d.ts +1 -1
- package/lib-esm/lib/constants.d.ts +1 -0
- package/lib-esm/lib/constants.js +1 -0
- package/lib-esm/lib/constants.js.map +1 -1
- package/lib-esm/lib/core-imports.d.ts +8 -0
- package/lib-esm/lib/core-imports.js +34 -1
- package/lib-esm/lib/core-imports.js.map +1 -1
- package/lib-esm/lib/framework-name.d.ts +2 -2
- package/lib-esm/lib/utils-json.d.ts +15 -0
- package/lib-esm/lib/utils-json.js +79 -0
- package/lib-esm/lib/utils-json.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/config.d.ts +1 -1
- package/lib-prod/constants.d.ts +1 -0
- package/lib-prod/constants.js +1 -0
- package/lib-prod/constants.js.map +1 -1
- package/lib-prod/core-imports.d.ts +8 -0
- package/lib-prod/core-imports.js +34 -1
- package/lib-prod/core-imports.js.map +1 -1
- package/lib-prod/framework-name.d.ts +2 -2
- package/lib-prod/helpers.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/utils-json.d.ts +15 -0
- package/lib-prod/utils-json.js +80 -1
- package/lib-prod/utils-json.js.map +1 -1
- package/lib-prod.split-namespaces.json +7 -1
- package/package.json +1 -1
- package/websql/fesm2022/tnp-core-websql.mjs +93 -2
- package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-core-websql.d.ts +23 -2
- package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +93 -2
- 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 +23 -2
- package/websql-prod.split-namespaces.json +7 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commitHash": "
|
|
3
|
-
"commitName": "
|
|
4
|
-
"commitDate": "
|
|
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 =
|
|
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
|