Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
aurelia-property-injection
Advanced tools
An extension to Aurelia's DI container which supports injection into properties.
This plugin enables the core Aurelia's DI Container to inject dependencies into class instance properties, lifting the constructor from being the dependency bearer and decoupling child classes from parent dependencies.
The implementation follows the Convention over configuration paradigm, assuming the presence of a static injectProperties
enumeration of property: Type
to satisfy dependencies. For example, having a class like this:
import {Router} from 'aurelia-router';
export class MyClass {
static injectProperties = {
router: Router
};
}
the container will produce an instance of MyClass
with the current Router
available in the router
property.
It also provides extended implementations of the core inject
and autoinject
decorators, e.g.
import {inject} from 'aurelia-property-injection';
import {Router} from 'aurelia-router';
export class MyClass {
@inject(Router)
router;
}
and for TypeScript
import {autoinject} from 'aurelia-property-injection';
export class MyClass {
@autoinject
private router: Router;
}
Install the plugin via NPM:
npm install --save aurelia-property-injection
To enable the plugin, simply use
it in the Aurelia's main configuration of your application:
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-property-injection');
aurelia.start().then(() => aurelia.setRoot());
}
FAQs
An extension to Aurelia's DI container which supports injection into properties.
We found that aurelia-property-injection 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.