@tsed/platform-http 8.19.5 → 8.20.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,4 +1,4 @@
1
- import { GlobalProviders, injector, refValue } from "@tsed/di";
1
+ import { injector, Provider, refValue } from "@tsed/di";
2
2
  import { PlatformAdapter } from "../services/PlatformAdapter.js";
3
3
  const ADAPTER = "platform.adapter";
4
4
  let globalAdapter;
@@ -7,7 +7,7 @@ export function adapter(adapter, imports = []) {
7
7
  if (adapter) {
8
8
  globalAdapter ||= adapter;
9
9
  imports?.forEach(({ token, useClass }) => {
10
- const provider = GlobalProviders.get(token);
10
+ const provider = Provider.Registry.get(token);
11
11
  if (useClass && provider) {
12
12
  provider.useClass = useClass;
13
13
  injector().set(token, provider);
@@ -1,5 +1,5 @@
1
1
  import { isArray, isClass } from "@tsed/core";
2
- import { GlobalProviders, ProviderType } from "@tsed/di";
2
+ import { Provider, ProviderType } from "@tsed/di";
3
3
  const lookupProperties = ["mount", "imports"];
4
4
  /**
5
5
  * @ignore
@@ -31,7 +31,7 @@ function getTokens(config) {
31
31
  */
32
32
  function resolveRecursively(providers) {
33
33
  return providers
34
- .map(({ token }) => GlobalProviders.get(token))
34
+ .map(({ token }) => Provider.Registry.get(token))
35
35
  .filter((provider) => provider?.type === ProviderType.MODULE && provider.configuration)
36
36
  .flatMap((provider) => resolveControllers(provider.configuration));
37
37
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-http",
3
3
  "description": "A TypeScript Framework on top of Express",
4
4
  "type": "module",
5
- "version": "8.19.5",
5
+ "version": "8.20.1",
6
6
  "source": "./src/common/index.ts",
7
7
  "main": "./lib/esm/common/index.js",
8
8
  "module": "./lib/esm/common/index.js",
@@ -70,31 +70,31 @@
70
70
  }
71
71
  ],
72
72
  "dependencies": {
73
- "@tsed/core": "8.19.5",
74
- "@tsed/di": "8.19.5",
75
- "@tsed/exceptions": "8.19.5",
76
- "@tsed/hooks": "8.19.5",
77
- "@tsed/json-mapper": "8.19.5",
73
+ "@tsed/core": "8.20.1",
74
+ "@tsed/di": "8.20.1",
75
+ "@tsed/exceptions": "8.20.1",
76
+ "@tsed/hooks": "8.20.1",
77
+ "@tsed/json-mapper": "8.20.1",
78
78
  "@tsed/logger": "^8.0.0",
79
79
  "@tsed/logger-std": "^8.0.0",
80
- "@tsed/platform-accept-mimes": "8.19.5",
81
- "@tsed/platform-exceptions": "8.19.5",
82
- "@tsed/platform-middlewares": "8.19.5",
83
- "@tsed/platform-multer": "8.19.5",
84
- "@tsed/platform-params": "8.19.5",
85
- "@tsed/platform-response-filter": "8.19.5",
86
- "@tsed/platform-router": "8.19.5",
87
- "@tsed/platform-views": "8.19.5",
88
- "@tsed/schema": "8.19.5",
80
+ "@tsed/platform-accept-mimes": "8.20.1",
81
+ "@tsed/platform-exceptions": "8.20.1",
82
+ "@tsed/platform-middlewares": "8.20.1",
83
+ "@tsed/platform-multer": "8.20.1",
84
+ "@tsed/platform-params": "8.20.1",
85
+ "@tsed/platform-response-filter": "8.20.1",
86
+ "@tsed/platform-router": "8.20.1",
87
+ "@tsed/platform-views": "8.20.1",
88
+ "@tsed/schema": "8.20.1",
89
89
  "@types/json-schema": "7.0.15",
90
90
  "accepts": "^1.3.8",
91
91
  "tslib": "2.7.0",
92
92
  "uuid": "10.0.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@tsed/barrels": "8.19.5",
96
- "@tsed/engines": "8.19.5",
97
- "@tsed/typescript": "8.19.5",
95
+ "@tsed/barrels": "8.20.1",
96
+ "@tsed/engines": "8.20.1",
97
+ "@tsed/typescript": "8.20.1",
98
98
  "cross-env": "7.0.3",
99
99
  "eslint": "9.12.0",
100
100
  "typescript": "5.9.3",