@types/basic-auth
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -8,4 +8,4 @@ // Type definitions for basic-auth 1.1 | ||
import * as http from 'http'; | ||
import * as http2 from 'http2'; | ||
import * as http from "http"; | ||
import * as http2 from "http2"; | ||
@@ -12,0 +12,0 @@ // See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L49 |
{ | ||
"name": "@types/basic-auth", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "TypeScript definitions for basic-auth", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/basic-auth", | ||
"license": "MIT", | ||
@@ -34,4 +35,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "773434e2dc6f9a51d6b1e2d12f428e2074fef047e15eb37af841efc638ac8a14", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "6f5d47089016ad73fb166da8e1d14fd96931c89d681ccb2cd5908fd319310dff", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,5 +9,35 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/basic-auth. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/basic-auth/index.d.ts) | ||
````ts | ||
// Type definitions for basic-auth 1.1 | ||
// Project: https://github.com/jshttp/basic-auth | ||
// Definitions by: Clément Bourgeois <https://github.com/moonpyk>, Vesa Poikajärvi <https://github.com/vesse>, Ryo Ota <https://github.com/nwtgck> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/// <reference types="node" /> | ||
import * as http from "http"; | ||
import * as http2 from "http2"; | ||
// 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 namespace auth { | ||
interface BasicAuthResult { | ||
name: string; | ||
pass: string; | ||
} | ||
/** | ||
* Parse basic auth to object. | ||
*/ | ||
function parse(authorizationHeader: string): BasicAuthResult | undefined; | ||
} | ||
export = auth; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 03 Feb 2020 17:24:23 GMT | ||
* Last updated: Fri, 15 Sep 2023 19:06:48 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -17,2 +47,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Clément Bourgeois (https://github.com/moonpyk), Vesa Poikajärvi (https://github.com/vesse), and Ryo Ota (https://github.com/nwtgck). | ||
These definitions were written by [Clément Bourgeois](https://github.com/moonpyk), [Vesa Poikajärvi](https://github.com/vesse), and [Ryo Ota](https://github.com/nwtgck). |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4698
0
47