
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.
@bricco/mongo-wrapper
Advanced tools
A wrapper for mongodb with a unified interface against the data API / node driver.
A simple wrapper to get a unified interface against the MongoDB Data API and MongoDB Node Driver
The wrapper is very useful if you want to use MongoDB in Vercel Edge Runtime or benifit from the Nextjs built-in data cache. But still have the possibilty do run tests against an In-Memory Storage Engine or use a local database with the native Node Driver.
The usual ways:
yarn add @bricco/mongo-wrapper
import createDb from '@bricco/mongo-wrapper';
import { unstable_cache as cache } from 'next/cache';
const db = createDb({
database: 'myDatabase',
connectionString: 'mongodb+srv://user:<PWD>@myCluser.apc123.mongodb.net',
cache: cache,
})
const car = await db('mycollection').findOne({ type: 'car' })
// => { _id: "61df...", type: "car", ...etc }
const useNodeDriver = true;
const bike = await db('mycollection', useNodeDriver).findOne({ type: 'bike' })
// => { _id: "61df...", type: "bike", ...etc }
FAQs
A wrapper for mongodb with a unified interface against the data API / node driver.
The npm package @bricco/mongo-wrapper receives a total of 121 weekly downloads. As such, @bricco/mongo-wrapper popularity was classified as not popular.
We found that @bricco/mongo-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.