InversifyJS
InversifyJS copied to clipboard
A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
_postConstruct in src/resolution/instantiation.ts uses Reflect.getMetadata directly instead of using the MetadataReader. I tried building a MetadataReader using static properties and compiling without reflect-metadata, but I get: ``` src/resolution/instantiation.ts:37:17 - error...
## Description This PR implements rollup bundling and `.d.ts` generator using [@microsoft/api-extractor](https://www.npmjs.com/package/@microsoft/api-extractor). ## Related Issue #1371 ## Motivation and Context ## How Has This Been Tested? ## Types of changes...
I was sitting and looking over the NPM downloads of this library, and the size of the bundle jumped out at me.  I mean, 1.15 MB with 400 files...
The issue is quite vague. I am creating the project [(code)](https://github.com/shevchenkobn/DrOwn-server/tree/f676ae87b13a8372e00401e2cd1e5bc04810032b). It is a back-end, so I have an entry point to my server and a cli script that populates...
I have an NodeJS application that is using net.Socket and I need to some instances be scoped from inside socket.on("data") event. ## Expected Behavior Container should resolve to children objects...
The lazyInject decorator appears to be a replacement for the constructor-injection. But the scoping rules don't work with lazy injection. ## Expected Behavior The 'lazyInject' decorator should inject the same...
`decorate(injectable(), EventEmitter))` fails in Jest test environment, but works fine when running typescript code using `ts-node`. ## Expected Behavior When injecting a component that extends `EventEmitter` (thus requiring `decorate(injectable(), EventEmitter))`),...
Thank you very much for providing this tool, it is very useful for me.But I have some doubts about this tool. I want to use Inversify for engineering development and...
In the system I'm building, we have `ViewControllers` and `ViewControllerComponents`. Each ViewController type has a name, like `form_view`, `map_view`, etc. Each ViewController has specific ViewControllerComponents that correspond to it, like...
We currently use the `constructor` property to access the constructor of an instance. Our use cases allow this operation to be performed, but I think it has some cons we...