Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@types/connect-mongodb-session
Advanced tools
npm install --save @types/connect-mongodb-session
This package contains type definitions for connect-mongodb-session (https://github.com/mongodb-js/connect-mongodb-session#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session.
// Type definitions for connect-mongodb-session 2.4
// Project: https://github.com/mongodb-js/connect-mongodb-session#readme
// Definitions by: Nattapong Sirilappanich <https://github.com/NattapongSiri>
// Ravi van Rooijen <https://github.com/HoldYourWaffle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import session = require('express-session');
import { MongoClient, MongoClientOptions } from 'mongodb';
export = ConnectMongoDBSession;
declare function ConnectMongoDBSession(fn: typeof session): typeof ConnectMongoDBSession.MongoDBStore;
declare namespace ConnectMongoDBSession {
class MongoDBStore extends session.Store {
constructor(connection?: MongoDBSessionOptions, callback?: (error: Error) => void);
client: MongoClient;
get(sid: string, callback: (err: any, session?: session.SessionData | null) => void): void;
set(sid: string, session: session.SessionData, callback?: (err?: any) => void): void;
destroy(sid: string, callback?: (err?: any) => void): void;
all(callback: (err: any, obj?: session.SessionData[] | { [sid: string]: session.SessionData; } | null) => void): void;
clear(callback?: (err?: any) => void): void;
}
interface MongoDBSessionOptions {
uri: string;
collection: string;
expires?: number | undefined;
databaseName?: string | undefined;
connectionOptions?: MongoClientOptions | undefined;
idField?: string | undefined;
}
}
These definitions were written by Nattapong Sirilappanich, and Ravi van Rooijen.
FAQs
TypeScript definitions for connect-mongodb-session
We found that @types/connect-mongodb-session 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.