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.
@typeheim/fire-rx
Advanced tools
FireRx extends RxJS with different useful features. Adds memory safety and garbage collection features to work with subjects and subscriptions, subjects that behave both like subjects and promises to support async/await and many more.
Install package
yarn add @typeheim/fire-rx
//or
npm -i @typeheim/fire-rx
FireRx consist of custom Observable types and additional features to work with observables.
FireRx adds custom observable types, like StatefulSubject that acts as ReplaySubject and Promise so that you can use async/await operators on it as well as regular Subject methods. Adds memory safety and garbage collection automatically calling unsubscribe on subscriptions.
import { StatefulSubject } from '@typeheim/fire-rx'
let subject = new StatefulSubject<number>()
subject.next(5)
await subject // returns 5
subject.next(6)
await subject // returns 6
subject.stop() // completes subject and unsubscribe all subscriptions
Read more about all custom observables...
FireRx provide set of features for garbage collection, like StopOnDestroy decorator for FireRx custom observables that extends Angular destructor(ngOnDestroy) or custom destructor (specified at decorator metadata) and stop specified observable.
class WithoutDestructor {
@StopOnDestroy()
valueSubject = new ValueSubject(1)
@StopOnDestroy()
statefulSubject = new StatefulSubject()
}
FAQs
RxJS on steroids
The npm package @typeheim/fire-rx receives a total of 3 weekly downloads. As such, @typeheim/fire-rx popularity was classified as not popular.
We found that @typeheim/fire-rx demonstrated a not healthy version release cadence and project activity because the last version was released 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.