
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
ste-signals
Advanced tools
Add the power of Signals to your projects. They are the most bare bones implementation of an event.
Signals are the most barebone of all events. They don't contain any data. They just invoke the registered handler.
An example says more than a 1000 words. Imagine if you have events like this on your class:
let clock = new Clock("Smu", 1000);
//log the ticks to the console - this is a signal event
clock.onTick.subscribe(() => console.log("Tick!"));
So let's look at the implementation from a TypeScript perspective. (Do you program NodeJs without typescript? Check this)
import { SignalDispatcher } from "ste-signals";
class Clock {
private _onTick = new SignalDispatcher();
private _ticks: number = 0;
constructor(public name: string, timeout: number) {
setInterval(() => {
this._ticks += 1;
this._onTick.dispatch();
}, timeout);
}
public get onTick() {
return this._onTick.asEvent();
}
}
Check the documentation or the examples for more information.
Need more info? Check the repo.
This project is maintained by Kees C. Bakker.
FAQs
Add the power of Signals to your projects. They are the most bare bones implementation of an event.
The npm package ste-signals receives a total of 5,468 weekly downloads. As such, ste-signals popularity was classified as popular.
We found that ste-signals 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.