
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@klippersubs/bfs
Advanced tools
General purpose BFS implementation.
yarn add @klippersubs/bfs
import { flatten } from '@klippersubs/bfs';
const en = { name: 'en', fallback: [] };
const ru = { name: 'ru', fallback: [en] };
const be = { name: 'be', fallback: [ru] };
const uk = { name: 'uk', fallback: [be, ru] };
be.fallback = [ru, uk];
const beTarask = { name: 'be-tarask', fallback: [be, uk] };
const lookupList = flatten(null, beTarask, (_, language) => language.fallback);
console.log(lookupList);
// → Set {
// { name: 'be-tarask', fallback: [ [Object], [Object] ] },
// { name: 'be', fallback: [ [Object], [Object] ] },
// { name: 'uk', fallback: [ [Object], [Object] ] },
// { name: 'ru', fallback: [ [Object] ] },
// { name: 'en', fallback: [] } }
ChildrenGetter
Returns children of the given vertex in the given graph.
Generic params:
Graph
— graph type.Vertex
— vertex type.Params:
graph: Graph
— graph containing the vertex.vertex: Vertex
— vertex in the graph.Return value:
Array<Node>
— flat array of vertices.flatten
Flattens cyclic graph starting from root vertex.
Generic params:
Graph
— graph type.Vertex
— vertex type.Params:
graph: Graph
— graph or forest.root: Vertex
— vertex to start search.getChildren: ChildrenGetter<Graph, Vertex>
— returns children
of the given vertex.Return value:
Set<Vertex>
— flat set of vertices.MIT
FAQs
General purpose BFS implementation.
The npm package @klippersubs/bfs receives a total of 2 weekly downloads. As such, @klippersubs/bfs popularity was classified as not popular.
We found that @klippersubs/bfs 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.