@types/lusca
Advanced tools
Comparing version 1.7.4 to 1.7.5
@@ -36,2 +36,4 @@ import express = require("express"); | ||
type csrfValidateFunction = (req: express.Request, token: unknown) => boolean; | ||
interface csrfOptionsBase { | ||
@@ -50,3 +52,9 @@ /** | ||
*/ | ||
impl?: (() => any) | undefined; | ||
impl?: { | ||
create?: ( | ||
req: express.Request, | ||
secretKey: string, | ||
) => { secret: string; token: string; validate: csrfValidateFunction }; | ||
validate?: csrfValidateFunction; | ||
} | undefined; | ||
/** | ||
@@ -53,0 +61,0 @@ * The name of the response header containing the CSRF token |
{ | ||
"name": "@types/lusca", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "TypeScript definitions for lusca", | ||
@@ -35,4 +35,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lusca", | ||
}, | ||
"typesPublisherContentHash": "552ed246bd717d090ced5f6aed8d3cdd3a78b28a65f7420c5f9b2b36baafa02d", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "e79e611194b145f338a73ab868be8f848d856b93843d430a9ef486de6752f8ca", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT | ||
* Last updated: Tue, 16 Apr 2024 21:08:07 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6453
93