@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.
@@ -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>;
@@ -0,0 +1,3 @@
1
+ import { DILogger } from "../interfaces/DILogger";
2
+ export declare const LOGGER: unique symbol;
3
+ export type LOGGER = DILogger;
@@ -208,7 +208,7 @@ export declare class InjectorService extends Container {
208
208
  * @param options
209
209
  * @private
210
210
  */
211
- private resolve;
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-rc.1",
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-rc.1",
32
- "@tsed/eslint": "7.31.0-rc.1",
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-rc.1",
35
- "@tsed/typescript": "7.31.0-rc.1",
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-rc.1",
39
+ "@tsed/core": "^7.31.0",
40
40
  "@tsed/logger": ">=6.2.2",
41
- "@tsed/schema": "^7.31.0-rc.1"
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
  }