@types/agent-base
Advanced tools
Comparing version 4.2.5 to 5.0.0
{ | ||
"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." | ||
} |
@@ -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! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1761
3
0
2
1
1
3
1
1
+ Addedagent-base@*
+ Addedagent-base@7.1.3(transitive)
- Removed@types/node@*
- Removed@types/node@22.10.5(transitive)
- Removedundici-types@6.20.0(transitive)