undici-types 6.19.1 → 6.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/formdata.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /// <reference types="node" />
3
3
 
4
4
  import { File } from './file'
5
- import { SpecIterator, SpecIterableIterator } from './fetch'
5
+ import { SpecIterableIterator } from './fetch'
6
6
 
7
7
  /**
8
8
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
package/index.d.ts CHANGED
@@ -42,7 +42,7 @@ declare namespace Undici {
42
42
  var RedirectHandler: typeof import ('./handlers').RedirectHandler
43
43
  var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
44
44
  var RetryHandler: typeof import ('./retry-handler').default
45
- var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
45
+ var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
46
46
  var BalancedPool: typeof import('./balanced-pool').default;
47
47
  var Client: typeof import('./client').default;
48
48
  var buildConnector: typeof import('./connector').default;
@@ -67,9 +67,5 @@ declare namespace Undici {
67
67
  var File: typeof import('./file').File;
68
68
  var FileReader: typeof import('./filereader').FileReader;
69
69
  var caches: typeof import('./cache').caches;
70
- var interceptors: {
71
- dump: typeof import('./interceptors').dump;
72
- retry: typeof import('./interceptors').retry;
73
- redirect: typeof import('./interceptors').redirect;
74
- }
70
+ var interceptors: typeof import('./interceptors').default;
75
71
  }
package/interceptors.d.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  import Dispatcher from "./dispatcher";
2
2
  import RetryHandler from "./retry-handler";
3
3
 
4
- export type DumpInterceptorOpts = { maxSize?: number }
5
- export type RetryInterceptorOpts = RetryHandler.RetryOptions
6
- export type RedirectInterceptorOpts = { maxRedirections?: number }
4
+ export default Interceptors;
7
5
 
8
- export declare function createRedirectInterceptor (opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
9
- export declare function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
10
- export declare function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
11
- export declare function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
6
+ declare namespace Interceptors {
7
+ export type DumpInterceptorOpts = { maxSize?: number }
8
+ export type RetryInterceptorOpts = RetryHandler.RetryOptions
9
+ export type RedirectInterceptorOpts = { maxRedirections?: number }
10
+
11
+ export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
12
+ export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
13
+ export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
14
+ export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "6.19.1",
3
+ "version": "6.19.2",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
package/retry-agent.d.ts CHANGED
@@ -1,7 +1,4 @@
1
- import Agent from './agent'
2
- import buildConnector from './connector';
3
1
  import Dispatcher from './dispatcher'
4
- import { IncomingHttpHeaders } from './header'
5
2
  import RetryHandler from './retry-handler'
6
3
 
7
4
  export default RetryAgent
package/webidl.d.ts CHANGED
@@ -55,9 +55,7 @@ interface WebidlUtil {
55
55
  V: unknown,
56
56
  bitLength: number,
57
57
  signedness: 'signed' | 'unsigned',
58
- opts?: ConvertToIntOpts,
59
- prefix: string,
60
- argument: string
58
+ opts?: ConvertToIntOpts
61
59
  ): number
62
60
 
63
61
  /**