Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@typeheim/fire-rx
Advanced tools
Readme
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.complete() // 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 24 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.