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.0 to 4.2.1

44

agent-base/index.d.ts

@@ -10,24 +10,24 @@ // Type definitions for agent-base 4.2

declare namespace Agent {
type AgentCallback = (
req?: any,
opts?: {
secureEndpoint: boolean;
}
) => void;
type AgentCallback = (
req?: any,
opts?: {
secureEndpoint: boolean;
}
) => void;
interface AgentOptions {
timeout?: number;
host?: string;
port?: number;
[key: string]: any;
}
interface AgentOptions {
timeout?: number;
host?: string;
port?: number;
[key: string]: any;
}
interface Agent extends EventEmitter {
_promisifiedCallback: boolean;
timeout: number | null;
options?: AgentOptions;
callback: AgentCallback;
addRequest: (req?: any, opts?: any) => void;
freeSocket: (socket: any, opts: any) => void;
}
interface Agent extends EventEmitter {
_promisifiedCallback: boolean;
timeout: number | null;
options?: AgentOptions;
callback: AgentCallback;
addRequest: (req?: any, opts?: any) => void;
freeSocket: (socket: any, opts: any) => void;
}
}

@@ -41,6 +41,6 @@

declare function Agent(
callback: Agent.AgentCallback,
opts?: Agent.AgentOptions
callback: Agent.AgentCallback,
opts?: Agent.AgentOptions
): Agent.Agent;
export = Agent;
{
"name": "@types/agent-base",
"version": "4.2.0",
"version": "4.2.1",
"description": "TypeScript definitions for agent-base",

@@ -14,13 +14,14 @@ "license": "MIT",

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/agent-base"
},
"scripts": {},
"dependencies": {
"@types/events": "*",
"@types/node": "*"
},
"typesPublisherContentHash": "27d40a9ec3b0c7ad6d7b898e03adca3bfeecaae867fd83292a875d59d2eab545",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "d93f05b1fe3a073da02e8e85d85df962e7cd4a2b903b60a77b33704f4accf706",
"typeScriptVersion": "3.0"
}

@@ -8,10 +8,10 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base.
Additional Details
* Last updated: Thu, 02 Aug 2018 01:35:11 GMT
* Dependencies: events, node
### Additional Details
* Last updated: Fri, 15 May 2020 04:08:41 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Christopher Quadflieg <https://github.com/Shinigami92>.
These definitions were written by [Christopher Quadflieg](https://github.com/Shinigami92).

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