New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

session-flash

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

session-flash - npm Package Compare versions

Comparing version
1.0.5
to
1.0.6
+21
-14
lib/index.d.ts

@@ -0,18 +1,25 @@

import type { RequestHandler } from "express";
import "express-serve-static-core";
declare namespace Express {
export interface Request {
flash(): { [key: string]: string[] };
flash(message: string): string[];
flash(type: string, message: string[] | string): number;
flash(type: string, format: string, ...args: any[]): number;
}
/* Express Request augmentation */
declare module "express-serve-static-core" {
interface Request {
flash(): { [key: string]: string[] };
flash(type: string): string[];
flash(type: string, message: string | string[]): number;
flash(type: string, format: string, ...args: unknown[]): number;
}
}
/* session-flash module declaration */
declare module "session-flash" {
import express = require("express");
interface IConnectFlashOptions {
unsafe?: boolean | undefined;
}
function e(options?: IConnectFlashOptions): express.RequestHandler;
export = e;
}
interface SessionFlashOptions {
unsafe?: boolean;
}
function sessionFlash(
options?: SessionFlashOptions
): RequestHandler;
export = sessionFlash;
}
+1
-1
{
"name": "session-flash",
"version": "1.0.5",
"version": "1.0.6",
"description": "Flash message middleware for express.",

@@ -5,0 +5,0 @@ "main": "./lib/index.cjs",