@types/express-unless
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -5,2 +5,3 @@ // Type definitions for express-unless 0.5 | ||
// Joao Vieira <https://github.com/joaovieira> | ||
// Michal Kaminski <https://github.com/michal-b-kaminski> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -15,7 +16,10 @@ // TypeScript Version: 2.3 | ||
declare namespace unless { | ||
type pathFilter = string | RegExp | { url: string | RegExp, methods?: string[], method?: string | string[] }; | ||
export interface Options { | ||
custom?: (req: express.Request) => boolean; | ||
path?: string | string[]; | ||
path?: pathFilter | pathFilter[]; | ||
ext?: string | string[]; | ||
method?: string | string[]; | ||
useOriginalUrl?: boolean; | ||
} | ||
@@ -22,0 +26,0 @@ export interface RequestHandler extends express.RequestHandler { |
{ | ||
"name": "@types/express-unless", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "TypeScript definitions for express-unless", | ||
@@ -16,2 +16,7 @@ "license": "MIT", | ||
"githubUsername": "joaovieira" | ||
}, | ||
{ | ||
"name": "Michal Kaminski", | ||
"url": "https://github.com/michal-b-kaminski", | ||
"githubUsername": "michal-b-kaminski" | ||
} | ||
@@ -29,4 +34,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "2656c9e73d53466f17235653d54df28f82a68bc58b72baadeb358d389c47c705", | ||
"typesPublisherContentHash": "7d396ca64d416b0865cc6b4ac750b761fa8da8f10cda57c189064cdf98d9f4d6", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 06 Feb 2019 00:12:13 GMT | ||
* Last updated: Wed, 13 Feb 2019 20:02:16 GMT | ||
* Dependencies: @types/express | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Wonshik Kim <https://github.com/wokim>, Joao Vieira <https://github.com/joaovieira>. | ||
These definitions were written by Wonshik Kim <https://github.com/wokim>, Joao Vieira <https://github.com/joaovieira>, Michal Kaminski <https://github.com/michal-b-kaminski>. |
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
3905
24