@tsed/di 7.31.0-rc.1 → 7.31.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.
- package/jest.config.js +4 -4
- package/lib/browser/di.umd.min.js +1 -1
- package/lib/browser/di.umd.min.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/services/DIConfiguration.js +5 -0
- package/lib/cjs/common/services/DIConfiguration.js.map +1 -1
- package/lib/cjs/common/services/DILogger.js +14 -0
- package/lib/cjs/common/services/DILogger.js.map +1 -0
- package/lib/cjs/common/services/InjectorService.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/services/DIConfiguration.js +6 -1
- package/lib/esm/common/services/DIConfiguration.js.map +1 -1
- package/lib/esm/common/services/DILogger.js +11 -0
- package/lib/esm/common/services/DILogger.js.map +1 -0
- package/lib/esm/common/services/InjectorService.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/common/services/DIConfiguration.d.ts +1 -2
- package/lib/types/common/services/DILogger.d.ts +3 -0
- package/lib/types/common/services/InjectorService.d.ts +1 -1
- package/package.json +8 -11
|
@@ -45,6 +45,7 @@ export * from "./interfaces/TokenRoute";
|
|
|
45
45
|
export * from "./registries/GlobalProviders";
|
|
46
46
|
export * from "./registries/ProviderRegistry";
|
|
47
47
|
export * from "./services/DIConfiguration";
|
|
48
|
+
export * from "./services/DILogger";
|
|
48
49
|
export * from "./services/InjectorService";
|
|
49
50
|
export * from "./utils/colors";
|
|
50
51
|
export * from "./utils/createContainer";
|
|
@@ -2,8 +2,7 @@ import { Env } from "@tsed/core";
|
|
|
2
2
|
import type { ProviderScope } from "../domain/ProviderScope";
|
|
3
3
|
import type { DILoggerOptions } from "../interfaces/DILoggerOptions";
|
|
4
4
|
import type { DIResolver } from "../interfaces/DIResolver";
|
|
5
|
-
import type { TokenProvider } from "../interfaces/TokenProvider";
|
|
6
|
-
import type { TokenProviderOpts } from "../interfaces/TokenProvider";
|
|
5
|
+
import type { TokenProvider, TokenProviderOpts } from "../interfaces/TokenProvider";
|
|
7
6
|
import type { TokenRoute } from "../interfaces/TokenRoute";
|
|
8
7
|
export declare class DIConfiguration {
|
|
9
8
|
readonly default: Map<string, any>;
|
|
@@ -208,7 +208,7 @@ export declare class InjectorService extends Container {
|
|
|
208
208
|
* @param options
|
|
209
209
|
* @private
|
|
210
210
|
*/
|
|
211
|
-
|
|
211
|
+
protected resolve<T>(target: TokenProvider, locals?: LocalsContainer, options?: Partial<InvokeOptions<T>>): T | Promise<T>;
|
|
212
212
|
/**
|
|
213
213
|
* Create options to invoke a provider or class.
|
|
214
214
|
* @param token
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/di",
|
|
3
|
-
"version": "7.31.0
|
|
3
|
+
"version": "7.31.0",
|
|
4
4
|
"description": "DI module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"tslib": "2.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tsed/core": "7.31.0
|
|
32
|
-
"@tsed/eslint": "7.31.0
|
|
31
|
+
"@tsed/core": "7.31.0",
|
|
32
|
+
"@tsed/eslint": "7.31.0",
|
|
33
33
|
"@tsed/logger": ">=6.2.2",
|
|
34
|
-
"@tsed/schema": "7.31.0
|
|
35
|
-
"@tsed/typescript": "7.31.0
|
|
34
|
+
"@tsed/schema": "7.31.0",
|
|
35
|
+
"@tsed/typescript": "7.31.0",
|
|
36
36
|
"eslint": "^8.12.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tsed/core": "^7.31.0
|
|
39
|
+
"@tsed/core": "^7.31.0",
|
|
40
40
|
"@tsed/logger": ">=6.2.2",
|
|
41
|
-
"@tsed/schema": "^7.31.0
|
|
41
|
+
"@tsed/schema": "^7.31.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@tsed/core": {
|
|
@@ -57,8 +57,5 @@
|
|
|
57
57
|
},
|
|
58
58
|
"homepage": "https://github.com/tsedio/tsed/tree/production/packages/di",
|
|
59
59
|
"author": "Romain Lenzotti",
|
|
60
|
-
"license": "MIT"
|
|
61
|
-
"publishConfig": {
|
|
62
|
-
"tag": "rc"
|
|
63
|
-
}
|
|
60
|
+
"license": "MIT"
|
|
64
61
|
}
|