@tsed/platform-express 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.
@@ -174,7 +174,7 @@ let PlatformExpress = PlatformExpress_1 = class PlatformExpress extends common_1
174
174
  try {
175
175
  const { exists, disabled } = this.injector.settings.get("views") || {};
176
176
  if (exists && !disabled) {
177
- const { PlatformViews } = await import("@tsed/platform-views");
177
+ const { PlatformViews } = await require("@tsed/platform-views");
178
178
  const platformViews = injector.get(PlatformViews);
179
179
  const express = app.getApp();
180
180
  platformViews.getEngines().forEach(({ extension, engine }) => {
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-express",
3
3
  "description": "A TypeScript Framework on top of Express",
4
4
  "type": "commonjs",
5
- "version": "7.80.0",
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
  },
@@ -58,13 +59,13 @@
58
59
  "tslib": "2.6.1"
59
60
  },
60
61
  "devDependencies": {
61
- "@tsed/barrels": "7.80.0",
62
- "@tsed/common": "7.80.0",
63
- "@tsed/core": "7.80.0",
64
- "@tsed/di": "7.80.0",
65
- "@tsed/platform-test-sdk": "7.80.0",
66
- "@tsed/platform-views": "7.80.0",
67
- "@tsed/typescript": "7.80.0",
62
+ "@tsed/barrels": "7.80.2",
63
+ "@tsed/common": "7.80.2",
64
+ "@tsed/core": "7.80.2",
65
+ "@tsed/di": "7.80.2",
66
+ "@tsed/platform-test-sdk": "7.80.2",
67
+ "@tsed/platform-views": "7.80.2",
68
+ "@tsed/typescript": "7.80.2",
68
69
  "@types/body-parser": "1.19.5",
69
70
  "@types/compression": "1.7.5",
70
71
  "@types/cookie-parser": "1.4.7",
@@ -84,14 +85,14 @@
84
85
  "vitest": "2.0.4"
85
86
  },
86
87
  "peerDependencies": {
87
- "@tsed/common": "7.80.0",
88
- "@tsed/core": "7.80.0",
89
- "@tsed/di": "7.80.0",
90
- "@tsed/json-mapper": "7.80.0",
88
+ "@tsed/common": "7.80.2",
89
+ "@tsed/core": "7.80.2",
90
+ "@tsed/di": "7.80.2",
91
+ "@tsed/json-mapper": "7.80.2",
91
92
  "@tsed/logger": ">=6.7.5",
92
- "@tsed/openspec": "7.80.0",
93
- "@tsed/platform-views": "7.80.0",
94
- "@tsed/schema": "7.80.0",
93
+ "@tsed/openspec": "7.80.2",
94
+ "@tsed/platform-views": "7.80.2",
95
+ "@tsed/schema": "7.80.2",
95
96
  "@types/multer": "^1.4.5",
96
97
  "body-parser": "^1.19.0",
97
98
  "cross-env": "7.0.3",