undici-types
Advanced tools
Comparing version 6.19.1 to 6.19.2
@@ -5,3 +5,3 @@ // Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/FormData.ts (MIT) | ||
import { File } from './file' | ||
import { SpecIterator, SpecIterableIterator } from './fetch' | ||
import { SpecIterableIterator } from './fetch' | ||
@@ -8,0 +8,0 @@ /** |
@@ -45,3 +45,3 @@ import Dispatcher from'./dispatcher' | ||
var RetryHandler: typeof import ('./retry-handler').default | ||
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor | ||
var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor | ||
var BalancedPool: typeof import('./balanced-pool').default; | ||
@@ -71,7 +71,3 @@ var Client: typeof import('./client').default; | ||
var caches: typeof import('./cache').caches; | ||
var interceptors: { | ||
dump: typeof import('./interceptors').dump; | ||
retry: typeof import('./interceptors').retry; | ||
redirect: typeof import('./interceptors').redirect; | ||
} | ||
var interceptors: typeof import('./interceptors').default; | ||
} |
import Dispatcher from "./dispatcher"; | ||
import RetryHandler from "./retry-handler"; | ||
export type DumpInterceptorOpts = { maxSize?: number } | ||
export type RetryInterceptorOpts = RetryHandler.RetryOptions | ||
export type RedirectInterceptorOpts = { maxRedirections?: number } | ||
export default Interceptors; | ||
export declare function createRedirectInterceptor (opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
export declare function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
export declare function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
export declare function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
declare namespace Interceptors { | ||
export type DumpInterceptorOpts = { maxSize?: number } | ||
export type RetryInterceptorOpts = RetryHandler.RetryOptions | ||
export type RedirectInterceptorOpts = { maxRedirections?: number } | ||
export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor | ||
} |
{ | ||
"name": "undici-types", | ||
"version": "6.19.1", | ||
"version": "6.19.2", | ||
"description": "A stand-alone types package for Undici", | ||
@@ -5,0 +5,0 @@ "homepage": "https://undici.nodejs.org", |
@@ -1,5 +0,2 @@ | ||
import Agent from './agent' | ||
import buildConnector from './connector'; | ||
import Dispatcher from './dispatcher' | ||
import { IncomingHttpHeaders } from './header' | ||
import RetryHandler from './retry-handler' | ||
@@ -6,0 +3,0 @@ |
@@ -58,5 +58,3 @@ // These types are not exported, and are only used internally | ||
signedness: 'signed' | 'unsigned', | ||
opts?: ConvertToIntOpts, | ||
prefix: string, | ||
argument: string | ||
opts?: ConvertToIntOpts | ||
): number | ||
@@ -63,0 +61,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
84225
2061