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

@types/agent-base

Package Overview
Dependencies
Maintainers
0
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.5 to 5.0.0

25

agent-base/package.json
{
"name": "@types/agent-base",
"version": "4.2.5",
"description": "TypeScript definitions for agent-base",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/agent-base",
"license": "MIT",
"contributors": [
{
"name": "Christopher Quadflieg",
"githubUsername": "Shinigami92",
"url": "https://github.com/Shinigami92"
}
],
"version": "5.0.0",
"description": "Stub TypeScript definitions entry for agent-base, which provides its own types definitions",
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/agent-base"
},
"scripts": {},
"license": "MIT",
"dependencies": {
"@types/node": "*"
"agent-base": "*"
},
"typesPublisherContentHash": "3cbcaf57531611e052e45ab1d7379919c81969182c7fd15679f6c2eaa1f7d5e3",
"typeScriptVersion": "4.5"
"deprecated": "This is a stub types definition. agent-base provides its own type definitions, so you do not need this installed."
}

59

agent-base/README.md

@@ -1,58 +0,3 @@

# Installation
> `npm install --save @types/agent-base`
This is a stub types definition for @types/agent-base (https://github.com/TooTallNate/proxy-agents#readme).
# Summary
This package contains type definitions for agent-base (https://github.com/TooTallNate/node-agent-base#readme).
# Details
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
/// <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: Mon, 06 Nov 2023 22:41:04 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Christopher Quadflieg](https://github.com/Shinigami92).
agent-base provides its own type definitions, so you don't need @types/agent-base installed!
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