@expressots/core 1.1.0 → 1.2.1
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/LICENSE.md +21 -0
- package/README.md +2 -1
- package/lib/CHANGELOG.md +19 -0
- package/lib/README.md +2 -1
- package/lib/cjs/application/app-container.js +40 -28
- package/lib/cjs/application/application.js +108 -73
- package/lib/cjs/application/index.js +9 -9
- package/lib/cjs/common/index.js +2 -0
- package/lib/cjs/common/project-config.provider.js +2 -0
- package/lib/cjs/console/console.js +95 -77
- package/lib/cjs/console/index.js +5 -5
- package/lib/cjs/container-module/container-module.js +56 -42
- package/lib/cjs/container-module/index.js +5 -5
- package/lib/cjs/controller/base-controller.js +77 -56
- package/lib/cjs/controller/index.js +5 -5
- package/lib/cjs/environment/env-validator.js +87 -72
- package/lib/cjs/environment/index.js +5 -5
- package/lib/cjs/error/application-error.js +37 -26
- package/lib/cjs/error/error-handler-middleware.js +17 -9
- package/lib/cjs/error/index.js +9 -9
- package/lib/cjs/error/report.js +27 -20
- package/lib/cjs/error/status-code.js +83 -83
- package/lib/cjs/index.js +24 -23
- package/lib/cjs/logger/general-logger.js +132 -103
- package/lib/cjs/logger/index.js +7 -7
- package/lib/cjs/types/application/app-container.d.ts +19 -7
- package/lib/cjs/types/application/app-container.d.ts.map +1 -1
- package/lib/cjs/types/application/application.d.ts +52 -21
- package/lib/cjs/types/application/application.d.ts.map +1 -1
- package/lib/cjs/types/application/index.d.ts +2 -2
- package/lib/cjs/types/common/index.d.ts +2 -0
- package/lib/cjs/types/common/index.d.ts.map +1 -0
- package/lib/cjs/types/common/project-config.provider.d.ts +22 -0
- package/lib/cjs/types/common/project-config.provider.d.ts.map +1 -0
- package/lib/cjs/types/console/console.d.ts +27 -9
- package/lib/cjs/types/console/console.d.ts.map +1 -1
- package/lib/cjs/types/console/index.d.ts +1 -1
- package/lib/cjs/types/container-module/container-module.d.ts +22 -8
- package/lib/cjs/types/container-module/container-module.d.ts.map +1 -1
- package/lib/cjs/types/container-module/index.d.ts +1 -1
- package/lib/cjs/types/controller/base-controller.d.ts +29 -8
- package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
- package/lib/cjs/types/controller/index.d.ts +1 -1
- package/lib/cjs/types/environment/env-validator.d.ts +27 -12
- package/lib/cjs/types/environment/env-validator.d.ts.map +1 -1
- package/lib/cjs/types/environment/index.d.ts +1 -1
- package/lib/cjs/types/error/application-error.d.ts +17 -6
- package/lib/cjs/types/error/application-error.d.ts.map +1 -1
- package/lib/cjs/types/error/error-handler-middleware.d.ts +12 -4
- package/lib/cjs/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/cjs/types/error/index.d.ts +3 -3
- package/lib/cjs/types/error/report.d.ts +12 -5
- package/lib/cjs/types/error/report.d.ts.map +1 -1
- package/lib/cjs/types/error/status-code.d.ts +136 -136
- package/lib/cjs/types/index.d.ts +8 -7
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/logger/general-logger.d.ts +45 -16
- package/lib/cjs/types/logger/general-logger.d.ts.map +1 -1
- package/lib/cjs/types/logger/index.d.ts +1 -1
- package/lib/esm/application/app-container.js +38 -26
- package/lib/esm/application/application.js +103 -68
- package/lib/esm/application/index.js +2 -2
- package/lib/esm/common/index.js +1 -0
- package/lib/esm/common/project-config.provider.js +1 -0
- package/lib/esm/console/console.js +76 -58
- package/lib/esm/console/index.js +1 -1
- package/lib/esm/container-module/container-module.js +53 -39
- package/lib/esm/container-module/index.js +1 -1
- package/lib/esm/controller/base-controller.js +64 -43
- package/lib/esm/controller/index.js +1 -1
- package/lib/esm/environment/env-validator.js +80 -65
- package/lib/esm/environment/index.js +1 -1
- package/lib/esm/error/application-error.js +36 -25
- package/lib/esm/error/error-handler-middleware.js +15 -7
- package/lib/esm/error/index.js +3 -3
- package/lib/esm/error/report.js +24 -17
- package/lib/esm/error/status-code.js +80 -80
- package/lib/esm/index.mjs +8 -7
- package/lib/esm/logger/general-logger.js +125 -96
- package/lib/esm/logger/index.js +1 -1
- package/lib/esm/types/application/app-container.d.ts +19 -7
- package/lib/esm/types/application/app-container.d.ts.map +1 -1
- package/lib/esm/types/application/application.d.ts +52 -21
- package/lib/esm/types/application/application.d.ts.map +1 -1
- package/lib/esm/types/application/index.d.ts +2 -2
- package/lib/esm/types/common/index.d.ts +2 -0
- package/lib/esm/types/common/index.d.ts.map +1 -0
- package/lib/esm/types/common/project-config.provider.d.ts +22 -0
- package/lib/esm/types/common/project-config.provider.d.ts.map +1 -0
- package/lib/esm/types/console/console.d.ts +27 -9
- package/lib/esm/types/console/console.d.ts.map +1 -1
- package/lib/esm/types/console/index.d.ts +1 -1
- package/lib/esm/types/container-module/container-module.d.ts +22 -8
- package/lib/esm/types/container-module/container-module.d.ts.map +1 -1
- package/lib/esm/types/container-module/index.d.ts +1 -1
- package/lib/esm/types/controller/base-controller.d.ts +29 -8
- package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
- package/lib/esm/types/controller/index.d.ts +1 -1
- package/lib/esm/types/environment/env-validator.d.ts +27 -12
- package/lib/esm/types/environment/env-validator.d.ts.map +1 -1
- package/lib/esm/types/environment/index.d.ts +1 -1
- package/lib/esm/types/error/application-error.d.ts +17 -6
- package/lib/esm/types/error/application-error.d.ts.map +1 -1
- package/lib/esm/types/error/error-handler-middleware.d.ts +12 -4
- package/lib/esm/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/esm/types/error/index.d.ts +3 -3
- package/lib/esm/types/error/report.d.ts +12 -5
- package/lib/esm/types/error/report.d.ts.map +1 -1
- package/lib/esm/types/error/status-code.d.ts +136 -136
- package/lib/esm/types/index.d.ts +8 -7
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/logger/general-logger.d.ts +45 -16
- package/lib/esm/types/logger/general-logger.d.ts.map +1 -1
- package/lib/esm/types/logger/index.d.ts +1 -1
- package/lib/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusCode = void 0;
|
|
4
|
-
/* Http Error Code Response */
|
|
5
|
-
var InformationResponse;
|
|
6
|
-
(function (InformationResponse) {
|
|
7
|
-
InformationResponse[InformationResponse["Continue"] = 100] = "Continue";
|
|
8
|
-
InformationResponse[InformationResponse["SwitchingProtocols"] = 101] = "SwitchingProtocols";
|
|
9
|
-
InformationResponse[InformationResponse["Processing"] = 102] = "Processing";
|
|
10
|
-
InformationResponse[InformationResponse["eEarlyHints"] = 103] = "eEarlyHints";
|
|
11
|
-
})(InformationResponse || (InformationResponse = {}));
|
|
12
|
-
var SuccessfulResponse;
|
|
13
|
-
(function (SuccessfulResponse) {
|
|
14
|
-
SuccessfulResponse[SuccessfulResponse["OK"] = 200] = "OK";
|
|
15
|
-
SuccessfulResponse[SuccessfulResponse["Created"] = 201] = "Created";
|
|
16
|
-
SuccessfulResponse[SuccessfulResponse["Accepted"] = 202] = "Accepted";
|
|
17
|
-
SuccessfulResponse[SuccessfulResponse["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
|
|
18
|
-
SuccessfulResponse[SuccessfulResponse["NoContent"] = 204] = "NoContent";
|
|
19
|
-
SuccessfulResponse[SuccessfulResponse["ResetContent"] = 205] = "ResetContent";
|
|
20
|
-
SuccessfulResponse[SuccessfulResponse["PartialContent"] = 206] = "PartialContent";
|
|
21
|
-
SuccessfulResponse[SuccessfulResponse["MultiStatus"] = 207] = "MultiStatus";
|
|
22
|
-
SuccessfulResponse[SuccessfulResponse["AlreadyReported"] = 208] = "AlreadyReported";
|
|
23
|
-
SuccessfulResponse[SuccessfulResponse["IMUsed"] = 226] = "IMUsed";
|
|
24
|
-
})(SuccessfulResponse || (SuccessfulResponse = {}));
|
|
25
|
-
var RedirectionMessage;
|
|
26
|
-
(function (RedirectionMessage) {
|
|
27
|
-
RedirectionMessage[RedirectionMessage["MultipleChoices"] = 300] = "MultipleChoices";
|
|
28
|
-
RedirectionMessage[RedirectionMessage["MovedPermanently"] = 301] = "MovedPermanently";
|
|
29
|
-
RedirectionMessage[RedirectionMessage["Found"] = 302] = "Found";
|
|
30
|
-
RedirectionMessage[RedirectionMessage["SeeOther"] = 303] = "SeeOther";
|
|
31
|
-
RedirectionMessage[RedirectionMessage["NotModified"] = 304] = "NotModified";
|
|
32
|
-
RedirectionMessage[RedirectionMessage["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
33
|
-
RedirectionMessage[RedirectionMessage["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
34
|
-
})(RedirectionMessage || (RedirectionMessage = {}));
|
|
35
|
-
var ClientErrorResponse;
|
|
36
|
-
(function (ClientErrorResponse) {
|
|
37
|
-
ClientErrorResponse[ClientErrorResponse["BadRequest"] = 400] = "BadRequest";
|
|
38
|
-
ClientErrorResponse[ClientErrorResponse["Unauthorized"] = 401] = "Unauthorized";
|
|
39
|
-
ClientErrorResponse[ClientErrorResponse["PaymentRequired"] = 402] = "PaymentRequired";
|
|
40
|
-
ClientErrorResponse[ClientErrorResponse["Forbidden"] = 403] = "Forbidden";
|
|
41
|
-
ClientErrorResponse[ClientErrorResponse["NotFound"] = 404] = "NotFound";
|
|
42
|
-
ClientErrorResponse[ClientErrorResponse["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
43
|
-
ClientErrorResponse[ClientErrorResponse["NotAcceptable"] = 406] = "NotAcceptable";
|
|
44
|
-
ClientErrorResponse[ClientErrorResponse["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
|
|
45
|
-
ClientErrorResponse[ClientErrorResponse["RequestTimeout"] = 408] = "RequestTimeout";
|
|
46
|
-
ClientErrorResponse[ClientErrorResponse["Conflict"] = 409] = "Conflict";
|
|
47
|
-
ClientErrorResponse[ClientErrorResponse["Gone"] = 410] = "Gone";
|
|
48
|
-
ClientErrorResponse[ClientErrorResponse["LengthRequired"] = 411] = "LengthRequired";
|
|
49
|
-
ClientErrorResponse[ClientErrorResponse["PreconditionFailed"] = 412] = "PreconditionFailed";
|
|
50
|
-
ClientErrorResponse[ClientErrorResponse["PayloadTooLarge"] = 413] = "PayloadTooLarge";
|
|
51
|
-
ClientErrorResponse[ClientErrorResponse["URITooLong"] = 414] = "URITooLong";
|
|
52
|
-
ClientErrorResponse[ClientErrorResponse["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
|
|
53
|
-
ClientErrorResponse[ClientErrorResponse["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
|
|
54
|
-
ClientErrorResponse[ClientErrorResponse["ExpectationFailed"] = 417] = "ExpectationFailed";
|
|
55
|
-
ClientErrorResponse[ClientErrorResponse["ImATeapot"] = 418] = "ImATeapot";
|
|
56
|
-
ClientErrorResponse[ClientErrorResponse["MisdirectedRequest"] = 421] = "MisdirectedRequest";
|
|
57
|
-
ClientErrorResponse[ClientErrorResponse["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
58
|
-
ClientErrorResponse[ClientErrorResponse["Locked"] = 423] = "Locked";
|
|
59
|
-
ClientErrorResponse[ClientErrorResponse["FailedDependency"] = 424] = "FailedDependency";
|
|
60
|
-
ClientErrorResponse[ClientErrorResponse["TooEarly"] = 425] = "TooEarly";
|
|
61
|
-
ClientErrorResponse[ClientErrorResponse["UpgradeRequired"] = 426] = "UpgradeRequired";
|
|
62
|
-
ClientErrorResponse[ClientErrorResponse["PreconditionRequired"] = 428] = "PreconditionRequired";
|
|
63
|
-
ClientErrorResponse[ClientErrorResponse["TooManyRequests"] = 429] = "TooManyRequests";
|
|
64
|
-
ClientErrorResponse[ClientErrorResponse["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
|
|
65
|
-
ClientErrorResponse[ClientErrorResponse["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
66
|
-
})(ClientErrorResponse || (ClientErrorResponse = {}));
|
|
67
|
-
var ServerErrorResponse;
|
|
68
|
-
(function (ServerErrorResponse) {
|
|
69
|
-
ServerErrorResponse[ServerErrorResponse["InternalServerError"] = 500] = "InternalServerError";
|
|
70
|
-
ServerErrorResponse[ServerErrorResponse["NotImplemented"] = 501] = "NotImplemented";
|
|
71
|
-
ServerErrorResponse[ServerErrorResponse["BadGateway"] = 502] = "BadGateway";
|
|
72
|
-
ServerErrorResponse[ServerErrorResponse["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
73
|
-
ServerErrorResponse[ServerErrorResponse["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
74
|
-
ServerErrorResponse[ServerErrorResponse["HTTPVersionNotSupported"] = 505] = "HTTPVersionNotSupported";
|
|
75
|
-
ServerErrorResponse[ServerErrorResponse["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
|
|
76
|
-
ServerErrorResponse[ServerErrorResponse["InsufficientStorage"] = 507] = "InsufficientStorage";
|
|
77
|
-
ServerErrorResponse[ServerErrorResponse["LoopDetected"] = 508] = "LoopDetected";
|
|
78
|
-
ServerErrorResponse[ServerErrorResponse["NotExtended"] = 510] = "NotExtended";
|
|
79
|
-
ServerErrorResponse[ServerErrorResponse["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
80
|
-
})(ServerErrorResponse || (ServerErrorResponse = {}));
|
|
81
|
-
const HttpStatusErrorCode = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, InformationResponse), SuccessfulResponse), RedirectionMessage), ClientErrorResponse), ServerErrorResponse);
|
|
82
|
-
const StatusCode = Object.assign({}, HttpStatusErrorCode);
|
|
83
|
-
exports.StatusCode = StatusCode;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusCode = void 0;
|
|
4
|
+
/* Http Error Code Response */
|
|
5
|
+
var InformationResponse;
|
|
6
|
+
(function (InformationResponse) {
|
|
7
|
+
InformationResponse[InformationResponse["Continue"] = 100] = "Continue";
|
|
8
|
+
InformationResponse[InformationResponse["SwitchingProtocols"] = 101] = "SwitchingProtocols";
|
|
9
|
+
InformationResponse[InformationResponse["Processing"] = 102] = "Processing";
|
|
10
|
+
InformationResponse[InformationResponse["eEarlyHints"] = 103] = "eEarlyHints";
|
|
11
|
+
})(InformationResponse || (InformationResponse = {}));
|
|
12
|
+
var SuccessfulResponse;
|
|
13
|
+
(function (SuccessfulResponse) {
|
|
14
|
+
SuccessfulResponse[SuccessfulResponse["OK"] = 200] = "OK";
|
|
15
|
+
SuccessfulResponse[SuccessfulResponse["Created"] = 201] = "Created";
|
|
16
|
+
SuccessfulResponse[SuccessfulResponse["Accepted"] = 202] = "Accepted";
|
|
17
|
+
SuccessfulResponse[SuccessfulResponse["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
|
|
18
|
+
SuccessfulResponse[SuccessfulResponse["NoContent"] = 204] = "NoContent";
|
|
19
|
+
SuccessfulResponse[SuccessfulResponse["ResetContent"] = 205] = "ResetContent";
|
|
20
|
+
SuccessfulResponse[SuccessfulResponse["PartialContent"] = 206] = "PartialContent";
|
|
21
|
+
SuccessfulResponse[SuccessfulResponse["MultiStatus"] = 207] = "MultiStatus";
|
|
22
|
+
SuccessfulResponse[SuccessfulResponse["AlreadyReported"] = 208] = "AlreadyReported";
|
|
23
|
+
SuccessfulResponse[SuccessfulResponse["IMUsed"] = 226] = "IMUsed";
|
|
24
|
+
})(SuccessfulResponse || (SuccessfulResponse = {}));
|
|
25
|
+
var RedirectionMessage;
|
|
26
|
+
(function (RedirectionMessage) {
|
|
27
|
+
RedirectionMessage[RedirectionMessage["MultipleChoices"] = 300] = "MultipleChoices";
|
|
28
|
+
RedirectionMessage[RedirectionMessage["MovedPermanently"] = 301] = "MovedPermanently";
|
|
29
|
+
RedirectionMessage[RedirectionMessage["Found"] = 302] = "Found";
|
|
30
|
+
RedirectionMessage[RedirectionMessage["SeeOther"] = 303] = "SeeOther";
|
|
31
|
+
RedirectionMessage[RedirectionMessage["NotModified"] = 304] = "NotModified";
|
|
32
|
+
RedirectionMessage[RedirectionMessage["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
33
|
+
RedirectionMessage[RedirectionMessage["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
34
|
+
})(RedirectionMessage || (RedirectionMessage = {}));
|
|
35
|
+
var ClientErrorResponse;
|
|
36
|
+
(function (ClientErrorResponse) {
|
|
37
|
+
ClientErrorResponse[ClientErrorResponse["BadRequest"] = 400] = "BadRequest";
|
|
38
|
+
ClientErrorResponse[ClientErrorResponse["Unauthorized"] = 401] = "Unauthorized";
|
|
39
|
+
ClientErrorResponse[ClientErrorResponse["PaymentRequired"] = 402] = "PaymentRequired";
|
|
40
|
+
ClientErrorResponse[ClientErrorResponse["Forbidden"] = 403] = "Forbidden";
|
|
41
|
+
ClientErrorResponse[ClientErrorResponse["NotFound"] = 404] = "NotFound";
|
|
42
|
+
ClientErrorResponse[ClientErrorResponse["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
43
|
+
ClientErrorResponse[ClientErrorResponse["NotAcceptable"] = 406] = "NotAcceptable";
|
|
44
|
+
ClientErrorResponse[ClientErrorResponse["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
|
|
45
|
+
ClientErrorResponse[ClientErrorResponse["RequestTimeout"] = 408] = "RequestTimeout";
|
|
46
|
+
ClientErrorResponse[ClientErrorResponse["Conflict"] = 409] = "Conflict";
|
|
47
|
+
ClientErrorResponse[ClientErrorResponse["Gone"] = 410] = "Gone";
|
|
48
|
+
ClientErrorResponse[ClientErrorResponse["LengthRequired"] = 411] = "LengthRequired";
|
|
49
|
+
ClientErrorResponse[ClientErrorResponse["PreconditionFailed"] = 412] = "PreconditionFailed";
|
|
50
|
+
ClientErrorResponse[ClientErrorResponse["PayloadTooLarge"] = 413] = "PayloadTooLarge";
|
|
51
|
+
ClientErrorResponse[ClientErrorResponse["URITooLong"] = 414] = "URITooLong";
|
|
52
|
+
ClientErrorResponse[ClientErrorResponse["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
|
|
53
|
+
ClientErrorResponse[ClientErrorResponse["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
|
|
54
|
+
ClientErrorResponse[ClientErrorResponse["ExpectationFailed"] = 417] = "ExpectationFailed";
|
|
55
|
+
ClientErrorResponse[ClientErrorResponse["ImATeapot"] = 418] = "ImATeapot";
|
|
56
|
+
ClientErrorResponse[ClientErrorResponse["MisdirectedRequest"] = 421] = "MisdirectedRequest";
|
|
57
|
+
ClientErrorResponse[ClientErrorResponse["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
58
|
+
ClientErrorResponse[ClientErrorResponse["Locked"] = 423] = "Locked";
|
|
59
|
+
ClientErrorResponse[ClientErrorResponse["FailedDependency"] = 424] = "FailedDependency";
|
|
60
|
+
ClientErrorResponse[ClientErrorResponse["TooEarly"] = 425] = "TooEarly";
|
|
61
|
+
ClientErrorResponse[ClientErrorResponse["UpgradeRequired"] = 426] = "UpgradeRequired";
|
|
62
|
+
ClientErrorResponse[ClientErrorResponse["PreconditionRequired"] = 428] = "PreconditionRequired";
|
|
63
|
+
ClientErrorResponse[ClientErrorResponse["TooManyRequests"] = 429] = "TooManyRequests";
|
|
64
|
+
ClientErrorResponse[ClientErrorResponse["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
|
|
65
|
+
ClientErrorResponse[ClientErrorResponse["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
66
|
+
})(ClientErrorResponse || (ClientErrorResponse = {}));
|
|
67
|
+
var ServerErrorResponse;
|
|
68
|
+
(function (ServerErrorResponse) {
|
|
69
|
+
ServerErrorResponse[ServerErrorResponse["InternalServerError"] = 500] = "InternalServerError";
|
|
70
|
+
ServerErrorResponse[ServerErrorResponse["NotImplemented"] = 501] = "NotImplemented";
|
|
71
|
+
ServerErrorResponse[ServerErrorResponse["BadGateway"] = 502] = "BadGateway";
|
|
72
|
+
ServerErrorResponse[ServerErrorResponse["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
73
|
+
ServerErrorResponse[ServerErrorResponse["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
74
|
+
ServerErrorResponse[ServerErrorResponse["HTTPVersionNotSupported"] = 505] = "HTTPVersionNotSupported";
|
|
75
|
+
ServerErrorResponse[ServerErrorResponse["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
|
|
76
|
+
ServerErrorResponse[ServerErrorResponse["InsufficientStorage"] = 507] = "InsufficientStorage";
|
|
77
|
+
ServerErrorResponse[ServerErrorResponse["LoopDetected"] = 508] = "LoopDetected";
|
|
78
|
+
ServerErrorResponse[ServerErrorResponse["NotExtended"] = 510] = "NotExtended";
|
|
79
|
+
ServerErrorResponse[ServerErrorResponse["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
80
|
+
})(ServerErrorResponse || (ServerErrorResponse = {}));
|
|
81
|
+
const HttpStatusErrorCode = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, InformationResponse), SuccessfulResponse), RedirectionMessage), ClientErrorResponse), ServerErrorResponse);
|
|
82
|
+
const StatusCode = Object.assign({}, HttpStatusErrorCode);
|
|
83
|
+
exports.StatusCode = StatusCode;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./application"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./application"), exports);
|
|
18
|
+
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./console"), exports);
|
|
20
|
+
__exportStar(require("./container-module"), exports);
|
|
21
|
+
__exportStar(require("./controller"), exports);
|
|
22
|
+
__exportStar(require("./environment"), exports);
|
|
23
|
+
__exportStar(require("./error"), exports);
|
|
24
|
+
__exportStar(require("./logger"), exports);
|
|
@@ -1,103 +1,132 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
var GeneralLogger_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.log = exports.GeneralLogger = exports.LogLevel = void 0;
|
|
17
|
-
const winston_1 = require("winston");
|
|
18
|
-
const winston_daily_rotate_file_1 = __importDefault(require("winston-daily-rotate-file"));
|
|
19
|
-
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
var GeneralLogger_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.log = exports.GeneralLogger = exports.LogLevel = void 0;
|
|
17
|
+
const winston_1 = require("winston");
|
|
18
|
+
const winston_daily_rotate_file_1 = __importDefault(require("winston-daily-rotate-file"));
|
|
19
|
+
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
20
|
+
/**
|
|
21
|
+
* LogLevel enumeration defines the available log levels.
|
|
22
|
+
*/
|
|
23
|
+
var LogLevel;
|
|
24
|
+
(function (LogLevel) {
|
|
25
|
+
LogLevel[LogLevel["Debug"] = 0] = "Debug";
|
|
26
|
+
LogLevel[LogLevel["Error"] = 1] = "Error";
|
|
27
|
+
LogLevel[LogLevel["Info"] = 2] = "Info";
|
|
28
|
+
})(LogLevel || (LogLevel = {}));
|
|
29
|
+
exports.LogLevel = LogLevel;
|
|
30
|
+
/**
|
|
31
|
+
* GeneralLogger class is a utility class to manage logging within the application.
|
|
32
|
+
*/
|
|
33
|
+
let GeneralLogger = GeneralLogger_1 = class GeneralLogger {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.logger = (0, winston_1.createLogger)(this.createLoggerOptions());
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Creates a console transport for logging.
|
|
39
|
+
* @returns {transports.ConsoleTransportInstance} A Winston console transport instance.
|
|
40
|
+
*/
|
|
41
|
+
createConsoleTransport() {
|
|
42
|
+
const consoleTransport = new winston_1.transports.Console({
|
|
43
|
+
level: "debug",
|
|
44
|
+
handleExceptions: true,
|
|
45
|
+
handleRejections: true
|
|
46
|
+
});
|
|
47
|
+
return consoleTransport;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Creates a rotational file transport for logging.
|
|
51
|
+
* @returns {DailyRotateFile} A Winston daily rotate file transport instance.
|
|
52
|
+
*/
|
|
53
|
+
createRotationalFileTransport() {
|
|
54
|
+
const rotationalFileTransport = new winston_daily_rotate_file_1.default({
|
|
55
|
+
level: "error",
|
|
56
|
+
filename: "logs/general-%DATE%.log",
|
|
57
|
+
datePattern: "YYYY-MM-DD",
|
|
58
|
+
zippedArchive: true,
|
|
59
|
+
maxSize: "20m",
|
|
60
|
+
maxFiles: "7d",
|
|
61
|
+
silent: false
|
|
62
|
+
});
|
|
63
|
+
return rotationalFileTransport;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates a logger options object for Winston.
|
|
67
|
+
* @returns {LoggerOptions} A Winston logger options object.
|
|
68
|
+
*/
|
|
69
|
+
createLoggerOptions() {
|
|
70
|
+
const loggerOptions = {
|
|
71
|
+
transports: [
|
|
72
|
+
this.createConsoleTransport(),
|
|
73
|
+
this.createRotationalFileTransport()
|
|
74
|
+
],
|
|
75
|
+
defaultMeta: { service: "service-unknown" },
|
|
76
|
+
format: winston_1.format.combine(winston_1.format.splat(), winston_1.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.format.label({ label: "core-api" }), winston_1.format.printf(({ timestamp, level, message, service, label }) => {
|
|
77
|
+
return `[${timestamp}] [${label}] [${service}] ${level}: ${message}`;
|
|
78
|
+
}))
|
|
79
|
+
};
|
|
80
|
+
return loggerOptions;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves the path and line number of the error.
|
|
84
|
+
* @param error - An Error object containing error details.
|
|
85
|
+
* @returns {string} A string containing the path and line number of the error.
|
|
86
|
+
*/
|
|
87
|
+
getPathAndLine(error) {
|
|
88
|
+
let pathLine = "";
|
|
89
|
+
if (error.stack) {
|
|
90
|
+
let callerLine = error.stack.split("\n")[1];
|
|
91
|
+
let index = callerLine.indexOf("at ");
|
|
92
|
+
pathLine = callerLine.substring(index + +2, callerLine.length);
|
|
93
|
+
}
|
|
94
|
+
return pathLine;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Logs a message or error with the specified log level and service.
|
|
98
|
+
* @param logLevel - The log level to use (Debug, Error, or Info).
|
|
99
|
+
* @param content - The message or Error object to log.
|
|
100
|
+
* @param service - The service name (optional) associated with the log.
|
|
101
|
+
*/
|
|
102
|
+
log(logLevel, content, service) {
|
|
103
|
+
let pathLine = "";
|
|
104
|
+
let logMessageFormat = "";
|
|
105
|
+
if (typeof content === "object") {
|
|
106
|
+
pathLine = this.getPathAndLine(content);
|
|
107
|
+
logMessageFormat = `${content.message} - (${content.name}) [file: %s]`;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
logMessageFormat = content;
|
|
111
|
+
}
|
|
112
|
+
switch (logLevel) {
|
|
113
|
+
case LogLevel.Debug:
|
|
114
|
+
console.log(logMessageFormat, pathLine, { service });
|
|
115
|
+
break;
|
|
116
|
+
case LogLevel.Error:
|
|
117
|
+
this.logger.error(logMessageFormat, pathLine, { service });
|
|
118
|
+
break;
|
|
119
|
+
case LogLevel.Info:
|
|
120
|
+
this.logger.info(content, { service });
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
GeneralLogger = GeneralLogger_1 = __decorate([
|
|
126
|
+
(0, inversify_binding_decorators_1.provide)(GeneralLogger_1),
|
|
127
|
+
__metadata("design:paramtypes", [])
|
|
128
|
+
], GeneralLogger);
|
|
129
|
+
exports.GeneralLogger = GeneralLogger;
|
|
130
|
+
const Log = new GeneralLogger();
|
|
131
|
+
const log = Log.log.bind(Log);
|
|
132
|
+
exports.log = log;
|
package/lib/cjs/logger/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.log = exports.LogLevel = exports.GeneralLogger = void 0;
|
|
4
|
-
var general_logger_1 = require("./general-logger");
|
|
5
|
-
Object.defineProperty(exports, "GeneralLogger", { enumerable: true, get: function () { return general_logger_1.GeneralLogger; } });
|
|
6
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return general_logger_1.LogLevel; } });
|
|
7
|
-
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return general_logger_1.log; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.log = exports.LogLevel = exports.GeneralLogger = void 0;
|
|
4
|
+
var general_logger_1 = require("./general-logger");
|
|
5
|
+
Object.defineProperty(exports, "GeneralLogger", { enumerable: true, get: function () { return general_logger_1.GeneralLogger; } });
|
|
6
|
+
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return general_logger_1.LogLevel; } });
|
|
7
|
+
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return general_logger_1.log; } });
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { Container, ContainerModule } from "inversify";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Container, ContainerModule } from "inversify";
|
|
2
|
+
/**
|
|
3
|
+
* The AppContainer class provides a container for managing dependency injection.
|
|
4
|
+
* @provide AppContainer
|
|
5
|
+
*/
|
|
6
|
+
declare class AppContainer {
|
|
7
|
+
private container;
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a new instance of the AppContainer class.
|
|
10
|
+
*/
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Creates and configures a new dependency injection container.
|
|
14
|
+
* @param modules - An array of ContainerModule instances to load into the container.
|
|
15
|
+
* @returns The configured dependency injection container.
|
|
16
|
+
*/
|
|
17
|
+
create(modules: ContainerModule[]): Container;
|
|
18
|
+
}
|
|
19
|
+
export { AppContainer };
|
|
8
20
|
//# sourceMappingURL=app-container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-container.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/app-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGvD,cACM,YAAY;IAEd,OAAO,CAAC,SAAS,CAAY;;
|
|
1
|
+
{"version":3,"file":"app-container.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/app-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGvD;;;GAGG;AACH,cACM,YAAY;IAEd,OAAO,CAAC,SAAS,CAAY;IAE7B;;OAEG;;IAGH;;;;OAIG;IACI,MAAM,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS;CAKvD;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,22 +1,53 @@
|
|
|
1
|
-
import express from "express";
|
|
2
|
-
import { Container } from "inversify";
|
|
3
|
-
import { IApplicationMessageToConsole } from "../console/console";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import express from "express";
|
|
2
|
+
import { Container } from "inversify";
|
|
3
|
+
import { IApplicationMessageToConsole } from "../console/console";
|
|
4
|
+
/**
|
|
5
|
+
* Enum representing possible server environments.
|
|
6
|
+
*/
|
|
7
|
+
declare enum ServerEnvironment {
|
|
8
|
+
Development = "development",
|
|
9
|
+
Staging = "staging",
|
|
10
|
+
Production = "production"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The Application class provides a way to configure and manage an Express application.
|
|
14
|
+
* @provide Application
|
|
15
|
+
*/
|
|
16
|
+
declare class Application {
|
|
17
|
+
private app;
|
|
18
|
+
private port;
|
|
19
|
+
private environment;
|
|
20
|
+
/**
|
|
21
|
+
* Constructs a new instance of the Application class.
|
|
22
|
+
*/
|
|
23
|
+
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Configure services that should be initialized before the server starts.
|
|
26
|
+
*/
|
|
27
|
+
protected configureServices(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Configure services that should be executed after the server starts.
|
|
30
|
+
*/
|
|
31
|
+
protected postServerInitialization(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Perform actions or cleanup after the server is shutdown.
|
|
34
|
+
*/
|
|
35
|
+
protected serverShutdown(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Create and configure the Express application.
|
|
38
|
+
* @param container - The InversifyJS container.
|
|
39
|
+
* @param middlewares - An array of Express middlewares to be applied.
|
|
40
|
+
* @returns The configured Application instance.
|
|
41
|
+
*/
|
|
42
|
+
create(container: Container, middlewares?: express.RequestHandler[]): Application;
|
|
43
|
+
/**
|
|
44
|
+
* Start listening on the given port and environment.
|
|
45
|
+
* @param port - The port number to listen on.
|
|
46
|
+
* @param environment - The server environment.
|
|
47
|
+
* @param consoleMessage - Optional message to display in the console.
|
|
48
|
+
*/
|
|
49
|
+
listen(port: number, environment: ServerEnvironment, consoleMessage?: IApplicationMessageToConsole): void;
|
|
50
|
+
}
|
|
51
|
+
declare const appServerInstance: Application;
|
|
52
|
+
export { appServerInstance as AppInstance, Application, ServerEnvironment };
|
|
22
53
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAItC,OAAO,EAAW,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG3E,aAAK,iBAAiB;IAClB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC5B;AAED,cACM,WAAW;IAEb,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,WAAW,CAAoB;;
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAItC,OAAO,EAAW,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG3E;;GAEG;AACH,aAAK,iBAAiB;IAClB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC5B;AAED;;;GAGG;AACH,cACM,WAAW;IAEb,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,WAAW,CAAoB;IAEvC;;OAEG;;IAGH;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAEnC;;OAEG;IACH,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAE1C;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAIhC;;;;;OAKG;IACI,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,GAAE,OAAO,CAAC,cAAc,EAAO,GAAG,WAAW;IAoC5F;;;;;OAKG;IACI,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,CAAC,EAAE,4BAA4B,GAAG,IAAI;CAanH;AAED,QAAA,MAAM,iBAAiB,EAAE,WAA+B,CAAC;AAEzD,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppInstance, Application, ServerEnvironment } from './application';
|
|
2
|
-
export { AppContainer } from './app-container';
|
|
1
|
+
export { AppInstance, Application, ServerEnvironment } from './application';
|
|
2
|
+
export { AppContainer } from './app-container';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|