tnp-core 21.0.158 → 21.0.160
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/bin/start.js +36 -36
- package/browser/README.md +24 -24
- package/browser/fesm2022/tnp-core-browser.mjs +100 -4
- package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-core-browser.d.ts +27 -3
- package/browser-prod/README.md +24 -24
- package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +100 -4
- 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 +27 -3
- package/browser-prod.split-namespaces.json +7 -1
- package/cli.backend.js +0 -4
- package/cli.backend.js.map +1 -1
- package/lib/axios-fetch.d.ts +11 -0
- package/lib/axios-fetch.js +61 -12
- package/lib/axios-fetch.js.map +1 -1
- package/lib/axios-simple-cookie-jar.d.ts +6 -0
- package/lib/axios-simple-cookie-jar.js +34 -0
- package/lib/axios-simple-cookie-jar.js.map +1 -0
- 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/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/node-path-mock.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/taon-state-machine.d.ts +4 -1
- package/lib/taon-state-machine.js +5 -2
- package/lib/taon-state-machine.js.map +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/utils-process.js +2 -0
- package/lib/utils-process.js.map +1 -1
- 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/axios-fetch.d.ts +11 -0
- package/lib-esm/lib/axios-fetch.js +60 -12
- package/lib-esm/lib/axios-fetch.js.map +1 -1
- package/lib-esm/lib/axios-simple-cookie-jar.d.ts +6 -0
- package/lib-esm/lib/axios-simple-cookie-jar.js +30 -0
- package/lib-esm/lib/axios-simple-cookie-jar.js.map +1 -0
- 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/index.d.ts +1 -0
- package/lib-esm/lib/index.js +1 -0
- package/lib-esm/lib/index.js.map +1 -1
- package/lib-esm/lib/node-path-mock.js.map +1 -1
- package/lib-esm/lib/taon-state-machine.d.ts +4 -1
- package/lib-esm/lib/taon-state-machine.js +5 -2
- package/lib-esm/lib/taon-state-machine.js.map +1 -1
- 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-esm/lib/utils-process.js +2 -0
- package/lib-esm/lib/utils-process.js.map +1 -1
- package/lib-prod/axios-fetch.d.ts +11 -0
- package/lib-prod/axios-fetch.js +60 -12
- package/lib-prod/axios-fetch.js.map +1 -1
- package/lib-prod/axios-simple-cookie-jar.d.ts +6 -0
- package/lib-prod/axios-simple-cookie-jar.js +30 -0
- package/lib-prod/axios-simple-cookie-jar.js.map +1 -0
- 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/index.d.ts +1 -0
- package/lib-prod/index.js +1 -0
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/node-path-mock.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/taon-state-machine.d.ts +4 -1
- package/lib-prod/taon-state-machine.js +5 -2
- package/lib-prod/taon-state-machine.js.map +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/utils-process.js +2 -0
- package/lib-prod/utils-process.js.map +1 -1
- package/lib-prod.split-namespaces.json +7 -1
- package/package.json +1 -1
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-core-websql.mjs +100 -4
- package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-core-websql.d.ts +27 -3
- package/websql-prod/README.md +24 -24
- package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +100 -4
- 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 +27 -3
- package/websql-prod.split-namespaces.json +7 -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
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commitHash": "
|
|
3
|
-
"commitName": "
|
|
4
|
-
"commitDate": "
|
|
2
|
+
"commitHash": "b2c2b879fdfd173d47a04720d465ab135a7e77ca",
|
|
3
|
+
"commitName": "fix: proper detached terminal start on fedora workstation",
|
|
4
|
+
"commitDate": "04-09-2026 21:36:26"
|
|
5
5
|
}
|
package/bin/start.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
global.frameworkName = 'tnp-core';
|
|
2
|
-
Error.stackTraceLimit = 100;
|
|
3
|
-
global.i0 = {
|
|
4
|
-
defineInjectable: function () { }
|
|
5
|
-
}
|
|
6
|
-
const process= require('process');
|
|
7
|
-
global.currentTaonScriptStartDateTime = process.hrtime.bigint();
|
|
8
|
-
|
|
9
|
-
process.removeAllListeners('warning');
|
|
10
|
-
var argv = process.argv;
|
|
11
|
-
|
|
12
|
-
global.hideLog = true;
|
|
13
|
-
global.verboseLevel = 0;
|
|
14
|
-
var verboseLevel = argv.find(a => a.startsWith('-verbose='));
|
|
15
|
-
if (typeof verboseLevel !== 'undefined') {
|
|
16
|
-
global.hideLog = false;
|
|
17
|
-
verboseLevel = Number(verboseLevel.replace('-verbose=', ''));
|
|
18
|
-
if (!isNaN(verboseLevel)) {
|
|
19
|
-
global.verboseLevel = verboseLevel;
|
|
20
|
-
}
|
|
21
|
-
argv = argv.filter(a => !a.startsWith('-verbose='));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (argv.includes('-verbose')) {
|
|
25
|
-
global.hideLog = false;
|
|
26
|
-
argv = argv.filter(a => a !== '-verbose');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const fs = require('fs');
|
|
30
|
-
const path = require('path');
|
|
31
|
-
var pathToCliJS = {
|
|
32
|
-
distDev: path.join(__dirname, '../dist/cli.js'),
|
|
33
|
-
localOrNPm: path.join(__dirname, '../cli.js')
|
|
34
|
-
}
|
|
35
|
-
var p = fs.existsSync(pathToCliJS.distDev) ? pathToCliJS.distDev : pathToCliJS.localOrNPm;
|
|
36
|
-
global.globalSystemToolMode = true;
|
|
37
|
-
var run = require(p).startCli;
|
|
2
|
+
Error.stackTraceLimit = 100;
|
|
3
|
+
global.i0 = {
|
|
4
|
+
defineInjectable: function () { }
|
|
5
|
+
}
|
|
6
|
+
const process= require('process');
|
|
7
|
+
global.currentTaonScriptStartDateTime = process.hrtime.bigint();
|
|
8
|
+
|
|
9
|
+
process.removeAllListeners('warning');
|
|
10
|
+
var argv = process.argv;
|
|
11
|
+
|
|
12
|
+
global.hideLog = true;
|
|
13
|
+
global.verboseLevel = 0;
|
|
14
|
+
var verboseLevel = argv.find(a => a.startsWith('-verbose='));
|
|
15
|
+
if (typeof verboseLevel !== 'undefined') {
|
|
16
|
+
global.hideLog = false;
|
|
17
|
+
verboseLevel = Number(verboseLevel.replace('-verbose=', ''));
|
|
18
|
+
if (!isNaN(verboseLevel)) {
|
|
19
|
+
global.verboseLevel = verboseLevel;
|
|
20
|
+
}
|
|
21
|
+
argv = argv.filter(a => !a.startsWith('-verbose='));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (argv.includes('-verbose')) {
|
|
25
|
+
global.hideLog = false;
|
|
26
|
+
argv = argv.filter(a => a !== '-verbose');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const fs = require('fs');
|
|
30
|
+
const path = require('path');
|
|
31
|
+
var pathToCliJS = {
|
|
32
|
+
distDev: path.join(__dirname, '../dist/cli.js'),
|
|
33
|
+
localOrNPm: path.join(__dirname, '../cli.js')
|
|
34
|
+
}
|
|
35
|
+
var p = fs.existsSync(pathToCliJS.distDev) ? pathToCliJS.distDev : pathToCliJS.localOrNPm;
|
|
36
|
+
global.globalSystemToolMode = true;
|
|
37
|
+
var run = require(p).startCli;
|
|
38
38
|
run(argv,__filename);
|
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.
|
|
@@ -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
|
|
@@ -4063,6 +4154,8 @@ var UtilsProcess;
|
|
|
4063
4154
|
/* */
|
|
4064
4155
|
/* */
|
|
4065
4156
|
/* */
|
|
4157
|
+
/* */
|
|
4158
|
+
/* */
|
|
4066
4159
|
return (void 0);
|
|
4067
4160
|
};
|
|
4068
4161
|
//#endregion
|
|
@@ -13453,7 +13546,10 @@ class TaonStateMachine {
|
|
|
13453
13546
|
constructor(config) {
|
|
13454
13547
|
this.config = config;
|
|
13455
13548
|
this._currentValue = config.defaultValue;
|
|
13456
|
-
this.currentStateSubject = new BehaviorSubject(
|
|
13549
|
+
this.currentStateSubject = new BehaviorSubject({
|
|
13550
|
+
previousState: config.defaultValue,
|
|
13551
|
+
currentState: config.defaultValue,
|
|
13552
|
+
});
|
|
13457
13553
|
this.currentState$ = this.currentStateSubject.asObservable();
|
|
13458
13554
|
}
|
|
13459
13555
|
get debugMode() {
|
|
@@ -13487,7 +13583,7 @@ class TaonStateMachine {
|
|
|
13487
13583
|
}
|
|
13488
13584
|
this._currentValue = nextState;
|
|
13489
13585
|
// Notify observers only after successful transition.
|
|
13490
|
-
this.currentStateSubject.next(nextState);
|
|
13586
|
+
this.currentStateSubject.next({ previousState, currentState: nextState });
|
|
13491
13587
|
void this.config.effect?.(nextState, previousState, this.debugMode);
|
|
13492
13588
|
return true;
|
|
13493
13589
|
}
|
|
@@ -14024,5 +14120,5 @@ var index = {};
|
|
|
14024
14120
|
* Generated bundle index. Do not edit.
|
|
14025
14121
|
*/
|
|
14026
14122
|
|
|
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 };
|
|
14123
|
+
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
14124
|
//# sourceMappingURL=tnp-core-browser.mjs.map
|