
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@uxland/ioc
Advanced tools
Build Status | Statements | Branches | Functions | Lines |
---|---|---|---|---|
npm i @uxland/ioc
Registers a constructor singleton to the InversionOfControl container. Each time a reference of the constructor or abstract class is provided with inversify, the container will provide with its singleton pair.
@provideSingleton()
class IOCAdapter {
method(): void {
console.log("Calling `method` from `IOCAdapter`");
}
}
class Adapter {
constructor(@inject(IOCAdapter) protected adapter: IOCAdapter) {
this.adapter.method(); // => 'Calling `method` from `IOCAdapter`'
}
}
This method overrides the mediator default resolver to use our own container.
const container: Container = new Container();
setMediatorResolver(container);
FAQs
IOC
We found that @uxland/ioc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.