@types/request
Advanced tools
Comparing version 2.48.8 to 2.48.9
@@ -19,11 +19,11 @@ // Type definitions for request 2.48 | ||
import caseless = require('caseless'); | ||
import stream = require('stream'); | ||
import http = require('http'); | ||
import https = require('https'); | ||
import fs = require('fs'); | ||
import FormData = require('form-data'); | ||
import net = require('net'); | ||
import tough = require('tough-cookie'); | ||
import { Url } from 'url'; | ||
import caseless = require("caseless"); | ||
import stream = require("stream"); | ||
import http = require("http"); | ||
import https = require("https"); | ||
import fs = require("fs"); | ||
import FormData = require("form-data"); | ||
import net = require("net"); | ||
import tough = require("tough-cookie"); | ||
import { Url } from "url"; | ||
@@ -68,3 +68,6 @@ declare namespace request { | ||
initParams(uri: string, options?: TOptions, callback?: RequestCallback): RequiredUriUrl & TOptions; | ||
initParams(uriOrOpts: string | RequiredUriUrl & TOptions, callback?: RequestCallback): RequiredUriUrl & TOptions; | ||
initParams( | ||
uriOrOpts: string | RequiredUriUrl & TOptions, | ||
callback?: RequestCallback, | ||
): RequiredUriUrl & TOptions; | ||
@@ -78,5 +81,5 @@ forever(agentOptions: any, optionsArg: any): TRequest; | ||
interface DefaultUriUrlRequestApi<TRequest extends Request, | ||
TOptions extends CoreOptions, | ||
TUriUrlOptions> extends RequestAPI<TRequest, TOptions, TUriUrlOptions> { | ||
interface DefaultUriUrlRequestApi<TRequest extends Request, TOptions extends CoreOptions, TUriUrlOptions> | ||
extends RequestAPI<TRequest, TOptions, TUriUrlOptions> | ||
{ | ||
defaults(options: TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>; | ||
@@ -215,6 +218,8 @@ (callback?: RequestCallback): TRequest; | ||
chunked?: boolean | undefined; | ||
data?: Array<{ | ||
'content-type'?: string | undefined, | ||
body: MultipartBody | ||
}> | undefined; | ||
data?: | ||
| Array<{ | ||
"content-type"?: string | undefined; | ||
body: MultipartBody; | ||
}> | ||
| undefined; | ||
} | ||
@@ -246,9 +251,9 @@ | ||
on(event: string, listener: (...args: any[]) => void): this; | ||
on(event: 'request', listener: (req: http.ClientRequest) => void): this; | ||
on(event: 'response', listener: (resp: Response) => void): this; | ||
on(event: 'data', listener: (data: Buffer | string) => void): this; | ||
on(event: 'error', listener: (e: Error) => void): this; | ||
on(event: 'complete', listener: (resp: Response, body?: string | Buffer) => void): this; | ||
on(event: 'pipe', listener: (src: stream.Readable) => void): this; | ||
on(event: 'socket', listener: (src: net.Socket) => void): this; | ||
on(event: "request", listener: (req: http.ClientRequest) => void): this; | ||
on(event: "response", listener: (resp: Response) => void): this; | ||
on(event: "data", listener: (data: Buffer | string) => void): this; | ||
on(event: "error", listener: (e: Error) => void): this; | ||
on(event: "complete", listener: (resp: Response, body?: string | Buffer) => void): this; | ||
on(event: "pipe", listener: (src: stream.Readable) => void): this; | ||
on(event: "socket", listener: (src: net.Socket) => void): this; | ||
@@ -296,3 +301,3 @@ write(buffer: Buffer | string, cb?: (err?: Error) => void): boolean; | ||
callback?: RequestCallback | undefined; | ||
uri: Url & { href: string, pathname: string }; | ||
uri: Url & { href: string; pathname: string }; | ||
proxy: null | string | Url; | ||
@@ -374,3 +379,3 @@ tunnel: boolean; | ||
token_secret?: string | undefined; | ||
transport_method?: 'body' | 'header' | 'query' | undefined; | ||
transport_method?: "body" | "header" | "query" | undefined; | ||
verifier?: string | undefined; | ||
@@ -377,0 +382,0 @@ body_hash?: true | string | undefined; |
{ | ||
"name": "@types/request", | ||
"version": "2.48.8", | ||
"version": "2.48.9", | ||
"description": "TypeScript definitions for request", | ||
@@ -68,4 +68,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/request", | ||
}, | ||
"typesPublisherContentHash": "1d1a7d3a65e28ea707b27eb4b0425fb4bdc214cf0c834f393b6b4faa6ee714d1", | ||
"typeScriptVersion": "3.8" | ||
"typesPublisherContentHash": "a7b74d3ab56eb679a6842b3db6d24781c250685c5d2c7e667b22cbae2ee00426", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 01 Jan 2022 14:01:38 GMT | ||
* Dependencies: [@types/caseless](https://npmjs.com/package/@types/caseless), [@types/form-data](https://npmjs.com/package/@types/form-data), [@types/tough-cookie](https://npmjs.com/package/@types/tough-cookie), [@types/node](https://npmjs.com/package/@types/node) | ||
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT | ||
* Dependencies: [@types/caseless](https://npmjs.com/package/@types/caseless), [@types/form-data](https://npmjs.com/package/@types/form-data), [@types/node](https://npmjs.com/package/@types/node), [@types/tough-cookie](https://npmjs.com/package/@types/tough-cookie) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
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
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
20590
353