Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@types/express-mysql-session
Advanced tools
TypeScript definitions for express-mysql-session
npm install --save @types/express-mysql-session
This package contains type definitions for express-mysql-session (https://github.com/chill117/express-mysql-session#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-mysql-session.
// Type definitions for express-mysql-session 2.1
// Project: https://github.com/chill117/express-mysql-session#readme
// Definitions by: Akim95 <https://github.com/Akim95>
// Sebastian Krüger <https://github.com/mathe42>
// Ionaru <https://github.com/Ionaru>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as expressSession from 'express-session';
export = MySQLStore;
declare function MySQLStore(session: typeof expressSession): typeof MySQLStoreClass;
declare namespace MySQLStore {
interface Options {
host?: string | undefined;
port?: number | undefined;
user?: string | undefined;
password?: string | undefined;
database?: string | undefined;
checkExpirationInterval?: number | undefined;
expiration?: number | undefined;
createDatabaseTable?: boolean | undefined;
connectionLimit?: number | undefined;
schema?: Partial<Schema> | undefined;
}
interface Schema {
tableName: string;
columnNames: Partial<ColumnNames>;
}
interface ColumnNames {
session_id: string;
expires: string;
data: string;
}
type MySQLStore = MySQLStoreClass;
}
declare class MySQLStoreClass extends expressSession.Store {
constructor(options: MySQLStore.Options, connection?: any, callback?: (error: any) => void);
setDefaultOptions(): void;
setOptions(options: MySQLStore.Options): void;
validateOptions(options: MySQLStore.Options): void;
createDatabaseTable(callback?: (error: any) => void): void;
get(sessionId: string, callback?: (error: any, session: any) => void): void;
set(sessionId: string, data: any, callback?: (error: any) => void): void;
touch(sessionId: string, data: any, callback?: (error: any) => void): void;
destroy(sessionId: string, callback?: (error: any) => void): void;
length(callback?: (error: any, count: any) => void): void;
all(callback?: (error: any, sessions: any) => void): void;
clear(callback?: (error: any) => void): void;
clearExpiredSessions(callback?: (error: any) => void): void;
query(sql: string, params: any, callback?: (error: any, rows: any, fields: any) => void): void;
setExpirationInterval(interval: number): void;
clearExpirationInterval(): void;
close(callback?: () => void): void;
}
These definitions were written by Akim95, Sebastian Krüger, and Ionaru.
FAQs
TypeScript definitions for express-mysql-session
The npm package @types/express-mysql-session receives a total of 1,841 weekly downloads. As such, @types/express-mysql-session popularity was classified as popular.
We found that @types/express-mysql-session demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.