aws-delivlib 15.2.0 → 15.3.0
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/lib/auto-build.d.ts +7 -1
- package/lib/auto-build.js +2 -1
- package/lib/custom-resource-handlers/src/certificate-signing-request.tsbuildinfo +1 -1
- package/lib/custom-resource-handlers/src/pgp-secret.tsbuildinfo +1 -1
- package/lib/custom-resource-handlers/src/private-key.tsbuildinfo +1 -1
- package/lib/package-integrity/handler/validate.bundle.js +23640 -19373
- package/lib/publishing/github/node_modules/.yarn-integrity +4 -4
- package/lib/publishing/github/node_modules/@types/aws-lambda/README.md +1 -1
- package/lib/publishing/github/node_modules/@types/aws-lambda/package.json +2 -2
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.ts +40 -0
- package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +3 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert/strict.d.ts +0 -46
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +2 -7
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +126 -38
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.buffer.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +0 -45
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +5 -67
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +0 -54
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +0 -58
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/constants.d.ts +0 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +14 -21
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +0 -27
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +0 -24
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns/promises.d.ts +0 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +0 -46
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +0 -16
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +12 -58
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +150 -11
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +132 -28
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +23 -43
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +16 -11
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +0 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +2 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector/promises.d.ts +0 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +45 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.generated.d.ts +583 -403
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +1 -65
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +57 -20
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +0 -9
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +4 -4
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +0 -9
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +0 -31
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +75 -32
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +0 -28
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +0 -13
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/quic.d.ts +2 -15
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +0 -3
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +1 -35
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +15 -10
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sea.d.ts +0 -115
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +182 -69
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/consumers.d.ts +81 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/web.d.ts +7 -3
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +42 -28
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +0 -40
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test/reporters.d.ts +1 -38
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +153 -113
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +0 -15
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +0 -10
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +20 -25
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +0 -94
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/index.d.ts +2 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/index.d.ts +2 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +0 -25
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +49 -12
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +27 -12
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +9 -12
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +55 -127
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +0 -71
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +15 -61
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +68 -97
- package/lib/publishing/github/node_modules/semver/README.md +22 -6
- package/lib/publishing/github/node_modules/semver/bin/semver.js +15 -11
- package/lib/publishing/github/node_modules/semver/classes/range.js +7 -0
- package/lib/publishing/github/node_modules/semver/functions/diff.js +1 -1
- package/lib/publishing/github/node_modules/semver/functions/truncate.js +48 -0
- package/lib/publishing/github/node_modules/semver/index.js +2 -0
- package/lib/publishing/github/node_modules/semver/internal/re.js +3 -3
- package/lib/publishing/github/node_modules/semver/package.json +4 -4
- package/lib/publishing/github/node_modules/semver/range.bnf +5 -4
- package/lib/publishing/github/node_modules/semver/ranges/subset.js +3 -3
- package/lib/publishing/github/node_modules/undici-types/agent.d.ts +1 -1
- package/lib/publishing/github/node_modules/undici-types/api.d.ts +2 -2
- package/lib/publishing/github/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/lib/publishing/github/node_modules/undici-types/cache-interceptor.d.ts +7 -0
- package/lib/publishing/github/node_modules/undici-types/client.d.ts +16 -1
- package/lib/publishing/github/node_modules/undici-types/connector.d.ts +4 -2
- package/lib/publishing/github/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/lib/publishing/github/node_modules/undici-types/dispatcher.d.ts +20 -17
- package/lib/publishing/github/node_modules/undici-types/errors.d.ts +17 -1
- package/lib/publishing/github/node_modules/undici-types/fetch.d.ts +4 -4
- package/lib/publishing/github/node_modules/undici-types/formdata.d.ts +1 -1
- package/lib/publishing/github/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/lib/publishing/github/node_modules/undici-types/index.d.ts +12 -1
- package/lib/publishing/github/node_modules/undici-types/interceptors.d.ts +43 -2
- package/lib/publishing/github/node_modules/undici-types/package.json +1 -1
- package/lib/publishing/github/node_modules/undici-types/pool.d.ts +1 -1
- package/lib/publishing/github/node_modules/undici-types/readable.d.ts +2 -2
- package/lib/publishing/github/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/lib/publishing/github/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/lib/publishing/github/node_modules/undici-types/webidl.d.ts +6 -0
- package/lib/publishing/github/node_modules/undici-types/websocket.d.ts +11 -9
- package/package.json +28 -14
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts
CHANGED
|
@@ -1,61 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:console` module provides a simple debugging console that is similar to
|
|
3
|
-
* the JavaScript console mechanism provided by web browsers.
|
|
4
|
-
*
|
|
5
|
-
* The module exports two specific components:
|
|
6
|
-
*
|
|
7
|
-
* * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream.
|
|
8
|
-
* * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdout) and
|
|
9
|
-
* [`process.stderr`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module.
|
|
10
|
-
*
|
|
11
|
-
* _**Warning**_: The global console object's methods are neither consistently
|
|
12
|
-
* synchronous like the browser APIs they resemble, nor are they consistently
|
|
13
|
-
* asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v25.x/api/process.html#a-note-on-process-io) for
|
|
14
|
-
* more information.
|
|
15
|
-
*
|
|
16
|
-
* Example using the global `console`:
|
|
17
|
-
*
|
|
18
|
-
* ```js
|
|
19
|
-
* console.log('hello world');
|
|
20
|
-
* // Prints: hello world, to stdout
|
|
21
|
-
* console.log('hello %s', 'world');
|
|
22
|
-
* // Prints: hello world, to stdout
|
|
23
|
-
* console.error(new Error('Whoops, something bad happened'));
|
|
24
|
-
* // Prints error message and stack trace to stderr:
|
|
25
|
-
* // Error: Whoops, something bad happened
|
|
26
|
-
* // at [eval]:5:15
|
|
27
|
-
* // at Script.runInThisContext (node:vm:132:18)
|
|
28
|
-
* // at Object.runInThisContext (node:vm:309:38)
|
|
29
|
-
* // at node:internal/process/execution:77:19
|
|
30
|
-
* // at [eval]-wrapper:6:22
|
|
31
|
-
* // at evalScript (node:internal/process/execution:76:60)
|
|
32
|
-
* // at node:internal/main/eval_string:23:3
|
|
33
|
-
*
|
|
34
|
-
* const name = 'Will Robinson';
|
|
35
|
-
* console.warn(`Danger ${name}! Danger!`);
|
|
36
|
-
* // Prints: Danger Will Robinson! Danger!, to stderr
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* Example using the `Console` class:
|
|
40
|
-
*
|
|
41
|
-
* ```js
|
|
42
|
-
* const out = getStreamSomehow();
|
|
43
|
-
* const err = getStreamSomehow();
|
|
44
|
-
* const myConsole = new console.Console(out, err);
|
|
45
|
-
*
|
|
46
|
-
* myConsole.log('hello world');
|
|
47
|
-
* // Prints: hello world, to out
|
|
48
|
-
* myConsole.log('hello %s', 'world');
|
|
49
|
-
* // Prints: hello world, to out
|
|
50
|
-
* myConsole.error(new Error('Whoops, something bad happened'));
|
|
51
|
-
* // Prints: [Error: Whoops, something bad happened], to err
|
|
52
|
-
*
|
|
53
|
-
* const name = 'Will Robinson';
|
|
54
|
-
* myConsole.warn(`Danger ${name}! Danger!`);
|
|
55
|
-
* // Prints: Danger Will Robinson! Danger!, to err
|
|
56
|
-
* ```
|
|
57
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/console.js)
|
|
58
|
-
*/
|
|
59
1
|
declare module "node:console" {
|
|
60
2
|
import { InspectOptions } from "node:util";
|
|
61
3
|
namespace console {
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated The `node:constants` module is deprecated. When requiring access to constants
|
|
3
|
-
* relevant to specific Node.js builtin modules, developers should instead refer
|
|
4
|
-
* to the `constants` property exposed by the relevant module. For instance,
|
|
5
|
-
* `require('node:fs').constants` and `require('node:os').constants`.
|
|
6
|
-
*/
|
|
7
1
|
declare module "node:constants" {
|
|
8
2
|
const constants:
|
|
9
3
|
& typeof import("node:os").constants.dlopen
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:crypto` module provides cryptographic functionality that includes a
|
|
3
|
-
* set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify
|
|
4
|
-
* functions.
|
|
5
|
-
*
|
|
6
|
-
* ```js
|
|
7
|
-
* const { createHmac } = await import('node:crypto');
|
|
8
|
-
*
|
|
9
|
-
* const secret = 'abcdefg';
|
|
10
|
-
* const hash = createHmac('sha256', secret)
|
|
11
|
-
* .update('I love cupcakes')
|
|
12
|
-
* .digest('hex');
|
|
13
|
-
* console.log(hash);
|
|
14
|
-
* // Prints:
|
|
15
|
-
* // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
|
|
16
|
-
* ```
|
|
17
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/crypto.js)
|
|
18
|
-
*/
|
|
19
1
|
declare module "node:crypto" {
|
|
20
2
|
import { NonSharedBuffer } from "node:buffer";
|
|
21
3
|
import * as stream from "node:stream";
|
|
@@ -3796,7 +3778,7 @@ declare module "node:crypto" {
|
|
|
3796
3778
|
interface CShakeParams extends Algorithm {
|
|
3797
3779
|
customization?: NodeJS.BufferSource;
|
|
3798
3780
|
functionName?: NodeJS.BufferSource;
|
|
3799
|
-
|
|
3781
|
+
outputLength: number;
|
|
3800
3782
|
}
|
|
3801
3783
|
interface ContextParams extends Algorithm {
|
|
3802
3784
|
context?: NodeJS.BufferSource;
|
|
@@ -3833,6 +3815,10 @@ declare module "node:crypto" {
|
|
|
3833
3815
|
hash: HashAlgorithmIdentifier;
|
|
3834
3816
|
length?: number;
|
|
3835
3817
|
}
|
|
3818
|
+
interface KangarooTwelveParams {
|
|
3819
|
+
customization?: NodeJS.BufferSource;
|
|
3820
|
+
outputLength: number;
|
|
3821
|
+
}
|
|
3836
3822
|
interface JsonWebKey {
|
|
3837
3823
|
alg?: string;
|
|
3838
3824
|
crv?: string;
|
|
@@ -3867,7 +3853,7 @@ declare module "node:crypto" {
|
|
|
3867
3853
|
}
|
|
3868
3854
|
interface KmacParams extends Algorithm {
|
|
3869
3855
|
customization?: NodeJS.BufferSource;
|
|
3870
|
-
|
|
3856
|
+
outputLength: number;
|
|
3871
3857
|
}
|
|
3872
3858
|
interface Pbkdf2Params extends Algorithm {
|
|
3873
3859
|
hash: HashAlgorithmIdentifier;
|
|
@@ -3902,6 +3888,10 @@ declare module "node:crypto" {
|
|
|
3902
3888
|
interface RsaPssParams extends Algorithm {
|
|
3903
3889
|
saltLength: number;
|
|
3904
3890
|
}
|
|
3891
|
+
interface TurboShakeParams {
|
|
3892
|
+
domainSeparation?: number;
|
|
3893
|
+
outputLength: number;
|
|
3894
|
+
}
|
|
3905
3895
|
interface Crypto {
|
|
3906
3896
|
readonly subtle: SubtleCrypto;
|
|
3907
3897
|
getRandomValues<
|
|
@@ -3963,7 +3953,10 @@ declare module "node:crypto" {
|
|
|
3963
3953
|
extractable: boolean,
|
|
3964
3954
|
keyUsages: readonly KeyUsage[],
|
|
3965
3955
|
): Promise<CryptoKey>;
|
|
3966
|
-
digest(
|
|
3956
|
+
digest(
|
|
3957
|
+
algorithm: AlgorithmIdentifier | CShakeParams | TurboShakeParams | KangarooTwelveParams,
|
|
3958
|
+
data: NodeJS.BufferSource,
|
|
3959
|
+
): Promise<ArrayBuffer>;
|
|
3967
3960
|
encapsulateBits(
|
|
3968
3961
|
encapsulationAlgorithm: AlgorithmIdentifier,
|
|
3969
3962
|
encapsulationKey: CryptoKey,
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts
CHANGED
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:dgram` module provides an implementation of UDP datagram sockets.
|
|
3
|
-
*
|
|
4
|
-
* ```js
|
|
5
|
-
* import dgram from 'node:dgram';
|
|
6
|
-
*
|
|
7
|
-
* const server = dgram.createSocket('udp4');
|
|
8
|
-
*
|
|
9
|
-
* server.on('error', (err) => {
|
|
10
|
-
* console.error(`server error:\n${err.stack}`);
|
|
11
|
-
* server.close();
|
|
12
|
-
* });
|
|
13
|
-
*
|
|
14
|
-
* server.on('message', (msg, rinfo) => {
|
|
15
|
-
* console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
|
|
16
|
-
* });
|
|
17
|
-
*
|
|
18
|
-
* server.on('listening', () => {
|
|
19
|
-
* const address = server.address();
|
|
20
|
-
* console.log(`server listening ${address.address}:${address.port}`);
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* server.bind(41234);
|
|
24
|
-
* // Prints: server listening 0.0.0.0:41234
|
|
25
|
-
* ```
|
|
26
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/dgram.js)
|
|
27
|
-
*/
|
|
28
1
|
declare module "node:dgram" {
|
|
29
2
|
import { NonSharedBuffer } from "node:buffer";
|
|
30
3
|
import * as dns from "node:dns";
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:diagnostics_channel` module provides an API to create named channels
|
|
3
|
-
* to report arbitrary message data for diagnostics purposes.
|
|
4
|
-
*
|
|
5
|
-
* It can be accessed using:
|
|
6
|
-
*
|
|
7
|
-
* ```js
|
|
8
|
-
* import diagnostics_channel from 'node:diagnostics_channel';
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
* It is intended that a module writer wanting to report diagnostics messages
|
|
12
|
-
* will create one or many top-level channels to report messages through.
|
|
13
|
-
* Channels may also be acquired at runtime but it is not encouraged
|
|
14
|
-
* due to the additional overhead of doing so. Channels may be exported for
|
|
15
|
-
* convenience, but as long as the name is known it can be acquired anywhere.
|
|
16
|
-
*
|
|
17
|
-
* If you intend for your module to produce diagnostics data for others to
|
|
18
|
-
* consume it is recommended that you include documentation of what named
|
|
19
|
-
* channels are used along with the shape of the message data. Channel names
|
|
20
|
-
* should generally include the module name to avoid collisions with data from
|
|
21
|
-
* other modules.
|
|
22
|
-
* @since v15.1.0, v14.17.0
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/diagnostics_channel.js)
|
|
24
|
-
*/
|
|
25
1
|
declare module "node:diagnostics_channel" {
|
|
26
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
27
3
|
/**
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `dns.promises` API provides an alternative set of asynchronous DNS methods
|
|
3
|
-
* that return `Promise` objects rather than using callbacks. The API is accessible
|
|
4
|
-
* via `import { promises as dnsPromises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`.
|
|
5
|
-
* @since v10.6.0
|
|
6
|
-
*/
|
|
7
1
|
declare module "node:dns/promises" {
|
|
8
2
|
import {
|
|
9
3
|
AnyRecord,
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts
CHANGED
|
@@ -1,49 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:dns` module enables name resolution. For example, use it to look up IP
|
|
3
|
-
* addresses of host names.
|
|
4
|
-
*
|
|
5
|
-
* Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the
|
|
6
|
-
* DNS protocol for lookups. {@link lookup} uses the operating system
|
|
7
|
-
* facilities to perform name resolution. It may not need to perform any network
|
|
8
|
-
* communication. To perform name resolution the way other applications on the same
|
|
9
|
-
* system do, use {@link lookup}.
|
|
10
|
-
*
|
|
11
|
-
* ```js
|
|
12
|
-
* import dns from 'node:dns';
|
|
13
|
-
*
|
|
14
|
-
* dns.lookup('example.org', (err, address, family) => {
|
|
15
|
-
* console.log('address: %j family: IPv%s', address, family);
|
|
16
|
-
* });
|
|
17
|
-
* // address: "93.184.216.34" family: IPv4
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* All other functions in the `node:dns` module connect to an actual DNS server to
|
|
21
|
-
* perform name resolution. They will always use the network to perform DNS
|
|
22
|
-
* queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform
|
|
23
|
-
* DNS queries, bypassing other name-resolution facilities.
|
|
24
|
-
*
|
|
25
|
-
* ```js
|
|
26
|
-
* import dns from 'node:dns';
|
|
27
|
-
*
|
|
28
|
-
* dns.resolve4('archive.org', (err, addresses) => {
|
|
29
|
-
* if (err) throw err;
|
|
30
|
-
*
|
|
31
|
-
* console.log(`addresses: ${JSON.stringify(addresses)}`);
|
|
32
|
-
*
|
|
33
|
-
* addresses.forEach((a) => {
|
|
34
|
-
* dns.reverse(a, (err, hostnames) => {
|
|
35
|
-
* if (err) {
|
|
36
|
-
* throw err;
|
|
37
|
-
* }
|
|
38
|
-
* console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`);
|
|
39
|
-
* });
|
|
40
|
-
* });
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* See the [Implementation considerations section](https://nodejs.org/docs/latest-v25.x/api/dns.html#implementation-considerations) for more information.
|
|
45
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/dns.js)
|
|
46
|
-
*/
|
|
47
1
|
declare module "node:dns" {
|
|
48
2
|
// Supported getaddrinfo flags.
|
|
49
3
|
/**
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* **This module is pending deprecation.** Once a replacement API has been
|
|
3
|
-
* finalized, this module will be fully deprecated. Most developers should
|
|
4
|
-
* **not** have cause to use this module. Users who absolutely must have
|
|
5
|
-
* the functionality that domains provide may rely on it for the time being
|
|
6
|
-
* but should expect to have to migrate to a different solution
|
|
7
|
-
* in the future.
|
|
8
|
-
*
|
|
9
|
-
* Domains provide a way to handle multiple different IO operations as a
|
|
10
|
-
* single group. If any of the event emitters or callbacks registered to a
|
|
11
|
-
* domain emit an `'error'` event, or throw an error, then the domain object
|
|
12
|
-
* will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to
|
|
13
|
-
* exit immediately with an error code.
|
|
14
|
-
* @deprecated Since v1.4.2 - Deprecated
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/domain.js)
|
|
16
|
-
*/
|
|
17
1
|
declare module "node:domain" {
|
|
18
2
|
import { EventEmitter } from "node:events";
|
|
19
3
|
/**
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts
CHANGED
|
@@ -1,39 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Much of the Node.js core API is built around an idiomatic asynchronous
|
|
3
|
-
* event-driven architecture in which certain kinds of objects (called "emitters")
|
|
4
|
-
* emit named events that cause `Function` objects ("listeners") to be called.
|
|
5
|
-
*
|
|
6
|
-
* For instance: a `net.Server` object emits an event each time a peer
|
|
7
|
-
* connects to it; a `fs.ReadStream` emits an event when the file is opened;
|
|
8
|
-
* a `stream` emits an event whenever data is available to be read.
|
|
9
|
-
*
|
|
10
|
-
* All objects that emit events are instances of the `EventEmitter` class. These
|
|
11
|
-
* objects expose an `eventEmitter.on()` function that allows one or more
|
|
12
|
-
* functions to be attached to named events emitted by the object. Typically,
|
|
13
|
-
* event names are camel-cased strings but any valid JavaScript property key
|
|
14
|
-
* can be used.
|
|
15
|
-
*
|
|
16
|
-
* When the `EventEmitter` object emits an event, all of the functions attached
|
|
17
|
-
* to that specific event are called _synchronously_. Any values returned by the
|
|
18
|
-
* called listeners are _ignored_ and discarded.
|
|
19
|
-
*
|
|
20
|
-
* The following example shows a simple `EventEmitter` instance with a single
|
|
21
|
-
* listener. The `eventEmitter.on()` method is used to register listeners, while
|
|
22
|
-
* the `eventEmitter.emit()` method is used to trigger the event.
|
|
23
|
-
*
|
|
24
|
-
* ```js
|
|
25
|
-
* import { EventEmitter } from 'node:events';
|
|
26
|
-
*
|
|
27
|
-
* class MyEmitter extends EventEmitter {}
|
|
28
|
-
*
|
|
29
|
-
* const myEmitter = new MyEmitter();
|
|
30
|
-
* myEmitter.on('event', () => {
|
|
31
|
-
* console.log('an event occurred!');
|
|
32
|
-
* });
|
|
33
|
-
* myEmitter.emit('event');
|
|
34
|
-
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/events.js)
|
|
36
|
-
*/
|
|
37
1
|
declare module "node:events" {
|
|
38
2
|
import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
|
|
39
3
|
// #region Event map helpers
|
|
@@ -564,15 +528,12 @@ declare module "node:events" {
|
|
|
564
528
|
* import { addAbortListener } from 'node:events';
|
|
565
529
|
*
|
|
566
530
|
* function example(signal) {
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
* } finally {
|
|
574
|
-
* disposable?.[Symbol.dispose]();
|
|
575
|
-
* }
|
|
531
|
+
* signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
|
|
532
|
+
* // addAbortListener() returns a disposable, so the `using` keyword ensures
|
|
533
|
+
* // the abort listener is automatically removed when this scope exits.
|
|
534
|
+
* using _ = addAbortListener(signal, (e) => {
|
|
535
|
+
* // Do something when signal is aborted.
|
|
536
|
+
* });
|
|
576
537
|
* }
|
|
577
538
|
* ```
|
|
578
539
|
* @since v20.5.0
|
|
@@ -638,24 +599,17 @@ declare module "node:events" {
|
|
|
638
599
|
*/
|
|
639
600
|
function getMaxListeners(emitter: EventEmitter | EventTarget): number;
|
|
640
601
|
/**
|
|
641
|
-
*
|
|
642
|
-
* registered on the given `emitter`.
|
|
602
|
+
* Returns the number of registered listeners for the event named `eventName`.
|
|
643
603
|
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
604
|
+
* For `EventEmitter`s this behaves exactly the same as calling `.listenerCount`
|
|
605
|
+
* on the emitter.
|
|
646
606
|
*
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
* myEmitter.on('event', () => {});
|
|
650
|
-
* console.log(listenerCount(myEmitter, 'event'));
|
|
651
|
-
* // Prints: 2
|
|
652
|
-
* ```
|
|
607
|
+
* For `EventTarget`s this is the only way to obtain the listener count. This can
|
|
608
|
+
* be useful for debugging and diagnostic purposes.
|
|
653
609
|
* @since v0.9.12
|
|
654
|
-
* @deprecated Use `emitter.listenerCount()` instead.
|
|
655
|
-
* @param emitter The emitter to query
|
|
656
|
-
* @param eventName The event name
|
|
657
610
|
*/
|
|
658
611
|
function listenerCount(emitter: EventEmitter, eventName: string | symbol): number;
|
|
612
|
+
function listenerCount(emitter: EventTarget, eventName: string): number;
|
|
659
613
|
interface OnOptions extends Abortable {
|
|
660
614
|
/**
|
|
661
615
|
* Names of events that will end the iteration.
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `fs/promises` API provides asynchronous file system methods that return
|
|
3
|
-
* promises.
|
|
4
|
-
*
|
|
5
|
-
* The promise APIs use the underlying Node.js threadpool to perform file
|
|
6
|
-
* system operations off the event loop thread. These operations are not
|
|
7
|
-
* synchronized or threadsafe. Care must be taken when performing multiple
|
|
8
|
-
* concurrent modifications on the same file or data corruption may occur.
|
|
9
|
-
* @since v10.0.0
|
|
10
|
-
*/
|
|
11
1
|
declare module "node:fs/promises" {
|
|
12
2
|
import { NonSharedBuffer } from "node:buffer";
|
|
13
3
|
import { Abortable } from "node:events";
|
|
@@ -47,6 +37,7 @@ declare module "node:fs/promises" {
|
|
|
47
37
|
WriteVResult,
|
|
48
38
|
} from "node:fs";
|
|
49
39
|
import { Stream } from "node:stream";
|
|
40
|
+
import { ByteReadableStream, Transform, Writer } from "node:stream/iter";
|
|
50
41
|
import { ReadableStream } from "node:stream/web";
|
|
51
42
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
52
43
|
eventType: WatchEventType;
|
|
@@ -95,6 +86,57 @@ declare module "node:fs/promises" {
|
|
|
95
86
|
interface ReadableWebStreamOptions {
|
|
96
87
|
autoClose?: boolean | undefined;
|
|
97
88
|
}
|
|
89
|
+
interface PullOptions extends Abortable {
|
|
90
|
+
/**
|
|
91
|
+
* Close the file handle when the stream ends.
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
autoClose?: boolean | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Byte offset to begin reading from. When specified,
|
|
97
|
+
* reads use explicit positioning (`pread` semantics).
|
|
98
|
+
*/
|
|
99
|
+
start?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Maximum number of bytes to read before ending the
|
|
102
|
+
* iterator. Reads stop when `limit` bytes have been delivered or EOF is
|
|
103
|
+
* reached, whichever comes first.
|
|
104
|
+
*/
|
|
105
|
+
limit?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Size in bytes of the buffer allocated for each
|
|
108
|
+
* read operation.
|
|
109
|
+
* @default 131072
|
|
110
|
+
*/
|
|
111
|
+
chunkSize?: number | undefined;
|
|
112
|
+
}
|
|
113
|
+
interface WriterOptions {
|
|
114
|
+
/**
|
|
115
|
+
* Close the file handle when the writer ends or fails.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
autoClose?: boolean | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Byte offset to start writing at. When specified,
|
|
121
|
+
* writes use explicit positioning.
|
|
122
|
+
*/
|
|
123
|
+
start?: number | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Maximum number of bytes the writer will accept.
|
|
126
|
+
* Async writes (`write()`, `writev()`) that would exceed the limit reject
|
|
127
|
+
* with `ERR_OUT_OF_RANGE`. Sync writes (`writeSync()`, `writevSync()`)
|
|
128
|
+
* return `false`.
|
|
129
|
+
*/
|
|
130
|
+
limit?: number | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Maximum chunk size in bytes for synchronous write
|
|
133
|
+
* operations. Writes larger than this threshold fall back to async I/O.
|
|
134
|
+
* Set this to match the reader's `chunkSize` for optimal `pipeTo()`
|
|
135
|
+
* performance.
|
|
136
|
+
* @default 131072
|
|
137
|
+
*/
|
|
138
|
+
chunkSize?: number | undefined;
|
|
139
|
+
}
|
|
98
140
|
// TODO: Add `EventEmitter` close
|
|
99
141
|
interface FileHandle {
|
|
100
142
|
/**
|
|
@@ -212,6 +254,41 @@ declare module "node:fs/promises" {
|
|
|
212
254
|
* @return Fulfills with `undefined` upon success.
|
|
213
255
|
*/
|
|
214
256
|
datasync(): Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* Return the file contents as an async iterable using the
|
|
259
|
+
* [`node:stream/iter`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html) pull model. Reads are performed in `chunkSize`-byte
|
|
260
|
+
* chunks (default 128 KB). If transforms are provided, they are applied
|
|
261
|
+
* via [`stream/iter pull()`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html#pullsource-transforms-options).
|
|
262
|
+
*
|
|
263
|
+
* The file handle is locked while the iterable is being consumed and unlocked
|
|
264
|
+
* when iteration completes, an error occurs, or the consumer breaks.
|
|
265
|
+
*
|
|
266
|
+
* This function is only available when the `--experimental-stream-iter` flag is
|
|
267
|
+
* enabled.
|
|
268
|
+
*
|
|
269
|
+
* ```js
|
|
270
|
+
* import { open } from 'node:fs/promises';
|
|
271
|
+
* import { text } from 'node:stream/iter';
|
|
272
|
+
* import { compressGzip } from 'node:zlib/iter';
|
|
273
|
+
*
|
|
274
|
+
* const fh = await open('input.txt', 'r');
|
|
275
|
+
*
|
|
276
|
+
* // Read as text
|
|
277
|
+
* console.log(await text(fh.pull({ autoClose: true })));
|
|
278
|
+
*
|
|
279
|
+
* // Read 1 KB starting at byte 100
|
|
280
|
+
* const fh2 = await open('input.txt', 'r');
|
|
281
|
+
* console.log(await text(fh2.pull({ start: 100, limit: 1024, autoClose: true })));
|
|
282
|
+
*
|
|
283
|
+
* // Read with compression
|
|
284
|
+
* const fh3 = await open('input.txt', 'r');
|
|
285
|
+
* const compressed = fh3.pull(compressGzip(), { autoClose: true });
|
|
286
|
+
* ```
|
|
287
|
+
* @since v25.9.0
|
|
288
|
+
* @experimental
|
|
289
|
+
*/
|
|
290
|
+
pull(...transforms: Transform[]): ByteReadableStream;
|
|
291
|
+
pull(...args: [...transforms: Transform[], options: PullOptions]): ByteReadableStream;
|
|
215
292
|
/**
|
|
216
293
|
* Request that all data for the open file descriptor is flushed to the storage
|
|
217
294
|
* device. The specific implementation is operating system and device specific.
|
|
@@ -460,6 +537,45 @@ declare module "node:fs/promises" {
|
|
|
460
537
|
buffers: TBuffers,
|
|
461
538
|
position?: number,
|
|
462
539
|
): Promise<WriteVResult<TBuffers>>;
|
|
540
|
+
/**
|
|
541
|
+
* Return a [`node:stream/iter`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html) writer backed by this file handle.
|
|
542
|
+
*
|
|
543
|
+
* The writer supports both `Symbol.asyncDispose` and `Symbol.dispose`:
|
|
544
|
+
*
|
|
545
|
+
* * `await using w = fh.writer()` — if the writer is still open (no `end()`
|
|
546
|
+
* called), `asyncDispose` calls `fail()`. If `end()` is pending, it waits
|
|
547
|
+
* for it to complete.
|
|
548
|
+
* * `using w = fh.writer()` — calls `fail()` unconditionally.
|
|
549
|
+
*
|
|
550
|
+
* The `writeSync()` and `writevSync()` methods enable the try-sync fast path
|
|
551
|
+
* used by [`stream/iter pipeTo()`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html#pipetosource-transforms-writer). When the reader's chunk size matches the
|
|
552
|
+
* writer's `chunkSize`, all writes in a `pipeTo()` pipeline complete
|
|
553
|
+
* synchronously with zero promise overhead.
|
|
554
|
+
*
|
|
555
|
+
* This function is only available when the `--experimental-stream-iter` flag is
|
|
556
|
+
* enabled.
|
|
557
|
+
*
|
|
558
|
+
* ```js
|
|
559
|
+
* import { open } from 'node:fs/promises';
|
|
560
|
+
* import { from, pipeTo } from 'node:stream/iter';
|
|
561
|
+
* import { compressGzip } from 'node:zlib/iter';
|
|
562
|
+
*
|
|
563
|
+
* // Async pipeline
|
|
564
|
+
* const fh = await open('output.gz', 'w');
|
|
565
|
+
* await pipeTo(from('Hello!'), compressGzip(), fh.writer({ autoClose: true }));
|
|
566
|
+
*
|
|
567
|
+
* // Sync pipeline with limit
|
|
568
|
+
* const src = await open('input.txt', 'r');
|
|
569
|
+
* const dst = await open('output.txt', 'w');
|
|
570
|
+
* const w = dst.writer({ limit: 1024 * 1024 }); // Max 1 MB
|
|
571
|
+
* await pipeTo(src.pull({ autoClose: true }), w);
|
|
572
|
+
* await w.end();
|
|
573
|
+
* await dst.close();
|
|
574
|
+
* ```
|
|
575
|
+
* @since v25.9.0
|
|
576
|
+
* @experimental
|
|
577
|
+
*/
|
|
578
|
+
writer(options?: WriterOptions): Writer;
|
|
463
579
|
/**
|
|
464
580
|
* Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
|
|
465
581
|
* @since v13.13.0, v12.17.0
|
|
@@ -812,19 +928,42 @@ declare module "node:fs/promises" {
|
|
|
812
928
|
* @since v10.0.0
|
|
813
929
|
* @return Fulfills with the {fs.Stats} object for the given `path`.
|
|
814
930
|
*/
|
|
931
|
+
function stat(path: PathLike): Promise<Stats>;
|
|
815
932
|
function stat(
|
|
816
933
|
path: PathLike,
|
|
817
934
|
opts?: StatOptions & {
|
|
818
935
|
bigint?: false | undefined;
|
|
936
|
+
throwIfNoEntry?: true | undefined;
|
|
819
937
|
},
|
|
820
938
|
): Promise<Stats>;
|
|
821
939
|
function stat(
|
|
822
940
|
path: PathLike,
|
|
823
941
|
opts: StatOptions & {
|
|
824
942
|
bigint: true;
|
|
943
|
+
throwIfNoEntry?: true | undefined;
|
|
825
944
|
},
|
|
826
945
|
): Promise<BigIntStats>;
|
|
827
|
-
function stat(
|
|
946
|
+
function stat(
|
|
947
|
+
path: PathLike,
|
|
948
|
+
opts: StatOptions & {
|
|
949
|
+
bigint?: false | undefined;
|
|
950
|
+
throwIfNoEntry: false;
|
|
951
|
+
},
|
|
952
|
+
): Promise<Stats | undefined>;
|
|
953
|
+
function stat(
|
|
954
|
+
path: PathLike,
|
|
955
|
+
opts: StatOptions & {
|
|
956
|
+
bigint: true;
|
|
957
|
+
throwIfNoEntry: false;
|
|
958
|
+
},
|
|
959
|
+
): Promise<BigIntStats | undefined>;
|
|
960
|
+
function stat(
|
|
961
|
+
path: PathLike,
|
|
962
|
+
opts: StatOptions & {
|
|
963
|
+
throwIfNoEntry?: true | undefined;
|
|
964
|
+
},
|
|
965
|
+
): Promise<Stats | BigIntStats>;
|
|
966
|
+
function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats | undefined>;
|
|
828
967
|
/**
|
|
829
968
|
* @since v19.6.0, v18.15.0
|
|
830
969
|
* @return Fulfills with the {fs.StatFs} object for the given `path`.
|