taon 21.0.57 → 21.0.59

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 (44) hide show
  1. package/README.md +159 -159
  2. package/bin/start.js +17 -17
  3. package/bin/taon +5 -5
  4. package/bin/taon-debug +5 -5
  5. package/bin/taon-debug-brk +4 -4
  6. package/browser/README.md +24 -24
  7. package/browser/fesm2022/taon-browser.mjs +12 -6
  8. package/browser/fesm2022/taon-browser.mjs.map +1 -1
  9. package/browser/package.json +1 -1
  10. package/browser-prod/README.md +24 -24
  11. package/browser-prod/fesm2022/taon-browser.mjs +12 -6
  12. package/browser-prod/fesm2022/taon-browser.mjs.map +1 -1
  13. package/browser-prod/package.json +1 -1
  14. package/lib/base-classes/base-subscriber-for-entity.js +6 -6
  15. package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
  16. package/lib/build-info._auto-generated_.d.ts +1 -1
  17. package/lib/build-info._auto-generated_.js +1 -1
  18. package/lib/endpoint-context.js +5 -2
  19. package/lib/endpoint-context.js.map +1 -1
  20. package/lib/package.json +1 -1
  21. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
  22. package/lib/ui/index.js +2 -2
  23. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  24. package/lib-prod/base-classes/base-subscriber-for-entity.js +6 -6
  25. package/lib-prod/base-classes/base-subscriber-for-entity.js.map +1 -1
  26. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  27. package/lib-prod/build-info._auto-generated_.js +1 -1
  28. package/lib-prod/endpoint-context.js +5 -2
  29. package/lib-prod/endpoint-context.js.map +1 -1
  30. package/lib-prod/package.json +1 -1
  31. package/lib-prod/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
  32. package/lib-prod/ui/index.d.ts +1 -1
  33. package/lib-prod/ui/index.js +1 -1
  34. package/lib-prod/ui/taon-admin-mode-configuration/index.d.ts +1 -1
  35. package/lib-prod/ui/taon-admin-mode-configuration/index.js +1 -1
  36. package/package.json +1 -1
  37. package/websql/README.md +24 -24
  38. package/websql/fesm2022/taon-websql.mjs +10 -6
  39. package/websql/fesm2022/taon-websql.mjs.map +1 -1
  40. package/websql/package.json +1 -1
  41. package/websql-prod/README.md +24 -24
  42. package/websql-prod/fesm2022/taon-websql.mjs +10 -6
  43. package/websql-prod/fesm2022/taon-websql.mjs.map +1 -1
  44. package/websql-prod/package.json +1 -1
package/README.md CHANGED
@@ -1,159 +1,159 @@
1
- <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
-
3
- <!-- cspell: disable-next-line -->
4
- TAON **T**ypescript **A**ngular **O**rm **N**ode )
5
-
6
-
7
- ( ALPHA VERSION - For early testing and feedback only. )
8
-
9
- **Taon** 🔥🔥🔥 is a:<br>
10
- 1. **CLI** <br>
11
- 2. **Framework**<br>
12
- 3. **Cloud**<br>
13
-
14
- <br>
15
- for building/testing/deploying modern:<br>
16
- <br>
17
-
18
- \+
19
- [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
20
-
21
- \+
22
- [Angular](https://angular.io/) libraries and PWA apps
23
-
24
- \+ Databases with Orm ([TypeORM](https://typeorm.io/)) <br>
25
- &nbsp;- [sql.js](https://sql.js.org)<br>
26
- &nbsp;&nbsp;&nbsp;-> local development mode<br>
27
- &nbsp;&nbsp;&nbsp;-> local development with backend in browser mode (WEBSQL) <br>
28
- &nbsp;&nbsp;&nbsp;-> production dockerized mode <br>
29
- &nbsp;&nbsp;&nbsp;-> production backend in browser mode (WEBSQL) <br>
30
- &nbsp;- [mysql](https://www.mysql.com/)
31
- &nbsp;&nbsp;&nbsp;-> production dockerized mode (NOT READY YET) <br>
32
-
33
- \+
34
- [NodeJS](https://nodejs.org/en/) backends deployable on any server with on command
35
-
36
- \+
37
- [Electron](https://www.electronjs.org/) desktop apps
38
-
39
- \+
40
- [Capacitor](https://capacitorjs.com/) mobile apps (NOT READY YET)
41
-
42
- \+
43
- [Visual Studio Code](https://www.electronjs.org/)/ [VScodium](https://vscodium.com/) plugins
44
-
45
- \+ Documentation websites with:<br>
46
- - [MkDocs](https://www.mkdocs.org/) beautifull material wrapper for *.md docs files <br>
47
- - [Storybook](https://storybook.js.org/docs/get-started/angular) ui elements documentation (NOT READY YET)<br>
48
- - [Compodoc](https://compodoc.app/) docs from comments (NOT READY YET) <br>
49
-
50
-
51
-
52
- **[READ DOCUMENTATION](https://taon.dev/#/docs)**
53
-
54
- ### Initial requirements of taon
55
- 1. Installed git
56
- (on windows only supported [gitbash](https://gitforwindows.org) or [pwsh](https://github.com/PowerShell/PowerShell))
57
-
58
- 2. Increased watchers limit (only on linux):
59
- ```bash
60
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
61
- ```
62
-
63
-
64
- ## Supported OS-es:
65
- - Win10, Win11 (gitbash, pwsh)
66
- - MacOS
67
- - Linux
68
-
69
- ## Supported editors
70
- - [Visual Studio Code](https://www.electronjs.org/)
71
- - [VScodium](https://vscodium.com/)
72
- <!--
73
- ## Not supported yet maybe in the future:
74
- - [Cursor](https://cursor.com/)
75
- - [Theia](https://theia-ide.org/)
76
- -->
77
-
78
-
79
- ## Required version of NodeJS
80
- - Windows 10/11 >= v22
81
- - MacOS: >= v22
82
- - Linux: >= v22
83
-
84
-
85
- ## How to install taon
86
- ```
87
- npm i -g taon
88
- ```
89
-
90
-
91
- ## How to uninstall taon from local machine
92
- Taon stores a big global container (in ~/.taon) for npm packages <br>
93
- that are being shared across all taon projects.
94
-
95
- ```bash
96
- npm uninstall -g taon
97
- rm -rf ~/.taon # taon local repositories, databases, settings, caches.
98
- ```
99
-
100
-
101
- ## Projects that are part of taon.dev:
102
- - taon https://github.com/darekf77/taon
103
- + framework library
104
- - tnp https://github.com/darekf77/tnp
105
- + main cli / code structuring tool
106
- - taon-core https://github.com/darekf77/tnp-core
107
- + essential/core helpers for all projects
108
- - taon-helpers https://github.com/darekf77/tnp-helpers
109
- + extended core helpers
110
- - taon-rest https://github.com/darekf77/ng2-rest
111
- + easy rest api
112
- - taon-json https://github.com/darekf77/json10
113
- + handle JSON in better way
114
- - taon-logger https://github.com/darekf77/ng2-logger
115
- + logging in isomorphic apps
116
- - taon-typeorm https://github.com/darekf77/taon-typeorm
117
- + TypeOrm fork
118
- - taon-type-sql https://github.com/darekf77/taon-type-sql
119
- + strongly type sql
120
- - taon-incremental-watcher https://github.com/darekf77/incremental-compiler
121
- + abstraction for incremental builders NodeJS based
122
- - taon-storage https://github.com/darekf77/taon-storage
123
- + ts decorators based storage solution
124
- - taon-walk-object https://github.com/darekf77/lodash-walk-object
125
- + iterate over deep properties in object
126
- - taon-class-helpers https://github.com/darekf77/typescript-class-helpers
127
- + helpers for OOP class names based
128
-
129
-
130
- ## Global npm dependencies installed with taon
131
- Installation happens when you first time use taon
132
- ```jsonc
133
- [
134
- // alternative to npx ( it wil not download package from npm if is not installed )
135
- { name: 'npm-run', version: '4.1.2' },
136
- //handy for removing files
137
- { name: 'rimraf', version: '3.0.2' },
138
- //handy for recreating catalogs
139
- { name: 'mkdirp' },
140
- // package manager
141
- { name: 'yarn' },
142
- // https server with --base-href
143
- { name: 'taon-http-server' },
144
- // code formatter
145
- { name: 'prettier' },
146
- // process killer
147
- { name: 'fkill', installName: 'fkill-cli' },
148
- // for unit tests runner
149
- { name: 'mocha' },
150
- // for unit tests runner
151
- { name: 'jest' },
152
- // run ts like js
153
- { name: 'ts-node' },
154
- // fork of vsce package without npm dependencies restrictions
155
- { name: 'taon-vsce' },
156
- // analyze you final bundle
157
- { name: 'webpack-bundle-analyzer' }
158
- ]
159
- ```
1
+ <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
+
3
+ <!-- cspell: disable-next-line -->
4
+ TAON **T**ypescript **A**ngular **O**rm **N**ode )
5
+
6
+
7
+ ( ALPHA VERSION - For early testing and feedback only. )
8
+
9
+ **Taon** 🔥🔥🔥 is a:<br>
10
+ 1. **CLI** <br>
11
+ 2. **Framework**<br>
12
+ 3. **Cloud**<br>
13
+
14
+ <br>
15
+ for building/testing/deploying modern:<br>
16
+ <br>
17
+
18
+ \+
19
+ [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
20
+
21
+ \+
22
+ [Angular](https://angular.io/) libraries and PWA apps
23
+
24
+ \+ Databases with Orm ([TypeORM](https://typeorm.io/)) <br>
25
+ &nbsp;- [sql.js](https://sql.js.org)<br>
26
+ &nbsp;&nbsp;&nbsp;-> local development mode<br>
27
+ &nbsp;&nbsp;&nbsp;-> local development with backend in browser mode (WEBSQL) <br>
28
+ &nbsp;&nbsp;&nbsp;-> production dockerized mode <br>
29
+ &nbsp;&nbsp;&nbsp;-> production backend in browser mode (WEBSQL) <br>
30
+ &nbsp;- [mysql](https://www.mysql.com/)
31
+ &nbsp;&nbsp;&nbsp;-> production dockerized mode (NOT READY YET) <br>
32
+
33
+ \+
34
+ [NodeJS](https://nodejs.org/en/) backends deployable on any server with on command
35
+
36
+ \+
37
+ [Electron](https://www.electronjs.org/) desktop apps
38
+
39
+ \+
40
+ [Capacitor](https://capacitorjs.com/) mobile apps (NOT READY YET)
41
+
42
+ \+
43
+ [Visual Studio Code](https://www.electronjs.org/)/ [VScodium](https://vscodium.com/) plugins
44
+
45
+ \+ Documentation websites with:<br>
46
+ - [MkDocs](https://www.mkdocs.org/) beautifull material wrapper for *.md docs files <br>
47
+ - [Storybook](https://storybook.js.org/docs/get-started/angular) ui elements documentation (NOT READY YET)<br>
48
+ - [Compodoc](https://compodoc.app/) docs from comments (NOT READY YET) <br>
49
+
50
+
51
+
52
+ **[READ DOCUMENTATION](https://taon.dev/#/docs)**
53
+
54
+ ### Initial requirements of taon
55
+ 1. Installed git
56
+ (on windows only supported [gitbash](https://gitforwindows.org) or [pwsh](https://github.com/PowerShell/PowerShell))
57
+
58
+ 2. Increased watchers limit (only on linux):
59
+ ```bash
60
+ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
61
+ ```
62
+
63
+
64
+ ## Supported OS-es:
65
+ - Win10, Win11 (gitbash, pwsh)
66
+ - MacOS
67
+ - Linux
68
+
69
+ ## Supported editors
70
+ - [Visual Studio Code](https://www.electronjs.org/)
71
+ - [VScodium](https://vscodium.com/)
72
+ <!--
73
+ ## Not supported yet maybe in the future:
74
+ - [Cursor](https://cursor.com/)
75
+ - [Theia](https://theia-ide.org/)
76
+ -->
77
+
78
+
79
+ ## Required version of NodeJS
80
+ - Windows 10/11 >= v22
81
+ - MacOS: >= v22
82
+ - Linux: >= v22
83
+
84
+
85
+ ## How to install taon
86
+ ```
87
+ npm i -g taon
88
+ ```
89
+
90
+
91
+ ## How to uninstall taon from local machine
92
+ Taon stores a big global container (in ~/.taon) for npm packages <br>
93
+ that are being shared across all taon projects.
94
+
95
+ ```bash
96
+ npm uninstall -g taon
97
+ rm -rf ~/.taon # taon local repositories, databases, settings, caches.
98
+ ```
99
+
100
+
101
+ ## Projects that are part of taon.dev:
102
+ - taon https://github.com/darekf77/taon
103
+ + framework library
104
+ - tnp https://github.com/darekf77/tnp
105
+ + main cli / code structuring tool
106
+ - taon-core https://github.com/darekf77/tnp-core
107
+ + essential/core helpers for all projects
108
+ - taon-helpers https://github.com/darekf77/tnp-helpers
109
+ + extended core helpers
110
+ - taon-rest https://github.com/darekf77/ng2-rest
111
+ + easy rest api
112
+ - taon-json https://github.com/darekf77/json10
113
+ + handle JSON in better way
114
+ - taon-logger https://github.com/darekf77/ng2-logger
115
+ + logging in isomorphic apps
116
+ - taon-typeorm https://github.com/darekf77/taon-typeorm
117
+ + TypeOrm fork
118
+ - taon-type-sql https://github.com/darekf77/taon-type-sql
119
+ + strongly type sql
120
+ - taon-incremental-watcher https://github.com/darekf77/incremental-compiler
121
+ + abstraction for incremental builders NodeJS based
122
+ - taon-storage https://github.com/darekf77/taon-storage
123
+ + ts decorators based storage solution
124
+ - taon-walk-object https://github.com/darekf77/lodash-walk-object
125
+ + iterate over deep properties in object
126
+ - taon-class-helpers https://github.com/darekf77/typescript-class-helpers
127
+ + helpers for OOP class names based
128
+
129
+
130
+ ## Global npm dependencies installed with taon
131
+ Installation happens when you first time use taon
132
+ ```jsonc
133
+ [
134
+ // alternative to npx ( it wil not download package from npm if is not installed )
135
+ { name: 'npm-run', version: '4.1.2' },
136
+ //handy for removing files
137
+ { name: 'rimraf', version: '3.0.2' },
138
+ //handy for recreating catalogs
139
+ { name: 'mkdirp' },
140
+ // package manager
141
+ { name: 'yarn' },
142
+ // https server with --base-href
143
+ { name: 'taon-http-server' },
144
+ // code formatter
145
+ { name: 'prettier' },
146
+ // process killer
147
+ { name: 'fkill', installName: 'fkill-cli' },
148
+ // for unit tests runner
149
+ { name: 'mocha' },
150
+ // for unit tests runner
151
+ { name: 'jest' },
152
+ // run ts like js
153
+ { name: 'ts-node' },
154
+ // fork of vsce package without npm dependencies restrictions
155
+ { name: 'taon-vsce' },
156
+ // analyze you final bundle
157
+ { name: 'webpack-bundle-analyzer' }
158
+ ]
159
+ ```
package/bin/start.js CHANGED
@@ -1,17 +1,17 @@
1
- Error.stackTraceLimit = 100;
2
- global.i0 = {
3
- defineInjectable: function () { }
4
- }
5
- const process= require('process');
6
- process.removeAllListeners('warning');
7
-
8
- const fs = require('fs');
9
- const path = require('path');
10
- var pathToCliJS = {
11
- distDev: path.join(__dirname, '../dist/cli.js'),
12
- localOrNPm: path.join(__dirname, '../cli.js')
13
- }
14
- var p = fs.existsSync(pathToCliJS.distDev) ? pathToCliJS.distDev : pathToCliJS.localOrNPm;
15
- global.globalSystemToolMode = true;
16
- var run = require(p).start;
17
- run(process.argv,__filename);
1
+ Error.stackTraceLimit = 100;
2
+ global.i0 = {
3
+ defineInjectable: function () { }
4
+ }
5
+ const process= require('process');
6
+ process.removeAllListeners('warning');
7
+
8
+ const fs = require('fs');
9
+ const path = require('path');
10
+ var pathToCliJS = {
11
+ distDev: path.join(__dirname, '../dist/cli.js'),
12
+ localOrNPm: path.join(__dirname, '../cli.js')
13
+ }
14
+ var p = fs.existsSync(pathToCliJS.distDev) ? pathToCliJS.distDev : pathToCliJS.localOrNPm;
15
+ global.globalSystemToolMode = true;
16
+ var run = require(p).start;
17
+ run(process.argv,__filename);
package/bin/taon CHANGED
@@ -1,5 +1,5 @@
1
- #!/usr/bin/env -S node --no-deprecation
2
- //#region @backend
3
- // --stack-trace-limit=10000
4
- require('./start');
5
- //#endregion
1
+ #!/usr/bin/env -S node --no-deprecation
2
+ //#region @backend
3
+ // --stack-trace-limit=10000
4
+ require('./start');
5
+ //#endregion
package/bin/taon-debug CHANGED
@@ -1,5 +1,5 @@
1
- #!/usr/bin/env -S node --inspect --stack-trace-limit=10000 --no-deprecation
2
- //#region @backend
3
- // --stack-trace-limit=10000
4
- require('./start');
5
- //#endregion
1
+ #!/usr/bin/env -S node --inspect --stack-trace-limit=10000 --no-deprecation
2
+ //#region @backend
3
+ // --stack-trace-limit=10000
4
+ require('./start');
5
+ //#endregion
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000 --no-deprecation
2
- //#region @backend
3
- require('./start');
4
- //#endregion
1
+ #!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000 --no-deprecation
2
+ //#region @backend
3
+ require('./start');
4
+ //#endregion
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.
@@ -4121,6 +4121,11 @@ class EndpointContext {
4121
4121
  /* */
4122
4122
  /* */
4123
4123
  /* */
4124
+ /* */
4125
+ /* */
4126
+ /* */
4127
+ /* */
4128
+ /* */
4124
4129
  }
4125
4130
  //#endregion
4126
4131
  //#region methods & getters / middlewares
@@ -4367,6 +4372,7 @@ class EndpointContext {
4367
4372
  /* */
4368
4373
  /* */
4369
4374
  /* */
4375
+ /* */
4370
4376
  }
4371
4377
  if (!this.isRemoteHost) {
4372
4378
  //#region apply dummy websql express routers
@@ -7589,42 +7595,42 @@ let TaonBaseSubscriberForEntity = class TaonBaseSubscriberForEntity extends Taon
7589
7595
  */
7590
7596
  beforeTransactionStart(event) {
7591
7597
  this.ctx.logDb &&
7592
- console.log(`BEFORE TRANSACTION STARTED: `, event);
7598
+ console.log(`BEFORE TRANSACTION STARTED`);
7593
7599
  }
7594
7600
  /**
7595
7601
  * Called after transaction start.
7596
7602
  */
7597
7603
  afterTransactionStart(event) {
7598
7604
  this.ctx.logDb &&
7599
- console.log(`AFTER TRANSACTION STARTED: `, event);
7605
+ console.log(`AFTER TRANSACTION STARTED`);
7600
7606
  }
7601
7607
  /**
7602
7608
  * Called before transaction commit.
7603
7609
  */
7604
7610
  beforeTransactionCommit(event) {
7605
7611
  this.ctx.logDb &&
7606
- console.log(`BEFORE TRANSACTION COMMITTED: `, event);
7612
+ console.log(`BEFORE TRANSACTION COMMITTED`);
7607
7613
  }
7608
7614
  /**
7609
7615
  * Called after transaction commit.
7610
7616
  */
7611
7617
  afterTransactionCommit(event) {
7612
7618
  this.ctx.logDb &&
7613
- console.log(`AFTER TRANSACTION COMMITTED: `, event);
7619
+ console.log(`AFTER TRANSACTION COMMITTED`);
7614
7620
  }
7615
7621
  /**
7616
7622
  * Called before transaction rollback.
7617
7623
  */
7618
7624
  beforeTransactionRollback(event) {
7619
7625
  this.ctx.logDb &&
7620
- console.log(`BEFORE TRANSACTION ROLLBACK: `, event);
7626
+ console.log(`BEFORE TRANSACTION ROLLBACK`);
7621
7627
  }
7622
7628
  /**
7623
7629
  * Called after transaction rollback.
7624
7630
  */
7625
7631
  afterTransactionRollback(event) {
7626
7632
  this.ctx.logDb &&
7627
- console.log(`AFTER TRANSACTION ROLLBACK: `, event);
7633
+ console.log(`AFTER TRANSACTION ROLLBACK`);
7628
7634
  }
7629
7635
  };
7630
7636
  TaonBaseSubscriberForEntity = __decorate([