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

@types/lusca

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/lusca - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

62

lusca/index.d.ts

@@ -17,24 +17,24 @@ // Type definitions for lusca 1.7

interface LuscaOptions {
csrf?: csrfOptions | boolean;
csp?: cspOptions | false;
xframe?: string | false;
p3p?: string | false;
hsts?: hstsOptions | false;
xssProtection?: xssProtectionOptions | boolean;
nosniff?: boolean;
referrerPolicy?: string | false;
csrf?: csrfOptions | boolean | undefined;
csp?: cspOptions | false | undefined;
xframe?: string | false | undefined;
p3p?: string | false | undefined;
hsts?: hstsOptions | false | undefined;
xssProtection?: xssProtectionOptions | boolean | undefined;
nosniff?: boolean | undefined;
referrerPolicy?: string | false | undefined;
}
interface cspOptions {
policy?: string | object | Array<object | string>;
reportOnly?: boolean;
reportUri?: string;
styleNonce?: boolean;
scriptNonce?: boolean;
policy?: string | object | Array<object | string> | undefined;
reportOnly?: boolean | undefined;
reportUri?: string | undefined;
styleNonce?: boolean | undefined;
scriptNonce?: boolean | undefined;
}
interface hstsOptions {
maxAge?: number;
includeSubDomains?: boolean;
preload?: boolean;
maxAge?: number | undefined;
includeSubDomains?: boolean | undefined;
preload?: boolean | undefined;
}

@@ -49,11 +49,11 @@

*/
key?: string;
key?: string | undefined;
/**
* @default '_csrfSecret'
*/
secret?: string;
secret?: string | undefined;
/**
* An object with create/validate methods for custom tokens
*/
impl?: () => any;
impl?: (() => any) | undefined;
/**

@@ -63,3 +63,3 @@ * The name of the response header containing the CSRF token

*/
header?: string;
header?: string | undefined;
}

@@ -69,4 +69,4 @@

cookie?: string | {
options?: object;
};
options?: object | undefined;
} | undefined;
angular: true;

@@ -78,5 +78,5 @@ }

name: string;
options?: object;
};
angular?: false;
options?: object | undefined;
} | undefined;
angular?: false | undefined;
}

@@ -87,9 +87,9 @@

interface csrfOptionsBlocklist {
blocklist?: string[];
allowlist?: never;
blocklist?: string[] | undefined;
allowlist?: never | undefined;
}
interface csrfOptionsAllowlist {
blocklist?: never;
allowlist?: string[];
blocklist?: never | undefined;
allowlist?: string[] | undefined;
}

@@ -100,4 +100,4 @@

interface xssProtectionOptions {
enabled?: boolean;
mode?: string;
enabled?: boolean | undefined;
mode?: string | undefined;
}

@@ -104,0 +104,0 @@

{
"name": "@types/lusca",
"version": "1.7.0",
"version": "1.7.1",
"description": "TypeScript definitions for lusca",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lusca",
"license": "MIT",

@@ -34,4 +35,4 @@ "contributors": [

},
"typesPublisherContentHash": "c4b0f7d66572eb3d9b8fcde25f23e48d7baeee94a5b56b227ba8cb5da6a03ef9",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "9f88af3cfb83d33ffb2baf03365f39799a81f5fdce1b2b17d92415b664b74b01",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 25 Feb 2021 22:26:36 GMT
* Last updated: Thu, 08 Jul 2021 16:23:53 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express)

@@ -14,0 +14,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