undici-types 6.18.2 → 6.19.1
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/errors.d.ts +21 -0
- package/index.d.ts +2 -1
- package/package.json +1 -1
package/errors.d.ts
CHANGED
|
@@ -125,4 +125,25 @@ declare namespace Errors {
|
|
|
125
125
|
name: 'ResponseExceededMaxSizeError';
|
|
126
126
|
code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE';
|
|
127
127
|
}
|
|
128
|
+
|
|
129
|
+
export class RequestRetryError extends UndiciError {
|
|
130
|
+
constructor (
|
|
131
|
+
message: string,
|
|
132
|
+
statusCode: number,
|
|
133
|
+
headers?: IncomingHttpHeaders | string[] | null,
|
|
134
|
+
body?: null | Record<string, any> | string
|
|
135
|
+
);
|
|
136
|
+
name: 'RequestRetryError';
|
|
137
|
+
code: 'UND_ERR_REQ_RETRY';
|
|
138
|
+
statusCode: number;
|
|
139
|
+
data: {
|
|
140
|
+
count: number;
|
|
141
|
+
};
|
|
142
|
+
headers: Record<string, string | string[]>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class SecureProxyConnectionError extends UndiciError {
|
|
146
|
+
name: 'SecureProxyConnectionError';
|
|
147
|
+
code: 'UND_ERR_PRX_TLS';
|
|
148
|
+
}
|
|
128
149
|
}
|
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import EnvHttpProxyAgent from './env-http-proxy-agent'
|
|
|
18
18
|
import RetryHandler from'./retry-handler'
|
|
19
19
|
import RetryAgent from'./retry-agent'
|
|
20
20
|
import { request, pipeline, stream, connect, upgrade } from './api'
|
|
21
|
+
import interceptors from './interceptors'
|
|
21
22
|
|
|
22
23
|
export * from './util'
|
|
23
24
|
export * from './cookies'
|
|
@@ -32,7 +33,7 @@ export * from './content-type'
|
|
|
32
33
|
export * from './cache'
|
|
33
34
|
export { Interceptable } from './mock-interceptor'
|
|
34
35
|
|
|
35
|
-
export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent }
|
|
36
|
+
export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent }
|
|
36
37
|
export default Undici
|
|
37
38
|
|
|
38
39
|
declare namespace Undici {
|