
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
pouchdb-erase
Advanced tools
A replicating db.destroy() alternative for PouchDB. Works by iterating over all documents in the database and deleting them. Uses batches and changes() internally. It's a drop-in replacement for db.destroy().
npm install pouchdb pouchdb-erase
//index.js
var PouchDB = require('pouchdb');
PouchDB.plugin(require('pouchdb-erase'));
var db = new PouchDB('test');
db.erase().then(function (resp) {
console.log(resp) //{ok: true}
})
<script src='dist/pouchdb-erase.min.js'></script>
<script>
PouchDB.plugin(Erase);
new PouchDB('test').erase();
</script>
db.erase([options[, callback]])
the only option in options
is at the moment batch_size, it
determines how much documents are collected before they are removed
all at once in one batch. callback
is optional, as shown in the
example a promise interface is also provided.
FAQs
A replicating db.destroy() alternative for PouchDB
The npm package pouchdb-erase receives a total of 170 weekly downloads. As such, pouchdb-erase popularity was classified as not popular.
We found that pouchdb-erase 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.