@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.
Files changed (175) hide show
  1. package/jest.config.js +14 -0
  2. package/lib/cjs/builder/PlatformBuilder.js +65 -55
  3. package/lib/cjs/builder/PlatformBuilder.js.map +1 -1
  4. package/lib/cjs/builder/PlatformControllerBuilder.js +1 -1
  5. package/lib/cjs/builder/PlatformControllerBuilder.js.map +1 -1
  6. package/lib/cjs/config/interfaces/PlatformLoggerSettings.js.map +1 -1
  7. package/lib/cjs/config/services/PlatformConfiguration.js +0 -70
  8. package/lib/cjs/config/services/PlatformConfiguration.js.map +1 -1
  9. package/lib/cjs/domain/AnyToPromiseWithCtx.js +4 -3
  10. package/lib/cjs/domain/AnyToPromiseWithCtx.js.map +1 -1
  11. package/lib/cjs/domain/ControllerProvider.js +1 -0
  12. package/lib/cjs/domain/ControllerProvider.js.map +1 -1
  13. package/lib/cjs/domain/HandlerMetadata.js +10 -5
  14. package/lib/cjs/domain/HandlerMetadata.js.map +1 -1
  15. package/lib/cjs/domain/PlatformContext.js +54 -31
  16. package/lib/cjs/domain/PlatformContext.js.map +1 -1
  17. package/lib/cjs/domain/PlatformRouteDetails.js +5 -1
  18. package/lib/cjs/domain/PlatformRouteDetails.js.map +1 -1
  19. package/lib/cjs/middlewares/PlatformAcceptMimesMiddleware.js +2 -1
  20. package/lib/cjs/middlewares/PlatformAcceptMimesMiddleware.js.map +1 -1
  21. package/lib/cjs/middlewares/PlatformMulterMiddleware.js +2 -0
  22. package/lib/cjs/middlewares/PlatformMulterMiddleware.js.map +1 -1
  23. package/lib/cjs/services/FakeAdapter.js +1 -3
  24. package/lib/cjs/services/FakeAdapter.js.map +1 -1
  25. package/lib/cjs/services/Platform.js +4 -2
  26. package/lib/cjs/services/Platform.js.map +1 -1
  27. package/lib/cjs/services/PlatformAdapter.js +12 -0
  28. package/lib/cjs/services/PlatformAdapter.js.map +1 -1
  29. package/lib/cjs/services/PlatformApplication.js +2 -0
  30. package/lib/cjs/services/PlatformApplication.js.map +1 -1
  31. package/lib/cjs/services/PlatformHandler.js +7 -4
  32. package/lib/cjs/services/PlatformHandler.js.map +1 -1
  33. package/lib/cjs/services/PlatformMiddlewaresChain.js +3 -1
  34. package/lib/cjs/services/PlatformMiddlewaresChain.js.map +1 -1
  35. package/lib/cjs/services/PlatformRequest.js +16 -11
  36. package/lib/cjs/services/PlatformRequest.js.map +1 -1
  37. package/lib/cjs/services/PlatformResponse.js +15 -11
  38. package/lib/cjs/services/PlatformResponse.js.map +1 -1
  39. package/lib/cjs/services/PlatformRouter.js +7 -1
  40. package/lib/cjs/services/PlatformRouter.js.map +1 -1
  41. package/lib/cjs/services/PlatformTest.js +20 -8
  42. package/lib/cjs/services/PlatformTest.js.map +1 -1
  43. package/lib/cjs/utils/createContext.js +28 -13
  44. package/lib/cjs/utils/createContext.js.map +1 -1
  45. package/lib/cjs/utils/createHttpServer.js +3 -3
  46. package/lib/cjs/utils/createHttpServer.js.map +1 -1
  47. package/lib/cjs/utils/createHttpsServer.js +3 -3
  48. package/lib/cjs/utils/createHttpsServer.js.map +1 -1
  49. package/lib/cjs/utils/createInjector.js +6 -6
  50. package/lib/cjs/utils/createInjector.js.map +1 -1
  51. package/lib/cjs/utils/getConfiguration.js +2 -12
  52. package/lib/cjs/utils/getConfiguration.js.map +1 -1
  53. package/lib/cjs/utils/setResponseHeaders.js +7 -13
  54. package/lib/cjs/utils/setResponseHeaders.js.map +1 -1
  55. package/lib/esm/builder/PlatformBuilder.js +42 -55
  56. package/lib/esm/builder/PlatformBuilder.js.map +1 -1
  57. package/lib/esm/builder/PlatformControllerBuilder.js +1 -1
  58. package/lib/esm/builder/PlatformControllerBuilder.js.map +1 -1
  59. package/lib/esm/config/interfaces/PlatformLoggerSettings.js.map +1 -1
  60. package/lib/esm/config/services/PlatformConfiguration.js +0 -70
  61. package/lib/esm/config/services/PlatformConfiguration.js.map +1 -1
  62. package/lib/esm/domain/AnyToPromiseWithCtx.js +4 -3
  63. package/lib/esm/domain/AnyToPromiseWithCtx.js.map +1 -1
  64. package/lib/esm/domain/ControllerProvider.js +1 -0
  65. package/lib/esm/domain/ControllerProvider.js.map +1 -1
  66. package/lib/esm/domain/HandlerMetadata.js +10 -5
  67. package/lib/esm/domain/HandlerMetadata.js.map +1 -1
  68. package/lib/esm/domain/PlatformContext.js +54 -31
  69. package/lib/esm/domain/PlatformContext.js.map +1 -1
  70. package/lib/esm/domain/PlatformRouteDetails.js +5 -1
  71. package/lib/esm/domain/PlatformRouteDetails.js.map +1 -1
  72. package/lib/esm/middlewares/PlatformAcceptMimesMiddleware.js +2 -1
  73. package/lib/esm/middlewares/PlatformAcceptMimesMiddleware.js.map +1 -1
  74. package/lib/esm/middlewares/PlatformMulterMiddleware.js +2 -0
  75. package/lib/esm/middlewares/PlatformMulterMiddleware.js.map +1 -1
  76. package/lib/esm/services/FakeAdapter.js +1 -3
  77. package/lib/esm/services/FakeAdapter.js.map +1 -1
  78. package/lib/esm/services/Platform.js +4 -2
  79. package/lib/esm/services/Platform.js.map +1 -1
  80. package/lib/esm/services/PlatformAdapter.js +12 -0
  81. package/lib/esm/services/PlatformAdapter.js.map +1 -1
  82. package/lib/esm/services/PlatformApplication.js +2 -0
  83. package/lib/esm/services/PlatformApplication.js.map +1 -1
  84. package/lib/esm/services/PlatformHandler.js +8 -5
  85. package/lib/esm/services/PlatformHandler.js.map +1 -1
  86. package/lib/esm/services/PlatformMiddlewaresChain.js +3 -1
  87. package/lib/esm/services/PlatformMiddlewaresChain.js.map +1 -1
  88. package/lib/esm/services/PlatformRequest.js +16 -11
  89. package/lib/esm/services/PlatformRequest.js.map +1 -1
  90. package/lib/esm/services/PlatformResponse.js +15 -11
  91. package/lib/esm/services/PlatformResponse.js.map +1 -1
  92. package/lib/esm/services/PlatformRouter.js +7 -1
  93. package/lib/esm/services/PlatformRouter.js.map +1 -1
  94. package/lib/esm/services/PlatformTest.js +20 -8
  95. package/lib/esm/services/PlatformTest.js.map +1 -1
  96. package/lib/esm/utils/createContext.js +26 -12
  97. package/lib/esm/utils/createContext.js.map +1 -1
  98. package/lib/esm/utils/createHttpServer.js +3 -3
  99. package/lib/esm/utils/createHttpServer.js.map +1 -1
  100. package/lib/esm/utils/createHttpsServer.js +3 -3
  101. package/lib/esm/utils/createHttpsServer.js.map +1 -1
  102. package/lib/esm/utils/createInjector.js +7 -7
  103. package/lib/esm/utils/createInjector.js.map +1 -1
  104. package/lib/esm/utils/getConfiguration.js +4 -14
  105. package/lib/esm/utils/getConfiguration.js.map +1 -1
  106. package/lib/esm/utils/setResponseHeaders.js +7 -13
  107. package/lib/esm/utils/setResponseHeaders.js.map +1 -1
  108. package/lib/types/builder/PlatformBuilder.d.ts +4 -5
  109. package/lib/types/config/interfaces/PlatformLoggerSettings.d.ts +2 -43
  110. package/lib/types/config/services/PlatformConfiguration.d.ts +1 -22
  111. package/lib/types/domain/PlatformContext.d.ts +20 -14
  112. package/lib/types/domain/PlatformRouteDetails.d.ts +1 -7
  113. package/lib/types/services/PlatformRequest.d.ts +11 -8
  114. package/lib/types/services/PlatformResponse.d.ts +8 -9
  115. package/lib/types/services/PlatformTest.d.ts +2 -2
  116. package/lib/types/utils/createContext.d.ts +4 -1
  117. package/lib/types/utils/createHttpsServer.d.ts +1 -0
  118. package/lib/types/utils/createInjector.d.ts +1 -1
  119. package/lib/types/utils/listenServer.d.ts +2 -0
  120. package/package.json +22 -21
  121. package/lib/cjs/middlewares/__mock__/FakeCtrl.js +0 -12
  122. package/lib/cjs/middlewares/__mock__/FakeCtrl.js.map +0 -1
  123. package/lib/cjs/utils/__mock__/Test1.js +0 -8
  124. package/lib/cjs/utils/__mock__/Test1.js.map +0 -1
  125. package/lib/cjs/utils/__mock__/Test2.js +0 -8
  126. package/lib/cjs/utils/__mock__/Test2.js.map +0 -1
  127. package/lib/cjs/utils/__mock__/controllers/rest/TestCtrl.js +0 -12
  128. package/lib/cjs/utils/__mock__/controllers/rest/TestCtrl.js.map +0 -1
  129. package/lib/cjs/utils/__mock__/module1/Module1.js +0 -19
  130. package/lib/cjs/utils/__mock__/module1/Module1.js.map +0 -1
  131. package/lib/cjs/utils/__mock__/module1/controllers/M1Ctrl1.js +0 -17
  132. package/lib/cjs/utils/__mock__/module1/controllers/M1Ctrl1.js.map +0 -1
  133. package/lib/cjs/utils/__mock__/module1/services/M1Service.js +0 -17
  134. package/lib/cjs/utils/__mock__/module1/services/M1Service.js.map +0 -1
  135. package/lib/cjs/utils/__mock__/module1/submodule/SubModule.js +0 -15
  136. package/lib/cjs/utils/__mock__/module1/submodule/SubModule.js.map +0 -1
  137. package/lib/cjs/utils/__mock__/module1/submodule/SubService.js +0 -12
  138. package/lib/cjs/utils/__mock__/module1/submodule/SubService.js.map +0 -1
  139. package/lib/cjs/utils/__mock__/module2/Module2.js +0 -18
  140. package/lib/cjs/utils/__mock__/module2/Module2.js.map +0 -1
  141. package/lib/cjs/utils/__mock__/module2/controllers/M2Ctrl.js +0 -12
  142. package/lib/cjs/utils/__mock__/module2/controllers/M2Ctrl.js.map +0 -1
  143. package/lib/esm/middlewares/__mock__/FakeCtrl.js +0 -9
  144. package/lib/esm/middlewares/__mock__/FakeCtrl.js.map +0 -1
  145. package/lib/esm/utils/__mock__/Test1.js +0 -4
  146. package/lib/esm/utils/__mock__/Test1.js.map +0 -1
  147. package/lib/esm/utils/__mock__/Test2.js +0 -4
  148. package/lib/esm/utils/__mock__/Test2.js.map +0 -1
  149. package/lib/esm/utils/__mock__/controllers/rest/TestCtrl.js +0 -9
  150. package/lib/esm/utils/__mock__/controllers/rest/TestCtrl.js.map +0 -1
  151. package/lib/esm/utils/__mock__/module1/Module1.js +0 -16
  152. package/lib/esm/utils/__mock__/module1/Module1.js.map +0 -1
  153. package/lib/esm/utils/__mock__/module1/controllers/M1Ctrl1.js +0 -14
  154. package/lib/esm/utils/__mock__/module1/controllers/M1Ctrl1.js.map +0 -1
  155. package/lib/esm/utils/__mock__/module1/services/M1Service.js +0 -14
  156. package/lib/esm/utils/__mock__/module1/services/M1Service.js.map +0 -1
  157. package/lib/esm/utils/__mock__/module1/submodule/SubModule.js +0 -12
  158. package/lib/esm/utils/__mock__/module1/submodule/SubModule.js.map +0 -1
  159. package/lib/esm/utils/__mock__/module1/submodule/SubService.js +0 -9
  160. package/lib/esm/utils/__mock__/module1/submodule/SubService.js.map +0 -1
  161. package/lib/esm/utils/__mock__/module2/Module2.js +0 -15
  162. package/lib/esm/utils/__mock__/module2/Module2.js.map +0 -1
  163. package/lib/esm/utils/__mock__/module2/controllers/M2Ctrl.js +0 -9
  164. package/lib/esm/utils/__mock__/module2/controllers/M2Ctrl.js.map +0 -1
  165. package/lib/types/middlewares/__mock__/FakeCtrl.d.ts +0 -2
  166. package/lib/types/utils/__mock__/Test1.d.ts +0 -3
  167. package/lib/types/utils/__mock__/Test2.d.ts +0 -3
  168. package/lib/types/utils/__mock__/controllers/rest/TestCtrl.d.ts +0 -2
  169. package/lib/types/utils/__mock__/module1/Module1.d.ts +0 -2
  170. package/lib/types/utils/__mock__/module1/controllers/M1Ctrl1.d.ts +0 -5
  171. package/lib/types/utils/__mock__/module1/services/M1Service.d.ts +0 -5
  172. package/lib/types/utils/__mock__/module1/submodule/SubModule.d.ts +0 -2
  173. package/lib/types/utils/__mock__/module1/submodule/SubService.d.ts +0 -2
  174. package/lib/types/utils/__mock__/module2/Module2.d.ts +0 -2
  175. 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.12",
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.12",
65
- "@tsed/core": "7.0.0-beta.12",
66
- "@tsed/di": "7.0.0-beta.12",
67
- "@tsed/exceptions": "7.0.0-beta.12",
68
- "@tsed/json-mapper": "7.0.0-beta.12",
69
- "@tsed/logger": ">=6.1.1",
70
- "@tsed/logger-file": ">=6.1.0",
71
- "@tsed/perf": "7.0.0-beta.12",
72
- "@tsed/platform-cache": "7.0.0-beta.12",
73
- "@tsed/platform-exceptions": "7.0.0-beta.12",
74
- "@tsed/platform-log-middleware": "7.0.0-beta.12",
75
- "@tsed/platform-middlewares": "7.0.0-beta.12",
76
- "@tsed/platform-params": "7.0.0-beta.12",
77
- "@tsed/platform-response-filter": "7.0.0-beta.12",
78
- "@tsed/platform-views": "7.0.0-beta.12",
79
- "@tsed/schema": "7.0.0-beta.12",
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.3.1",
84
+ "tslib": "2.4.0",
84
85
  "uuid": "8.3.2"
85
86
  },
86
87
  "peerDependencies": {
87
- "@tsed/logger": ">=6.1.1",
88
- "@tsed/logger-file": ">=6.1.0"
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,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Test1 = exports.value1 = void 0;
4
- exports.value1 = "value";
5
- class Test1 {
6
- }
7
- exports.Test1 = Test1;
8
- //# sourceMappingURL=Test1.js.map
@@ -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,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Test2 = exports.value2 = void 0;
4
- exports.value2 = "value";
5
- class Test2 {
6
- }
7
- exports.Test2 = Test2;
8
- //# sourceMappingURL=Test2.js.map
@@ -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,9 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Controller } from "@tsed/di";
3
- let FakeCtrl = class FakeCtrl {
4
- };
5
- FakeCtrl = __decorate([
6
- Controller("/")
7
- ], FakeCtrl);
8
- export { FakeCtrl };
9
- //# sourceMappingURL=FakeCtrl.js.map
@@ -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,4 +0,0 @@
1
- export const value1 = "value";
2
- export class Test1 {
3
- }
4
- //# sourceMappingURL=Test1.js.map
@@ -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,4 +0,0 @@
1
- export const value2 = "value";
2
- export class Test2 {
3
- }
4
- //# sourceMappingURL=Test2.js.map
@@ -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,9 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Controller } from "@tsed/di";
3
- let TestCtrl = class TestCtrl {
4
- };
5
- TestCtrl = __decorate([
6
- Controller("/root")
7
- ], TestCtrl);
8
- export { TestCtrl };
9
- //# 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,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,9 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Injectable } from "@tsed/di";
3
- let SubService = class SubService {
4
- };
5
- SubService = __decorate([
6
- Injectable()
7
- ], SubService);
8
- export { SubService };
9
- //# 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,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,9 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Controller } from "@tsed/di";
3
- let M2Ctrl = class M2Ctrl {
4
- };
5
- M2Ctrl = __decorate([
6
- Controller("/m2")
7
- ], M2Ctrl);
8
- export { M2Ctrl };
9
- //# 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,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"]}
@@ -1,2 +0,0 @@
1
- export declare class FakeCtrl {
2
- }
@@ -1,3 +0,0 @@
1
- export declare const value1 = "value";
2
- export declare class Test1 {
3
- }
@@ -1,3 +0,0 @@
1
- export declare const value2 = "value";
2
- export declare class Test2 {
3
- }
@@ -1,2 +0,0 @@
1
- export declare class TestCtrl {
2
- }
@@ -1,2 +0,0 @@
1
- export declare class Module1 {
2
- }
@@ -1,5 +0,0 @@
1
- import { M1Service } from "../services/M1Service";
2
- export declare class M1Ctrl1 {
3
- service: M1Service;
4
- constructor(service: M1Service);
5
- }
@@ -1,5 +0,0 @@
1
- import { SubService } from "../submodule/SubService";
2
- export declare class M1Service {
3
- subService: SubService;
4
- constructor(subService: SubService);
5
- }
@@ -1,2 +0,0 @@
1
- export declare class SubModule {
2
- }
@@ -1,2 +0,0 @@
1
- export declare class SubService {
2
- }
@@ -1,2 +0,0 @@
1
- export declare class Module2 {
2
- }
@@ -1,2 +0,0 @@
1
- export declare class M2Ctrl {
2
- }