@types/basic-auth
Advanced tools
Comparing version 1.1.6 to 1.1.7
/// <reference types="node" /> | ||
import * as http from "http"; | ||
import * as http2 from "http2"; | ||
interface Request { | ||
headers?: { | ||
authorization?: string; | ||
}; | ||
} | ||
// See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L49 | ||
declare function auth(req: http.IncomingMessage | http2.Http2ServerRequest): auth.BasicAuthResult | undefined; | ||
declare function auth(req: Request): auth.BasicAuthResult | undefined; | ||
@@ -9,0 +12,0 @@ declare namespace auth { |
{ | ||
"name": "@types/basic-auth", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "TypeScript definitions for basic-auth", | ||
@@ -35,4 +35,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/basic-auth", | ||
}, | ||
"typesPublisherContentHash": "4e70d7c9a8a7254a124cd04270b477d939bb36e56f3fdc1c98d74519c3f338be", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "597330572a6819a47a5252b081579fdf450f83ceadb02b7a5b9995dc5d914f21", | ||
"typeScriptVersion": "4.6" | ||
} |
@@ -13,7 +13,10 @@ # Installation | ||
import * as http from "http"; | ||
import * as http2 from "http2"; | ||
interface Request { | ||
headers?: { | ||
authorization?: string; | ||
}; | ||
} | ||
// See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L49 | ||
declare function auth(req: http.IncomingMessage | http2.Http2ServerRequest): auth.BasicAuthResult | undefined; | ||
declare function auth(req: Request): auth.BasicAuthResult | undefined; | ||
@@ -37,3 +40,3 @@ declare namespace auth { | ||
### Additional Details | ||
* Last updated: Mon, 06 Nov 2023 22:41:04 GMT | ||
* Last updated: Tue, 26 Dec 2023 18:35:26 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -40,0 +43,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
19
44
4014