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

@types/koa-csrf

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/koa-csrf - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

12

koa-csrf/index.d.ts

@@ -34,9 +34,9 @@ // Type definitions for koa-csrf 3.0

new (opts?: {
invalidSessionSecretMessage?: string;
invalidSessionSecretStatusCode?: number;
invalidTokenMessage?: string;
invalidTokenStatusCode?: number;
excludedMethods?: string[];
disableQuery?: boolean;
invalidSessionSecretMessage?: string | undefined;
invalidSessionSecretStatusCode?: number | undefined;
invalidTokenMessage?: string | undefined;
invalidTokenStatusCode?: number | undefined;
excludedMethods?: string[] | undefined;
disableQuery?: boolean | undefined;
}): Middleware;
};
{
"name": "@types/koa-csrf",
"version": "3.0.1",
"version": "3.0.2",
"description": "TypeScript definitions for koa-csrf",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-csrf",
"license": "MIT",

@@ -14,5 +15,7 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/koa-csrf"
},

@@ -23,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "ab7e6a4384c81d99c5d94f35f0db68c61c7837b242c2cf0bc42134f27b1c77c1",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "fbd8c9daadc6d321a133bf1d3bf7652017352f2d4d85638eec0ec169cd82059b",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,55 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-csrf
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-csrf.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-csrf/index.d.ts)
````ts
// Type definitions for koa-csrf 3.0
// Project: https://github.com/koajs/csrf
// Definitions by: Haskaalo <https://github.com/haskaalo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Tue, 10 Jul 2018 01:28:58 GMT
* Dependencies: koa
/* =================== USAGE ===================
import * as koaCsrf from 'koa-csrf';
import * as Koa from "koa";
const app = new Koa();
app.use(new koaCsrf({
invalidSessionSecretMessage: 'Invalid session secret',
invalidSessionSecretStatusCode: 403,
invalidTokenMessage: 'Invalid CSRF token',
invalidTokenStatusCode: 403,
excludedMethods: [ 'GET', 'HEAD', 'OPTIONS' ],
disableQuery: false
}));
=============================================== */
export = koaCsrf;
import { Middleware } from 'koa';
declare module "koa" {
interface Context {
csrf: string;
}
}
declare const koaCsrf: {
new (opts?: {
invalidSessionSecretMessage?: string | undefined;
invalidSessionSecretStatusCode?: number | undefined;
invalidTokenMessage?: string | undefined;
invalidTokenStatusCode?: number | undefined;
excludedMethods?: string[] | undefined;
disableQuery?: boolean | undefined;
}): Middleware;
};
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 16:23:20 GMT
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)
* Global values: none
# Credits
These definitions were written by Haskaalo <https://github.com/haskaalo>.
These definitions were written by [Haskaalo](https://github.com/haskaalo).

Sorry, the diff of this file is not supported yet

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