@tsed/common 7.80.0 → 7.80.2
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.
|
@@ -157,7 +157,7 @@ class PlatformBuilder {
|
|
|
157
157
|
await this.#adapter.beforeLoadRoutes();
|
|
158
158
|
// istanbul ignore next
|
|
159
159
|
if (this.settings.get("logger.level") !== "off") {
|
|
160
|
-
const { PlatformLogMiddleware } = await
|
|
160
|
+
const { PlatformLogMiddleware } = await require("@tsed/platform-log-middleware");
|
|
161
161
|
this.app.use(PlatformLogMiddleware);
|
|
162
162
|
}
|
|
163
163
|
if (this.rootModule.$beforeRoutesInit) {
|
|
@@ -206,7 +206,7 @@ let PlatformResponse = class PlatformResponse {
|
|
|
206
206
|
* @param options
|
|
207
207
|
*/
|
|
208
208
|
async render(path, options = {}) {
|
|
209
|
-
const { PlatformViews } = await
|
|
209
|
+
const { PlatformViews } = await require("@tsed/platform-views");
|
|
210
210
|
const platformViews = await this.$ctx.injector.lazyInvoke(PlatformViews);
|
|
211
211
|
return platformViews.render(path, {
|
|
212
212
|
...this.locals,
|
|
@@ -49,7 +49,7 @@ class PlatformTest extends di_1.DITest {
|
|
|
49
49
|
const configuration = (0, getConfiguration_js_1.getConfiguration)(settings, mod);
|
|
50
50
|
const disableComponentsScan = configuration.disableComponentsScan || !!process.env.WEBPACK;
|
|
51
51
|
if (!disableComponentsScan) {
|
|
52
|
-
const { importProviders } = await
|
|
52
|
+
const { importProviders } = await require("@tsed/components-scan");
|
|
53
53
|
await importProviders(configuration);
|
|
54
54
|
}
|
|
55
55
|
instance = await PlatformBuilder_js_1.PlatformBuilder.build(mod, configuration).bootstrap();
|
|
@@ -4,7 +4,7 @@ import { PlatformBuilder } from "../builder/PlatformBuilder.js";
|
|
|
4
4
|
import { PlatformContext } from "../domain/PlatformContext.js";
|
|
5
5
|
import { createInjector } from "../utils/createInjector.js";
|
|
6
6
|
import { getConfiguration } from "../utils/getConfiguration.js";
|
|
7
|
-
import { FakeResponse } from "./FakeResponse";
|
|
7
|
+
import { FakeResponse } from "./FakeResponse.js";
|
|
8
8
|
import { PlatformApplication } from "./PlatformApplication.js";
|
|
9
9
|
/**
|
|
10
10
|
* @platform
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/common",
|
|
3
3
|
"description": "A TypeScript Framework on top of Express",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"version": "7.80.
|
|
5
|
+
"version": "7.80.2",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./lib/types/index.d.ts",
|
|
13
13
|
"import": "./lib/esm/index.js",
|
|
14
|
+
"require": "./lib/cjs/index.js",
|
|
14
15
|
"default": "./lib/cjs/index.js"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
@@ -63,30 +64,30 @@
|
|
|
63
64
|
}
|
|
64
65
|
],
|
|
65
66
|
"dependencies": {
|
|
66
|
-
"@tsed/core": "7.80.
|
|
67
|
-
"@tsed/di": "7.80.
|
|
68
|
-
"@tsed/exceptions": "7.80.
|
|
69
|
-
"@tsed/json-mapper": "7.80.
|
|
67
|
+
"@tsed/core": "7.80.2",
|
|
68
|
+
"@tsed/di": "7.80.2",
|
|
69
|
+
"@tsed/exceptions": "7.80.2",
|
|
70
|
+
"@tsed/json-mapper": "7.80.2",
|
|
70
71
|
"@tsed/logger": ">=6.7.5",
|
|
71
72
|
"@tsed/logger-file": ">=6.7.5",
|
|
72
|
-
"@tsed/platform-exceptions": "7.80.
|
|
73
|
-
"@tsed/platform-log-middleware": "7.80.
|
|
74
|
-
"@tsed/platform-middlewares": "7.80.
|
|
75
|
-
"@tsed/platform-params": "7.80.
|
|
76
|
-
"@tsed/platform-response-filter": "7.80.
|
|
77
|
-
"@tsed/platform-router": "7.80.
|
|
78
|
-
"@tsed/platform-views": "7.80.
|
|
79
|
-
"@tsed/schema": "7.80.
|
|
73
|
+
"@tsed/platform-exceptions": "7.80.2",
|
|
74
|
+
"@tsed/platform-log-middleware": "7.80.2",
|
|
75
|
+
"@tsed/platform-middlewares": "7.80.2",
|
|
76
|
+
"@tsed/platform-params": "7.80.2",
|
|
77
|
+
"@tsed/platform-response-filter": "7.80.2",
|
|
78
|
+
"@tsed/platform-router": "7.80.2",
|
|
79
|
+
"@tsed/platform-views": "7.80.2",
|
|
80
|
+
"@tsed/schema": "7.80.2",
|
|
80
81
|
"@types/json-schema": "7.0.15",
|
|
81
82
|
"accepts": "^1.3.8",
|
|
82
83
|
"tslib": "2.6.1",
|
|
83
84
|
"uuid": "9.0.1"
|
|
84
85
|
},
|
|
85
86
|
"devDependencies": {
|
|
86
|
-
"@tsed/barrels": "7.80.
|
|
87
|
-
"@tsed/components-scan": "7.80.
|
|
88
|
-
"@tsed/engines": "7.80.
|
|
89
|
-
"@tsed/typescript": "7.80.
|
|
87
|
+
"@tsed/barrels": "7.80.2",
|
|
88
|
+
"@tsed/components-scan": "7.80.2",
|
|
89
|
+
"@tsed/engines": "7.80.2",
|
|
90
|
+
"@tsed/typescript": "7.80.2",
|
|
90
91
|
"cross-env": "7.0.3",
|
|
91
92
|
"eslint": "^8.57.0",
|
|
92
93
|
"typescript": "4.9.5",
|