Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
h1. node-trie
Author: James Brumond Version: 0.2.1
Copyright 2011 James Brumond Dual licensed under MIT and GPL
h2. Install
npm install trie
h2. Samples
var trie = require('trie');
var myTrie = new trie.Trie();
// Adding words
myTrie.addWord('hello');
myTrie.addWord('world');
// Removing words
myTrie.removeWord('world');
// Checking for words
myTrie.lookup('hello'); // true
myTrie.lookup('world'); // false
// Testing prefixes
myTrie.isValidPrefix('h'); // true
myTrie.isValidPrefix('he'); // true
myTrie.isValidPrefix('ho'); // false
// Serializing
var jsonBlob = myTrie.dumpJson();
// Unserializing
var otherTrie = new Trie();
otherTrie.loadJson(jsonBlob);
// Shortcut functions
var trie3 = trie.createTrieFromArray([ 'word1', 'word2', 'word3' ])
var trie4 = trie.createTrieFromJson(jsonBlob);
FAQs
A trie dictionary storage model
The npm package trie receives a total of 2 weekly downloads. As such, trie popularity was classified as not popular.
We found that trie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.