@tstdl/base 0.71.52 → 0.71.53
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.
|
@@ -9,7 +9,6 @@ import { ModuleMetricType } from '../module';
|
|
|
9
9
|
import { ModuleBase } from '../module-base';
|
|
10
10
|
export declare type WebServerModuleConfiguration = {
|
|
11
11
|
port: number;
|
|
12
|
-
prefix: 'api/';
|
|
13
12
|
};
|
|
14
13
|
export declare const webServerModuleConfiguration: WebServerModuleConfiguration;
|
|
15
14
|
export declare class WebServerModule extends ModuleBase implements Module, Injectable<WebServerModuleConfiguration>, AfterResolve {
|
|
@@ -27,14 +27,8 @@ const server_2 = require("../../http/server");
|
|
|
27
27
|
const module_1 = require("../module");
|
|
28
28
|
const module_base_1 = require("../module-base");
|
|
29
29
|
exports.webServerModuleConfiguration = {
|
|
30
|
-
port: 8000
|
|
31
|
-
prefix: 'api/'
|
|
30
|
+
port: 8000
|
|
32
31
|
};
|
|
33
|
-
function getApiGatewayArgument(config) {
|
|
34
|
-
return {
|
|
35
|
-
prefix: config.prefix
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
32
|
let WebServerModule = class WebServerModule extends module_base_1.ModuleBase {
|
|
39
33
|
constructor(config, httpServer, apiGateway, apiControllers = []) {
|
|
40
34
|
super('WebServer');
|
|
@@ -91,7 +85,6 @@ let WebServerModule = class WebServerModule extends module_base_1.ModuleBase {
|
|
|
91
85
|
WebServerModule = __decorate([
|
|
92
86
|
(0, container_1.singleton)({ defaultArgumentProvider: () => exports.webServerModuleConfiguration }),
|
|
93
87
|
__param(0, (0, container_1.injectArg)()),
|
|
94
|
-
__param(2, (0, container_1.forwardArg)(getApiGatewayArgument)),
|
|
95
88
|
__param(3, (0, container_1.inject)(server_1.API_MODULE_OPTIONS, undefined, (options) => options.controllers)),
|
|
96
89
|
__param(3, (0, container_1.optional)()),
|
|
97
90
|
__metadata("design:paramtypes", [Object, server_2.HttpServer,
|
|
@@ -99,9 +92,8 @@ WebServerModule = __decorate([
|
|
|
99
92
|
], WebServerModule);
|
|
100
93
|
exports.WebServerModule = WebServerModule;
|
|
101
94
|
function configureWebServerModule(config) {
|
|
102
|
-
var _a
|
|
95
|
+
var _a;
|
|
103
96
|
exports.webServerModuleConfiguration.port = (_a = config === null || config === void 0 ? void 0 : config.port) !== null && _a !== void 0 ? _a : exports.webServerModuleConfiguration.port;
|
|
104
|
-
exports.webServerModuleConfiguration.prefix = (_b = config === null || config === void 0 ? void 0 : config.prefix) !== null && _b !== void 0 ? _b : exports.webServerModuleConfiguration.prefix;
|
|
105
97
|
}
|
|
106
98
|
exports.configureWebServerModule = configureWebServerModule;
|
|
107
99
|
//# sourceMappingURL=web-server.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-server.module.js","sourceRoot":"","sources":["../../../source/module/modules/web-server.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"web-server.module.js","sourceRoot":"","sources":["../../../source/module/modules/web-server.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8D;AAE9D,+CAAwG;AACxG,4DAAuD;AACvD,8CAA2C;AAI3C,sCAA6C;AAC7C,gDAA4C;AAM/B,QAAA,4BAA4B,GAAiC;IACxE,IAAI,EAAE,IAAI;CACX,CAAC;AAGF,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,wBAAU;IAiB7C,YACe,MAAoC,EACjD,UAAsB,EACtB,UAAsB,EAC+D,iBAAyB,EAAE;QAEhH,KAAK,CAAC,WAAW,CAAC,CAAC;QAfZ,YAAO,GAAG;YACjB,gBAAgB,EAAE;gBAChB,IAAI,EAAE,yBAAgB,CAAC,KAAK;gBAC5B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB;aACtD;SACF,CAAC;QAYA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B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