node-red-contrib-tak-registration 0.11.1 → 0.11.4
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/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/assert.d.ts +50 -26
- package/node_modules/@types/node/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/buffer.d.ts +46 -38
- package/node_modules/@types/node/child_process.d.ts +278 -138
- package/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/node/console.d.ts +18 -15
- package/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/node/crypto.d.ts +746 -268
- package/node_modules/@types/node/dgram.d.ts +82 -46
- package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/dns.d.ts +204 -63
- package/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +99 -8
- package/node_modules/@types/node/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/fs.d.ts +520 -316
- package/node_modules/@types/node/globals.d.ts +346 -286
- package/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/node/http.d.ts +321 -189
- package/node_modules/@types/node/http2.d.ts +630 -377
- package/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/node/index.d.ts +0 -45
- package/node_modules/@types/node/inspector.d.ts +0 -1
- package/node_modules/@types/node/module.d.ts +75 -31
- package/node_modules/@types/node/net.d.ts +149 -93
- package/node_modules/@types/node/os.d.ts +10 -9
- package/node_modules/@types/node/package.json +88 -90
- package/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/process.d.ts +170 -126
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/node/stream.d.ts +365 -232
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +133 -212
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +26 -11
- package/node_modules/@types/node/tls.d.ts +152 -72
- package/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
- package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
- package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
- package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
- package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
- package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
- package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
- package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
- package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
- package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
- package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
- package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
- package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
- package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
- package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
- package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/node/url.d.ts +26 -14
- package/node_modules/@types/node/util.d.ts +187 -120
- package/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/node/vm.d.ts +58 -50
- package/node_modules/@types/node/wasi.d.ts +10 -4
- package/node_modules/@types/node/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +225 -0
- package/node_modules/axios/README.md +273 -9
- package/node_modules/axios/dist/axios.js +249 -178
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +213 -193
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +213 -193
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +297 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +20 -11
- package/node_modules/axios/index.d.ts +21 -12
- package/node_modules/axios/lib/adapters/adapters.js +33 -15
- package/node_modules/axios/lib/adapters/http.js +25 -12
- package/node_modules/axios/lib/adapters/xhr.js +17 -10
- package/node_modules/axios/lib/core/mergeConfig.js +1 -0
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +39 -49
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +0 -51
- package/node_modules/axios/lib/platform/common/utils.js +47 -0
- package/node_modules/axios/lib/platform/index.js +5 -1
- package/node_modules/axios/package.json +2 -1
- package/node_modules/call-bind/.eslintrc +0 -1
- package/node_modules/call-bind/.nycrc +0 -4
- package/node_modules/call-bind/CHANGELOG.md +35 -0
- package/node_modules/call-bind/README.md +63 -1
- package/node_modules/call-bind/index.js +10 -13
- package/node_modules/call-bind/package.json +33 -23
- package/node_modules/call-bind/test/callBound.js +0 -1
- package/node_modules/call-bind/test/index.js +18 -4
- package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
- package/node_modules/deep-equal/.eslintrc +6 -0
- package/node_modules/deep-equal/.nycrc +17 -0
- package/node_modules/deep-equal/CHANGELOG.md +204 -4
- package/node_modules/deep-equal/assert.js +3 -0
- package/node_modules/deep-equal/package.json +39 -17
- package/node_modules/deep-equal/readme.markdown +28 -12
- package/node_modules/deep-equal/test/_tape.js +24 -3
- package/node_modules/deep-equal/test/cmp.js +1047 -48
- package/node_modules/define-data-property/CHANGELOG.md +10 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -1
- package/node_modules/define-data-property/index.js +8 -0
- package/node_modules/define-data-property/package.json +11 -9
- package/node_modules/define-data-property/test/index.js +6 -11
- package/node_modules/define-data-property/tsconfig.json +1 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
- package/node_modules/fast-xml-parser/package.json +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
- package/node_modules/follow-redirects/index.js +16 -4
- package/node_modules/follow-redirects/package.json +2 -3
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +11 -11
- package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
- package/node_modules/has-property-descriptors/package.json +13 -6
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.d.ts.map +1 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +49 -0
- package/node_modules/set-function-length/.eslintrc +27 -0
- package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-length/.nycrc +13 -0
- package/node_modules/set-function-length/CHANGELOG.md +41 -0
- package/node_modules/set-function-length/LICENSE +21 -0
- package/node_modules/set-function-length/README.md +56 -0
- package/node_modules/set-function-length/env.js +19 -0
- package/node_modules/set-function-length/index.js +41 -0
- package/node_modules/set-function-length/package.json +84 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +3 -3
- package/tak-ingest.js +39 -24
- package/tak-registration.html +4 -4
- package/node_modules/define-data-property/tsinit +0 -109
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -48
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* ```
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
|
-
declare module
|
|
11
|
-
import { Blob as NodeBlob } from
|
|
12
|
-
import { ClientRequestArgs } from
|
|
13
|
-
import { ParsedUrlQuery, ParsedUrlQueryInput } from
|
|
10
|
+
declare module "url" {
|
|
11
|
+
import { Blob as NodeBlob } from "node:buffer";
|
|
12
|
+
import { ClientRequestArgs } from "node:http";
|
|
13
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
|
|
14
14
|
// Input to `url.format`
|
|
15
15
|
interface UrlObject {
|
|
16
16
|
auth?: string | null | undefined;
|
|
@@ -66,7 +66,11 @@ declare module 'url' {
|
|
|
66
66
|
* result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
|
|
67
67
|
*/
|
|
68
68
|
function parse(urlString: string): UrlWithStringQuery;
|
|
69
|
-
function parse(
|
|
69
|
+
function parse(
|
|
70
|
+
urlString: string,
|
|
71
|
+
parseQueryString: false | undefined,
|
|
72
|
+
slashesDenoteHost?: boolean,
|
|
73
|
+
): UrlWithStringQuery;
|
|
70
74
|
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
71
75
|
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
72
76
|
/**
|
|
@@ -756,7 +760,14 @@ declare module 'url' {
|
|
|
756
760
|
* @since v7.5.0, v6.13.0
|
|
757
761
|
*/
|
|
758
762
|
class URLSearchParams implements Iterable<[string, string]> {
|
|
759
|
-
constructor(
|
|
763
|
+
constructor(
|
|
764
|
+
init?:
|
|
765
|
+
| URLSearchParams
|
|
766
|
+
| string
|
|
767
|
+
| Record<string, string | readonly string[]>
|
|
768
|
+
| Iterable<[string, string]>
|
|
769
|
+
| ReadonlyArray<[string, string]>,
|
|
770
|
+
);
|
|
760
771
|
/**
|
|
761
772
|
* Append a new name-value pair to the query string.
|
|
762
773
|
*/
|
|
@@ -790,7 +801,10 @@ declare module 'url' {
|
|
|
790
801
|
* @param fn Invoked for each name-value pair in the query
|
|
791
802
|
* @param thisArg To be used as `this` value for when `fn` is called
|
|
792
803
|
*/
|
|
793
|
-
forEach<TThis = this>(
|
|
804
|
+
forEach<TThis = this>(
|
|
805
|
+
callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
|
|
806
|
+
thisArg?: TThis,
|
|
807
|
+
): void;
|
|
794
808
|
/**
|
|
795
809
|
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
796
810
|
* are no such pairs, `null` is returned.
|
|
@@ -878,7 +892,7 @@ declare module 'url' {
|
|
|
878
892
|
values(): IterableIterator<string>;
|
|
879
893
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
880
894
|
}
|
|
881
|
-
import { URL as _URL, URLSearchParams as _URLSearchParams } from
|
|
895
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
|
|
882
896
|
global {
|
|
883
897
|
interface URLSearchParams extends _URLSearchParams {}
|
|
884
898
|
interface URL extends _URL {}
|
|
@@ -894,8 +908,7 @@ declare module 'url' {
|
|
|
894
908
|
var URL: typeof globalThis extends {
|
|
895
909
|
onmessage: any;
|
|
896
910
|
URL: infer T;
|
|
897
|
-
}
|
|
898
|
-
? T
|
|
911
|
+
} ? T
|
|
899
912
|
: typeof _URL;
|
|
900
913
|
/**
|
|
901
914
|
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
|
|
@@ -905,11 +918,10 @@ declare module 'url' {
|
|
|
905
918
|
var URLSearchParams: typeof globalThis extends {
|
|
906
919
|
onmessage: any;
|
|
907
920
|
URLSearchParams: infer T;
|
|
908
|
-
}
|
|
909
|
-
? T
|
|
921
|
+
} ? T
|
|
910
922
|
: typeof _URLSearchParams;
|
|
911
923
|
}
|
|
912
924
|
}
|
|
913
|
-
declare module
|
|
914
|
-
export * from
|
|
925
|
+
declare module "node:url" {
|
|
926
|
+
export * from "url";
|
|
915
927
|
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/util.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module
|
|
12
|
-
import * as types from
|
|
11
|
+
declare module "util" {
|
|
12
|
+
import * as types from "node:util/types";
|
|
13
13
|
export interface InspectOptions {
|
|
14
14
|
/**
|
|
15
15
|
* If `true`, object's non-enumerable symbols and properties are included in the formatted result.
|
|
@@ -85,14 +85,25 @@ declare module 'util' {
|
|
|
85
85
|
* the getter function.
|
|
86
86
|
* @default false
|
|
87
87
|
*/
|
|
88
|
-
getters?:
|
|
88
|
+
getters?: "get" | "set" | boolean | undefined;
|
|
89
89
|
/**
|
|
90
90
|
* If set to `true`, an underscore is used to separate every three digits in all bigints and numbers.
|
|
91
91
|
* @default false
|
|
92
92
|
*/
|
|
93
93
|
numericSeparator?: boolean | undefined;
|
|
94
94
|
}
|
|
95
|
-
export type Style =
|
|
95
|
+
export type Style =
|
|
96
|
+
| "special"
|
|
97
|
+
| "number"
|
|
98
|
+
| "bigint"
|
|
99
|
+
| "boolean"
|
|
100
|
+
| "undefined"
|
|
101
|
+
| "null"
|
|
102
|
+
| "string"
|
|
103
|
+
| "symbol"
|
|
104
|
+
| "date"
|
|
105
|
+
| "regexp"
|
|
106
|
+
| "module";
|
|
96
107
|
export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect
|
|
97
108
|
export interface InspectOptionsStylized extends InspectOptions {
|
|
98
109
|
stylize(text: string, styleType: Style): string;
|
|
@@ -408,8 +419,14 @@ declare module 'util' {
|
|
|
408
419
|
* const bigNumber = 123_456_789n;
|
|
409
420
|
* const bigDecimal = 1_234.123_45;
|
|
410
421
|
*
|
|
411
|
-
* console.log(thousand,
|
|
412
|
-
* // 1_000
|
|
422
|
+
* console.log(inspect(thousand, { numericSeparator: true }));
|
|
423
|
+
* // 1_000
|
|
424
|
+
* console.log(inspect(million, { numericSeparator: true }));
|
|
425
|
+
* // 1_000_000
|
|
426
|
+
* console.log(inspect(bigNumber, { numericSeparator: true }));
|
|
427
|
+
* // 123_456_789n
|
|
428
|
+
* console.log(inspect(bigDecimal, { numericSeparator: true }));
|
|
429
|
+
* // 1_234.123_45
|
|
413
430
|
* ```
|
|
414
431
|
*
|
|
415
432
|
* `util.inspect()` is a synchronous method intended for debugging. Its maximum
|
|
@@ -970,40 +987,83 @@ declare module 'util' {
|
|
|
970
987
|
* @return a callback style function
|
|
971
988
|
*/
|
|
972
989
|
export function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
973
|
-
export function callbackify<TResult>(
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
export function callbackify<T1
|
|
977
|
-
|
|
978
|
-
|
|
990
|
+
export function callbackify<TResult>(
|
|
991
|
+
fn: () => Promise<TResult>,
|
|
992
|
+
): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
993
|
+
export function callbackify<T1>(
|
|
994
|
+
fn: (arg1: T1) => Promise<void>,
|
|
995
|
+
): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
996
|
+
export function callbackify<T1, TResult>(
|
|
997
|
+
fn: (arg1: T1) => Promise<TResult>,
|
|
998
|
+
): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
999
|
+
export function callbackify<T1, T2>(
|
|
1000
|
+
fn: (arg1: T1, arg2: T2) => Promise<void>,
|
|
1001
|
+
): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
1002
|
+
export function callbackify<T1, T2, TResult>(
|
|
1003
|
+
fn: (arg1: T1, arg2: T2) => Promise<TResult>,
|
|
1004
|
+
): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
1005
|
+
export function callbackify<T1, T2, T3>(
|
|
1006
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>,
|
|
1007
|
+
): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
979
1008
|
export function callbackify<T1, T2, T3, TResult>(
|
|
980
|
-
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult
|
|
1009
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>,
|
|
981
1010
|
): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
982
1011
|
export function callbackify<T1, T2, T3, T4>(
|
|
983
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void
|
|
1012
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>,
|
|
984
1013
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
985
1014
|
export function callbackify<T1, T2, T3, T4, TResult>(
|
|
986
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult
|
|
987
|
-
): (
|
|
1015
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>,
|
|
1016
|
+
): (
|
|
1017
|
+
arg1: T1,
|
|
1018
|
+
arg2: T2,
|
|
1019
|
+
arg3: T3,
|
|
1020
|
+
arg4: T4,
|
|
1021
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
1022
|
+
) => void;
|
|
988
1023
|
export function callbackify<T1, T2, T3, T4, T5>(
|
|
989
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void
|
|
1024
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>,
|
|
990
1025
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
991
1026
|
export function callbackify<T1, T2, T3, T4, T5, TResult>(
|
|
992
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult
|
|
993
|
-
): (
|
|
1027
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>,
|
|
1028
|
+
): (
|
|
1029
|
+
arg1: T1,
|
|
1030
|
+
arg2: T2,
|
|
1031
|
+
arg3: T3,
|
|
1032
|
+
arg4: T4,
|
|
1033
|
+
arg5: T5,
|
|
1034
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
1035
|
+
) => void;
|
|
994
1036
|
export function callbackify<T1, T2, T3, T4, T5, T6>(
|
|
995
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void
|
|
996
|
-
): (
|
|
1037
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>,
|
|
1038
|
+
): (
|
|
1039
|
+
arg1: T1,
|
|
1040
|
+
arg2: T2,
|
|
1041
|
+
arg3: T3,
|
|
1042
|
+
arg4: T4,
|
|
1043
|
+
arg5: T5,
|
|
1044
|
+
arg6: T6,
|
|
1045
|
+
callback: (err: NodeJS.ErrnoException) => void,
|
|
1046
|
+
) => void;
|
|
997
1047
|
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(
|
|
998
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult
|
|
999
|
-
): (
|
|
1048
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>,
|
|
1049
|
+
): (
|
|
1050
|
+
arg1: T1,
|
|
1051
|
+
arg2: T2,
|
|
1052
|
+
arg3: T3,
|
|
1053
|
+
arg4: T4,
|
|
1054
|
+
arg5: T5,
|
|
1055
|
+
arg6: T6,
|
|
1056
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
1057
|
+
) => void;
|
|
1000
1058
|
export interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
|
|
1001
1059
|
__promisify__: TCustom;
|
|
1002
1060
|
}
|
|
1003
1061
|
export interface CustomPromisifySymbol<TCustom extends Function> extends Function {
|
|
1004
1062
|
[promisify.custom]: TCustom;
|
|
1005
1063
|
}
|
|
1006
|
-
export type CustomPromisify<TCustom extends Function> =
|
|
1064
|
+
export type CustomPromisify<TCustom extends Function> =
|
|
1065
|
+
| CustomPromisifySymbol<TCustom>
|
|
1066
|
+
| CustomPromisifyLegacy<TCustom>;
|
|
1007
1067
|
/**
|
|
1008
1068
|
* Takes a function following the common error-first callback style, i.e. taking
|
|
1009
1069
|
* an `(err, value) => ...` callback as the last argument, and returns a version
|
|
@@ -1033,6 +1093,8 @@ declare module 'util' {
|
|
|
1033
1093
|
* const stats = await stat('.');
|
|
1034
1094
|
* console.log(`This directory is owned by ${stats.uid}`);
|
|
1035
1095
|
* }
|
|
1096
|
+
*
|
|
1097
|
+
* callStat();
|
|
1036
1098
|
* ```
|
|
1037
1099
|
*
|
|
1038
1100
|
* If there is an `original[util.promisify.custom]` property present, `promisify`will return its value, see `Custom promisified functions`.
|
|
@@ -1072,23 +1134,37 @@ declare module 'util' {
|
|
|
1072
1134
|
* @since v8.0.0
|
|
1073
1135
|
*/
|
|
1074
1136
|
export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
1075
|
-
export function promisify<TResult>(
|
|
1137
|
+
export function promisify<TResult>(
|
|
1138
|
+
fn: (callback: (err: any, result: TResult) => void) => void,
|
|
1139
|
+
): () => Promise<TResult>;
|
|
1076
1140
|
export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
|
1077
|
-
export function promisify<T1, TResult>(
|
|
1141
|
+
export function promisify<T1, TResult>(
|
|
1142
|
+
fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void,
|
|
1143
|
+
): (arg1: T1) => Promise<TResult>;
|
|
1078
1144
|
export function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
|
|
1079
|
-
export function promisify<T1, T2, TResult>(
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
export function promisify<T1, T2
|
|
1145
|
+
export function promisify<T1, T2, TResult>(
|
|
1146
|
+
fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void,
|
|
1147
|
+
): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
1148
|
+
export function promisify<T1, T2>(
|
|
1149
|
+
fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void,
|
|
1150
|
+
): (arg1: T1, arg2: T2) => Promise<void>;
|
|
1151
|
+
export function promisify<T1, T2, T3, TResult>(
|
|
1152
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void,
|
|
1153
|
+
): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
1154
|
+
export function promisify<T1, T2, T3>(
|
|
1155
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void,
|
|
1156
|
+
): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
1083
1157
|
export function promisify<T1, T2, T3, T4, TResult>(
|
|
1084
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void
|
|
1158
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
|
|
1085
1159
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
1086
|
-
export function promisify<T1, T2, T3, T4>(
|
|
1160
|
+
export function promisify<T1, T2, T3, T4>(
|
|
1161
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void,
|
|
1162
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
1087
1163
|
export function promisify<T1, T2, T3, T4, T5, TResult>(
|
|
1088
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void
|
|
1164
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
|
|
1089
1165
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
1090
1166
|
export function promisify<T1, T2, T3, T4, T5>(
|
|
1091
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void
|
|
1167
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
|
1092
1168
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
1093
1169
|
export function promisify(fn: Function): Function;
|
|
1094
1170
|
export namespace promisify {
|
|
@@ -1127,7 +1203,7 @@ declare module 'util' {
|
|
|
1127
1203
|
options?: {
|
|
1128
1204
|
fatal?: boolean | undefined;
|
|
1129
1205
|
ignoreBOM?: boolean | undefined;
|
|
1130
|
-
}
|
|
1206
|
+
},
|
|
1131
1207
|
);
|
|
1132
1208
|
/**
|
|
1133
1209
|
* Decodes the `input` and returns a string. If `options.stream` is `true`, any
|
|
@@ -1141,7 +1217,7 @@ declare module 'util' {
|
|
|
1141
1217
|
input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
|
|
1142
1218
|
options?: {
|
|
1143
1219
|
stream?: boolean | undefined;
|
|
1144
|
-
}
|
|
1220
|
+
},
|
|
1145
1221
|
): string;
|
|
1146
1222
|
}
|
|
1147
1223
|
export interface EncodeIntoResult {
|
|
@@ -1195,7 +1271,7 @@ declare module 'util' {
|
|
|
1195
1271
|
*/
|
|
1196
1272
|
encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
|
|
1197
1273
|
}
|
|
1198
|
-
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from
|
|
1274
|
+
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util";
|
|
1199
1275
|
global {
|
|
1200
1276
|
/**
|
|
1201
1277
|
* `TextDecoder` class is a global reference for `require('util').TextDecoder`
|
|
@@ -1205,8 +1281,7 @@ declare module 'util' {
|
|
|
1205
1281
|
var TextDecoder: typeof globalThis extends {
|
|
1206
1282
|
onmessage: any;
|
|
1207
1283
|
TextDecoder: infer TextDecoder;
|
|
1208
|
-
}
|
|
1209
|
-
? TextDecoder
|
|
1284
|
+
} ? TextDecoder
|
|
1210
1285
|
: typeof _TextDecoder;
|
|
1211
1286
|
/**
|
|
1212
1287
|
* `TextEncoder` class is a global reference for `require('util').TextEncoder`
|
|
@@ -1216,8 +1291,7 @@ declare module 'util' {
|
|
|
1216
1291
|
var TextEncoder: typeof globalThis extends {
|
|
1217
1292
|
onmessage: any;
|
|
1218
1293
|
TextEncoder: infer TextEncoder;
|
|
1219
|
-
}
|
|
1220
|
-
? TextEncoder
|
|
1294
|
+
} ? TextEncoder
|
|
1221
1295
|
: typeof _TextEncoder;
|
|
1222
1296
|
}
|
|
1223
1297
|
|
|
@@ -1255,7 +1329,7 @@ declare module 'util' {
|
|
|
1255
1329
|
/**
|
|
1256
1330
|
* Type of argument.
|
|
1257
1331
|
*/
|
|
1258
|
-
type:
|
|
1332
|
+
type: "string" | "boolean";
|
|
1259
1333
|
/**
|
|
1260
1334
|
* Whether this option can be provided multiple times.
|
|
1261
1335
|
* If `true`, all values will be collected in an array.
|
|
@@ -1313,89 +1387,81 @@ declare module 'util' {
|
|
|
1313
1387
|
This is technically incorrect but is a much nicer UX for the common case.
|
|
1314
1388
|
The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false.
|
|
1315
1389
|
*/
|
|
1316
|
-
type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true
|
|
1317
|
-
?
|
|
1318
|
-
: T extends false
|
|
1319
|
-
? IfFalse
|
|
1390
|
+
type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true ? IfTrue
|
|
1391
|
+
: T extends false ? IfFalse
|
|
1320
1392
|
: IfTrue;
|
|
1321
1393
|
|
|
1322
1394
|
// we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false`
|
|
1323
|
-
type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false
|
|
1324
|
-
?
|
|
1325
|
-
: T extends true
|
|
1326
|
-
? IfTrue
|
|
1395
|
+
type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false ? IfFalse
|
|
1396
|
+
: T extends true ? IfTrue
|
|
1327
1397
|
: IfFalse;
|
|
1328
1398
|
|
|
1329
1399
|
type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionConfig> = IfDefaultsTrue<
|
|
1330
|
-
T[
|
|
1331
|
-
O[
|
|
1400
|
+
T["strict"],
|
|
1401
|
+
O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean,
|
|
1332
1402
|
string | boolean
|
|
1333
1403
|
>;
|
|
1334
1404
|
|
|
1335
1405
|
type ParsedValues<T extends ParseArgsConfig> =
|
|
1336
|
-
& IfDefaultsTrue<T[
|
|
1337
|
-
& (T[
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
T[
|
|
1341
|
-
undefined |
|
|
1342
|
-
undefined | ExtractOptionValue<T, T['options'][LongOption]>
|
|
1406
|
+
& IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
|
|
1407
|
+
& (T["options"] extends ParseArgsOptionsConfig ? {
|
|
1408
|
+
-readonly [LongOption in keyof T["options"]]: IfDefaultsFalse<
|
|
1409
|
+
T["options"][LongOption]["multiple"],
|
|
1410
|
+
undefined | Array<ExtractOptionValue<T, T["options"][LongOption]>>,
|
|
1411
|
+
undefined | ExtractOptionValue<T, T["options"][LongOption]>
|
|
1343
1412
|
>;
|
|
1344
1413
|
}
|
|
1345
1414
|
: {});
|
|
1346
1415
|
|
|
1347
1416
|
type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
1348
|
-
T[
|
|
1349
|
-
IfDefaultsFalse<T[
|
|
1350
|
-
IfDefaultsTrue<T[
|
|
1417
|
+
T["strict"],
|
|
1418
|
+
IfDefaultsFalse<T["allowPositionals"], string[], []>,
|
|
1419
|
+
IfDefaultsTrue<T["allowPositionals"], string[], []>
|
|
1351
1420
|
>;
|
|
1352
1421
|
|
|
1353
1422
|
type PreciseTokenForOptions<
|
|
1354
1423
|
K extends string,
|
|
1355
1424
|
O extends ParseArgsOptionConfig,
|
|
1356
|
-
> = O[
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
inlineValue: undefined;
|
|
1373
|
-
}
|
|
1425
|
+
> = O["type"] extends "string" ? {
|
|
1426
|
+
kind: "option";
|
|
1427
|
+
index: number;
|
|
1428
|
+
name: K;
|
|
1429
|
+
rawName: string;
|
|
1430
|
+
value: string;
|
|
1431
|
+
inlineValue: boolean;
|
|
1432
|
+
}
|
|
1433
|
+
: O["type"] extends "boolean" ? {
|
|
1434
|
+
kind: "option";
|
|
1435
|
+
index: number;
|
|
1436
|
+
name: K;
|
|
1437
|
+
rawName: string;
|
|
1438
|
+
value: undefined;
|
|
1439
|
+
inlineValue: undefined;
|
|
1440
|
+
}
|
|
1374
1441
|
: OptionToken & { name: K };
|
|
1375
1442
|
|
|
1376
1443
|
type TokenForOptions<
|
|
1377
1444
|
T extends ParseArgsConfig,
|
|
1378
|
-
K extends keyof T[
|
|
1445
|
+
K extends keyof T["options"] = keyof T["options"],
|
|
1379
1446
|
> = K extends unknown
|
|
1380
|
-
? T[
|
|
1381
|
-
|
|
1382
|
-
: OptionToken
|
|
1447
|
+
? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions<K & string, T["options"][K]>
|
|
1448
|
+
: OptionToken
|
|
1383
1449
|
: never;
|
|
1384
1450
|
|
|
1385
|
-
type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T[
|
|
1451
|
+
type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], TokenForOptions<T>, OptionToken>;
|
|
1386
1452
|
|
|
1387
1453
|
type ParsedPositionalToken<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
1388
|
-
T[
|
|
1389
|
-
IfDefaultsFalse<T[
|
|
1390
|
-
IfDefaultsTrue<T[
|
|
1454
|
+
T["strict"],
|
|
1455
|
+
IfDefaultsFalse<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>,
|
|
1456
|
+
IfDefaultsTrue<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>
|
|
1391
1457
|
>;
|
|
1392
1458
|
|
|
1393
1459
|
type ParsedTokens<T extends ParseArgsConfig> = Array<
|
|
1394
|
-
ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind:
|
|
1460
|
+
ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind: "option-terminator"; index: number }
|
|
1395
1461
|
>;
|
|
1396
1462
|
|
|
1397
1463
|
type PreciseParsedResults<T extends ParseArgsConfig> = IfDefaultsFalse<
|
|
1398
|
-
T[
|
|
1464
|
+
T["tokens"],
|
|
1399
1465
|
{
|
|
1400
1466
|
values: ParsedValues<T>;
|
|
1401
1467
|
positionals: ParsedPositionals<T>;
|
|
@@ -1408,31 +1474,30 @@ declare module 'util' {
|
|
|
1408
1474
|
>;
|
|
1409
1475
|
|
|
1410
1476
|
type OptionToken =
|
|
1411
|
-
| { kind:
|
|
1477
|
+
| { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean }
|
|
1412
1478
|
| {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1479
|
+
kind: "option";
|
|
1480
|
+
index: number;
|
|
1481
|
+
name: string;
|
|
1482
|
+
rawName: string;
|
|
1483
|
+
value: undefined;
|
|
1484
|
+
inlineValue: undefined;
|
|
1485
|
+
};
|
|
1420
1486
|
|
|
1421
1487
|
type Token =
|
|
1422
1488
|
| OptionToken
|
|
1423
|
-
| { kind:
|
|
1424
|
-
| { kind:
|
|
1489
|
+
| { kind: "positional"; index: number; value: string }
|
|
1490
|
+
| { kind: "option-terminator"; index: number };
|
|
1425
1491
|
|
|
1426
1492
|
// If ParseArgsConfig extends T, then the user passed config constructed elsewhere.
|
|
1427
1493
|
// So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above.
|
|
1428
|
-
type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1494
|
+
type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T ? {
|
|
1495
|
+
values: {
|
|
1496
|
+
[longOption: string]: undefined | string | boolean | Array<string | boolean>;
|
|
1497
|
+
};
|
|
1498
|
+
positionals: string[];
|
|
1499
|
+
tokens?: Token[];
|
|
1500
|
+
}
|
|
1436
1501
|
: PreciseParsedResults<T>;
|
|
1437
1502
|
|
|
1438
1503
|
/**
|
|
@@ -1575,7 +1640,7 @@ declare module 'util' {
|
|
|
1575
1640
|
* params.set('foo', 'def');
|
|
1576
1641
|
* params.set('baz', 'xyz');
|
|
1577
1642
|
* console.log(params.toString());
|
|
1578
|
-
* // Prints: foo=def
|
|
1643
|
+
* // Prints: foo=def;bar=1;baz=xyz
|
|
1579
1644
|
* ```
|
|
1580
1645
|
*/
|
|
1581
1646
|
set(name: string, value: string): void;
|
|
@@ -1589,11 +1654,8 @@ declare module 'util' {
|
|
|
1589
1654
|
[Symbol.iterator]: typeof MIMEParams.prototype.entries;
|
|
1590
1655
|
}
|
|
1591
1656
|
}
|
|
1592
|
-
declare module
|
|
1593
|
-
|
|
1594
|
-
}
|
|
1595
|
-
declare module 'util/types' {
|
|
1596
|
-
import { KeyObject, webcrypto } from 'node:crypto';
|
|
1657
|
+
declare module "util/types" {
|
|
1658
|
+
import { KeyObject, webcrypto } from "node:crypto";
|
|
1597
1659
|
/**
|
|
1598
1660
|
* Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
|
|
1599
1661
|
* [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
|
|
@@ -1859,7 +1921,10 @@ declare module 'util/types' {
|
|
|
1859
1921
|
* ```
|
|
1860
1922
|
* @since v10.0.0
|
|
1861
1923
|
*/
|
|
1862
|
-
function isMap<T>(
|
|
1924
|
+
function isMap<T>(
|
|
1925
|
+
object: T | {},
|
|
1926
|
+
): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>)
|
|
1927
|
+
: Map<unknown, unknown>;
|
|
1863
1928
|
/**
|
|
1864
1929
|
* Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
|
|
1865
1930
|
*
|
|
@@ -1973,7 +2038,9 @@ declare module 'util/types' {
|
|
|
1973
2038
|
* ```
|
|
1974
2039
|
* @since v10.0.0
|
|
1975
2040
|
*/
|
|
1976
|
-
function isSet<T>(
|
|
2041
|
+
function isSet<T>(
|
|
2042
|
+
object: T | {},
|
|
2043
|
+
): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
|
|
1977
2044
|
/**
|
|
1978
2045
|
* Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
|
|
1979
2046
|
*
|
|
@@ -2108,9 +2175,9 @@ declare module 'util/types' {
|
|
|
2108
2175
|
*/
|
|
2109
2176
|
function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
|
|
2110
2177
|
}
|
|
2111
|
-
declare module
|
|
2112
|
-
export * from
|
|
2178
|
+
declare module "node:util" {
|
|
2179
|
+
export * from "util";
|
|
2113
2180
|
}
|
|
2114
|
-
declare module
|
|
2115
|
-
export * from
|
|
2181
|
+
declare module "node:util/types" {
|
|
2182
|
+
export * from "util/types";
|
|
2116
2183
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* ```
|
|
7
7
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
|
-
declare module
|
|
10
|
-
import { Readable } from
|
|
9
|
+
declare module "v8" {
|
|
10
|
+
import { Readable } from "node:stream";
|
|
11
11
|
interface HeapSpaceInfo {
|
|
12
12
|
space_name: string;
|
|
13
13
|
space_size: number;
|
|
@@ -630,6 +630,6 @@ declare module 'v8' {
|
|
|
630
630
|
*/
|
|
631
631
|
const promiseHooks: PromiseHooks;
|
|
632
632
|
}
|
|
633
|
-
declare module
|
|
634
|
-
export * from
|
|
633
|
+
declare module "node:v8" {
|
|
634
|
+
export * from "v8";
|
|
635
635
|
}
|