taon 19.0.66 → 19.0.68
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 +160 -160
- package/bin/start.js +281 -281
- package/bin/taon +6 -6
- package/bin/taon-debug +5 -5
- package/bin/taon-debug-brk +5 -5
- package/browser/README.md +24 -24
- package/browser/fesm2022/taon.mjs +305 -89
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-class.d.ts +8 -1
- package/browser/lib/base-classes/base-controller.d.ts +56 -4
- package/browser/lib/base-classes/base-crud-controller.d.ts +5 -4
- package/browser/lib/base-classes/base-middleware.d.ts +2 -2
- package/browser/lib/base-classes/base-repository.d.ts +3 -0
- package/browser/lib/config/method-config.d.ts +1 -0
- package/browser/lib/decorators/http/http-decorators.d.ts +2 -1
- package/browser/lib/decorators/http/http-methods-decorators.d.ts +35 -4
- package/browser/lib/endpoint-context.d.ts +10 -4
- package/browser/lib/get-response-value.d.ts +1 -1
- package/browser/lib/helpers/taon-helpers.d.ts +1 -0
- package/browser/lib/index.d.ts +4 -0
- package/browser/lib/models.d.ts +4 -10
- package/browser/lib/realtime/realtime-client.d.ts +18 -14
- package/browser/lib/realtime/realtime-server.d.ts +28 -3
- package/browser/lib/realtime/realtime.models.d.ts +15 -2
- package/browser/package.json +1 -1
- package/icon-menu-taon.svg +15 -15
- package/lib/base-classes/base-class.d.ts +8 -1
- package/lib/base-classes/base-class.js +20 -2
- package/lib/base-classes/base-class.js.map +1 -1
- package/lib/base-classes/base-controller.d.ts +57 -5
- package/lib/base-classes/base-controller.js +83 -12
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base-crud-controller.d.ts +5 -4
- package/lib/base-classes/base-crud-controller.js +16 -4
- package/lib/base-classes/base-crud-controller.js.map +1 -1
- package/lib/base-classes/base-middleware.d.ts +2 -2
- package/lib/base-classes/base-middleware.js +1 -0
- package/lib/base-classes/base-middleware.js.map +1 -1
- package/lib/base-classes/base-repository.d.ts +3 -0
- package/lib/base-classes/base-repository.js +3 -0
- package/lib/base-classes/base-repository.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/method-config.d.ts +1 -0
- package/lib/config/method-config.js.map +1 -1
- package/lib/decorators/classes/controller-config.d.ts +20 -0
- package/lib/decorators/classes/controller-config.js +21 -0
- package/lib/decorators/classes/controller-config.js.map +1 -0
- package/lib/decorators/classes/controller-options.d.ts +16 -0
- package/lib/decorators/classes/controller-options.js +20 -0
- package/lib/decorators/classes/controller-options.js.map +1 -0
- package/lib/decorators/http/http-decorators.d.ts +2 -1
- package/lib/decorators/http/http-decorators.js +2 -1
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.d.ts +35 -4
- package/lib/decorators/http/http-methods-decorators.js +34 -1
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +10 -4
- package/lib/endpoint-context.js +178 -141
- package/lib/endpoint-context.js.map +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -2
- package/lib/env/env.angular-node-app.js +3 -4
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -2
- package/lib/env/env.docs-webapp.js +3 -4
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -2
- package/lib/env/env.electron-app.js +3 -4
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -2
- package/lib/env/env.mobile-app.js +3 -4
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -2
- package/lib/env/env.npm-lib-and-cli-tool.js +3 -4
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -2
- package/lib/env/env.vscode-plugin.js +3 -4
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/get-response-value.d.ts +1 -1
- package/lib/get-response-value.js +0 -4
- package/lib/get-response-value.js.map +1 -1
- package/lib/helpers/taon-helpers.d.ts +1 -0
- package/lib/helpers/taon-helpers.js +6 -0
- package/lib/helpers/taon-helpers.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +13 -2
- package/lib/index.js.map +1 -1
- package/lib/models.d.ts +4 -10
- package/lib/models.js +5 -23
- package/lib/models.js.map +1 -1
- package/lib/realtime/realtime-client.d.ts +18 -14
- package/lib/realtime/realtime-client.js +33 -25
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-server.d.ts +28 -3
- package/lib/realtime/realtime-server.js +28 -2
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime.models.d.ts +15 -2
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/package.json +1 -1
- package/websql/README.md +24 -24
- package/websql/fesm2022/taon.mjs +306 -91
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-class.d.ts +8 -1
- package/websql/lib/base-classes/base-controller.d.ts +56 -4
- package/websql/lib/base-classes/base-crud-controller.d.ts +5 -4
- package/websql/lib/base-classes/base-middleware.d.ts +2 -2
- package/websql/lib/base-classes/base-repository.d.ts +3 -0
- package/websql/lib/config/method-config.d.ts +1 -0
- package/websql/lib/decorators/http/http-decorators.d.ts +2 -1
- package/websql/lib/decorators/http/http-methods-decorators.d.ts +35 -4
- package/websql/lib/endpoint-context.d.ts +10 -4
- package/websql/lib/get-response-value.d.ts +1 -1
- package/websql/lib/helpers/taon-helpers.d.ts +1 -0
- package/websql/lib/index.d.ts +4 -0
- package/websql/lib/models.d.ts +4 -10
- package/websql/lib/realtime/realtime-client.d.ts +18 -14
- package/websql/lib/realtime/realtime-server.d.ts +28 -3
- package/websql/lib/realtime/realtime.models.d.ts +15 -2
- package/websql/package.json +1 -1
|
@@ -17,21 +17,52 @@ export type TaonMiddlewareFunction = (options: {
|
|
|
17
17
|
export interface TaonHttpDecoratorOptions {
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated don't use in production - keep stuff encapsulated
|
|
20
|
-
* path is
|
|
21
|
-
* ! BE CAREFUL ! global path IS NOT GLOBAL inside dockerized app
|
|
22
|
-
* (/api/contextName is automatically added to global path in docker)
|
|
20
|
+
* normally path is generated from method name and its params
|
|
23
21
|
*/
|
|
24
22
|
path?: string;
|
|
25
23
|
/**
|
|
26
|
-
* ! BE CAREFULL
|
|
27
24
|
* If true, the path will be global
|
|
25
|
+
*
|
|
26
|
+
* ! BE CAREFUL ! global path IS NOT GLOBAL inside dockerized app
|
|
27
|
+
* (/api/contextName is automatically added to global path in docker)
|
|
28
|
+
*
|
|
29
|
+
* @deprecated don't use in production - keep stuff encapsulated
|
|
28
30
|
*/
|
|
29
31
|
pathIsGlobal?: boolean;
|
|
30
32
|
overrideContentType?: CoreModels.ContentType;
|
|
31
33
|
overrideResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
34
|
+
/**
|
|
35
|
+
* Express will send response as HTML string with proper headers
|
|
36
|
+
*/
|
|
37
|
+
overrideExpressSendAsHtml?: boolean;
|
|
32
38
|
middlewares?: TaonMiddlewareFunction;
|
|
33
39
|
}
|
|
34
40
|
export declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Method for sending html website from text
|
|
43
|
+
* Example
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* ...
|
|
47
|
+
* // in your taon controller
|
|
48
|
+
* ..Taon.Http.HTML()
|
|
49
|
+
* sendHtmlDummyWebsite(): Taon.ResponseHtml {
|
|
50
|
+
* return `
|
|
51
|
+
<html>
|
|
52
|
+
<head>
|
|
53
|
+
<title>Dummy website</title>
|
|
54
|
+
</head>
|
|
55
|
+
<body>
|
|
56
|
+
<h1>This is dummy website</h1>
|
|
57
|
+
<p>Served as HTML string from Taon controller method</p>
|
|
58
|
+
</body>
|
|
59
|
+
</html>
|
|
60
|
+
* `; *
|
|
61
|
+
* }
|
|
62
|
+
* ...
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function HTML(pathOrOptions?: Pick<TaonHttpDecoratorOptions, 'path' | 'pathIsGlobal'>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
35
66
|
export declare function HEAD(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
36
67
|
export declare function POST(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
37
68
|
export declare function PUT(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GET = GET;
|
|
4
|
+
exports.HTML = HTML;
|
|
4
5
|
exports.HEAD = HEAD;
|
|
5
6
|
exports.POST = POST;
|
|
6
7
|
exports.PUT = PUT;
|
|
@@ -20,7 +21,7 @@ const metaReq = (method, path, target, propertyKey, descriptor, pathOrOptions, p
|
|
|
20
21
|
else {
|
|
21
22
|
options = { pathOrOptions, pathIsGlobal };
|
|
22
23
|
}
|
|
23
|
-
const { overrideContentType, overrideResponseType, middlewares } = options;
|
|
24
|
+
const { overrideContentType, overrideResponseType, overrideExpressSendAsHtml, middlewares, } = options;
|
|
24
25
|
methodConfig.methodName = propertyKey;
|
|
25
26
|
methodConfig.middlewares = middlewares;
|
|
26
27
|
methodConfig.type = method;
|
|
@@ -45,12 +46,44 @@ const metaReq = (method, path, target, propertyKey, descriptor, pathOrOptions, p
|
|
|
45
46
|
methodConfig.global = pathIsGlobal;
|
|
46
47
|
methodConfig.contentType = overrideContentType;
|
|
47
48
|
methodConfig.responseType = overrideResponseType;
|
|
49
|
+
methodConfig.overrideExpressSendAsHtml = overrideExpressSendAsHtml;
|
|
48
50
|
};
|
|
49
51
|
function GET(pathOrOptions, pathIsGlobal = false) {
|
|
50
52
|
return function (target, propertyKey, descriptor) {
|
|
51
53
|
metaReq('get', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
52
54
|
};
|
|
53
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Method for sending html website from text
|
|
58
|
+
* Example
|
|
59
|
+
*
|
|
60
|
+
* ```ts
|
|
61
|
+
* ...
|
|
62
|
+
* // in your taon controller
|
|
63
|
+
* ..Taon.Http.HTML()
|
|
64
|
+
* sendHtmlDummyWebsite(): Taon.ResponseHtml {
|
|
65
|
+
* return `
|
|
66
|
+
<html>
|
|
67
|
+
<head>
|
|
68
|
+
<title>Dummy website</title>
|
|
69
|
+
</head>
|
|
70
|
+
<body>
|
|
71
|
+
<h1>This is dummy website</h1>
|
|
72
|
+
<p>Served as HTML string from Taon controller method</p>
|
|
73
|
+
</body>
|
|
74
|
+
</html>
|
|
75
|
+
* `; *
|
|
76
|
+
* }
|
|
77
|
+
* ...
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
function HTML(pathOrOptions) {
|
|
81
|
+
return function (target, propertyKey, descriptor) {
|
|
82
|
+
const opt = pathOrOptions;
|
|
83
|
+
opt.overrideExpressSendAsHtml = true;
|
|
84
|
+
metaReq('get', opt, target, propertyKey, descriptor, pathOrOptions, opt.pathIsGlobal);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
54
87
|
function HEAD(pathOrOptions, pathIsGlobal = false) {
|
|
55
88
|
return function (target, propertyKey, descriptor) {
|
|
56
89
|
metaReq('head', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-methods-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"http-methods-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAwGA,kBAmBC;AA0BD,oBAoBC;AAED,oBAmBC;AAED,oBAmBC;AAED,kBAmBC;AAED,sBAmBC;AAED,wBAmBC;AAjRD,sCAA6C;AAG7C,+DAA2D;AAI3D,MAAM,OAAO,GAAG,CACd,MAAmC,EACnC,IAAY,EACZ,MAAgB,EAChB,WAAmB,EACnB,UAA8B,EAC9B,aAAgD,EAChD,YAAqB,EACrB,EAAE;IACF,MAAM,YAAY,GAAG,4BAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAE1E,IAAI,OAAiC,CAAC;IACtC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,GAAG,aAAa,CAAC;QACxB,aAAa,GAAG,OAAO,CAAC,IAAW,CAAC;QACpC,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;QACtC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,EAAE,aAAa,EAAE,YAAY,EAAS,CAAC;IACnD,CAAC;IAED,MAAM,EACJ,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,WAAW,GACZ,GAAG,OAAO,CAAC;IAEZ,YAAY,CAAC,UAAU,GAAG,WAAW,CAAC;IACtC,YAAY,CAAC,WAAW,GAAG,WAAW,CAAC;IACvC,YAAY,CAAC,IAAI,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,sBAAsB,GAAG,EAAE,CAAC;QAChC,KAAK,MAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC;YAC1C,IAAI,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAA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,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Server } from 'http';
|
|
2
2
|
import { URL } from 'url';
|
|
3
3
|
import type { NgZone } from '@angular/core';
|
|
4
|
+
import * as express from 'express';
|
|
4
5
|
import type { Application } from 'express';
|
|
5
6
|
import type { Repository } from 'taon-typeorm';
|
|
6
7
|
import { DataSource } from 'taon-typeorm';
|
|
@@ -18,12 +19,12 @@ export declare class EndpointContext {
|
|
|
18
19
|
* -> ONLY remote access from backend or frontend to specific backend
|
|
19
20
|
*/
|
|
20
21
|
private readonly cloneOptions;
|
|
22
|
+
private static ngZone;
|
|
23
|
+
static initNgZone(ngZone: NgZone): void;
|
|
21
24
|
/**
|
|
22
25
|
* JUST FOR TESTING PURPOSES
|
|
23
26
|
*/
|
|
24
27
|
readonly USE_MARIADB_MYSQL_IN_DOCKER: boolean;
|
|
25
|
-
private static ngZone;
|
|
26
|
-
static initNgZone(ngZone: NgZone): void;
|
|
27
28
|
disabledRealtime: boolean;
|
|
28
29
|
/**
|
|
29
30
|
* check whether context is inited
|
|
@@ -68,6 +69,7 @@ export declare class EndpointContext {
|
|
|
68
69
|
get logHttp(): boolean;
|
|
69
70
|
get logRealtime(): boolean;
|
|
70
71
|
get logFramework(): boolean;
|
|
72
|
+
get logRoutes(): boolean;
|
|
71
73
|
get logDb(): boolean;
|
|
72
74
|
get logMigrations(): boolean;
|
|
73
75
|
/**
|
|
@@ -150,6 +152,9 @@ export declare class EndpointContext {
|
|
|
150
152
|
*/
|
|
151
153
|
get port(): Number | undefined;
|
|
152
154
|
get isHttpServer(): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Check if context is for remote only
|
|
157
|
+
*/
|
|
153
158
|
get isRemoteHost(): boolean;
|
|
154
159
|
/**
|
|
155
160
|
* ipc/udp needs this
|
|
@@ -171,8 +176,8 @@ export declare class EndpointContext {
|
|
|
171
176
|
locationOnDisk: string;
|
|
172
177
|
}[];
|
|
173
178
|
get isProductionMode(): boolean;
|
|
174
|
-
get host(): string;
|
|
175
|
-
get
|
|
179
|
+
get host(): string | undefined;
|
|
180
|
+
get origin(): string | undefined;
|
|
176
181
|
initSubscribers(): Promise<void>;
|
|
177
182
|
initEntities(): Promise<void>;
|
|
178
183
|
destroy(): Promise<void>;
|
|
@@ -187,6 +192,7 @@ export declare class EndpointContext {
|
|
|
187
192
|
private initCustomBackendMiddlewares;
|
|
188
193
|
private initBackendMiddlewares;
|
|
189
194
|
private initServer;
|
|
195
|
+
protected sendError(res: express.Response, error: unknown, req: express.Request, expressPath: string): void;
|
|
190
196
|
/**
|
|
191
197
|
* client can be browser or nodejs (when remote host)
|
|
192
198
|
*/
|