
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
@parameter1/mongodb-prop-types
Advanced tools
Common prop type validators using Joi.
yarn add @parameter1/mongodb-prop-types
Prop type schemas.
import { mongoClientProp, mongoCollectionProp, mongoSessionProp } from '@parameter1/mongodb-prop-types';
import { MongoClient } from '@parameter1/mongodb-core';
import Joi from 'joi';
const { attempt } = Joi
const client = new MongoClient('mongodb://some-server:27071');
// valid
attempt(client, mongoClientProp.required());
attempt(client.db('test').collection('foo'), mongoCollectionProp.required());
attempt(client.startSession(), mongoSessionProp.required());
Extending Joi to add objectId
type.
import Joi from 'joi';
import { objectIdType } from '@parameter1/mongodb-prop-types';
Joi.extend(objectIdType);
const someObjectId = new ObjectId();
// valid
attempt(someObjectId, Joi.objectId().required());
FAQs
Common MongoDB prop type validators using Joi.
The npm package @parameter1/mongodb-prop-types receives a total of 23 weekly downloads. As such, @parameter1/mongodb-prop-types popularity was classified as not popular.
We found that @parameter1/mongodb-prop-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.