@tsed/platform-http 8.49.0 → 8.50.1

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.
@@ -1,10 +1,9 @@
1
1
  import type { IncomingMessage, ServerResponse } from "node:http";
2
- import { InjectorService, ProviderOpts, ProviderScope, TokenProvider } from "@tsed/di";
2
+ import { InjectorService, ProviderOpts, TokenProvider } from "@tsed/di";
3
3
  import { PlatformAdapter, PlatformBuilderSettings } from "../services/PlatformAdapter.js";
4
4
  import { Platform } from "../services/Platform.js";
5
5
  import { PlatformApplication } from "../services/PlatformApplication.js";
6
6
  import { PlatformLayer } from "@tsed/platform-router";
7
- import type { PlatformStaticsSettings } from "../config/PlatformStaticsSettings.js";
8
7
  import { type Type } from "@tsed/core";
9
8
  /**
10
9
  * @platform
@@ -44,32 +43,9 @@ export declare class PlatformBuilder<App = TsED.Application> {
44
43
  * @deprecated use injector() instead of this method.
45
44
  */
46
45
  get injector(): InjectorService;
47
- static options<Adapter>(adapter: Type<PlatformAdapter<Adapter>>, rootModule: Type<any> | Partial<TsED.Configuration>, settings?: Partial<TsED.Configuration>): {
46
+ static options<Adapter>(adapter: Type<PlatformAdapter<Adapter>>, rootModule: Type<any> | Partial<TsED.Configuration>, settings?: Partial<TsED.Configuration>): PlatformBuilderSettings<Adapter> & {
47
+ rootModule: Type<any>;
48
48
  adapter: Type<PlatformAdapter<Adapter>>;
49
- logger?: TsED.LoggerConfiguration;
50
- scopes?: {
51
- [key: string]: ProviderScope;
52
- } | undefined;
53
- lazyProviders?: boolean;
54
- imports?: any[] | undefined;
55
- mount?: Record<string, any[]> | undefined;
56
- multer?: import("multer").Options;
57
- middlewares?: any[] | undefined;
58
- acceptMimes?: string[];
59
- views?: import("@tsed/platform-views").PlatformViewsSettings | undefined;
60
- responseFilters?: Type<import("@tsed/platform-response-filter").ResponseFilterMethods<unknown>>[] | undefined;
61
- rootModule: Type;
62
- rootDir?: string;
63
- httpPort?: string | number | false;
64
- httpsPort?: string | number | false;
65
- jsonMapper?: import("@tsed/json-mapper").JsonMapperGlobalOptions;
66
- router?: import("../index.js").PlatformRouterSettings;
67
- statics?: PlatformStaticsSettings;
68
- getBestHost?: typeof import("../index.js").getBestHost | undefined;
69
- getHttpPort?: typeof import("../index.js").getHttpPort | undefined;
70
- getHttpsPort?: typeof import("../index.js").getHttpsPort | undefined;
71
- setHttpsPort?: typeof import("../index.js").setHttpsPort | undefined;
72
- setHttpPort?: typeof import("../index.js").setHttpPort | undefined;
73
49
  };
74
50
  static create<App = TsED.Application>(settings?: PlatformBuilderSettings<App>): PlatformBuilder<App>;
75
51
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-http",
3
- "version": "8.49.0",
3
+ "version": "8.50.1",
4
4
  "description": "A TypeScript Framework on top of Express",
5
5
  "keywords": [
6
6
  "Controller",
@@ -63,29 +63,29 @@
63
63
  }
64
64
  },
65
65
  "scripts": {
66
- "build": "yarn barrels && yarn build:ts",
66
+ "build": "pnpm run barrels && pnpm run build:ts",
67
67
  "barrels": "barrels",
68
68
  "test": "vitest run",
69
69
  "build:ts": "tsc --build tsconfig.esm.json",
70
70
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
71
71
  },
72
72
  "dependencies": {
73
- "@tsed/core": "8.49.0",
74
- "@tsed/di": "8.49.0",
75
- "@tsed/exceptions": "8.49.0",
76
- "@tsed/hooks": "8.49.0",
77
- "@tsed/json-mapper": "8.49.0",
73
+ "@tsed/core": "8.50.1",
74
+ "@tsed/di": "8.50.1",
75
+ "@tsed/exceptions": "8.50.1",
76
+ "@tsed/hooks": "8.50.1",
77
+ "@tsed/json-mapper": "8.50.1",
78
78
  "@tsed/logger": "^8.0.0",
79
79
  "@tsed/logger-std": "^8.0.0",
80
- "@tsed/platform-accept-mimes": "8.49.0",
81
- "@tsed/platform-exceptions": "8.49.0",
82
- "@tsed/platform-middlewares": "8.49.0",
83
- "@tsed/platform-multer": "8.49.0",
84
- "@tsed/platform-params": "8.49.0",
85
- "@tsed/platform-response-filter": "8.49.0",
86
- "@tsed/platform-router": "8.49.0",
87
- "@tsed/platform-views": "8.49.0",
88
- "@tsed/schema": "8.49.0",
80
+ "@tsed/platform-accept-mimes": "8.50.1",
81
+ "@tsed/platform-exceptions": "8.50.1",
82
+ "@tsed/platform-middlewares": "8.50.1",
83
+ "@tsed/platform-multer": "8.50.1",
84
+ "@tsed/platform-params": "8.50.1",
85
+ "@tsed/platform-response-filter": "8.50.1",
86
+ "@tsed/platform-router": "8.50.1",
87
+ "@tsed/platform-views": "8.50.1",
88
+ "@tsed/schema": "8.50.1",
89
89
  "@types/json-schema": "7.0.15",
90
90
  "accepts": "^1.3.8",
91
91
  "cookie": "^2.0.1",
@@ -93,10 +93,22 @@
93
93
  "tslib": ">=2.7.0"
94
94
  },
95
95
  "devDependencies": {
96
- "@tsed/barrels": "8.49.0",
97
- "@tsed/engines": "8.49.0",
98
- "@tsed/typescript": "8.49.0",
96
+ "@tsed/barrels": "8.50.1",
97
+ "@tsed/engines": "8.50.1",
98
+ "@tsed/typescript": "8.50.1",
99
+ "@types/accepts": "^1.3.5",
100
+ "@types/body-parser": "1.19.5",
101
+ "@types/compression": "1.7.5",
102
+ "@types/cookie-parser": "1.4.7",
103
+ "@types/encodeurl": "^1.0.2",
104
+ "@types/method-override": "0.0.35",
105
+ "body-parser": "2.2.1",
106
+ "compression": "1.8.0",
107
+ "cookie-parser": "1.4.7",
99
108
  "cross-env": "7.0.3",
109
+ "method-override": "3.0.0",
110
+ "on-finished": "^2.4.1",
111
+ "supertest": "7.0.0",
100
112
  "typescript": "6.0.2",
101
113
  "vitest": "4.1.4"
102
114
  },