Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@adonisjs/ioc-transformer
Advanced tools
Typescript transformer to transform import statements to IoC container use calls
Typescript transformer to transform import statements to IoC container use calls
The Ioc container of AdonisJs exposes the use
method to resolve dependencies from the container. However, using use
and import
statements together feels a bit cluttered. This module enables using import
statements for IoC container bindings and transforms them to the use
call by hooking into the Typescript compiler lifecycle.
Install the package from npm registry as follows:
npm i @adonisjs/ioc-transformer
Pass it to the Typescript compiler as after
hook. Following is an example of using it with ts-node
.
const { iocTransformer } = require('@adonisjs/ioc-transformer')
require('ts-node').register({
transformers: {
after: [iocTransformer(require('typescript/lib/typescript'), require('./.adonisrc.json'))],
}
})
FAQs
Typescript transformer to transform import statements to IoC container use calls
The npm package @adonisjs/ioc-transformer receives a total of 9,034 weekly downloads. As such, @adonisjs/ioc-transformer popularity was classified as popular.
We found that @adonisjs/ioc-transformer 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.