
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@types/http-agent
Advanced tools
TypeScript definitions for http-agent
npm install --save @types/http-agent
This package contains type definitions for http-agent (https://github.com/indexzero/http-agent).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-agent.
import EventEmitter = require("events");
import request = require("request");
export type HttpAgentUrl = string | request.OptionsWithUri;
export type HttpAgentUrls = readonly HttpAgentUrl[];
export interface HttpAgentOptions extends request.CoreOptions {
urls?: HttpAgentUrls;
}
export function create(
host: string | HttpAgentOptions,
urls?: HttpAgentUrls,
options?: HttpAgentOptions,
): HttpAgent;
export interface HttpAgentPrototype {
readonly prevUrls: string;
readonly nextUrls: string;
}
export class HttpAgent extends EventEmitter {
prototype: HttpAgentPrototype;
constructor(host: string | HttpAgentOptions, urls?: HttpAgentUrls, options?: HttpAgentOptions);
url: string;
body: string;
port: number;
host: string;
options: request.OptionsWithUri;
addUrl(url: string): void;
start(): void;
stop(): void;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
back(): boolean | void;
next(url: string): void;
readonly prevUrls: string[];
readonly nextUrls: string[];
}
These definitions were written by Ivan Ergunov.
FAQs
TypeScript definitions for http-agent
We found that @types/http-agent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.