@tsed/common 7.0.0-beta.12 → 7.0.0-beta.13
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/jest.config.js +14 -0
- package/lib/cjs/builder/PlatformBuilder.js +65 -55
- package/lib/cjs/builder/PlatformBuilder.js.map +1 -1
- package/lib/cjs/builder/PlatformControllerBuilder.js +1 -1
- package/lib/cjs/builder/PlatformControllerBuilder.js.map +1 -1
- package/lib/cjs/config/interfaces/PlatformLoggerSettings.js.map +1 -1
- package/lib/cjs/config/services/PlatformConfiguration.js +0 -70
- package/lib/cjs/config/services/PlatformConfiguration.js.map +1 -1
- package/lib/cjs/domain/AnyToPromiseWithCtx.js +4 -3
- package/lib/cjs/domain/AnyToPromiseWithCtx.js.map +1 -1
- package/lib/cjs/domain/ControllerProvider.js +1 -0
- package/lib/cjs/domain/ControllerProvider.js.map +1 -1
- package/lib/cjs/domain/HandlerMetadata.js +10 -5
- package/lib/cjs/domain/HandlerMetadata.js.map +1 -1
- package/lib/cjs/domain/PlatformContext.js +54 -31
- package/lib/cjs/domain/PlatformContext.js.map +1 -1
- package/lib/cjs/domain/PlatformRouteDetails.js +5 -1
- package/lib/cjs/domain/PlatformRouteDetails.js.map +1 -1
- package/lib/cjs/middlewares/PlatformAcceptMimesMiddleware.js +2 -1
- package/lib/cjs/middlewares/PlatformAcceptMimesMiddleware.js.map +1 -1
- package/lib/cjs/middlewares/PlatformMulterMiddleware.js +2 -0
- package/lib/cjs/middlewares/PlatformMulterMiddleware.js.map +1 -1
- package/lib/cjs/services/FakeAdapter.js +1 -3
- package/lib/cjs/services/FakeAdapter.js.map +1 -1
- package/lib/cjs/services/Platform.js +4 -2
- package/lib/cjs/services/Platform.js.map +1 -1
- package/lib/cjs/services/PlatformAdapter.js +12 -0
- package/lib/cjs/services/PlatformAdapter.js.map +1 -1
- package/lib/cjs/services/PlatformApplication.js +2 -0
- package/lib/cjs/services/PlatformApplication.js.map +1 -1
- package/lib/cjs/services/PlatformHandler.js +7 -4
- package/lib/cjs/services/PlatformHandler.js.map +1 -1
- package/lib/cjs/services/PlatformMiddlewaresChain.js +3 -1
- package/lib/cjs/services/PlatformMiddlewaresChain.js.map +1 -1
- package/lib/cjs/services/PlatformRequest.js +16 -11
- package/lib/cjs/services/PlatformRequest.js.map +1 -1
- package/lib/cjs/services/PlatformResponse.js +15 -11
- package/lib/cjs/services/PlatformResponse.js.map +1 -1
- package/lib/cjs/services/PlatformRouter.js +7 -1
- package/lib/cjs/services/PlatformRouter.js.map +1 -1
- package/lib/cjs/services/PlatformTest.js +20 -8
- package/lib/cjs/services/PlatformTest.js.map +1 -1
- package/lib/cjs/utils/createContext.js +28 -13
- package/lib/cjs/utils/createContext.js.map +1 -1
- package/lib/cjs/utils/createHttpServer.js +3 -3
- package/lib/cjs/utils/createHttpServer.js.map +1 -1
- package/lib/cjs/utils/createHttpsServer.js +3 -3
- package/lib/cjs/utils/createHttpsServer.js.map +1 -1
- package/lib/cjs/utils/createInjector.js +6 -6
- package/lib/cjs/utils/createInjector.js.map +1 -1
- package/lib/cjs/utils/getConfiguration.js +2 -12
- package/lib/cjs/utils/getConfiguration.js.map +1 -1
- package/lib/cjs/utils/setResponseHeaders.js +7 -13
- package/lib/cjs/utils/setResponseHeaders.js.map +1 -1
- package/lib/esm/builder/PlatformBuilder.js +42 -55
- package/lib/esm/builder/PlatformBuilder.js.map +1 -1
- package/lib/esm/builder/PlatformControllerBuilder.js +1 -1
- package/lib/esm/builder/PlatformControllerBuilder.js.map +1 -1
- package/lib/esm/config/interfaces/PlatformLoggerSettings.js.map +1 -1
- package/lib/esm/config/services/PlatformConfiguration.js +0 -70
- package/lib/esm/config/services/PlatformConfiguration.js.map +1 -1
- package/lib/esm/domain/AnyToPromiseWithCtx.js +4 -3
- package/lib/esm/domain/AnyToPromiseWithCtx.js.map +1 -1
- package/lib/esm/domain/ControllerProvider.js +1 -0
- package/lib/esm/domain/ControllerProvider.js.map +1 -1
- package/lib/esm/domain/HandlerMetadata.js +10 -5
- package/lib/esm/domain/HandlerMetadata.js.map +1 -1
- package/lib/esm/domain/PlatformContext.js +54 -31
- package/lib/esm/domain/PlatformContext.js.map +1 -1
- package/lib/esm/domain/PlatformRouteDetails.js +5 -1
- package/lib/esm/domain/PlatformRouteDetails.js.map +1 -1
- package/lib/esm/middlewares/PlatformAcceptMimesMiddleware.js +2 -1
- package/lib/esm/middlewares/PlatformAcceptMimesMiddleware.js.map +1 -1
- package/lib/esm/middlewares/PlatformMulterMiddleware.js +2 -0
- package/lib/esm/middlewares/PlatformMulterMiddleware.js.map +1 -1
- package/lib/esm/services/FakeAdapter.js +1 -3
- package/lib/esm/services/FakeAdapter.js.map +1 -1
- package/lib/esm/services/Platform.js +4 -2
- package/lib/esm/services/Platform.js.map +1 -1
- package/lib/esm/services/PlatformAdapter.js +12 -0
- package/lib/esm/services/PlatformAdapter.js.map +1 -1
- package/lib/esm/services/PlatformApplication.js +2 -0
- package/lib/esm/services/PlatformApplication.js.map +1 -1
- package/lib/esm/services/PlatformHandler.js +8 -5
- package/lib/esm/services/PlatformHandler.js.map +1 -1
- package/lib/esm/services/PlatformMiddlewaresChain.js +3 -1
- package/lib/esm/services/PlatformMiddlewaresChain.js.map +1 -1
- package/lib/esm/services/PlatformRequest.js +16 -11
- package/lib/esm/services/PlatformRequest.js.map +1 -1
- package/lib/esm/services/PlatformResponse.js +15 -11
- package/lib/esm/services/PlatformResponse.js.map +1 -1
- package/lib/esm/services/PlatformRouter.js +7 -1
- package/lib/esm/services/PlatformRouter.js.map +1 -1
- package/lib/esm/services/PlatformTest.js +20 -8
- package/lib/esm/services/PlatformTest.js.map +1 -1
- package/lib/esm/utils/createContext.js +26 -12
- package/lib/esm/utils/createContext.js.map +1 -1
- package/lib/esm/utils/createHttpServer.js +3 -3
- package/lib/esm/utils/createHttpServer.js.map +1 -1
- package/lib/esm/utils/createHttpsServer.js +3 -3
- package/lib/esm/utils/createHttpsServer.js.map +1 -1
- package/lib/esm/utils/createInjector.js +7 -7
- package/lib/esm/utils/createInjector.js.map +1 -1
- package/lib/esm/utils/getConfiguration.js +4 -14
- package/lib/esm/utils/getConfiguration.js.map +1 -1
- package/lib/esm/utils/setResponseHeaders.js +7 -13
- package/lib/esm/utils/setResponseHeaders.js.map +1 -1
- package/lib/types/builder/PlatformBuilder.d.ts +4 -5
- package/lib/types/config/interfaces/PlatformLoggerSettings.d.ts +2 -43
- package/lib/types/config/services/PlatformConfiguration.d.ts +1 -22
- package/lib/types/domain/PlatformContext.d.ts +20 -14
- package/lib/types/domain/PlatformRouteDetails.d.ts +1 -7
- package/lib/types/services/PlatformRequest.d.ts +11 -8
- package/lib/types/services/PlatformResponse.d.ts +8 -9
- package/lib/types/services/PlatformTest.d.ts +2 -2
- package/lib/types/utils/createContext.d.ts +4 -1
- package/lib/types/utils/createHttpsServer.d.ts +1 -0
- package/lib/types/utils/createInjector.d.ts +1 -1
- package/lib/types/utils/listenServer.d.ts +2 -0
- package/package.json +22 -21
- package/lib/cjs/middlewares/__mock__/FakeCtrl.js +0 -12
- package/lib/cjs/middlewares/__mock__/FakeCtrl.js.map +0 -1
- package/lib/cjs/utils/__mock__/Test1.js +0 -8
- package/lib/cjs/utils/__mock__/Test1.js.map +0 -1
- package/lib/cjs/utils/__mock__/Test2.js +0 -8
- package/lib/cjs/utils/__mock__/Test2.js.map +0 -1
- package/lib/cjs/utils/__mock__/controllers/rest/TestCtrl.js +0 -12
- package/lib/cjs/utils/__mock__/controllers/rest/TestCtrl.js.map +0 -1
- package/lib/cjs/utils/__mock__/module1/Module1.js +0 -19
- package/lib/cjs/utils/__mock__/module1/Module1.js.map +0 -1
- package/lib/cjs/utils/__mock__/module1/controllers/M1Ctrl1.js +0 -17
- package/lib/cjs/utils/__mock__/module1/controllers/M1Ctrl1.js.map +0 -1
- package/lib/cjs/utils/__mock__/module1/services/M1Service.js +0 -17
- package/lib/cjs/utils/__mock__/module1/services/M1Service.js.map +0 -1
- package/lib/cjs/utils/__mock__/module1/submodule/SubModule.js +0 -15
- package/lib/cjs/utils/__mock__/module1/submodule/SubModule.js.map +0 -1
- package/lib/cjs/utils/__mock__/module1/submodule/SubService.js +0 -12
- package/lib/cjs/utils/__mock__/module1/submodule/SubService.js.map +0 -1
- package/lib/cjs/utils/__mock__/module2/Module2.js +0 -18
- package/lib/cjs/utils/__mock__/module2/Module2.js.map +0 -1
- package/lib/cjs/utils/__mock__/module2/controllers/M2Ctrl.js +0 -12
- package/lib/cjs/utils/__mock__/module2/controllers/M2Ctrl.js.map +0 -1
- package/lib/esm/middlewares/__mock__/FakeCtrl.js +0 -9
- package/lib/esm/middlewares/__mock__/FakeCtrl.js.map +0 -1
- package/lib/esm/utils/__mock__/Test1.js +0 -4
- package/lib/esm/utils/__mock__/Test1.js.map +0 -1
- package/lib/esm/utils/__mock__/Test2.js +0 -4
- package/lib/esm/utils/__mock__/Test2.js.map +0 -1
- package/lib/esm/utils/__mock__/controllers/rest/TestCtrl.js +0 -9
- package/lib/esm/utils/__mock__/controllers/rest/TestCtrl.js.map +0 -1
- package/lib/esm/utils/__mock__/module1/Module1.js +0 -16
- package/lib/esm/utils/__mock__/module1/Module1.js.map +0 -1
- package/lib/esm/utils/__mock__/module1/controllers/M1Ctrl1.js +0 -14
- package/lib/esm/utils/__mock__/module1/controllers/M1Ctrl1.js.map +0 -1
- package/lib/esm/utils/__mock__/module1/services/M1Service.js +0 -14
- package/lib/esm/utils/__mock__/module1/services/M1Service.js.map +0 -1
- package/lib/esm/utils/__mock__/module1/submodule/SubModule.js +0 -12
- package/lib/esm/utils/__mock__/module1/submodule/SubModule.js.map +0 -1
- package/lib/esm/utils/__mock__/module1/submodule/SubService.js +0 -9
- package/lib/esm/utils/__mock__/module1/submodule/SubService.js.map +0 -1
- package/lib/esm/utils/__mock__/module2/Module2.js +0 -15
- package/lib/esm/utils/__mock__/module2/Module2.js.map +0 -1
- package/lib/esm/utils/__mock__/module2/controllers/M2Ctrl.js +0 -9
- package/lib/esm/utils/__mock__/module2/controllers/M2Ctrl.js.map +0 -1
- package/lib/types/middlewares/__mock__/FakeCtrl.d.ts +0 -2
- package/lib/types/utils/__mock__/Test1.d.ts +0 -3
- package/lib/types/utils/__mock__/Test2.d.ts +0 -3
- package/lib/types/utils/__mock__/controllers/rest/TestCtrl.d.ts +0 -2
- package/lib/types/utils/__mock__/module1/Module1.d.ts +0 -2
- package/lib/types/utils/__mock__/module1/controllers/M1Ctrl1.d.ts +0 -5
- package/lib/types/utils/__mock__/module1/services/M1Service.d.ts +0 -5
- package/lib/types/utils/__mock__/module1/submodule/SubModule.d.ts +0 -2
- package/lib/types/utils/__mock__/module1/submodule/SubService.d.ts +0 -2
- package/lib/types/utils/__mock__/module2/Module2.d.ts +0 -2
- package/lib/types/utils/__mock__/module2/controllers/M2Ctrl.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/common",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.13",
|
|
4
4
|
"description": "A TypeScript Framework on top of Express",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
|
|
18
18
|
"build:cjs": "tsc --build tsconfig.compile.json",
|
|
19
19
|
"build:esm": "tsc --build tsconfig.compile.esm.json",
|
|
20
|
-
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\" -e \"getConfiguration\""
|
|
20
|
+
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\" -e \"getConfiguration\"",
|
|
21
|
+
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2"
|
|
21
22
|
},
|
|
22
23
|
"keywords": [
|
|
23
24
|
"Express",
|
|
@@ -61,31 +62,31 @@
|
|
|
61
62
|
}
|
|
62
63
|
],
|
|
63
64
|
"dependencies": {
|
|
64
|
-
"@tsed/components-scan": "7.0.0-beta.
|
|
65
|
-
"@tsed/core": "7.0.0-beta.
|
|
66
|
-
"@tsed/di": "7.0.0-beta.
|
|
67
|
-
"@tsed/exceptions": "7.0.0-beta.
|
|
68
|
-
"@tsed/json-mapper": "7.0.0-beta.
|
|
69
|
-
"@tsed/logger": ">=6.
|
|
70
|
-
"@tsed/logger-file": ">=6.
|
|
71
|
-
"@tsed/perf": "7.0.0-beta.
|
|
72
|
-
"@tsed/platform-cache": "7.0.0-beta.
|
|
73
|
-
"@tsed/platform-exceptions": "7.0.0-beta.
|
|
74
|
-
"@tsed/platform-log-middleware": "7.0.0-beta.
|
|
75
|
-
"@tsed/platform-middlewares": "7.0.0-beta.
|
|
76
|
-
"@tsed/platform-params": "7.0.0-beta.
|
|
77
|
-
"@tsed/platform-response-filter": "7.0.0-beta.
|
|
78
|
-
"@tsed/platform-views": "7.0.0-beta.
|
|
79
|
-
"@tsed/schema": "7.0.0-beta.
|
|
65
|
+
"@tsed/components-scan": "7.0.0-beta.13",
|
|
66
|
+
"@tsed/core": "7.0.0-beta.13",
|
|
67
|
+
"@tsed/di": "7.0.0-beta.13",
|
|
68
|
+
"@tsed/exceptions": "7.0.0-beta.13",
|
|
69
|
+
"@tsed/json-mapper": "7.0.0-beta.13",
|
|
70
|
+
"@tsed/logger": ">=6.2.0",
|
|
71
|
+
"@tsed/logger-file": ">=6.2.0",
|
|
72
|
+
"@tsed/perf": "7.0.0-beta.13",
|
|
73
|
+
"@tsed/platform-cache": "7.0.0-beta.13",
|
|
74
|
+
"@tsed/platform-exceptions": "7.0.0-beta.13",
|
|
75
|
+
"@tsed/platform-log-middleware": "7.0.0-beta.13",
|
|
76
|
+
"@tsed/platform-middlewares": "7.0.0-beta.13",
|
|
77
|
+
"@tsed/platform-params": "7.0.0-beta.13",
|
|
78
|
+
"@tsed/platform-response-filter": "7.0.0-beta.13",
|
|
79
|
+
"@tsed/platform-views": "7.0.0-beta.13",
|
|
80
|
+
"@tsed/schema": "7.0.0-beta.13",
|
|
80
81
|
"@types/json-schema": "7.0.11",
|
|
81
82
|
"@types/on-finished": "2.3.1",
|
|
82
83
|
"on-finished": "2.4.1",
|
|
83
|
-
"tslib": "2.
|
|
84
|
+
"tslib": "2.4.0",
|
|
84
85
|
"uuid": "8.3.2"
|
|
85
86
|
},
|
|
86
87
|
"peerDependencies": {
|
|
87
|
-
"@tsed/logger": ">=6.
|
|
88
|
-
"@tsed/logger-file": ">=6.
|
|
88
|
+
"@tsed/logger": ">=6.2.0",
|
|
89
|
+
"@tsed/logger-file": ">=6.2.0"
|
|
89
90
|
},
|
|
90
91
|
"peerDependenciesMeta": {
|
|
91
92
|
"@tsed/logger": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FakeCtrl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
let FakeCtrl = class FakeCtrl {
|
|
7
|
-
};
|
|
8
|
-
FakeCtrl = tslib_1.__decorate([
|
|
9
|
-
(0, di_1.Controller)("/")
|
|
10
|
-
], FakeCtrl);
|
|
11
|
-
exports.FakeCtrl = FakeCtrl;
|
|
12
|
-
//# sourceMappingURL=FakeCtrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FakeCtrl.js","sourceRoot":"","sources":["../../../../src/middlewares/__mock__/FakeCtrl.ts"],"names":[],"mappings":";;;;AAAA,iCAAoC;AAGpC,IAAa,QAAQ,GAArB,MAAa,QAAQ;CAAG,CAAA;AAAX,QAAQ;IADpB,IAAA,eAAU,EAAC,GAAG,CAAC;GACH,QAAQ,CAAG;AAAX,4BAAQ","sourcesContent":["import {Controller} from \"@tsed/di\";\n\n@Controller(\"/\")\nexport class FakeCtrl {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test1.js","sourceRoot":"","sources":["../../../../src/utils/__mock__/Test1.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAa,KAAK;CAAG;AAArB,sBAAqB","sourcesContent":["export const value1 = \"value\";\n\nexport class Test1 {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test2.js","sourceRoot":"","sources":["../../../../src/utils/__mock__/Test2.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAa,KAAK;CAAG;AAArB,sBAAqB","sourcesContent":["export const value2 = \"value\";\n\nexport class Test2 {}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestCtrl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
let TestCtrl = class TestCtrl {
|
|
7
|
-
};
|
|
8
|
-
TestCtrl = tslib_1.__decorate([
|
|
9
|
-
(0, di_1.Controller)("/root")
|
|
10
|
-
], TestCtrl);
|
|
11
|
-
exports.TestCtrl = TestCtrl;
|
|
12
|
-
//# sourceMappingURL=TestCtrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestCtrl.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/controllers/rest/TestCtrl.ts"],"names":[],"mappings":";;;;AAAA,iCAAoC;AAGpC,IAAa,QAAQ,GAArB,MAAa,QAAQ;CAAG,CAAA;AAAX,QAAQ;IADpB,IAAA,eAAU,EAAC,OAAO,CAAC;GACP,QAAQ,CAAG;AAAX,4BAAQ","sourcesContent":["import {Controller} from \"@tsed/di\";\n\n@Controller(\"/root\")\nexport class TestCtrl {}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Module1 = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const SubModule_1 = require("./submodule/SubModule");
|
|
6
|
-
const di_1 = require("@tsed/di");
|
|
7
|
-
const M1Ctrl1_1 = require("./controllers/M1Ctrl1");
|
|
8
|
-
let Module1 = class Module1 {
|
|
9
|
-
};
|
|
10
|
-
Module1 = tslib_1.__decorate([
|
|
11
|
-
(0, di_1.Module)({
|
|
12
|
-
mount: {
|
|
13
|
-
"/m1": [M1Ctrl1_1.M1Ctrl1]
|
|
14
|
-
},
|
|
15
|
-
imports: [SubModule_1.SubModule]
|
|
16
|
-
})
|
|
17
|
-
], Module1);
|
|
18
|
-
exports.Module1 = Module1;
|
|
19
|
-
//# sourceMappingURL=Module1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Module1.js","sourceRoot":"","sources":["../../../../../src/utils/__mock__/module1/Module1.ts"],"names":[],"mappings":";;;;AAAA,qDAAgD;AAChD,iCAAgC;AAChC,mDAA8C;AAQ9C,IAAa,OAAO,GAApB,MAAa,OAAO;CAAG,CAAA;AAAV,OAAO;IANnB,IAAA,WAAM,EAAC;QACN,KAAK,EAAE;YACL,KAAK,EAAE,CAAC,iBAAO,CAAC;SACjB;QACD,OAAO,EAAE,CAAC,qBAAS,CAAC;KACrB,CAAC;GACW,OAAO,CAAG;AAAV,0BAAO","sourcesContent":["import {SubModule} from \"./submodule/SubModule\";\nimport {Module} from \"@tsed/di\";\nimport {M1Ctrl1} from \"./controllers/M1Ctrl1\";\n\n@Module({\n mount: {\n \"/m1\": [M1Ctrl1]\n },\n imports: [SubModule]\n})\nexport class Module1 {}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.M1Ctrl1 = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
const M1Service_1 = require("../services/M1Service");
|
|
7
|
-
let M1Ctrl1 = class M1Ctrl1 {
|
|
8
|
-
constructor(service) {
|
|
9
|
-
this.service = service;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
M1Ctrl1 = tslib_1.__decorate([
|
|
13
|
-
(0, di_1.Controller)("/m1"),
|
|
14
|
-
tslib_1.__metadata("design:paramtypes", [M1Service_1.M1Service])
|
|
15
|
-
], M1Ctrl1);
|
|
16
|
-
exports.M1Ctrl1 = M1Ctrl1;
|
|
17
|
-
//# sourceMappingURL=M1Ctrl1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"M1Ctrl1.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/controllers/M1Ctrl1.ts"],"names":[],"mappings":";;;;AAAA,iCAAoC;AACpC,qDAAgD;AAGhD,IAAa,OAAO,GAApB,MAAa,OAAO;IAClB,YAAmB,OAAkB;QAAlB,YAAO,GAAP,OAAO,CAAW;IAAG,CAAC;CAC1C,CAAA;AAFY,OAAO;IADnB,IAAA,eAAU,EAAC,KAAK,CAAC;6CAEY,qBAAS;GAD1B,OAAO,CAEnB;AAFY,0BAAO","sourcesContent":["import {Controller} from \"@tsed/di\";\nimport {M1Service} from \"../services/M1Service\";\n\n@Controller(\"/m1\")\nexport class M1Ctrl1 {\n constructor(public service: M1Service) {}\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.M1Service = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
const SubService_1 = require("../submodule/SubService");
|
|
7
|
-
let M1Service = class M1Service {
|
|
8
|
-
constructor(subService) {
|
|
9
|
-
this.subService = subService;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
M1Service = tslib_1.__decorate([
|
|
13
|
-
(0, di_1.Injectable)(),
|
|
14
|
-
tslib_1.__metadata("design:paramtypes", [SubService_1.SubService])
|
|
15
|
-
], M1Service);
|
|
16
|
-
exports.M1Service = M1Service;
|
|
17
|
-
//# sourceMappingURL=M1Service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"M1Service.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/services/M1Service.ts"],"names":[],"mappings":";;;;AAAA,iCAAoC;AACpC,wDAAmD;AAGnD,IAAa,SAAS,GAAtB,MAAa,SAAS;IACpB,YAAmB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;CAC9C,CAAA;AAFY,SAAS;IADrB,IAAA,eAAU,GAAE;6CAEoB,uBAAU;GAD9B,SAAS,CAErB;AAFY,8BAAS","sourcesContent":["import {Injectable} from \"@tsed/di\";\nimport {SubService} from \"../submodule/SubService\";\n\n@Injectable()\nexport class M1Service {\n constructor(public subService: SubService) {}\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubModule = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
const SubService_1 = require("./SubService");
|
|
7
|
-
let SubModule = class SubModule {
|
|
8
|
-
};
|
|
9
|
-
SubModule = tslib_1.__decorate([
|
|
10
|
-
(0, di_1.Module)({
|
|
11
|
-
imports: [SubService_1.SubService]
|
|
12
|
-
})
|
|
13
|
-
], SubModule);
|
|
14
|
-
exports.SubModule = SubModule;
|
|
15
|
-
//# sourceMappingURL=SubModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubModule.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/submodule/SubModule.ts"],"names":[],"mappings":";;;;AAAA,iCAAgC;AAChC,6CAAwC;AAKxC,IAAa,SAAS,GAAtB,MAAa,SAAS;CAAG,CAAA;AAAZ,SAAS;IAHrB,IAAA,WAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAU,CAAC;KACtB,CAAC;GACW,SAAS,CAAG;AAAZ,8BAAS","sourcesContent":["import {Module} from \"@tsed/di\";\nimport {SubService} from \"./SubService\";\n\n@Module({\n imports: [SubService]\n})\nexport class SubModule {}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
let SubService = class SubService {
|
|
7
|
-
};
|
|
8
|
-
SubService = tslib_1.__decorate([
|
|
9
|
-
(0, di_1.Injectable)()
|
|
10
|
-
], SubService);
|
|
11
|
-
exports.SubService = SubService;
|
|
12
|
-
//# sourceMappingURL=SubService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubService.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/submodule/SubService.ts"],"names":[],"mappings":";;;;AAAA,iCAAoC;AAGpC,IAAa,UAAU,GAAvB,MAAa,UAAU;CAAG,CAAA;AAAb,UAAU;IADtB,IAAA,eAAU,GAAE;GACA,UAAU,CAAG;AAAb,gCAAU","sourcesContent":["import {Injectable} from \"@tsed/di\";\n\n@Injectable()\nexport class SubService {}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Module2 = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
const M2Ctrl_1 = require("./controllers/M2Ctrl");
|
|
7
|
-
let Module2 = class Module2 {
|
|
8
|
-
};
|
|
9
|
-
Module2 = tslib_1.__decorate([
|
|
10
|
-
(0, di_1.Module)({
|
|
11
|
-
mount: {
|
|
12
|
-
"/mod2": [M2Ctrl_1.M2Ctrl]
|
|
13
|
-
},
|
|
14
|
-
imports: []
|
|
15
|
-
})
|
|
16
|
-
], Module2);
|
|
17
|
-
exports.Module2 = Module2;
|
|
18
|
-
//# sourceMappingURL=Module2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Module2.js","sourceRoot":"","sources":["../../../../../src/utils/__mock__/module2/Module2.ts"],"names":[],"mappings":";;;;AAAA,iCAAgC;AAChC,iDAA4C;AAQ5C,IAAa,OAAO,GAApB,MAAa,OAAO;CAAG,CAAA;AAAV,OAAO;IANnB,IAAA,WAAM,EAAC;QACN,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,eAAM,CAAC;SAClB;QACD,OAAO,EAAE,EAAE;KACZ,CAAC;GACW,OAAO,CAAG;AAAV,0BAAO","sourcesContent":["import {Module} from \"@tsed/di\";\nimport {M2Ctrl} from \"./controllers/M2Ctrl\";\n\n@Module({\n mount: {\n \"/mod2\": [M2Ctrl]\n },\n imports: []\n})\nexport class Module2 {}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.M2Ctrl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const di_1 = require("@tsed/di");
|
|
6
|
-
let M2Ctrl = class M2Ctrl {
|
|
7
|
-
};
|
|
8
|
-
M2Ctrl = tslib_1.__decorate([
|
|
9
|
-
(0, di_1.Controller)("/m2")
|
|
10
|
-
], M2Ctrl);
|
|
11
|
-
exports.M2Ctrl = M2Ctrl;
|
|
12
|
-
//# sourceMappingURL=M2Ctrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"M2Ctrl.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module2/controllers/M2Ctrl.ts"],"names":[],"mappings":";;;;AAAA,iCAAoC;AAGpC,IAAa,MAAM,GAAnB,MAAa,MAAM;CAAG,CAAA;AAAT,MAAM;IADlB,IAAA,eAAU,EAAC,KAAK,CAAC;GACL,MAAM,CAAG;AAAT,wBAAM","sourcesContent":["import {Controller} from \"@tsed/di\";\n\n@Controller(\"/m2\")\nexport class M2Ctrl {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FakeCtrl.js","sourceRoot":"","sources":["../../../../src/middlewares/__mock__/FakeCtrl.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAGpC,IAAa,QAAQ,GAArB,MAAa,QAAQ;CAAG,CAAA;AAAX,QAAQ;IADpB,UAAU,CAAC,GAAG,CAAC;GACH,QAAQ,CAAG;SAAX,QAAQ","sourcesContent":["import {Controller} from \"@tsed/di\";\n\n@Controller(\"/\")\nexport class FakeCtrl {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test1.js","sourceRoot":"","sources":["../../../../src/utils/__mock__/Test1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAM,OAAO,KAAK;CAAG","sourcesContent":["export const value1 = \"value\";\n\nexport class Test1 {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test2.js","sourceRoot":"","sources":["../../../../src/utils/__mock__/Test2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAM,OAAO,KAAK;CAAG","sourcesContent":["export const value2 = \"value\";\n\nexport class Test2 {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestCtrl.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/controllers/rest/TestCtrl.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAGpC,IAAa,QAAQ,GAArB,MAAa,QAAQ;CAAG,CAAA;AAAX,QAAQ;IADpB,UAAU,CAAC,OAAO,CAAC;GACP,QAAQ,CAAG;SAAX,QAAQ","sourcesContent":["import {Controller} from \"@tsed/di\";\n\n@Controller(\"/root\")\nexport class TestCtrl {}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { SubModule } from "./submodule/SubModule.js";
|
|
3
|
-
import { Module } from "@tsed/di";
|
|
4
|
-
import { M1Ctrl1 } from "./controllers/M1Ctrl1.js";
|
|
5
|
-
let Module1 = class Module1 {
|
|
6
|
-
};
|
|
7
|
-
Module1 = __decorate([
|
|
8
|
-
Module({
|
|
9
|
-
mount: {
|
|
10
|
-
"/m1": [M1Ctrl1]
|
|
11
|
-
},
|
|
12
|
-
imports: [SubModule]
|
|
13
|
-
})
|
|
14
|
-
], Module1);
|
|
15
|
-
export { Module1 };
|
|
16
|
-
//# sourceMappingURL=Module1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Module1.js","sourceRoot":"","sources":["../../../../../src/utils/__mock__/module1/Module1.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAQ9C,IAAa,OAAO,GAApB,MAAa,OAAO;CAAG,CAAA;AAAV,OAAO;IANnB,MAAM,CAAC;QACN,KAAK,EAAE;YACL,KAAK,EAAE,CAAC,OAAO,CAAC;SACjB;QACD,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CAAC;GACW,OAAO,CAAG;SAAV,OAAO","sourcesContent":["import {SubModule} from \"./submodule/SubModule\";\nimport {Module} from \"@tsed/di\";\nimport {M1Ctrl1} from \"./controllers/M1Ctrl1\";\n\n@Module({\n mount: {\n \"/m1\": [M1Ctrl1]\n },\n imports: [SubModule]\n})\nexport class Module1 {}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Controller } from "@tsed/di";
|
|
3
|
-
import { M1Service } from "../services/M1Service.js";
|
|
4
|
-
let M1Ctrl1 = class M1Ctrl1 {
|
|
5
|
-
constructor(service) {
|
|
6
|
-
this.service = service;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
M1Ctrl1 = __decorate([
|
|
10
|
-
Controller("/m1"),
|
|
11
|
-
__metadata("design:paramtypes", [M1Service])
|
|
12
|
-
], M1Ctrl1);
|
|
13
|
-
export { M1Ctrl1 };
|
|
14
|
-
//# sourceMappingURL=M1Ctrl1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"M1Ctrl1.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/controllers/M1Ctrl1.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAGhD,IAAa,OAAO,GAApB,MAAa,OAAO;IAClB,YAAmB,OAAkB;QAAlB,YAAO,GAAP,OAAO,CAAW;IAAG,CAAC;CAC1C,CAAA;AAFY,OAAO;IADnB,UAAU,CAAC,KAAK,CAAC;qCAEY,SAAS;GAD1B,OAAO,CAEnB;SAFY,OAAO","sourcesContent":["import {Controller} from \"@tsed/di\";\nimport {M1Service} from \"../services/M1Service\";\n\n@Controller(\"/m1\")\nexport class M1Ctrl1 {\n constructor(public service: M1Service) {}\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Injectable } from "@tsed/di";
|
|
3
|
-
import { SubService } from "../submodule/SubService.js";
|
|
4
|
-
let M1Service = class M1Service {
|
|
5
|
-
constructor(subService) {
|
|
6
|
-
this.subService = subService;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
M1Service = __decorate([
|
|
10
|
-
Injectable(),
|
|
11
|
-
__metadata("design:paramtypes", [SubService])
|
|
12
|
-
], M1Service);
|
|
13
|
-
export { M1Service };
|
|
14
|
-
//# sourceMappingURL=M1Service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"M1Service.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/services/M1Service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACpC,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAGnD,IAAa,SAAS,GAAtB,MAAa,SAAS;IACpB,YAAmB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;CAC9C,CAAA;AAFY,SAAS;IADrB,UAAU,EAAE;qCAEoB,UAAU;GAD9B,SAAS,CAErB;SAFY,SAAS","sourcesContent":["import {Injectable} from \"@tsed/di\";\nimport {SubService} from \"../submodule/SubService\";\n\n@Injectable()\nexport class M1Service {\n constructor(public subService: SubService) {}\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Module } from "@tsed/di";
|
|
3
|
-
import { SubService } from "./SubService.js";
|
|
4
|
-
let SubModule = class SubModule {
|
|
5
|
-
};
|
|
6
|
-
SubModule = __decorate([
|
|
7
|
-
Module({
|
|
8
|
-
imports: [SubService]
|
|
9
|
-
})
|
|
10
|
-
], SubModule);
|
|
11
|
-
export { SubModule };
|
|
12
|
-
//# sourceMappingURL=SubModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubModule.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/submodule/SubModule.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAKxC,IAAa,SAAS,GAAtB,MAAa,SAAS;CAAG,CAAA;AAAZ,SAAS;IAHrB,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,UAAU,CAAC;KACtB,CAAC;GACW,SAAS,CAAG;SAAZ,SAAS","sourcesContent":["import {Module} from \"@tsed/di\";\nimport {SubService} from \"./SubService\";\n\n@Module({\n imports: [SubService]\n})\nexport class SubModule {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubService.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module1/submodule/SubService.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAGpC,IAAa,UAAU,GAAvB,MAAa,UAAU;CAAG,CAAA;AAAb,UAAU;IADtB,UAAU,EAAE;GACA,UAAU,CAAG;SAAb,UAAU","sourcesContent":["import {Injectable} from \"@tsed/di\";\n\n@Injectable()\nexport class SubService {}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Module } from "@tsed/di";
|
|
3
|
-
import { M2Ctrl } from "./controllers/M2Ctrl.js";
|
|
4
|
-
let Module2 = class Module2 {
|
|
5
|
-
};
|
|
6
|
-
Module2 = __decorate([
|
|
7
|
-
Module({
|
|
8
|
-
mount: {
|
|
9
|
-
"/mod2": [M2Ctrl]
|
|
10
|
-
},
|
|
11
|
-
imports: []
|
|
12
|
-
})
|
|
13
|
-
], Module2);
|
|
14
|
-
export { Module2 };
|
|
15
|
-
//# sourceMappingURL=Module2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Module2.js","sourceRoot":"","sources":["../../../../../src/utils/__mock__/module2/Module2.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAQ5C,IAAa,OAAO,GAApB,MAAa,OAAO;CAAG,CAAA;AAAV,OAAO;IANnB,MAAM,CAAC;QACN,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,MAAM,CAAC;SAClB;QACD,OAAO,EAAE,EAAE;KACZ,CAAC;GACW,OAAO,CAAG;SAAV,OAAO","sourcesContent":["import {Module} from \"@tsed/di\";\nimport {M2Ctrl} from \"./controllers/M2Ctrl\";\n\n@Module({\n mount: {\n \"/mod2\": [M2Ctrl]\n },\n imports: []\n})\nexport class Module2 {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"M2Ctrl.js","sourceRoot":"","sources":["../../../../../../src/utils/__mock__/module2/controllers/M2Ctrl.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAGpC,IAAa,MAAM,GAAnB,MAAa,MAAM;CAAG,CAAA;AAAT,MAAM;IADlB,UAAU,CAAC,KAAK,CAAC;GACL,MAAM,CAAG;SAAT,MAAM","sourcesContent":["import {Controller} from \"@tsed/di\";\n\n@Controller(\"/m2\")\nexport class M2Ctrl {}\n"]}
|