cdk-common 2.0.935 → 2.0.936
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/.jsii +2 -2
- package/lib/main.js +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +78 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +3 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +6 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/errors.d.ts +21 -0
- package/node_modules/@types/concat-stream/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/undici-types/index.d.ts +4 -7
- package/node_modules/@types/concat-stream/node_modules/undici-types/interceptors.d.ts +11 -7
- package/node_modules/@types/concat-stream/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/concat-stream/node_modules/undici-types/retry-agent.d.ts +0 -3
- package/node_modules/@types/concat-stream/node_modules/undici-types/webidl.d.ts +1 -3
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +78 -0
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +3 -0
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +6 -0
- package/node_modules/@types/form-data/node_modules/undici-types/errors.d.ts +21 -0
- package/node_modules/@types/form-data/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/undici-types/index.d.ts +4 -7
- package/node_modules/@types/form-data/node_modules/undici-types/interceptors.d.ts +11 -7
- package/node_modules/@types/form-data/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/form-data/node_modules/undici-types/retry-agent.d.ts +0 -3
- package/node_modules/@types/form-data/node_modules/undici-types/webidl.d.ts +1 -3
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -11142,6 +11142,6 @@
|
|
|
11142
11142
|
"symbolId": "src/main:LambdaArmFunctionProps"
|
|
11143
11143
|
}
|
|
11144
11144
|
},
|
|
11145
|
-
"version": "2.0.
|
|
11146
|
-
"fingerprint": "
|
|
11145
|
+
"version": "2.0.936",
|
|
11146
|
+
"fingerprint": "9kQr+ZXgQP1yfsjNsIEoGOH1OOnPRMKDXPBJUGv66qs="
|
|
11147
11147
|
}
|
package/lib/main.js
CHANGED
|
@@ -41,5 +41,5 @@ class LambdaArmFunction extends constructs_1.Construct {
|
|
|
41
41
|
}
|
|
42
42
|
exports.LambdaArmFunction = LambdaArmFunction;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.
|
|
44
|
+
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.936" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxLQUFLLENBQUMsT0FBTyxLQUFLLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLENBQUM7WUFDakQsR0FBRyxDQUFDLFdBQVcsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQ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lvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 16 Aug 2024 18:09:07 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -103,6 +103,84 @@ declare global {
|
|
|
103
103
|
};
|
|
104
104
|
// #endregion borrowed
|
|
105
105
|
|
|
106
|
+
// #region Storage
|
|
107
|
+
/**
|
|
108
|
+
* This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.
|
|
109
|
+
*
|
|
110
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
|
|
111
|
+
*/
|
|
112
|
+
interface Storage {
|
|
113
|
+
/**
|
|
114
|
+
* Returns the number of key/value pairs.
|
|
115
|
+
*
|
|
116
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
|
|
117
|
+
*/
|
|
118
|
+
readonly length: number;
|
|
119
|
+
/**
|
|
120
|
+
* Removes all key/value pairs, if there are any.
|
|
121
|
+
*
|
|
122
|
+
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
123
|
+
*
|
|
124
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
|
|
125
|
+
*/
|
|
126
|
+
clear(): void;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the current value associated with the given key, or null if the given key does not exist.
|
|
129
|
+
*
|
|
130
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
|
|
131
|
+
*/
|
|
132
|
+
getItem(key: string): string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
|
|
135
|
+
*
|
|
136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
|
|
137
|
+
*/
|
|
138
|
+
key(index: number): string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
|
|
141
|
+
*
|
|
142
|
+
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
143
|
+
*
|
|
144
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
|
|
145
|
+
*/
|
|
146
|
+
removeItem(key: string): void;
|
|
147
|
+
/**
|
|
148
|
+
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
|
|
149
|
+
*
|
|
150
|
+
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
|
|
151
|
+
*
|
|
152
|
+
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
153
|
+
*
|
|
154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
|
|
155
|
+
*/
|
|
156
|
+
setItem(key: string, value: string): void;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
var Storage: typeof globalThis extends { onmessage: any; Storage: infer T } ? T
|
|
160
|
+
: {
|
|
161
|
+
prototype: Storage;
|
|
162
|
+
new(): Storage;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
|
|
167
|
+
* Data is stored unencrypted in the file specified by the `--localstorage-file` CLI flag.
|
|
168
|
+
* Any modification of this data outside of the Web Storage API is not supported.
|
|
169
|
+
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
170
|
+
* @since v22.4.0
|
|
171
|
+
*/
|
|
172
|
+
var localStorage: Storage;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage).
|
|
176
|
+
* Data is stored in memory, with a storage quota of 10 MB.
|
|
177
|
+
* Any modification of this data outside of the Web Storage API is not supported.
|
|
178
|
+
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
179
|
+
* @since v22.4.0
|
|
180
|
+
*/
|
|
181
|
+
var sessionStorage: Storage;
|
|
182
|
+
// #endregion Storage
|
|
183
|
+
|
|
106
184
|
// #region Disposable
|
|
107
185
|
interface SymbolConstructor {
|
|
108
186
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.4.0",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
},
|
|
211
211
|
"scripts": {},
|
|
212
212
|
"dependencies": {
|
|
213
|
-
"undici-types": "~6.
|
|
213
|
+
"undici-types": "~6.19.2"
|
|
214
214
|
},
|
|
215
|
-
"typesPublisherContentHash": "
|
|
215
|
+
"typesPublisherContentHash": "f22f2e87b11a05781ab2a2c4b7812aa834cf70e01e9db42c5288e6cc3f15fd47",
|
|
216
216
|
"typeScriptVersion": "4.8"
|
|
217
217
|
}
|
|
@@ -843,6 +843,7 @@ declare module "tls" {
|
|
|
843
843
|
ciphers?: string | undefined;
|
|
844
844
|
/**
|
|
845
845
|
* Name of an OpenSSL engine which can provide the client certificate.
|
|
846
|
+
* @deprecated
|
|
846
847
|
*/
|
|
847
848
|
clientCertEngine?: string | undefined;
|
|
848
849
|
/**
|
|
@@ -885,12 +886,14 @@ declare module "tls" {
|
|
|
885
886
|
/**
|
|
886
887
|
* Name of an OpenSSL engine to get private key from. Should be used
|
|
887
888
|
* together with privateKeyIdentifier.
|
|
889
|
+
* @deprecated
|
|
888
890
|
*/
|
|
889
891
|
privateKeyEngine?: string | undefined;
|
|
890
892
|
/**
|
|
891
893
|
* Identifier of a private key managed by an OpenSSL engine. Should be
|
|
892
894
|
* used together with privateKeyEngine. Should not be set together with
|
|
893
895
|
* key, because both options define a private key in different ways.
|
|
896
|
+
* @deprecated
|
|
894
897
|
*/
|
|
895
898
|
privateKeyIdentifier?: string | undefined;
|
|
896
899
|
/**
|
|
@@ -1480,6 +1480,12 @@ declare module "util" {
|
|
|
1480
1480
|
* Whether this command accepts positional arguments.
|
|
1481
1481
|
*/
|
|
1482
1482
|
allowPositionals?: boolean | undefined;
|
|
1483
|
+
/**
|
|
1484
|
+
* If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`.
|
|
1485
|
+
* @default false
|
|
1486
|
+
* @since v22.4.0
|
|
1487
|
+
*/
|
|
1488
|
+
allowNegative?: boolean | undefined;
|
|
1483
1489
|
/**
|
|
1484
1490
|
* Return the parsed tokens. This is useful for extending the built-in behavior,
|
|
1485
1491
|
* from adding additional checks through to reprocessing the tokens in different ways.
|
|
@@ -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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
|
|
4
4
|
import { File } from './file'
|
|
5
|
-
import {
|
|
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.
|
|
@@ -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 {
|
|
@@ -41,7 +42,7 @@ declare namespace Undici {
|
|
|
41
42
|
var RedirectHandler: typeof import ('./handlers').RedirectHandler
|
|
42
43
|
var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
|
|
43
44
|
var RetryHandler: typeof import ('./retry-handler').default
|
|
44
|
-
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
|
|
45
|
+
var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
|
|
45
46
|
var BalancedPool: typeof import('./balanced-pool').default;
|
|
46
47
|
var Client: typeof import('./client').default;
|
|
47
48
|
var buildConnector: typeof import('./connector').default;
|
|
@@ -66,9 +67,5 @@ declare namespace Undici {
|
|
|
66
67
|
var File: typeof import('./file').File;
|
|
67
68
|
var FileReader: typeof import('./filereader').FileReader;
|
|
68
69
|
var caches: typeof import('./cache').caches;
|
|
69
|
-
var interceptors:
|
|
70
|
-
dump: typeof import('./interceptors').dump;
|
|
71
|
-
retry: typeof import('./interceptors').retry;
|
|
72
|
-
redirect: typeof import('./interceptors').redirect;
|
|
73
|
-
}
|
|
70
|
+
var interceptors: typeof import('./interceptors').default;
|
|
74
71
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import Dispatcher from "./dispatcher";
|
|
2
2
|
import RetryHandler from "./retry-handler";
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
export type RetryInterceptorOpts = RetryHandler.RetryOptions
|
|
6
|
-
export type RedirectInterceptorOpts = { maxRedirections?: number }
|
|
4
|
+
export default Interceptors;
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
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
|
+
}
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 16 Aug 2024 18:09:07 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -103,6 +103,84 @@ declare global {
|
|
|
103
103
|
};
|
|
104
104
|
// #endregion borrowed
|
|
105
105
|
|
|
106
|
+
// #region Storage
|
|
107
|
+
/**
|
|
108
|
+
* This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.
|
|
109
|
+
*
|
|
110
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
|
|
111
|
+
*/
|
|
112
|
+
interface Storage {
|
|
113
|
+
/**
|
|
114
|
+
* Returns the number of key/value pairs.
|
|
115
|
+
*
|
|
116
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
|
|
117
|
+
*/
|
|
118
|
+
readonly length: number;
|
|
119
|
+
/**
|
|
120
|
+
* Removes all key/value pairs, if there are any.
|
|
121
|
+
*
|
|
122
|
+
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
123
|
+
*
|
|
124
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
|
|
125
|
+
*/
|
|
126
|
+
clear(): void;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the current value associated with the given key, or null if the given key does not exist.
|
|
129
|
+
*
|
|
130
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
|
|
131
|
+
*/
|
|
132
|
+
getItem(key: string): string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
|
|
135
|
+
*
|
|
136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
|
|
137
|
+
*/
|
|
138
|
+
key(index: number): string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
|
|
141
|
+
*
|
|
142
|
+
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
143
|
+
*
|
|
144
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
|
|
145
|
+
*/
|
|
146
|
+
removeItem(key: string): void;
|
|
147
|
+
/**
|
|
148
|
+
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
|
|
149
|
+
*
|
|
150
|
+
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
|
|
151
|
+
*
|
|
152
|
+
* Dispatches a storage event on Window objects holding an equivalent Storage object.
|
|
153
|
+
*
|
|
154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
|
|
155
|
+
*/
|
|
156
|
+
setItem(key: string, value: string): void;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
var Storage: typeof globalThis extends { onmessage: any; Storage: infer T } ? T
|
|
160
|
+
: {
|
|
161
|
+
prototype: Storage;
|
|
162
|
+
new(): Storage;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
|
|
167
|
+
* Data is stored unencrypted in the file specified by the `--localstorage-file` CLI flag.
|
|
168
|
+
* Any modification of this data outside of the Web Storage API is not supported.
|
|
169
|
+
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
170
|
+
* @since v22.4.0
|
|
171
|
+
*/
|
|
172
|
+
var localStorage: Storage;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage).
|
|
176
|
+
* Data is stored in memory, with a storage quota of 10 MB.
|
|
177
|
+
* Any modification of this data outside of the Web Storage API is not supported.
|
|
178
|
+
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
179
|
+
* @since v22.4.0
|
|
180
|
+
*/
|
|
181
|
+
var sessionStorage: Storage;
|
|
182
|
+
// #endregion Storage
|
|
183
|
+
|
|
106
184
|
// #region Disposable
|
|
107
185
|
interface SymbolConstructor {
|
|
108
186
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.4.0",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
},
|
|
211
211
|
"scripts": {},
|
|
212
212
|
"dependencies": {
|
|
213
|
-
"undici-types": "~6.
|
|
213
|
+
"undici-types": "~6.19.2"
|
|
214
214
|
},
|
|
215
|
-
"typesPublisherContentHash": "
|
|
215
|
+
"typesPublisherContentHash": "f22f2e87b11a05781ab2a2c4b7812aa834cf70e01e9db42c5288e6cc3f15fd47",
|
|
216
216
|
"typeScriptVersion": "4.8"
|
|
217
217
|
}
|
|
@@ -843,6 +843,7 @@ declare module "tls" {
|
|
|
843
843
|
ciphers?: string | undefined;
|
|
844
844
|
/**
|
|
845
845
|
* Name of an OpenSSL engine which can provide the client certificate.
|
|
846
|
+
* @deprecated
|
|
846
847
|
*/
|
|
847
848
|
clientCertEngine?: string | undefined;
|
|
848
849
|
/**
|
|
@@ -885,12 +886,14 @@ declare module "tls" {
|
|
|
885
886
|
/**
|
|
886
887
|
* Name of an OpenSSL engine to get private key from. Should be used
|
|
887
888
|
* together with privateKeyIdentifier.
|
|
889
|
+
* @deprecated
|
|
888
890
|
*/
|
|
889
891
|
privateKeyEngine?: string | undefined;
|
|
890
892
|
/**
|
|
891
893
|
* Identifier of a private key managed by an OpenSSL engine. Should be
|
|
892
894
|
* used together with privateKeyEngine. Should not be set together with
|
|
893
895
|
* key, because both options define a private key in different ways.
|
|
896
|
+
* @deprecated
|
|
894
897
|
*/
|
|
895
898
|
privateKeyIdentifier?: string | undefined;
|
|
896
899
|
/**
|
|
@@ -1480,6 +1480,12 @@ declare module "util" {
|
|
|
1480
1480
|
* Whether this command accepts positional arguments.
|
|
1481
1481
|
*/
|
|
1482
1482
|
allowPositionals?: boolean | undefined;
|
|
1483
|
+
/**
|
|
1484
|
+
* If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`.
|
|
1485
|
+
* @default false
|
|
1486
|
+
* @since v22.4.0
|
|
1487
|
+
*/
|
|
1488
|
+
allowNegative?: boolean | undefined;
|
|
1483
1489
|
/**
|
|
1484
1490
|
* Return the parsed tokens. This is useful for extending the built-in behavior,
|
|
1485
1491
|
* from adding additional checks through to reprocessing the tokens in different ways.
|
|
@@ -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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
|
|
4
4
|
import { File } from './file'
|
|
5
|
-
import {
|
|
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.
|
|
@@ -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 {
|
|
@@ -41,7 +42,7 @@ declare namespace Undici {
|
|
|
41
42
|
var RedirectHandler: typeof import ('./handlers').RedirectHandler
|
|
42
43
|
var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
|
|
43
44
|
var RetryHandler: typeof import ('./retry-handler').default
|
|
44
|
-
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
|
|
45
|
+
var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
|
|
45
46
|
var BalancedPool: typeof import('./balanced-pool').default;
|
|
46
47
|
var Client: typeof import('./client').default;
|
|
47
48
|
var buildConnector: typeof import('./connector').default;
|
|
@@ -66,9 +67,5 @@ declare namespace Undici {
|
|
|
66
67
|
var File: typeof import('./file').File;
|
|
67
68
|
var FileReader: typeof import('./filereader').FileReader;
|
|
68
69
|
var caches: typeof import('./cache').caches;
|
|
69
|
-
var interceptors:
|
|
70
|
-
dump: typeof import('./interceptors').dump;
|
|
71
|
-
retry: typeof import('./interceptors').retry;
|
|
72
|
-
redirect: typeof import('./interceptors').redirect;
|
|
73
|
-
}
|
|
70
|
+
var interceptors: typeof import('./interceptors').default;
|
|
74
71
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import Dispatcher from "./dispatcher";
|
|
2
2
|
import RetryHandler from "./retry-handler";
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
export type RetryInterceptorOpts = RetryHandler.RetryOptions
|
|
6
|
-
export type RedirectInterceptorOpts = { maxRedirections?: number }
|
|
4
|
+
export default Interceptors;
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
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
|
+
}
|