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.
@rei-network/utils
Advanced tools
[![NPM Version](https://img.shields.io/npm/v/@rei-network/utils)](https://www.npmjs.org/package/@rei-network/utils) ![License](https://img.shields.io/npm/l/@rei-network/utils)
Utils include the following classes:
Channel
: Contains three implements
Channel
: An asynchronous queue, order by the order in which the elements are pushedHChannel
: An asynchronous queue, order by customizable heapPChannel
: An asynchronous queue, order by element index(grow from 0) and index must be continuousCompress
: Provide some functions for compressing and decompressing dataFunctionalMap
and FunctionalSet
: Key customizable map and setnpm install @rei-network/utils
const channel = new Channel<string>();
channel.push("123");
channel.push("456");
setTimeout(() => {
channel.push("789");
}, 1000);
setTimeout(() => {
channel.push("101112");
}, 2000);
setTimeout(() => {
channel.abort();
}, 3000);
(async () => {
for await (const data of channel.generator()) {
console.log("data:", data);
}
console.log("channel end");
})();
const bufferMap = new FunctionalMap<Buffer, string>((a: Buffer, b: Buffer) =>
a.compare(b)
);
bufferMap.set(Buffer.from("aaaaaa", "hex"), "aaaaaa");
console.log(bufferMap.get(Buffer.from("aaaaaa", "hex")) === "aaaaaa"); // true
FAQs
[![NPM Version](https://img.shields.io/npm/v/@rei-network/utils)](https://www.npmjs.org/package/@rei-network/utils) ![License](https://img.shields.io/npm/l/@rei-network/utils)
The npm package @rei-network/utils receives a total of 1 weekly downloads. As such, @rei-network/utils popularity was classified as not popular.
We found that @rei-network/utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.