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.
@patrten/vero-unde
Advanced tools
Migrated into monorepo: [bjesuiter/rxjs-pipes](https://github.com/bjesuiter/rxjs-pipes/tree/main/packages/throttle-async)
Migrated into monorepo: bjesuiter/rxjs-pipes
A pipe functions for rxjs 6+ which accepts a 'wait' observable, emits 1 elements of the source stream and waits for an event on the 'wait' observable.
The latest changelog on master: https://github.com/patrten/vero-unde/blob/master/CHANGELOG.md
I personally need it for splitting up resize events from the browser into a
resize-start
and a resize-end
observable.
First, we need an observable of window resize events:
const windowResize$ = fromEvent(window, 'resize');
We can produce a resize-end
observable by
const windowResizeEnd$ = windowResize$.pipe(debounceTime(500));
But how would you build the windowResizeStart$ observable?
This is, where the throttleAsync
pipe comes in.
We need windowResize$
to emit exactly one event and then pause emission
until windowResizeEnd$
emits a value.
const windowResizeStart$ = windowResize$.pipe(
throttleAsync(windowResizeEnd$)
);
n source events
between waitUntil$
observable emissions instead of only one.waitUntil$
observable
as a number of how many events to emit next.FAQs
Migrated into monorepo: [bjesuiter/rxjs-pipes](https://github.com/bjesuiter/rxjs-pipes/tree/main/packages/throttle-async)
We found that @patrten/vero-unde 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
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.