Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@converse/localforage-getitems
Advanced tools
This is a fork of localforage-getitems
which adds support for the getAll
function for IndexedDB.
The upstream pull request is here: https://github.com/localForage/localForage-getItems/pull/12
The upstream project appears to be unmaintained and hasn't had any changes in 5 years.
npm i @converse/localforage-getitems
Just like getItem()
but you can pass an array with the keys that need to be retrieved.
const keys = ['asdf','asap','async'];
localforage.getItems(keys).then((results) => {
console.log(results);
// prints:
// {
// asdf: 'asdf value!',
// asap: 'asap value!',
// async: 'async value!'
// }
console.log(results.asdf);
console.log(results['asdf']);
console.log(results[keys[0]]);
// all the above print 'asdf value!'
});
Invoking getItems()
without arguments (or with null
as the first argument) will retrieve all the items of the current driver instance.
localforage.getItems().then((results) => { });
// or by using callbacks
localforage.getItems(null, results) => { });
FAQs
Adds getItems method to localForage.
We found that @converse/localforage-getitems 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.