Comparing version 4.0.0-rc-3 to 4.0.0-rc-5
{ | ||
"name": "cheap-di", | ||
"description": "TypeScript dependency injection like Autofac in .Net", | ||
"version": "4.0.0-rc-3", | ||
"version": "4.0.0-rc-5", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "compile": "tsc --build tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json", |
@@ -36,20 +36,2 @@ # cheap-di | ||
* With cheap-di-ts-transform here will be added information about Service dependencies. | ||
* It will looks like: | ||
* @example | ||
* import { findOrCreateMetadata } from 'cheap-di'; | ||
* | ||
* // for Logger | ||
* try { | ||
* const metadata = findOrCreateMetadata(Logger); | ||
* | ||
* // only classes may be instantiated with DI, other parameters can be filled with argument injection | ||
* metadata.dependencies = ["unknown"]; | ||
* } catch {} | ||
* | ||
* // for Service | ||
* try { | ||
* const metadata = findOrCreateMetadata(Service); | ||
* | ||
* metadata.dependencies = [Logger]; | ||
* } catch {} | ||
* */ | ||
@@ -56,0 +38,0 @@ |
@@ -9,1 +9,21 @@ export * from './cheapDiSymbol.js'; | ||
export * from './types.js'; | ||
import { cheapDiSymbol } from './cheapDiSymbol.js'; | ||
import { CircularDependencyError } from './CircularDependencyError.js'; | ||
import { container, ContainerImpl } from './ContainerImpl.js'; | ||
import { inject } from './decorators/inject.js'; | ||
import { findMetadata, findOrCreateMetadata } from './findMetadata.js'; | ||
import { isSingleton } from './isSingleton.js'; | ||
import { Trace } from './Trace.js'; | ||
export default { | ||
cheapDiSymbol, | ||
CircularDependencyError, | ||
container, | ||
ContainerImpl, | ||
inject, | ||
findMetadata, | ||
findOrCreateMetadata, | ||
isSingleton, | ||
Trace, | ||
}; |
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
44068
1208
196