Socket
Socket
Sign inDemoInstall

http-cookie-agent

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-cookie-agent - npm Package Compare versions

Comparing version 6.0.4 to 6.0.5

18

http/index.d.ts

@@ -16,13 +16,11 @@ import type http from 'node:http';

export function createCookieAgent<
BaseAgent extends http.Agent = http.Agent,
BaseAgentOptions = unknown,
BaseAgentConstructorRestParams extends unknown[] = unknown[],
>(
BaseAgent: new (options: BaseAgentOptions, ...rest: BaseAgentConstructorRestParams) => BaseAgent,
): new (
options: BaseAgentOptions & CookieAgentOptions,
...rest: BaseAgentConstructorRestParams
) => CookieAgent<BaseAgent>;
type WithCookieAgentOptions<T> = T extends http.AgentOptions ? T & CookieAgentOptions : T;
type ConstructorParams<Params> = {
[Index in keyof Params]: WithCookieAgentOptions<Params[Index]>;
} & { length: Params['length'] };
export function createCookieAgent<BaseAgent extends http.Agent = http.Agent, Params extends unknown[] = unknown[]>(
BaseAgent: new (...rest: Params) => BaseAgent,
): new (...rest: ConstructorParams<Params>) => CookieAgent<BaseAgent>;
export const HttpCookieAgent: new (options: http.AgentOptions & CookieAgentOptions) => CookieAgent<http.Agent>;

@@ -29,0 +27,0 @@ export const HttpsCookieAgent: new (options: https.AgentOptions & CookieAgentOptions) => CookieAgent<https.Agent>;

{
"name": "http-cookie-agent",
"version": "6.0.4",
"version": "6.0.5",
"description": "Allows cookies with every Node.js HTTP clients.",

@@ -5,0 +5,0 @@ "keywords": [

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