Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/connect-mongodb-session

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/connect-mongodb-session - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

8

connect-mongodb-session/index.d.ts

@@ -29,7 +29,7 @@ // Type definitions for connect-mongodb-session 2.4

collection: string;
expires?: number;
databaseName?: string;
connectionOptions?: MongoClientOptions;
idField?: string;
expires?: number | undefined;
databaseName?: string | undefined;
connectionOptions?: MongoClientOptions | undefined;
idField?: string | undefined;
}
}
{
"name": "@types/connect-mongodb-session",
"version": "2.4.0",
"version": "2.4.1",
"description": "TypeScript definitions for connect-mongodb-session",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session",
"license": "MIT",

@@ -30,4 +31,4 @@ "contributors": [

},
"typesPublisherContentHash": "095c2637f37b7d34ae3c952bf9bd829e419f0c5b97cce8da4a10e00b9ba583d3",
"typeScriptVersion": "3.3"
"typesPublisherContentHash": "fa5f26e49311e718d96147254a209fbed84faafad6b4d4a83a8e29b194bf2c25",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,43 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session/index.d.ts)
````ts
// 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;
}
}
````
### Additional Details
* Last updated: Tue, 24 Nov 2020 11:27:55 GMT
* Last updated: Thu, 08 Jul 2021 09:08:08 GMT
* Dependencies: [@types/express-session](https://npmjs.com/package/@types/express-session), [@types/mongodb](https://npmjs.com/package/@types/mongodb)

@@ -14,0 +52,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc