@tsed/di
Advanced tools
Comparing version 7.80.3 to 7.81.0-rc.1
@@ -53,3 +53,3 @@ import { InjectorService, LocalsContainer } from "../../common/index.js"; | ||
emit(eventName: string, ...args: any[]): Promise<void>; | ||
runInContext(next: Function): Promise<any>; | ||
runInContext<Result = unknown>(next: (...args: unknown[]) => Result): Promise<Result>; | ||
cache<Value = any>(key: string, cb: () => Value): Value; | ||
@@ -56,0 +56,0 @@ cacheAsync<Value = any>(key: string, cb: () => Promise<Value>): Promise<Value>; |
@@ -12,4 +12,4 @@ /// <reference types="node" /> | ||
export declare function getContext<Context = DIContext>(): Context | undefined; | ||
export declare function runInContext(ctx: DIContext | undefined, cb: any, injector?: InjectorService): Promise<any>; | ||
export declare function runInContext<Result = unknown>(ctx: DIContext | undefined, cb: (...args: unknown[]) => Result, injector?: InjectorService): Promise<Result>; | ||
export declare function setContext(ctx: DIContext): void; | ||
export declare function bindContext(cb: any): any; |
@@ -53,3 +53,3 @@ import { InjectorService, LocalsContainer } from "../../common/index.js"; | ||
emit(eventName: string, ...args: any[]): Promise<void>; | ||
runInContext(next: Function): Promise<any>; | ||
runInContext<Result = unknown>(next: (...args: unknown[]) => Result): Promise<Result>; | ||
cache<Value = any>(key: string, cb: () => Value): Value; | ||
@@ -56,0 +56,0 @@ cacheAsync<Value = any>(key: string, cb: () => Promise<Value>): Promise<Value>; |
@@ -12,4 +12,4 @@ /// <reference types="node" /> | ||
export declare function getContext<Context = DIContext>(): Context | undefined; | ||
export declare function runInContext(ctx: DIContext | undefined, cb: any, injector?: InjectorService): Promise<any>; | ||
export declare function runInContext<Result = unknown>(ctx: DIContext | undefined, cb: (...args: unknown[]) => Result, injector?: InjectorService): Promise<Result>; | ||
export declare function setContext(ctx: DIContext): void; | ||
export declare function bindContext(cb: any): any; |
@@ -5,3 +5,3 @@ { | ||
"type": "commonjs", | ||
"version": "7.80.3", | ||
"version": "7.81.0-rc.1", | ||
"source": "./src/index.ts", | ||
@@ -33,7 +33,7 @@ "main": "lib/esm/index.js", | ||
"devDependencies": { | ||
"@tsed/barrels": "7.80.3", | ||
"@tsed/core": "7.80.3", | ||
"@tsed/barrels": "7.81.0-rc.1", | ||
"@tsed/core": "7.81.0-rc.1", | ||
"@tsed/logger": ">=6.7.5", | ||
"@tsed/schema": "7.80.3", | ||
"@tsed/typescript": "7.80.3", | ||
"@tsed/schema": "7.81.0-rc.1", | ||
"@tsed/typescript": "7.81.0-rc.1", | ||
"cross-env": "7.0.3", | ||
@@ -46,5 +46,5 @@ "eslint": "^8.57.0", | ||
"peerDependencies": { | ||
"@tsed/core": "7.80.3", | ||
"@tsed/core": "7.81.0-rc.1", | ||
"@tsed/logger": ">=6.7.5", | ||
"@tsed/schema": "7.80.3" | ||
"@tsed/schema": "7.81.0-rc.1" | ||
}, | ||
@@ -68,3 +68,6 @@ "peerDependenciesMeta": { | ||
"author": "Romain Lenzotti", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"publishConfig": { | ||
"tag": "rc" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
551804
2