@travetto/di
Advanced tools
Comparing version 4.1.1 to 5.0.0-rc.0
{ | ||
"name": "@travetto/di", | ||
"version": "4.1.1", | ||
"version": "5.0.0-rc.0", | ||
"description": "Dependency registration/management and injection support.", | ||
@@ -30,6 +30,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/registry": "^4.1.1" | ||
"@travetto/registry": "^5.0.0-rc.0" | ||
}, | ||
"peerDependencies": { | ||
"@travetto/transformer": "^4.1.1" | ||
"@travetto/transformer": "^5.0.0-rc.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "peerDependenciesMeta": { |
@@ -1,2 +0,2 @@ | ||
import type { MethodDescriptor, Class, ClassInstance } from '@travetto/base'; | ||
import type { Class, ClassInstance } from '@travetto/base'; | ||
@@ -75,3 +75,4 @@ import { InjectableFactoryConfig, InjectableConfig, Dependency } from './types'; | ||
export function InjectableFactory(first?: Partial<InjectableFactoryConfig> | symbol, ...args: (Partial<InjectableFactoryConfig> | undefined)[]) { | ||
return <T extends Class>(target: T, property: string | symbol, descriptor: MethodDescriptor): void => { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
return <T extends Class>(target: T, property: string | symbol, descriptor: TypedPropertyDescriptor<((..._: any[]) => any)>): void => { | ||
const config: InjectableFactoryConfig = collapseConfig(first, ...args); | ||
@@ -78,0 +79,0 @@ DependencyRegistry.registerFactory({ |
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
48890
928
1
+ Added@travetto/manifest@5.0.9(transitive)
+ Added@travetto/registry@5.0.13(transitive)
+ Added@travetto/runtime@5.0.13(transitive)
+ Added@travetto/transformer@5.0.10(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@travetto/base@4.1.2(transitive)
- Removed@travetto/manifest@4.1.0(transitive)
- Removed@travetto/registry@4.1.2(transitive)
- Removed@travetto/transformer@4.1.2(transitive)
- Removed@types/node@20.17.9(transitive)
- Removedundici-types@6.19.8(transitive)