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.
@luggage/core
Advanced tools
Dropbox file API wrapper for storing json data.
Have you ever noticed that their stuff is shit and your shit is stuff? (George Carlin)
const backend = new DropboxBackend(token);
const store = new Luggage(backend);
const articles = store.collection('articles');
articles.where({ author: 'John Doe' }).read().then((articles) => {
console.log('John\'s articles:', articles);
});
/* or you can provide a function */
articles.where(article => article.authors.includes('John Doe')).read().then((articles) => {
console.log('John\'s articles:', articles);
});
/* Listen to filtered data updates */
articles.where({ author: 'John Doe' }).on('data', (articles) => {
console.log('John\'s articles:', articles);
});
/* You can stack conditions */
articles.where({ author: 'John Doe' }).where(article => article.comments > 0)
/* or more readable */
articles.where({ author: 'John Doe' }).and(article => article.comments > 0)
/* Collection#find returns the first record found */
articles.find({ author: 'John Doe' }).read().then((article) => {
console.log('John\'s article:', article);
});
/* Collection#find takes a function */
articles.find(article => article.author === 'John Doe').read().then((article) => {
console.log('John\'s article:', article);
});
/* Listen to single record updates */
articles.find({ author: 'John Doe' }).on('data', (article) => {
console.log('John\'s article:', article);
});
/* Simple merge with existing record */
articles.find({ id: 1 }).update({ author: 'Jane Doe' }).then(([article]) => {
console.log('Author changed:', article.author);
});
/* Record#update takes a function (surprise :)) */
articles.find(article => article.id === 42).update((article) => {
article.authors.push('Jane Doe');
return article; // Do not forget to return new record
})
articles.add({ author: 'John Doe', body: 'Blah blah blah mr. Freeman' }).then(([article]) => {
console.log('New article was added:', article);
});
articles.find({ id: 1 }).delete().then(([article]) => {
console.log('No longer within collection:', article);
});
FAQs
Dropbox file API wrapper for storing json data.
We found that @luggage/core 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
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.