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.6 to 1.1.7

9

basic-auth/index.d.ts
/// <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 @@

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