@travetto/di
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "@travetto/di", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Dependency registration/management and injection support.", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/registry": "^3.1.0" | ||
"@travetto/registry": "^3.1.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "peerDependencies": { |
@@ -57,3 +57,3 @@ import type { MethodDescriptor, Class, ClassInstance } from '@travetto/base'; | ||
export function Inject(first?: InjectConfig | symbol, ...args: (InjectConfig | undefined)[]) { | ||
return (target: unknown, propertyKey: string | symbol, idx?: number | PropertyDescriptor): void => { | ||
return (target: unknown, propertyKey?: string, idx?: number | PropertyDescriptor): void => { | ||
if (typeof idx !== 'number') { // Only register if on property | ||
@@ -60,0 +60,0 @@ const config: InjectConfig = collapseConfig(first, ...args); |
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
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
47556
Updated@travetto/registry@^3.1.1