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

@types/basic-auth

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/basic-auth - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

4

basic-auth/index.d.ts

@@ -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

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