@tsed/components-scan 8.19.5 → 8.20.0

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,5 +1,5 @@
1
1
  import { isArray, isClass, isString } from "@tsed/core";
2
- import { GlobalProviders, ProviderType } from "@tsed/di";
2
+ import { Provider, ProviderType } from "@tsed/di";
3
3
  import { importFiles } from "./importFiles.js";
4
4
  const lookup = ["imports", "componentsScan", "mount"];
5
5
  async function resolveRecursively(items, exclude, rootDir) {
@@ -10,7 +10,7 @@ async function resolveRecursively(items, exclude, rootDir) {
10
10
  }
11
11
  const providers = items.flat().filter(isClass);
12
12
  for (const token of providers) {
13
- const provider = GlobalProviders.get(token);
13
+ const provider = Provider.Registry.get(token);
14
14
  if (provider?.type === ProviderType.MODULE && provider.configuration) {
15
15
  provider.configuration.exclude = exclude;
16
16
  provider.configuration.rootDir = provider.configuration.rootDir || rootDir;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/components-scan",
3
3
  "description": "Components scan utilities for Ts.ED Framework",
4
4
  "type": "module",
5
- "version": "8.19.5",
5
+ "version": "8.20.0",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -23,15 +23,15 @@
23
23
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
24
24
  },
25
25
  "dependencies": {
26
- "@tsed/normalize-path": "8.19.5",
26
+ "@tsed/normalize-path": "8.20.0",
27
27
  "globby": "14.1.0",
28
28
  "tslib": "2.7.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@tsed/barrels": "8.19.5",
32
- "@tsed/core": "8.19.5",
33
- "@tsed/di": "8.19.5",
34
- "@tsed/typescript": "8.19.5",
31
+ "@tsed/barrels": "8.20.0",
32
+ "@tsed/core": "8.20.0",
33
+ "@tsed/di": "8.20.0",
34
+ "@tsed/typescript": "8.20.0",
35
35
  "eslint": "9.12.0",
36
36
  "typescript": "5.9.3",
37
37
  "vitest": "3.2.4"