@brc-dd/iron-session
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -62,3 +62,3 @@ import { CookieSerializeOptions } from 'cookie'; | ||
}) => Promise<string>; | ||
declare const unsealData: <T extends Record<string, unknown> = Record<string, unknown>>(seal: string, { password, ttl }: { | ||
declare const unsealData: <T extends {} = {}>(seal: string, { password, ttl }: { | ||
password: string | { | ||
@@ -69,4 +69,4 @@ [x: string]: string; | ||
}) => Promise<T>; | ||
declare const getIronSession: <T extends Record<string, unknown> = Record<string, unknown>>(req: http.IncomingMessage | Request, res: Response | http.ServerResponse<http.IncomingMessage>, userSessionOptions: IronSessionOptions) => Promise<IronSession<T>>; | ||
declare const getIronSession: <T extends {} = {}>(req: http.IncomingMessage | Request, res: Response | http.ServerResponse<http.IncomingMessage>, userSessionOptions: IronSessionOptions) => Promise<IronSession<T>>; | ||
export { IronSession, IronSessionOptions, getIronSession, sealData, unsealData }; |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@brc-dd/iron-session", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"sideEffects": false, | ||
@@ -17,2 +17,3 @@ "type": "module", | ||
}, | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
@@ -19,0 +20,0 @@ "dist/*" |
73808