aws-delivlib 15.0.16 → 15.0.18
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/publishing/github/node_modules/.yarn-integrity +2 -2
- 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.d.ts +5 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +26 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +1 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +2 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +15 -15
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +17 -17
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +35 -28
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +16 -16
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +1 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +16 -9
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +28 -19
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +7 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +2 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +6 -3
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +7 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +3 -7
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +63 -29
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +2 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +8 -7
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +13 -3
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +8 -8
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +21 -11
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +13 -13
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +14 -16
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sea.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +182 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +8 -19
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +53 -15
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +2 -48
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +6 -6
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/index.d.ts +96 -0
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +52 -19
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +16 -295
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +29 -32
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +17 -10
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +1 -1
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +34 -18
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +5 -7
- package/lib/publishing/github/node_modules/undici-types/agent.d.ts +7 -7
- package/lib/publishing/github/node_modules/undici-types/api.d.ts +24 -24
- package/lib/publishing/github/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/lib/publishing/github/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/lib/publishing/github/node_modules/undici-types/client.d.ts +12 -13
- package/lib/publishing/github/node_modules/undici-types/cookies.d.ts +2 -0
- package/lib/publishing/github/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
- package/lib/publishing/github/node_modules/undici-types/dispatcher.d.ts +117 -92
- package/lib/publishing/github/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
- package/lib/publishing/github/node_modules/undici-types/errors.d.ts +69 -47
- package/lib/publishing/github/node_modules/undici-types/fetch.d.ts +17 -16
- package/lib/publishing/github/node_modules/undici-types/formdata.d.ts +7 -7
- package/lib/publishing/github/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/lib/publishing/github/node_modules/undici-types/global-origin.d.ts +5 -5
- package/lib/publishing/github/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/lib/publishing/github/node_modules/undici-types/handlers.d.ts +7 -7
- package/lib/publishing/github/node_modules/undici-types/header.d.ts +157 -1
- package/lib/publishing/github/node_modules/undici-types/index.d.ts +51 -47
- package/lib/publishing/github/node_modules/undici-types/interceptors.d.ts +25 -8
- package/lib/publishing/github/node_modules/undici-types/mock-agent.d.ts +33 -18
- package/lib/publishing/github/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/lib/publishing/github/node_modules/undici-types/mock-client.d.ts +4 -4
- package/lib/publishing/github/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/lib/publishing/github/node_modules/undici-types/mock-interceptor.d.ts +19 -19
- package/lib/publishing/github/node_modules/undici-types/mock-pool.d.ts +4 -4
- package/lib/publishing/github/node_modules/undici-types/package.json +1 -1
- package/lib/publishing/github/node_modules/undici-types/patch.d.ts +0 -4
- package/lib/publishing/github/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/lib/publishing/github/node_modules/undici-types/pool.d.ts +12 -12
- package/lib/publishing/github/node_modules/undici-types/proxy-agent.d.ts +4 -4
- package/lib/publishing/github/node_modules/undici-types/readable.d.ts +18 -15
- package/lib/publishing/github/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/lib/publishing/github/node_modules/undici-types/retry-handler.d.ts +10 -10
- package/lib/publishing/github/node_modules/undici-types/util.d.ts +3 -3
- package/lib/publishing/github/node_modules/undici-types/utility.d.ts +7 -0
- package/lib/publishing/github/node_modules/undici-types/webidl.d.ts +44 -6
- package/lib/publishing/github/node_modules/undici-types/websocket.d.ts +35 -1
- package/package.json +2 -2
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/lib/publishing/github/node_modules/undici-types/file.d.ts +0 -39
- package/lib/publishing/github/node_modules/undici-types/filereader.d.ts +0 -54
@@ -0,0 +1,96 @@
|
|
1
|
+
/**
|
2
|
+
* License for programmatically and manually incorporated
|
3
|
+
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|
4
|
+
*
|
5
|
+
* Copyright Node.js contributors. All rights reserved.
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
* of this software and associated documentation files (the "Software"), to
|
8
|
+
* deal in the Software without restriction, including without limitation the
|
9
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
11
|
+
* furnished to do so, subject to the following conditions:
|
12
|
+
*
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
14
|
+
* all copies or substantial portions of the Software.
|
15
|
+
*
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
22
|
+
* IN THE SOFTWARE.
|
23
|
+
*/
|
24
|
+
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 5.7.
|
26
|
+
|
27
|
+
// Reference required TypeScript libraries:
|
28
|
+
/// <reference lib="es2020" />
|
29
|
+
/// <reference lib="esnext.disposable" />
|
30
|
+
|
31
|
+
// TypeScript library polyfills required for TypeScript 5.7:
|
32
|
+
/// <reference path="./compatibility/float16array.d.ts" />
|
33
|
+
|
34
|
+
// Iterator definitions required for compatibility with TypeScript <5.6:
|
35
|
+
/// <reference path="../compatibility/iterators.d.ts" />
|
36
|
+
|
37
|
+
// Definitions for Node.js modules specific to TypeScript 5.7+:
|
38
|
+
/// <reference path="../globals.typedarray.d.ts" />
|
39
|
+
/// <reference path="../buffer.buffer.d.ts" />
|
40
|
+
|
41
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
42
|
+
/// <reference path="../globals.d.ts" />
|
43
|
+
/// <reference path="../assert.d.ts" />
|
44
|
+
/// <reference path="../assert/strict.d.ts" />
|
45
|
+
/// <reference path="../async_hooks.d.ts" />
|
46
|
+
/// <reference path="../buffer.d.ts" />
|
47
|
+
/// <reference path="../child_process.d.ts" />
|
48
|
+
/// <reference path="../cluster.d.ts" />
|
49
|
+
/// <reference path="../console.d.ts" />
|
50
|
+
/// <reference path="../constants.d.ts" />
|
51
|
+
/// <reference path="../crypto.d.ts" />
|
52
|
+
/// <reference path="../dgram.d.ts" />
|
53
|
+
/// <reference path="../diagnostics_channel.d.ts" />
|
54
|
+
/// <reference path="../dns.d.ts" />
|
55
|
+
/// <reference path="../dns/promises.d.ts" />
|
56
|
+
/// <reference path="../dns/promises.d.ts" />
|
57
|
+
/// <reference path="../domain.d.ts" />
|
58
|
+
/// <reference path="../dom-events.d.ts" />
|
59
|
+
/// <reference path="../events.d.ts" />
|
60
|
+
/// <reference path="../fs.d.ts" />
|
61
|
+
/// <reference path="../fs/promises.d.ts" />
|
62
|
+
/// <reference path="../http.d.ts" />
|
63
|
+
/// <reference path="../http2.d.ts" />
|
64
|
+
/// <reference path="../https.d.ts" />
|
65
|
+
/// <reference path="../inspector.d.ts" />
|
66
|
+
/// <reference path="../module.d.ts" />
|
67
|
+
/// <reference path="../net.d.ts" />
|
68
|
+
/// <reference path="../os.d.ts" />
|
69
|
+
/// <reference path="../path.d.ts" />
|
70
|
+
/// <reference path="../perf_hooks.d.ts" />
|
71
|
+
/// <reference path="../process.d.ts" />
|
72
|
+
/// <reference path="../punycode.d.ts" />
|
73
|
+
/// <reference path="../querystring.d.ts" />
|
74
|
+
/// <reference path="../readline.d.ts" />
|
75
|
+
/// <reference path="../readline/promises.d.ts" />
|
76
|
+
/// <reference path="../repl.d.ts" />
|
77
|
+
/// <reference path="../sea.d.ts" />
|
78
|
+
/// <reference path="../sqlite.d.ts" />
|
79
|
+
/// <reference path="../stream.d.ts" />
|
80
|
+
/// <reference path="../stream/promises.d.ts" />
|
81
|
+
/// <reference path="../stream/consumers.d.ts" />
|
82
|
+
/// <reference path="../stream/web.d.ts" />
|
83
|
+
/// <reference path="../string_decoder.d.ts" />
|
84
|
+
/// <reference path="../test.d.ts" />
|
85
|
+
/// <reference path="../timers.d.ts" />
|
86
|
+
/// <reference path="../timers/promises.d.ts" />
|
87
|
+
/// <reference path="../tls.d.ts" />
|
88
|
+
/// <reference path="../trace_events.d.ts" />
|
89
|
+
/// <reference path="../tty.d.ts" />
|
90
|
+
/// <reference path="../url.d.ts" />
|
91
|
+
/// <reference path="../util.d.ts" />
|
92
|
+
/// <reference path="../v8.d.ts" />
|
93
|
+
/// <reference path="../vm.d.ts" />
|
94
|
+
/// <reference path="../wasi.d.ts" />
|
95
|
+
/// <reference path="../worker_threads.d.ts" />
|
96
|
+
/// <reference path="../zlib.d.ts" />
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
*
|
22
22
|
* In most cases, there should be little to no reason for an application to
|
23
23
|
* manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes.
|
24
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
24
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/tty.js)
|
25
25
|
*/
|
26
26
|
declare module "tty" {
|
27
27
|
import * as net from "node:net";
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
* ```js
|
6
6
|
* import url from 'node:url';
|
7
7
|
* ```
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/url.js)
|
9
9
|
*/
|
10
10
|
declare module "url" {
|
11
11
|
import { Blob as NodeBlob } from "node:buffer";
|
@@ -420,14 +420,12 @@ declare module "url" {
|
|
420
420
|
* Threads, `Blob` objects registered within one Worker will not be available
|
421
421
|
* to other workers or the main thread.
|
422
422
|
* @since v16.7.0
|
423
|
-
* @experimental
|
424
423
|
*/
|
425
424
|
static createObjectURL(blob: NodeBlob): string;
|
426
425
|
/**
|
427
426
|
* Removes the stored `Blob` identified by the given ID. Attempting to revoke a
|
428
427
|
* ID that isn't registered will silently fail.
|
429
428
|
* @since v16.7.0
|
430
|
-
* @experimental
|
431
429
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
432
430
|
*/
|
433
431
|
static revokeObjectURL(id: string): void;
|
@@ -757,6 +755,45 @@ declare module "url" {
|
|
757
755
|
*/
|
758
756
|
toJSON(): string;
|
759
757
|
}
|
758
|
+
interface URLPatternComponentResult {
|
759
|
+
input: string;
|
760
|
+
groups: Record<string, string | undefined>;
|
761
|
+
}
|
762
|
+
interface URLPatternInit {
|
763
|
+
protocol?: string;
|
764
|
+
username?: string;
|
765
|
+
password?: string;
|
766
|
+
hostname?: string;
|
767
|
+
port?: string;
|
768
|
+
pathname?: string;
|
769
|
+
search?: string;
|
770
|
+
hash?: string;
|
771
|
+
baseURL?: string;
|
772
|
+
}
|
773
|
+
interface URLPatternOptions {
|
774
|
+
ignoreCase?: boolean;
|
775
|
+
}
|
776
|
+
interface URLPatternResult {
|
777
|
+
inputs: (string | URLPatternInit)[];
|
778
|
+
protocol: URLPatternComponentResult;
|
779
|
+
username: URLPatternComponentResult;
|
780
|
+
password: URLPatternComponentResult;
|
781
|
+
hostname: URLPatternComponentResult;
|
782
|
+
port: URLPatternComponentResult;
|
783
|
+
pathname: URLPatternComponentResult;
|
784
|
+
search: URLPatternComponentResult;
|
785
|
+
hash: URLPatternComponentResult;
|
786
|
+
}
|
787
|
+
/**
|
788
|
+
* @since v23.8.0
|
789
|
+
* @experimental
|
790
|
+
*/
|
791
|
+
class URLPattern {
|
792
|
+
constructor(input: string | URLPatternInit, baseURL: string, options?: URLPatternOptions);
|
793
|
+
constructor(input?: string | URLPatternInit, options?: URLPatternOptions);
|
794
|
+
exec(input: string | URLPatternInit, baseURL?: string): URLPatternResult | null;
|
795
|
+
test(input: string | URLPatternInit, baseURL?: string): boolean;
|
796
|
+
}
|
760
797
|
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
761
798
|
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
762
799
|
}
|
@@ -937,34 +974,30 @@ declare module "url" {
|
|
937
974
|
values(): URLSearchParamsIterator<string>;
|
938
975
|
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
939
976
|
}
|
940
|
-
import {
|
977
|
+
import {
|
978
|
+
URL as _URL,
|
979
|
+
URLPattern as _URLPattern,
|
980
|
+
URLPatternInit as _URLPatternInit,
|
981
|
+
URLPatternResult as _URLPatternResult,
|
982
|
+
URLSearchParams as _URLSearchParams,
|
983
|
+
} from "url";
|
941
984
|
global {
|
942
|
-
interface URLSearchParams extends _URLSearchParams {}
|
943
985
|
interface URL extends _URL {}
|
944
|
-
interface Global {
|
945
|
-
URL: typeof _URL;
|
946
|
-
URLSearchParams: typeof _URLSearchParams;
|
947
|
-
}
|
948
|
-
/**
|
949
|
-
* `URL` class is a global reference for `import { URL } from 'url'`
|
950
|
-
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
951
|
-
* @since v10.0.0
|
952
|
-
*/
|
953
986
|
var URL: typeof globalThis extends {
|
954
987
|
onmessage: any;
|
955
988
|
URL: infer T;
|
956
989
|
} ? T
|
957
990
|
: typeof _URL;
|
958
|
-
|
959
|
-
* `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'`
|
960
|
-
* https://nodejs.org/api/url.html#class-urlsearchparams
|
961
|
-
* @since v10.0.0
|
962
|
-
*/
|
991
|
+
interface URLSearchParams extends _URLSearchParams {}
|
963
992
|
var URLSearchParams: typeof globalThis extends {
|
964
993
|
onmessage: any;
|
965
994
|
URLSearchParams: infer T;
|
966
995
|
} ? T
|
967
996
|
: typeof _URLSearchParams;
|
997
|
+
interface URLPatternInit extends _URLPatternInit {}
|
998
|
+
interface URLPatternResult extends _URLPatternResult {}
|
999
|
+
interface URLPattern extends _URLPattern {}
|
1000
|
+
var URLPattern: typeof _URLPattern;
|
968
1001
|
}
|
969
1002
|
}
|
970
1003
|
declare module "node:url" {
|
package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
* ```js
|
7
7
|
* import util from 'node:util';
|
8
8
|
* ```
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/util.js)
|
10
10
|
*/
|
11
11
|
declare module "util" {
|
12
12
|
import * as types from "node:util/types";
|
@@ -367,19 +367,6 @@ declare module "util" {
|
|
367
367
|
* @since v22.12.0
|
368
368
|
*/
|
369
369
|
export function getSystemErrorMessage(err: number): string;
|
370
|
-
/**
|
371
|
-
* The `util.log()` method prints the given `string` to `stdout` with an included
|
372
|
-
* timestamp.
|
373
|
-
*
|
374
|
-
* ```js
|
375
|
-
* import util from 'node:util';
|
376
|
-
*
|
377
|
-
* util.log('Timestamped message.');
|
378
|
-
* ```
|
379
|
-
* @since v0.3.0
|
380
|
-
* @deprecated Since v6.0.0 - Use a third party module instead.
|
381
|
-
*/
|
382
|
-
export function log(string: string): void;
|
383
370
|
/**
|
384
371
|
* Returns the `string` after replacing any surrogate code points
|
385
372
|
* (or equivalently, any unpaired surrogate code units) with the
|
@@ -433,7 +420,6 @@ declare module "util" {
|
|
433
420
|
* });
|
434
421
|
* ```
|
435
422
|
* @since v19.7.0
|
436
|
-
* @experimental
|
437
423
|
* @param resource Any non-null object tied to the abortable operation and held weakly.
|
438
424
|
* If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
|
439
425
|
* allowing Node.js to stop tracking it.
|
@@ -651,71 +637,6 @@ declare module "util" {
|
|
651
637
|
* @deprecated Since v4.0.0 - Use `isArray` instead.
|
652
638
|
*/
|
653
639
|
export function isArray(object: unknown): object is unknown[];
|
654
|
-
/**
|
655
|
-
* Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`.
|
656
|
-
*
|
657
|
-
* ```js
|
658
|
-
* import util from 'node:util';
|
659
|
-
*
|
660
|
-
* util.isRegExp(/some regexp/);
|
661
|
-
* // Returns: true
|
662
|
-
* util.isRegExp(new RegExp('another regexp'));
|
663
|
-
* // Returns: true
|
664
|
-
* util.isRegExp({});
|
665
|
-
* // Returns: false
|
666
|
-
* ```
|
667
|
-
* @since v0.6.0
|
668
|
-
* @deprecated Since v4.0.0 - Deprecated
|
669
|
-
*/
|
670
|
-
export function isRegExp(object: unknown): object is RegExp;
|
671
|
-
/**
|
672
|
-
* Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`.
|
673
|
-
*
|
674
|
-
* ```js
|
675
|
-
* import util from 'node:util';
|
676
|
-
*
|
677
|
-
* util.isDate(new Date());
|
678
|
-
* // Returns: true
|
679
|
-
* util.isDate(Date());
|
680
|
-
* // false (without 'new' returns a String)
|
681
|
-
* util.isDate({});
|
682
|
-
* // Returns: false
|
683
|
-
* ```
|
684
|
-
* @since v0.6.0
|
685
|
-
* @deprecated Since v4.0.0 - Use {@link types.isDate} instead.
|
686
|
-
*/
|
687
|
-
export function isDate(object: unknown): object is Date;
|
688
|
-
/**
|
689
|
-
* Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
|
690
|
-
*
|
691
|
-
* ```js
|
692
|
-
* import util from 'node:util';
|
693
|
-
*
|
694
|
-
* util.isError(new Error());
|
695
|
-
* // Returns: true
|
696
|
-
* util.isError(new TypeError());
|
697
|
-
* // Returns: true
|
698
|
-
* util.isError({ name: 'Error', message: 'an error occurred' });
|
699
|
-
* // Returns: false
|
700
|
-
* ```
|
701
|
-
*
|
702
|
-
* This method relies on `Object.prototype.toString()` behavior. It is
|
703
|
-
* possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
|
704
|
-
*
|
705
|
-
* ```js
|
706
|
-
* import util from 'node:util';
|
707
|
-
* const obj = { name: 'Error', message: 'an error occurred' };
|
708
|
-
*
|
709
|
-
* util.isError(obj);
|
710
|
-
* // Returns: false
|
711
|
-
* obj[Symbol.toStringTag] = 'Error';
|
712
|
-
* util.isError(obj);
|
713
|
-
* // Returns: true
|
714
|
-
* ```
|
715
|
-
* @since v0.6.0
|
716
|
-
* @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead.
|
717
|
-
*/
|
718
|
-
export function isError(object: unknown): object is Error;
|
719
640
|
/**
|
720
641
|
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and
|
721
642
|
* `extends` keywords to get language level inheritance support. Also note
|
@@ -866,217 +787,6 @@ declare module "util" {
|
|
866
787
|
*/
|
867
788
|
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
868
789
|
export { debuglog as debug };
|
869
|
-
/**
|
870
|
-
* Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
|
871
|
-
*
|
872
|
-
* ```js
|
873
|
-
* import util from 'node:util';
|
874
|
-
*
|
875
|
-
* util.isBoolean(1);
|
876
|
-
* // Returns: false
|
877
|
-
* util.isBoolean(0);
|
878
|
-
* // Returns: false
|
879
|
-
* util.isBoolean(false);
|
880
|
-
* // Returns: true
|
881
|
-
* ```
|
882
|
-
* @since v0.11.5
|
883
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead.
|
884
|
-
*/
|
885
|
-
export function isBoolean(object: unknown): object is boolean;
|
886
|
-
/**
|
887
|
-
* Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`.
|
888
|
-
*
|
889
|
-
* ```js
|
890
|
-
* import util from 'node:util';
|
891
|
-
*
|
892
|
-
* util.isBuffer({ length: 0 });
|
893
|
-
* // Returns: false
|
894
|
-
* util.isBuffer([]);
|
895
|
-
* // Returns: false
|
896
|
-
* util.isBuffer(Buffer.from('hello world'));
|
897
|
-
* // Returns: true
|
898
|
-
* ```
|
899
|
-
* @since v0.11.5
|
900
|
-
* @deprecated Since v4.0.0 - Use `isBuffer` instead.
|
901
|
-
*/
|
902
|
-
export function isBuffer(object: unknown): object is Buffer;
|
903
|
-
/**
|
904
|
-
* Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
|
905
|
-
*
|
906
|
-
* ```js
|
907
|
-
* import util from 'node:util';
|
908
|
-
*
|
909
|
-
* function Foo() {}
|
910
|
-
* const Bar = () => {};
|
911
|
-
*
|
912
|
-
* util.isFunction({});
|
913
|
-
* // Returns: false
|
914
|
-
* util.isFunction(Foo);
|
915
|
-
* // Returns: true
|
916
|
-
* util.isFunction(Bar);
|
917
|
-
* // Returns: true
|
918
|
-
* ```
|
919
|
-
* @since v0.11.5
|
920
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead.
|
921
|
-
*/
|
922
|
-
export function isFunction(object: unknown): boolean;
|
923
|
-
/**
|
924
|
-
* Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`.
|
925
|
-
*
|
926
|
-
* ```js
|
927
|
-
* import util from 'node:util';
|
928
|
-
*
|
929
|
-
* util.isNull(0);
|
930
|
-
* // Returns: false
|
931
|
-
* util.isNull(undefined);
|
932
|
-
* // Returns: false
|
933
|
-
* util.isNull(null);
|
934
|
-
* // Returns: true
|
935
|
-
* ```
|
936
|
-
* @since v0.11.5
|
937
|
-
* @deprecated Since v4.0.0 - Use `value === null` instead.
|
938
|
-
*/
|
939
|
-
export function isNull(object: unknown): object is null;
|
940
|
-
/**
|
941
|
-
* Returns `true` if the given `object` is `null` or `undefined`. Otherwise,
|
942
|
-
* returns `false`.
|
943
|
-
*
|
944
|
-
* ```js
|
945
|
-
* import util from 'node:util';
|
946
|
-
*
|
947
|
-
* util.isNullOrUndefined(0);
|
948
|
-
* // Returns: false
|
949
|
-
* util.isNullOrUndefined(undefined);
|
950
|
-
* // Returns: true
|
951
|
-
* util.isNullOrUndefined(null);
|
952
|
-
* // Returns: true
|
953
|
-
* ```
|
954
|
-
* @since v0.11.5
|
955
|
-
* @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead.
|
956
|
-
*/
|
957
|
-
export function isNullOrUndefined(object: unknown): object is null | undefined;
|
958
|
-
/**
|
959
|
-
* Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`.
|
960
|
-
*
|
961
|
-
* ```js
|
962
|
-
* import util from 'node:util';
|
963
|
-
*
|
964
|
-
* util.isNumber(false);
|
965
|
-
* // Returns: false
|
966
|
-
* util.isNumber(Infinity);
|
967
|
-
* // Returns: true
|
968
|
-
* util.isNumber(0);
|
969
|
-
* // Returns: true
|
970
|
-
* util.isNumber(NaN);
|
971
|
-
* // Returns: true
|
972
|
-
* ```
|
973
|
-
* @since v0.11.5
|
974
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead.
|
975
|
-
*/
|
976
|
-
export function isNumber(object: unknown): object is number;
|
977
|
-
/**
|
978
|
-
* Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript).
|
979
|
-
* Otherwise, returns `false`.
|
980
|
-
*
|
981
|
-
* ```js
|
982
|
-
* import util from 'node:util';
|
983
|
-
*
|
984
|
-
* util.isObject(5);
|
985
|
-
* // Returns: false
|
986
|
-
* util.isObject(null);
|
987
|
-
* // Returns: false
|
988
|
-
* util.isObject({});
|
989
|
-
* // Returns: true
|
990
|
-
* util.isObject(() => {});
|
991
|
-
* // Returns: false
|
992
|
-
* ```
|
993
|
-
* @since v0.11.5
|
994
|
-
* @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
|
995
|
-
*/
|
996
|
-
export function isObject(object: unknown): boolean;
|
997
|
-
/**
|
998
|
-
* Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`.
|
999
|
-
*
|
1000
|
-
* ```js
|
1001
|
-
* import util from 'node:util';
|
1002
|
-
*
|
1003
|
-
* util.isPrimitive(5);
|
1004
|
-
* // Returns: true
|
1005
|
-
* util.isPrimitive('foo');
|
1006
|
-
* // Returns: true
|
1007
|
-
* util.isPrimitive(false);
|
1008
|
-
* // Returns: true
|
1009
|
-
* util.isPrimitive(null);
|
1010
|
-
* // Returns: true
|
1011
|
-
* util.isPrimitive(undefined);
|
1012
|
-
* // Returns: true
|
1013
|
-
* util.isPrimitive({});
|
1014
|
-
* // Returns: false
|
1015
|
-
* util.isPrimitive(() => {});
|
1016
|
-
* // Returns: false
|
1017
|
-
* util.isPrimitive(/^$/);
|
1018
|
-
* // Returns: false
|
1019
|
-
* util.isPrimitive(new Date());
|
1020
|
-
* // Returns: false
|
1021
|
-
* ```
|
1022
|
-
* @since v0.11.5
|
1023
|
-
* @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead.
|
1024
|
-
*/
|
1025
|
-
export function isPrimitive(object: unknown): boolean;
|
1026
|
-
/**
|
1027
|
-
* Returns `true` if the given `object` is a `string`. Otherwise, returns `false`.
|
1028
|
-
*
|
1029
|
-
* ```js
|
1030
|
-
* import util from 'node:util';
|
1031
|
-
*
|
1032
|
-
* util.isString('');
|
1033
|
-
* // Returns: true
|
1034
|
-
* util.isString('foo');
|
1035
|
-
* // Returns: true
|
1036
|
-
* util.isString(String('foo'));
|
1037
|
-
* // Returns: true
|
1038
|
-
* util.isString(5);
|
1039
|
-
* // Returns: false
|
1040
|
-
* ```
|
1041
|
-
* @since v0.11.5
|
1042
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead.
|
1043
|
-
*/
|
1044
|
-
export function isString(object: unknown): object is string;
|
1045
|
-
/**
|
1046
|
-
* Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`.
|
1047
|
-
*
|
1048
|
-
* ```js
|
1049
|
-
* import util from 'node:util';
|
1050
|
-
*
|
1051
|
-
* util.isSymbol(5);
|
1052
|
-
* // Returns: false
|
1053
|
-
* util.isSymbol('foo');
|
1054
|
-
* // Returns: false
|
1055
|
-
* util.isSymbol(Symbol('foo'));
|
1056
|
-
* // Returns: true
|
1057
|
-
* ```
|
1058
|
-
* @since v0.11.5
|
1059
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead.
|
1060
|
-
*/
|
1061
|
-
export function isSymbol(object: unknown): object is symbol;
|
1062
|
-
/**
|
1063
|
-
* Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`.
|
1064
|
-
*
|
1065
|
-
* ```js
|
1066
|
-
* import util from 'node:util';
|
1067
|
-
*
|
1068
|
-
* const foo = undefined;
|
1069
|
-
* util.isUndefined(5);
|
1070
|
-
* // Returns: false
|
1071
|
-
* util.isUndefined(foo);
|
1072
|
-
* // Returns: true
|
1073
|
-
* util.isUndefined(null);
|
1074
|
-
* // Returns: false
|
1075
|
-
* ```
|
1076
|
-
* @since v0.11.5
|
1077
|
-
* @deprecated Since v4.0.0 - Use `value === undefined` instead.
|
1078
|
-
*/
|
1079
|
-
export function isUndefined(object: unknown): object is undefined;
|
1080
790
|
/**
|
1081
791
|
* The `util.deprecate()` method wraps `fn` (which may be a function or class) in
|
1082
792
|
* such a way that it is marked as deprecated.
|
@@ -1321,7 +1031,7 @@ declare module "util" {
|
|
1321
1031
|
* ```
|
1322
1032
|
*
|
1323
1033
|
* If there is an `original[util.promisify.custom]` property present, `promisify`
|
1324
|
-
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-
|
1034
|
+
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v24.x/api/util.html#custom-promisified-functions).
|
1325
1035
|
*
|
1326
1036
|
* `promisify()` assumes that `original` is a function taking a callback as its
|
1327
1037
|
* final argument in all cases. If `original` is not a function, `promisify()`
|
@@ -1481,7 +1191,7 @@ declare module "util" {
|
|
1481
1191
|
/**
|
1482
1192
|
* This function returns a formatted text considering the `format` passed
|
1483
1193
|
* for printing in a terminal. It is aware of the terminal's capabilities
|
1484
|
-
* and acts according to the configuration set via `
|
1194
|
+
* and acts according to the configuration set via `NO_COLOR`,
|
1485
1195
|
* `NODE_DISABLE_COLORS` and `FORCE_COLOR` environment variables.
|
1486
1196
|
*
|
1487
1197
|
* ```js
|
@@ -1518,7 +1228,7 @@ declare module "util" {
|
|
1518
1228
|
* );
|
1519
1229
|
* ```
|
1520
1230
|
*
|
1521
|
-
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-
|
1231
|
+
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v24.x/api/util.html#modifiers).
|
1522
1232
|
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
1523
1233
|
* @param text The text to to be formatted.
|
1524
1234
|
* @since v20.12.0
|
@@ -2222,10 +1932,21 @@ declare module "util/types" {
|
|
2222
1932
|
* ```
|
2223
1933
|
*
|
2224
1934
|
* For further information on `napi_create_external`, refer to
|
2225
|
-
* [`napi_create_external()`](https://nodejs.org/docs/latest-
|
1935
|
+
* [`napi_create_external()`](https://nodejs.org/docs/latest-v24.x/api/n-api.html#napi_create_external).
|
2226
1936
|
* @since v10.0.0
|
2227
1937
|
*/
|
2228
1938
|
function isExternal(object: unknown): boolean;
|
1939
|
+
/**
|
1940
|
+
* Returns `true` if the value is a built-in [`Float16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float16Array) instance.
|
1941
|
+
*
|
1942
|
+
* ```js
|
1943
|
+
* util.types.isFloat16Array(new ArrayBuffer()); // Returns false
|
1944
|
+
* util.types.isFloat16Array(new Float16Array()); // Returns true
|
1945
|
+
* util.types.isFloat16Array(new Float32Array()); // Returns false
|
1946
|
+
* ```
|
1947
|
+
* @since v24.0.0
|
1948
|
+
*/
|
1949
|
+
function isFloat16Array(object: unknown): object is Float16Array;
|
2229
1950
|
/**
|
2230
1951
|
* Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance.
|
2231
1952
|
*
|