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

@types/agent-base

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/agent-base - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

8

agent-base/index.d.ts

@@ -18,5 +18,5 @@ // Type definitions for agent-base 4.2

interface AgentOptions {
timeout?: number;
host?: string;
port?: number;
timeout?: number | undefined;
host?: string | undefined;
port?: number | undefined;
[key: string]: any;

@@ -28,3 +28,3 @@ }

timeout: number | null;
options?: AgentOptions;
options?: AgentOptions | undefined;
callback: AgentCallback;

@@ -31,0 +31,0 @@ addRequest: (req?: any, opts?: any) => void;

{
"name": "@types/agent-base",
"version": "4.2.1",
"version": "4.2.2",
"description": "TypeScript definitions for agent-base",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "d93f05b1fe3a073da02e8e85d85df962e7cd4a2b903b60a77b33704f4accf706",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "f7c1c8e886d0ae16f561ff9f823b92b18b79833b370943976a8912e51fb299b0",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,53 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base/index.d.ts)
````ts
// Type definitions for agent-base 4.2
// Project: https://github.com/TooTallNate/node-agent-base#readme
// Definitions by: Christopher Quadflieg <https://github.com/Shinigami92>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { EventEmitter } from 'events';
declare namespace Agent {
type AgentCallback = (
req?: any,
opts?: {
secureEndpoint: boolean;
}
) => void;
interface AgentOptions {
timeout?: number | undefined;
host?: string | undefined;
port?: number | undefined;
[key: string]: any;
}
interface Agent extends EventEmitter {
_promisifiedCallback: boolean;
timeout: number | null;
options?: AgentOptions | undefined;
callback: AgentCallback;
addRequest: (req?: any, opts?: any) => void;
freeSocket: (socket: any, opts: any) => void;
}
}
/**
* Base `http.Agent` implementation.
* No pooling/keep-alive is implemented by default.
*/
declare function Agent(opts?: Agent.AgentOptions): Agent.Agent;
declare function Agent(
callback: Agent.AgentCallback,
opts?: Agent.AgentOptions
): Agent.Agent;
export = Agent;
````
### Additional Details
* Last updated: Fri, 15 May 2020 04:08:41 GMT
* Last updated: Tue, 06 Jul 2021 18:05:31 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +62,0 @@ * Global values: none

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