@tsed/di 7.73.6 → 7.74.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.
- package/lib/browser/di.umd.min.js +1 -1
- package/lib/browser/di.umd.min.js.map +1 -1
- package/lib/cjs/common/domain/Provider.js.map +1 -1
- package/lib/cjs/common/index.js +1 -0
- package/lib/cjs/common/index.js.map +1 -1
- package/lib/cjs/common/interfaces/ImportTokenProviderOpts.js +3 -0
- package/lib/cjs/common/interfaces/ImportTokenProviderOpts.js.map +1 -0
- package/lib/cjs/common/services/DIConfiguration.js.map +1 -1
- package/lib/cjs/common/services/InjectorService.js +36 -22
- package/lib/cjs/common/services/InjectorService.js.map +1 -1
- package/lib/cjs/node/services/DITest.js.map +1 -1
- package/lib/esm/common/domain/Provider.js.map +1 -1
- package/lib/esm/common/index.js +1 -0
- package/lib/esm/common/index.js.map +1 -1
- package/lib/esm/common/interfaces/ImportTokenProviderOpts.js +2 -0
- package/lib/esm/common/interfaces/ImportTokenProviderOpts.js.map +1 -0
- package/lib/esm/common/services/DIConfiguration.js.map +1 -1
- package/lib/esm/common/services/InjectorService.js +36 -22
- package/lib/esm/common/services/InjectorService.js.map +1 -1
- package/lib/esm/node/services/DITest.js.map +1 -1
- package/lib/types/common/domain/Provider.d.ts +7 -7
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/common/interfaces/DIConfigurationOptions.d.ts +2 -2
- package/lib/types/common/interfaces/ImportTokenProviderOpts.d.ts +19 -0
- package/lib/types/common/services/DIConfiguration.d.ts +4 -3
- package/lib/types/common/services/InjectorService.d.ts +6 -3
- package/lib/types/node/services/DITest.d.ts +2 -2
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectorService, TokenProvider,
|
|
1
|
+
import { InjectorService, TokenProvider, type UseImportTokenProviderOpts } from "../../common/index.js";
|
|
2
2
|
import { DIContext } from "../domain/DIContext.js";
|
|
3
3
|
/**
|
|
4
4
|
* Tool to run test with lightweight DI sandbox.
|
|
@@ -25,7 +25,7 @@ export declare class DITest {
|
|
|
25
25
|
* @param target
|
|
26
26
|
* @param providers
|
|
27
27
|
*/
|
|
28
|
-
static invoke<T = any>(target: TokenProvider, providers?:
|
|
28
|
+
static invoke<T = any>(target: TokenProvider, providers?: UseImportTokenProviderOpts[]): Promise<T>;
|
|
29
29
|
/**
|
|
30
30
|
* Return the instance from injector registry
|
|
31
31
|
* @param target
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/di",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.74.1",
|
|
4
4
|
"description": "DI module for Ts.ED Framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "lib/cjs/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"tslib": "2.6.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tsed/barrels": "7.
|
|
29
|
-
"@tsed/core": "7.
|
|
28
|
+
"@tsed/barrels": "7.74.1",
|
|
29
|
+
"@tsed/core": "7.74.1",
|
|
30
30
|
"@tsed/logger": ">=6.7.5",
|
|
31
|
-
"@tsed/schema": "7.
|
|
32
|
-
"@tsed/typescript": "7.
|
|
31
|
+
"@tsed/schema": "7.74.1",
|
|
32
|
+
"@tsed/typescript": "7.74.1",
|
|
33
33
|
"cross-env": "7.0.3",
|
|
34
34
|
"eslint": "^8.57.0",
|
|
35
35
|
"jest": "^29.7.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"webpack": "^5.75.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@tsed/core": "7.
|
|
40
|
+
"@tsed/core": "7.74.1",
|
|
41
41
|
"@tsed/logger": ">=6.7.5",
|
|
42
|
-
"@tsed/schema": "7.
|
|
42
|
+
"@tsed/schema": "7.74.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@tsed/core": {
|