node-dependency-injection
node-dependency-injection copied to clipboard
The NodeDependencyInjection component allows you to standarize and centralize the way objects are constructed in your application.
Have small educational example for initial exploration of DI. ```js import * as path from 'path'; import { fileURLToPath } from 'url'; import { ContainerBuilder, YamlFileLoader } from 'node-dependency-injection'; console.log('Hello,...
Refactor and add the possibility to add more verbosity when building ContainerBuilder
Refactor and rewrite all classes and functionalities using TypeScript
* Add XML file loader configuration * Add XML dump services file when autowiring * Add XML schema
Bind keyword to bind specific arguments by name or type: or in pure js or typescript ```ts const compiler = new ContainerBuilder(false, '../path/to/src') compiler.addBind('adminEmail', '[email protected]') compiler.addBind('someParameter', process.env.SOME_PARAMETER) const autowire =...
Hi it seems that in order to fix indirect critical issue in deps, there is a need to update `@babel/plugin-transform-runtime` to `@babel/[email protected]` ([source](https://github.com/zazoomauro/node-dependency-injection/blob/89271c42f4a4355c6c3040792ef83952d68867ef/package.json#L55C5-L55C51)) ```` @babel/traverse
Hey, don't know if this was by mistake, but the Compiler is swallowing all Errors other than RangeError, took me a while to debug this. ```JavaScript async run () {...
First off, great project, love the autowire feature. I had some trouble with the static import of `typescript-eslint`, which in turn imports `typescript`, but does not explicitly state a dependency...
At the moment, Autowiring only works with private constructor properties. Make it working with the following examples: ```typescript interface TestInterface { } class ExampleClass { constructor(protected readonly parameter: TestInterface) {...
We are trying to run our project with node-dependency-injection and Vitest. Our tests fails once we need to load yaml files when we start the application to run e2e tests....