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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since v0.3.7
|
|
3
|
+
* @experimental
|
|
3
4
|
*/
|
|
4
|
-
declare module
|
|
5
|
-
import { URL } from
|
|
6
|
-
import { MessagePort } from
|
|
5
|
+
declare module "module" {
|
|
6
|
+
import { URL } from "node:url";
|
|
7
|
+
import { MessagePort } from "node:worker_threads";
|
|
7
8
|
namespace Module {
|
|
8
9
|
/**
|
|
9
10
|
* The `module.syncBuiltinESMExports()` method updates all the live bindings for
|
|
@@ -64,6 +65,24 @@ declare module 'module' {
|
|
|
64
65
|
originalLine: number;
|
|
65
66
|
originalColumn: number;
|
|
66
67
|
}
|
|
68
|
+
interface SourceOrigin {
|
|
69
|
+
/**
|
|
70
|
+
* The name of the range in the source map, if one was provided
|
|
71
|
+
*/
|
|
72
|
+
name?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The file name of the original source, as reported in the SourceMap
|
|
75
|
+
*/
|
|
76
|
+
fileName: string;
|
|
77
|
+
/**
|
|
78
|
+
* The 1-indexed lineNumber of the corresponding call site in the original source
|
|
79
|
+
*/
|
|
80
|
+
lineNumber: number;
|
|
81
|
+
/**
|
|
82
|
+
* The 1-indexed columnNumber of the corresponding call site in the original source
|
|
83
|
+
*/
|
|
84
|
+
columnNumber: number;
|
|
85
|
+
}
|
|
67
86
|
/**
|
|
68
87
|
* @since v13.7.0, v12.17.0
|
|
69
88
|
*/
|
|
@@ -92,11 +111,23 @@ declare module 'module' {
|
|
|
92
111
|
* @param columnOffset The zero-indexed column number offset in the generated source
|
|
93
112
|
*/
|
|
94
113
|
findEntry(lineOffset: number, columnOffset: number): SourceMapping;
|
|
114
|
+
/**
|
|
115
|
+
* Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
|
|
116
|
+
* find the corresponding call site location in the original source.
|
|
117
|
+
*
|
|
118
|
+
* If the `lineNumber` and `columnNumber` provided are not found in any source map,
|
|
119
|
+
* then an empty object is returned.
|
|
120
|
+
* @param lineNumber The 1-indexed line number of the call site in the generated source
|
|
121
|
+
* @param columnNumber The 1-indexed column number of the call site in the generated source
|
|
122
|
+
*/
|
|
123
|
+
findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
|
|
95
124
|
}
|
|
96
|
-
|
|
125
|
+
/** @deprecated Use `ImportAttributes` instead */
|
|
126
|
+
interface ImportAssertions extends ImportAttributes {}
|
|
127
|
+
interface ImportAttributes extends NodeJS.Dict<string> {
|
|
97
128
|
type?: string | undefined;
|
|
98
129
|
}
|
|
99
|
-
type ModuleFormat =
|
|
130
|
+
type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm";
|
|
100
131
|
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
|
101
132
|
interface GlobalPreloadContext {
|
|
102
133
|
port: MessagePort;
|
|
@@ -113,22 +144,26 @@ declare module 'module' {
|
|
|
113
144
|
*/
|
|
114
145
|
type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
|
|
115
146
|
/**
|
|
116
|
-
* The `initialize` hook provides a way to define a custom function that runs in the
|
|
117
|
-
* when the
|
|
118
|
-
* or registered via the `--experimental-loader` command line option.
|
|
147
|
+
* The `initialize` hook provides a way to define a custom function that runs in the hooks thread
|
|
148
|
+
* when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`.
|
|
119
149
|
*
|
|
120
|
-
* This hook can
|
|
150
|
+
* This hook can receive data from a `register` invocation, including ports and other transferrable objects.
|
|
151
|
+
* The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes.
|
|
121
152
|
*/
|
|
122
|
-
type InitializeHook<Data = any
|
|
153
|
+
type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
|
|
123
154
|
interface ResolveHookContext {
|
|
124
155
|
/**
|
|
125
156
|
* Export conditions of the relevant `package.json`
|
|
126
157
|
*/
|
|
127
158
|
conditions: string[];
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated Use `importAttributes` instead
|
|
161
|
+
*/
|
|
162
|
+
importAssertions: ImportAttributes;
|
|
128
163
|
/**
|
|
129
164
|
* An object whose key-value pairs represent the assertions for the module to import
|
|
130
165
|
*/
|
|
131
|
-
|
|
166
|
+
importAttributes: ImportAttributes;
|
|
132
167
|
/**
|
|
133
168
|
* The module importing this one, or undefined if this is the Node.js entry point
|
|
134
169
|
*/
|
|
@@ -140,9 +175,13 @@ declare module 'module' {
|
|
|
140
175
|
*/
|
|
141
176
|
format?: ModuleFormat | null | undefined;
|
|
142
177
|
/**
|
|
143
|
-
*
|
|
178
|
+
* @deprecated Use `importAttributes` instead
|
|
179
|
+
*/
|
|
180
|
+
importAssertions?: ImportAttributes | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* The import attributes to use when caching the module (optional; if excluded the input will be used)
|
|
144
183
|
*/
|
|
145
|
-
|
|
184
|
+
importAttributes?: ImportAttributes | undefined;
|
|
146
185
|
/**
|
|
147
186
|
* A signal that this hook intends to terminate the chain of `resolve` hooks.
|
|
148
187
|
* @default false
|
|
@@ -165,7 +204,10 @@ declare module 'module' {
|
|
|
165
204
|
type ResolveHook = (
|
|
166
205
|
specifier: string,
|
|
167
206
|
context: ResolveHookContext,
|
|
168
|
-
nextResolve: (
|
|
207
|
+
nextResolve: (
|
|
208
|
+
specifier: string,
|
|
209
|
+
context?: ResolveHookContext,
|
|
210
|
+
) => ResolveFnOutput | Promise<ResolveFnOutput>,
|
|
169
211
|
) => ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
170
212
|
interface LoadHookContext {
|
|
171
213
|
/**
|
|
@@ -176,10 +218,14 @@ declare module 'module' {
|
|
|
176
218
|
* The format optionally supplied by the `resolve` hook chain
|
|
177
219
|
*/
|
|
178
220
|
format: ModuleFormat;
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Use `importAttributes` instead
|
|
223
|
+
*/
|
|
224
|
+
importAssertions: ImportAttributes;
|
|
179
225
|
/**
|
|
180
226
|
* An object whose key-value pairs represent the assertions for the module to import
|
|
181
227
|
*/
|
|
182
|
-
|
|
228
|
+
importAttributes: ImportAttributes;
|
|
183
229
|
}
|
|
184
230
|
interface LoadFnOutput {
|
|
185
231
|
format: ModuleFormat;
|
|
@@ -204,11 +250,11 @@ declare module 'module' {
|
|
|
204
250
|
type LoadHook = (
|
|
205
251
|
url: string,
|
|
206
252
|
context: LoadHookContext,
|
|
207
|
-
nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput
|
|
253
|
+
nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
|
|
208
254
|
) => LoadFnOutput | Promise<LoadFnOutput>;
|
|
209
255
|
}
|
|
210
256
|
interface RegisterOptions<Data> {
|
|
211
|
-
parentURL: string;
|
|
257
|
+
parentURL: string | URL;
|
|
212
258
|
data?: Data | undefined;
|
|
213
259
|
transferList?: any[] | undefined;
|
|
214
260
|
}
|
|
@@ -220,8 +266,12 @@ declare module 'module' {
|
|
|
220
266
|
static builtinModules: string[];
|
|
221
267
|
static isBuiltin(moduleName: string): boolean;
|
|
222
268
|
static Module: typeof Module;
|
|
223
|
-
static register<Data = any
|
|
224
|
-
|
|
269
|
+
static register<Data = any>(
|
|
270
|
+
specifier: string | URL,
|
|
271
|
+
parentURL?: string | URL,
|
|
272
|
+
options?: RegisterOptions<Data>,
|
|
273
|
+
): void;
|
|
274
|
+
static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
|
|
225
275
|
constructor(id: string, parent?: Module);
|
|
226
276
|
}
|
|
227
277
|
global {
|
|
@@ -231,27 +281,21 @@ declare module 'module' {
|
|
|
231
281
|
* Provides a module-relative resolution function scoped to each module, returning
|
|
232
282
|
* the URL string.
|
|
233
283
|
*
|
|
234
|
-
*
|
|
235
|
-
* @returns The absolute (`file:`) URL string for the resolved module.
|
|
236
|
-
*/
|
|
237
|
-
resolve(specified: string): string;
|
|
238
|
-
/**
|
|
239
|
-
* This feature is only available with the `--experimental-import-meta-resolve`
|
|
284
|
+
* Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
|
|
240
285
|
* command flag enabled.
|
|
241
286
|
*
|
|
242
|
-
*
|
|
243
|
-
* the URL string.
|
|
287
|
+
* @since v20.6.0
|
|
244
288
|
*
|
|
245
|
-
* @param
|
|
289
|
+
* @param specifier The module specifier to resolve relative to `parent`.
|
|
246
290
|
* @param parent The absolute parent module URL to resolve from.
|
|
247
291
|
* @returns The absolute (`file:`) URL string for the resolved module.
|
|
248
292
|
*/
|
|
249
|
-
resolve(
|
|
293
|
+
resolve(specifier: string, parent?: string | URL | undefined): string;
|
|
250
294
|
}
|
|
251
295
|
}
|
|
252
296
|
export = Module;
|
|
253
297
|
}
|
|
254
|
-
declare module
|
|
255
|
-
import module = require(
|
|
298
|
+
declare module "node:module" {
|
|
299
|
+
import module = require("module");
|
|
256
300
|
export = module;
|
|
257
301
|
}
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
* ```
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/net.js)
|
|
14
14
|
*/
|
|
15
|
-
declare module
|
|
16
|
-
import * as stream from
|
|
17
|
-
import { Abortable, EventEmitter } from
|
|
18
|
-
import * as dns from
|
|
19
|
-
type LookupFunction = (
|
|
15
|
+
declare module "net" {
|
|
16
|
+
import * as stream from "node:stream";
|
|
17
|
+
import { Abortable, EventEmitter } from "node:events";
|
|
18
|
+
import * as dns from "node:dns";
|
|
19
|
+
type LookupFunction = (
|
|
20
|
+
hostname: string,
|
|
21
|
+
options: dns.LookupAllOptions,
|
|
22
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void,
|
|
23
|
+
) => void;
|
|
20
24
|
interface AddressInfo {
|
|
21
25
|
address: string;
|
|
22
26
|
family: string;
|
|
@@ -70,7 +74,7 @@ declare module 'net' {
|
|
|
70
74
|
path: string;
|
|
71
75
|
}
|
|
72
76
|
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
73
|
-
type SocketReadyState =
|
|
77
|
+
type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
|
|
74
78
|
/**
|
|
75
79
|
* This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
|
|
76
80
|
* (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
|
|
@@ -87,6 +91,12 @@ declare module 'net' {
|
|
|
87
91
|
*/
|
|
88
92
|
class Socket extends stream.Duplex {
|
|
89
93
|
constructor(options?: SocketConstructorOpts);
|
|
94
|
+
/**
|
|
95
|
+
* Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
|
|
96
|
+
* If the socket is still writable it implicitly calls `socket.end()`.
|
|
97
|
+
* @since v0.3.4
|
|
98
|
+
*/
|
|
99
|
+
destroySoon(): void;
|
|
90
100
|
/**
|
|
91
101
|
* Sends data on the socket. The second parameter specifies the encoding in the
|
|
92
102
|
* case of a string. It defaults to UTF8 encoding.
|
|
@@ -230,6 +240,15 @@ declare module 'net' {
|
|
|
230
240
|
* @return The socket itself.
|
|
231
241
|
*/
|
|
232
242
|
ref(): this;
|
|
243
|
+
/**
|
|
244
|
+
* This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)`
|
|
245
|
+
* and it is an array of the addresses that have been attempted.
|
|
246
|
+
*
|
|
247
|
+
* Each address is a string in the form of `$IP:$PORT`.
|
|
248
|
+
* If the connection was successful, then the last address is the one that the socket is currently connected to.
|
|
249
|
+
* @since v19.4.0
|
|
250
|
+
*/
|
|
251
|
+
readonly autoSelectFamilyAttemptedAddresses: string[];
|
|
233
252
|
/**
|
|
234
253
|
* This property shows the number of characters buffered for writing. The buffer
|
|
235
254
|
* may contain strings whose length after encoding is not yet known. So this number
|
|
@@ -353,65 +372,80 @@ declare module 'net' {
|
|
|
353
372
|
* 9. timeout
|
|
354
373
|
*/
|
|
355
374
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
356
|
-
addListener(event:
|
|
357
|
-
addListener(event:
|
|
358
|
-
addListener(event:
|
|
359
|
-
addListener(event:
|
|
360
|
-
addListener(event:
|
|
361
|
-
addListener(event:
|
|
362
|
-
addListener(
|
|
363
|
-
|
|
364
|
-
|
|
375
|
+
addListener(event: "close", listener: (hadError: boolean) => void): this;
|
|
376
|
+
addListener(event: "connect", listener: () => void): this;
|
|
377
|
+
addListener(event: "data", listener: (data: Buffer) => void): this;
|
|
378
|
+
addListener(event: "drain", listener: () => void): this;
|
|
379
|
+
addListener(event: "end", listener: () => void): this;
|
|
380
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
381
|
+
addListener(
|
|
382
|
+
event: "lookup",
|
|
383
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
384
|
+
): this;
|
|
385
|
+
addListener(event: "ready", listener: () => void): this;
|
|
386
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
365
387
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
366
|
-
emit(event:
|
|
367
|
-
emit(event:
|
|
368
|
-
emit(event:
|
|
369
|
-
emit(event:
|
|
370
|
-
emit(event:
|
|
371
|
-
emit(event:
|
|
372
|
-
emit(event:
|
|
373
|
-
emit(event:
|
|
374
|
-
emit(event:
|
|
388
|
+
emit(event: "close", hadError: boolean): boolean;
|
|
389
|
+
emit(event: "connect"): boolean;
|
|
390
|
+
emit(event: "data", data: Buffer): boolean;
|
|
391
|
+
emit(event: "drain"): boolean;
|
|
392
|
+
emit(event: "end"): boolean;
|
|
393
|
+
emit(event: "error", err: Error): boolean;
|
|
394
|
+
emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
|
|
395
|
+
emit(event: "ready"): boolean;
|
|
396
|
+
emit(event: "timeout"): boolean;
|
|
375
397
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
376
|
-
on(event:
|
|
377
|
-
on(event:
|
|
378
|
-
on(event:
|
|
379
|
-
on(event:
|
|
380
|
-
on(event:
|
|
381
|
-
on(event:
|
|
382
|
-
on(
|
|
383
|
-
|
|
384
|
-
|
|
398
|
+
on(event: "close", listener: (hadError: boolean) => void): this;
|
|
399
|
+
on(event: "connect", listener: () => void): this;
|
|
400
|
+
on(event: "data", listener: (data: Buffer) => void): this;
|
|
401
|
+
on(event: "drain", listener: () => void): this;
|
|
402
|
+
on(event: "end", listener: () => void): this;
|
|
403
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
404
|
+
on(
|
|
405
|
+
event: "lookup",
|
|
406
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
407
|
+
): this;
|
|
408
|
+
on(event: "ready", listener: () => void): this;
|
|
409
|
+
on(event: "timeout", listener: () => void): this;
|
|
385
410
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
386
|
-
once(event:
|
|
387
|
-
once(event:
|
|
388
|
-
once(event:
|
|
389
|
-
once(event:
|
|
390
|
-
once(event:
|
|
391
|
-
once(event:
|
|
392
|
-
once(
|
|
393
|
-
|
|
394
|
-
|
|
411
|
+
once(event: "close", listener: (hadError: boolean) => void): this;
|
|
412
|
+
once(event: "connect", listener: () => void): this;
|
|
413
|
+
once(event: "data", listener: (data: Buffer) => void): this;
|
|
414
|
+
once(event: "drain", listener: () => void): this;
|
|
415
|
+
once(event: "end", listener: () => void): this;
|
|
416
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
417
|
+
once(
|
|
418
|
+
event: "lookup",
|
|
419
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
420
|
+
): this;
|
|
421
|
+
once(event: "ready", listener: () => void): this;
|
|
422
|
+
once(event: "timeout", listener: () => void): this;
|
|
395
423
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
396
|
-
prependListener(event:
|
|
397
|
-
prependListener(event:
|
|
398
|
-
prependListener(event:
|
|
399
|
-
prependListener(event:
|
|
400
|
-
prependListener(event:
|
|
401
|
-
prependListener(event:
|
|
402
|
-
prependListener(
|
|
403
|
-
|
|
404
|
-
|
|
424
|
+
prependListener(event: "close", listener: (hadError: boolean) => void): this;
|
|
425
|
+
prependListener(event: "connect", listener: () => void): this;
|
|
426
|
+
prependListener(event: "data", listener: (data: Buffer) => void): this;
|
|
427
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
428
|
+
prependListener(event: "end", listener: () => void): this;
|
|
429
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
430
|
+
prependListener(
|
|
431
|
+
event: "lookup",
|
|
432
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
433
|
+
): this;
|
|
434
|
+
prependListener(event: "ready", listener: () => void): this;
|
|
435
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
405
436
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
406
|
-
prependOnceListener(event:
|
|
407
|
-
prependOnceListener(event:
|
|
408
|
-
prependOnceListener(event:
|
|
409
|
-
prependOnceListener(event:
|
|
410
|
-
prependOnceListener(event:
|
|
411
|
-
prependOnceListener(event:
|
|
412
|
-
prependOnceListener(
|
|
413
|
-
|
|
414
|
-
|
|
437
|
+
prependOnceListener(event: "close", listener: (hadError: boolean) => void): this;
|
|
438
|
+
prependOnceListener(event: "connect", listener: () => void): this;
|
|
439
|
+
prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
|
|
440
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
441
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
442
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
443
|
+
prependOnceListener(
|
|
444
|
+
event: "lookup",
|
|
445
|
+
listener: (err: Error, address: string, family: string | number, host: string) => void,
|
|
446
|
+
): this;
|
|
447
|
+
prependOnceListener(event: "ready", listener: () => void): this;
|
|
448
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
415
449
|
}
|
|
416
450
|
interface ListenOptions extends Abortable {
|
|
417
451
|
port?: number | undefined;
|
|
@@ -604,48 +638,48 @@ declare module 'net' {
|
|
|
604
638
|
* 5. drop
|
|
605
639
|
*/
|
|
606
640
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
607
|
-
addListener(event:
|
|
608
|
-
addListener(event:
|
|
609
|
-
addListener(event:
|
|
610
|
-
addListener(event:
|
|
611
|
-
addListener(event:
|
|
641
|
+
addListener(event: "close", listener: () => void): this;
|
|
642
|
+
addListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
643
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
644
|
+
addListener(event: "listening", listener: () => void): this;
|
|
645
|
+
addListener(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
612
646
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
613
|
-
emit(event:
|
|
614
|
-
emit(event:
|
|
615
|
-
emit(event:
|
|
616
|
-
emit(event:
|
|
617
|
-
emit(event:
|
|
647
|
+
emit(event: "close"): boolean;
|
|
648
|
+
emit(event: "connection", socket: Socket): boolean;
|
|
649
|
+
emit(event: "error", err: Error): boolean;
|
|
650
|
+
emit(event: "listening"): boolean;
|
|
651
|
+
emit(event: "drop", data?: DropArgument): boolean;
|
|
618
652
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
619
|
-
on(event:
|
|
620
|
-
on(event:
|
|
621
|
-
on(event:
|
|
622
|
-
on(event:
|
|
623
|
-
on(event:
|
|
653
|
+
on(event: "close", listener: () => void): this;
|
|
654
|
+
on(event: "connection", listener: (socket: Socket) => void): this;
|
|
655
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
656
|
+
on(event: "listening", listener: () => void): this;
|
|
657
|
+
on(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
624
658
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
625
|
-
once(event:
|
|
626
|
-
once(event:
|
|
627
|
-
once(event:
|
|
628
|
-
once(event:
|
|
629
|
-
once(event:
|
|
659
|
+
once(event: "close", listener: () => void): this;
|
|
660
|
+
once(event: "connection", listener: (socket: Socket) => void): this;
|
|
661
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
662
|
+
once(event: "listening", listener: () => void): this;
|
|
663
|
+
once(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
630
664
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
631
|
-
prependListener(event:
|
|
632
|
-
prependListener(event:
|
|
633
|
-
prependListener(event:
|
|
634
|
-
prependListener(event:
|
|
635
|
-
prependListener(event:
|
|
665
|
+
prependListener(event: "close", listener: () => void): this;
|
|
666
|
+
prependListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
667
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
668
|
+
prependListener(event: "listening", listener: () => void): this;
|
|
669
|
+
prependListener(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
636
670
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
637
|
-
prependOnceListener(event:
|
|
638
|
-
prependOnceListener(event:
|
|
639
|
-
prependOnceListener(event:
|
|
640
|
-
prependOnceListener(event:
|
|
641
|
-
prependOnceListener(event:
|
|
671
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
672
|
+
prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
673
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
674
|
+
prependOnceListener(event: "listening", listener: () => void): this;
|
|
675
|
+
prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this;
|
|
642
676
|
/**
|
|
643
677
|
* Calls {@link Server.close()} and returns a promise that fulfills when the server has closed.
|
|
644
678
|
* @since v20.5.0
|
|
645
679
|
*/
|
|
646
680
|
[Symbol.asyncDispose](): Promise<void>;
|
|
647
681
|
}
|
|
648
|
-
type IPVersion =
|
|
682
|
+
type IPVersion = "ipv4" | "ipv6";
|
|
649
683
|
/**
|
|
650
684
|
* The `BlockList` object can be used with some network APIs to specify rules for
|
|
651
685
|
* disabling inbound or outbound access to specific IP addresses, IP ranges, or
|
|
@@ -805,6 +839,28 @@ declare module 'net' {
|
|
|
805
839
|
function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket;
|
|
806
840
|
function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
|
|
807
841
|
function createConnection(path: string, connectionListener?: () => void): Socket;
|
|
842
|
+
/**
|
|
843
|
+
* Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`.
|
|
844
|
+
* The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided.
|
|
845
|
+
* @since v19.4.0
|
|
846
|
+
*/
|
|
847
|
+
function getDefaultAutoSelectFamily(): boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`.
|
|
850
|
+
* @since v19.4.0
|
|
851
|
+
*/
|
|
852
|
+
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
853
|
+
/**
|
|
854
|
+
* Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
|
|
855
|
+
* The initial default value is `250`.
|
|
856
|
+
* @since v19.8.0
|
|
857
|
+
*/
|
|
858
|
+
function getDefaultAutoSelectFamilyAttemptTimeout(): number;
|
|
859
|
+
/**
|
|
860
|
+
* Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
|
|
861
|
+
* @since v19.8.0
|
|
862
|
+
*/
|
|
863
|
+
function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void;
|
|
808
864
|
/**
|
|
809
865
|
* Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4
|
|
810
866
|
* address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`.
|
|
@@ -888,6 +944,6 @@ declare module 'net' {
|
|
|
888
944
|
readonly flowlabel: number;
|
|
889
945
|
}
|
|
890
946
|
}
|
|
891
|
-
declare module
|
|
892
|
-
export * from
|
|
947
|
+
declare module "node:net" {
|
|
948
|
+
export * from "net";
|
|
893
949
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ```
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/os.js)
|
|
9
9
|
*/
|
|
10
|
-
declare module
|
|
10
|
+
declare module "os" {
|
|
11
11
|
interface CpuInfo {
|
|
12
12
|
model: string;
|
|
13
13
|
speed: number;
|
|
@@ -27,18 +27,18 @@ declare module 'os' {
|
|
|
27
27
|
cidr: string | null;
|
|
28
28
|
}
|
|
29
29
|
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
30
|
-
family:
|
|
30
|
+
family: "IPv4";
|
|
31
31
|
scopeid?: undefined;
|
|
32
32
|
}
|
|
33
33
|
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
34
|
-
family:
|
|
34
|
+
family: "IPv6";
|
|
35
35
|
scopeid: number;
|
|
36
36
|
}
|
|
37
37
|
interface UserInfo<T> {
|
|
38
38
|
username: T;
|
|
39
39
|
uid: number;
|
|
40
40
|
gid: number;
|
|
41
|
-
shell: T;
|
|
41
|
+
shell: T | null;
|
|
42
42
|
homedir: T;
|
|
43
43
|
}
|
|
44
44
|
type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
|
|
@@ -239,7 +239,7 @@ declare module 'os' {
|
|
|
239
239
|
* Throws a `SystemError` if a user has no `username` or `homedir`.
|
|
240
240
|
* @since v6.0.0
|
|
241
241
|
*/
|
|
242
|
-
function userInfo(options: { encoding:
|
|
242
|
+
function userInfo(options: { encoding: "buffer" }): UserInfo<Buffer>;
|
|
243
243
|
function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>;
|
|
244
244
|
type SignalConstants = {
|
|
245
245
|
[key in NodeJS.Signals]: number;
|
|
@@ -400,7 +400,8 @@ declare module 'os' {
|
|
|
400
400
|
const EOL: string;
|
|
401
401
|
/**
|
|
402
402
|
* Returns the operating system CPU architecture for which the Node.js binary was
|
|
403
|
-
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'
|
|
403
|
+
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`,`'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
|
|
404
|
+
* and `'x64'`.
|
|
404
405
|
*
|
|
405
406
|
* The return value is equivalent to `process.arch`.
|
|
406
407
|
* @since v0.5.0
|
|
@@ -447,7 +448,7 @@ declare module 'os' {
|
|
|
447
448
|
* Possible values are `'BE'` for big endian and `'LE'` for little endian.
|
|
448
449
|
* @since v0.9.4
|
|
449
450
|
*/
|
|
450
|
-
function endianness():
|
|
451
|
+
function endianness(): "BE" | "LE";
|
|
451
452
|
/**
|
|
452
453
|
* Returns the scheduling priority for the process specified by `pid`. If `pid` is
|
|
453
454
|
* not provided or is `0`, the priority of the current process is returned.
|
|
@@ -472,6 +473,6 @@ declare module 'os' {
|
|
|
472
473
|
function setPriority(priority: number): void;
|
|
473
474
|
function setPriority(pid: number, priority: number): void;
|
|
474
475
|
}
|
|
475
|
-
declare module
|
|
476
|
-
export * from
|
|
476
|
+
declare module "node:os" {
|
|
477
|
+
export * from "os";
|
|
477
478
|
}
|