Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@aloreljs/bound-decorator
Advanced tools
A TypeScript/ES7 decorator for automatically binding methods to the class instance
An ES7 decorator for making class methods bound to the class instance (including statics).
npm install @aloreljs/bound-decorator
The library's only goal is to be compatible with Typescript 5 decorators which, at the time of writing, use the 2022-03 stage 3 decorators proposal.
import {BoundMethod} from '@aloreljs/bound-decorator';
class MyClass {
@BoundMethod()
method1() {
// equivalent to
// this.method1 = this.method1.bind(this);
}
@BoundMethod('a', 'b')
method2(a, b, c) {
// equivalent to
// this.method2 = this.method2.bind(this, 'a', 'b');
}
@BoundMethod()
static foo() {
// Equivalent to
// MyClass.foo = MyClass.foo.bind(MyClass);
}
}
FAQs
A TypeScript/ES7 decorator for automatically binding methods to the class instance
The npm package @aloreljs/bound-decorator receives a total of 80 weekly downloads. As such, @aloreljs/bound-decorator popularity was classified as not popular.
We found that @aloreljs/bound-decorator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.