@tsed/platform-express 8.38.0 → 8.38.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.
@@ -41,19 +41,13 @@ export class PlatformExpress extends PlatformAdapter {
41
41
  }
42
42
  static create(module, settings) {
43
43
  return new PlatformBuilder({
44
- rootModule: settings ? module : undefined,
45
44
  httpsPort: false,
46
45
  httpPort: false,
47
- ...(settings || module),
48
- adapter: PlatformExpress
46
+ ...PlatformBuilder.options(PlatformExpress, module, settings)
49
47
  });
50
48
  }
51
49
  static bootstrap(module, settings) {
52
- return new PlatformBuilder({
53
- rootModule: settings ? module : undefined,
54
- ...(settings || module),
55
- adapter: PlatformExpress
56
- }).bootstrap();
50
+ return new PlatformBuilder(PlatformBuilder.options(PlatformExpress, module, settings)).bootstrap();
57
51
  }
58
52
  async beforeLoadRoutes() {
59
53
  const { app } = this;
@@ -41,7 +41,7 @@ export declare class PlatformExpress extends PlatformAdapter<Express.Application
41
41
  * @param settings
42
42
  */
43
43
  static bootstrap(settings: Partial<TsED.Configuration>): Promise<PlatformBuilder<Express.Application>>;
44
- static bootstrap(module: Type<any>, settings: Partial<TsED.Configuration>): Promise<PlatformBuilder<Express.Application>>;
44
+ static bootstrap(module: Type<any>, settings?: Partial<TsED.Configuration>): Promise<PlatformBuilder<Express.Application>>;
45
45
  beforeLoadRoutes(): Promise<void>;
46
46
  afterLoadRoutes(): Promise<void>;
47
47
  mapLayers(layers: PlatformLayer[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-express",
3
- "version": "8.38.0",
3
+ "version": "8.38.2",
4
4
  "description": "A TypeScript Framework on top of Express",
5
5
  "keywords": [
6
6
  "Controller",
@@ -58,13 +58,13 @@
58
58
  "tslib": ">=2.7.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@tsed/barrels": "8.38.0",
62
- "@tsed/core": "8.38.0",
63
- "@tsed/di": "8.38.0",
64
- "@tsed/platform-http": "8.38.0",
65
- "@tsed/platform-test-sdk": "8.38.0",
66
- "@tsed/platform-views": "8.38.0",
67
- "@tsed/typescript": "8.38.0",
61
+ "@tsed/barrels": "8.38.2",
62
+ "@tsed/core": "8.38.2",
63
+ "@tsed/di": "8.38.2",
64
+ "@tsed/platform-http": "8.38.2",
65
+ "@tsed/platform-test-sdk": "8.38.2",
66
+ "@tsed/platform-views": "8.38.2",
67
+ "@tsed/typescript": "8.38.2",
68
68
  "@types/body-parser": "1.19.5",
69
69
  "@types/compression": "1.7.5",
70
70
  "@types/cookie-parser": "1.4.7",