omegon 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/cleave/dispatcher.ts +213 -20
- package/extensions/cleave/index.ts +24 -8
- package/extensions/cleave/rpc-child.ts +269 -0
- package/extensions/cleave/types.ts +52 -0
- package/extensions/openspec/spec.ts +3 -0
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +11 -5
- package/node_modules/@types/node/assert.d.ts +173 -50
- package/node_modules/@types/node/async_hooks.d.ts +8 -28
- package/node_modules/@types/node/buffer.buffer.d.ts +7 -1
- package/node_modules/@types/node/buffer.d.ts +168 -44
- package/node_modules/@types/node/child_process.d.ts +70 -27
- package/node_modules/@types/node/cluster.d.ts +332 -240
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -1
- package/node_modules/@types/node/console.d.ts +350 -49
- package/node_modules/@types/node/constants.d.ts +4 -3
- package/node_modules/@types/node/crypto.d.ts +1110 -630
- package/node_modules/@types/node/dgram.d.ts +51 -15
- package/node_modules/@types/node/diagnostics_channel.d.ts +6 -4
- package/node_modules/@types/node/dns/promises.d.ts +4 -4
- package/node_modules/@types/node/dns.d.ts +133 -132
- package/node_modules/@types/node/domain.d.ts +17 -13
- package/node_modules/@types/node/events.d.ts +663 -734
- package/node_modules/@types/node/fs/promises.d.ts +9 -43
- package/node_modules/@types/node/fs.d.ts +411 -628
- package/node_modules/@types/node/globals.d.ts +30 -8
- package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
- package/node_modules/@types/node/http.d.ts +265 -364
- package/node_modules/@types/node/http2.d.ts +715 -551
- package/node_modules/@types/node/https.d.ts +239 -65
- package/node_modules/@types/node/index.d.ts +6 -24
- package/node_modules/@types/node/inspector.d.ts +53 -69
- package/node_modules/@types/node/inspector.generated.d.ts +410 -759
- package/node_modules/@types/node/module.d.ts +186 -52
- package/node_modules/@types/node/net.d.ts +194 -70
- package/node_modules/@types/node/os.d.ts +11 -12
- package/node_modules/@types/node/package.json +3 -13
- package/node_modules/@types/node/path.d.ts +133 -120
- package/node_modules/@types/node/perf_hooks.d.ts +643 -318
- package/node_modules/@types/node/process.d.ts +132 -223
- package/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/node/readline.d.ts +120 -68
- package/node_modules/@types/node/repl.d.ts +100 -87
- package/node_modules/@types/node/sea.d.ts +1 -10
- package/node_modules/@types/node/sqlite.d.ts +19 -363
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +15 -136
- package/node_modules/@types/node/stream/web.d.ts +502 -176
- package/node_modules/@types/node/stream.d.ts +475 -581
- package/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/node/test.d.ts +196 -308
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +132 -4
- package/node_modules/@types/node/tls.d.ts +226 -110
- package/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -1
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
- package/node_modules/@types/node/tty.d.ts +16 -58
- package/node_modules/@types/node/url.d.ts +573 -130
- package/node_modules/@types/node/util.d.ts +1100 -181
- package/node_modules/@types/node/v8.d.ts +8 -76
- package/node_modules/@types/node/vm.d.ts +72 -280
- package/node_modules/@types/node/wasi.d.ts +4 -25
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
- package/node_modules/@types/node/web-globals/events.d.ts +0 -9
- package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
- package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
- package/node_modules/@types/node/worker_threads.d.ts +335 -268
- package/node_modules/@types/node/zlib.d.ts +74 -9
- package/node_modules/undici-types/agent.d.ts +12 -13
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +12 -13
- package/node_modules/undici-types/client.d.ts +19 -19
- package/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/undici-types/cookies.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
- package/node_modules/undici-types/dispatcher.d.ts +103 -123
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
- package/node_modules/undici-types/errors.d.ts +54 -66
- package/node_modules/undici-types/eventsource.d.ts +4 -9
- package/node_modules/undici-types/fetch.d.ts +20 -22
- 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 +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +1 -157
- package/node_modules/undici-types/index.d.ts +47 -64
- package/node_modules/undici-types/interceptors.d.ts +8 -64
- package/node_modules/undici-types/mock-agent.d.ts +18 -36
- package/node_modules/undici-types/mock-client.d.ts +4 -6
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
- package/node_modules/undici-types/mock-pool.d.ts +4 -6
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +4 -0
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +13 -15
- package/node_modules/undici-types/proxy-agent.d.ts +4 -5
- package/node_modules/undici-types/readable.d.ts +16 -19
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +10 -19
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/webidl.d.ts +29 -142
- package/node_modules/undici-types/websocket.d.ts +10 -46
- package/package.json +2 -1
- package/skills/cleave/SKILL.md +62 -2
- package/node_modules/@types/node/inspector/promises.d.ts +0 -41
- package/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/node/quic.d.ts +0 -910
- package/node_modules/@types/node/test/reporters.d.ts +0 -96
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -117
- package/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/node/web-globals/streams.d.ts +0 -115
- package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/undici-types/cache-interceptor.d.ts +0 -173
- package/node_modules/undici-types/client-stats.d.ts +0 -15
- package/node_modules/undici-types/h2c-client.d.ts +0 -73
- package/node_modules/undici-types/mock-call-history.d.ts +0 -111
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -41
- package/node_modules/undici-types/snapshot-agent.d.ts +0 -109
- package/node_modules/undici-types/utility.d.ts +0 -7
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
declare module "
|
|
1
|
+
declare module "process" {
|
|
2
2
|
import { Control, MessageOptions, SendHandle } from "node:child_process";
|
|
3
3
|
import { PathLike } from "node:fs";
|
|
4
4
|
import * as tty from "node:tty";
|
|
5
5
|
import { Worker } from "node:worker_threads";
|
|
6
|
+
|
|
6
7
|
interface BuiltInModule {
|
|
7
8
|
"assert": typeof import("assert");
|
|
8
9
|
"node:assert": typeof import("node:assert");
|
|
@@ -68,7 +69,6 @@ declare module "node:process" {
|
|
|
68
69
|
"node:punycode": typeof import("node:punycode");
|
|
69
70
|
"querystring": typeof import("querystring");
|
|
70
71
|
"node:querystring": typeof import("node:querystring");
|
|
71
|
-
"node:quic": typeof import("node:quic");
|
|
72
72
|
"readline": typeof import("readline");
|
|
73
73
|
"node:readline": typeof import("node:readline");
|
|
74
74
|
"readline/promises": typeof import("readline/promises");
|
|
@@ -103,6 +103,8 @@ declare module "node:process" {
|
|
|
103
103
|
"node:url": typeof import("node:url");
|
|
104
104
|
"util": typeof import("util");
|
|
105
105
|
"node:util": typeof import("node:util");
|
|
106
|
+
"sys": typeof import("util");
|
|
107
|
+
"node:sys": typeof import("node:util");
|
|
106
108
|
"util/types": typeof import("util/types");
|
|
107
109
|
"node:util/types": typeof import("node:util/types");
|
|
108
110
|
"v8": typeof import("v8");
|
|
@@ -116,28 +118,8 @@ declare module "node:process" {
|
|
|
116
118
|
"zlib": typeof import("zlib");
|
|
117
119
|
"node:zlib": typeof import("node:zlib");
|
|
118
120
|
}
|
|
119
|
-
type SignalsEventMap = { [S in NodeJS.Signals]: [signal: S] };
|
|
120
|
-
interface ProcessEventMap extends SignalsEventMap {
|
|
121
|
-
"beforeExit": [code: number];
|
|
122
|
-
"disconnect": [];
|
|
123
|
-
"exit": [code: number];
|
|
124
|
-
"message": [
|
|
125
|
-
message: object | boolean | number | string | null,
|
|
126
|
-
sendHandle: SendHandle | undefined,
|
|
127
|
-
];
|
|
128
|
-
"rejectionHandled": [promise: Promise<unknown>];
|
|
129
|
-
"uncaughtException": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
|
|
130
|
-
"uncaughtExceptionMonitor": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
|
|
131
|
-
"unhandledRejection": [reason: unknown, promise: Promise<unknown>];
|
|
132
|
-
"warning": [warning: Error];
|
|
133
|
-
"worker": [worker: Worker];
|
|
134
|
-
"workerMessage": [value: any, source: number];
|
|
135
|
-
}
|
|
136
121
|
global {
|
|
137
122
|
var process: NodeJS.Process;
|
|
138
|
-
namespace process {
|
|
139
|
-
export { ProcessEventMap };
|
|
140
|
-
}
|
|
141
123
|
namespace NodeJS {
|
|
142
124
|
// this namespace merge is here because these are specifically used
|
|
143
125
|
// as the type for process.stdin, process.stdout, and process.stderr.
|
|
@@ -214,7 +196,7 @@ declare module "node:process" {
|
|
|
214
196
|
readonly ipv6: boolean;
|
|
215
197
|
/**
|
|
216
198
|
* A boolean value that is `true` if the current Node.js build supports
|
|
217
|
-
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-
|
|
199
|
+
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v22.x/api/modules.md#loading-ecmascript-modules-using-require).
|
|
218
200
|
* @since v22.10.0
|
|
219
201
|
*/
|
|
220
202
|
readonly require_module: boolean;
|
|
@@ -253,7 +235,7 @@ declare module "node:process" {
|
|
|
253
235
|
/**
|
|
254
236
|
* A value that is `"strip"` by default,
|
|
255
237
|
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
|
|
256
|
-
* Node.js is run with `--no-strip-types`.
|
|
238
|
+
* Node.js is run with `--no-experimental-strip-types`.
|
|
257
239
|
* @since v22.10.0
|
|
258
240
|
*/
|
|
259
241
|
readonly typescript: "strip" | "transform" | false;
|
|
@@ -295,8 +277,10 @@ declare module "node:process" {
|
|
|
295
277
|
| "loong64"
|
|
296
278
|
| "mips"
|
|
297
279
|
| "mipsel"
|
|
280
|
+
| "ppc"
|
|
298
281
|
| "ppc64"
|
|
299
282
|
| "riscv64"
|
|
283
|
+
| "s390"
|
|
300
284
|
| "s390x"
|
|
301
285
|
| "x64";
|
|
302
286
|
type Signals =
|
|
@@ -338,129 +322,26 @@ declare module "node:process" {
|
|
|
338
322
|
| "SIGLOST"
|
|
339
323
|
| "SIGINFO";
|
|
340
324
|
type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
|
|
325
|
+
type MultipleResolveType = "resolve" | "reject";
|
|
326
|
+
type BeforeExitListener = (code: number) => void;
|
|
327
|
+
type DisconnectListener = () => void;
|
|
328
|
+
type ExitListener = (code: number) => void;
|
|
329
|
+
type RejectionHandledListener = (promise: Promise<unknown>) => void;
|
|
330
|
+
type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
|
|
341
331
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* have their parameter types inferred automatically.
|
|
345
|
-
*
|
|
346
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
347
|
-
*
|
|
348
|
-
* ```ts
|
|
349
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
350
|
-
* const listener = (...args: ProcessEventMap['beforeExit']) => { ... };
|
|
351
|
-
* ```
|
|
352
|
-
*/
|
|
353
|
-
type BeforeExitListener = (...args: ProcessEventMap["beforeExit"]) => void;
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
356
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
357
|
-
* have their parameter types inferred automatically.
|
|
358
|
-
*
|
|
359
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
360
|
-
*
|
|
361
|
-
* ```ts
|
|
362
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
363
|
-
* const listener = (...args: ProcessEventMap['disconnect']) => { ... };
|
|
364
|
-
* ```
|
|
365
|
-
*/
|
|
366
|
-
type DisconnectListener = (...args: ProcessEventMap["disconnect"]) => void;
|
|
367
|
-
/**
|
|
368
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
369
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
370
|
-
* have their parameter types inferred automatically.
|
|
371
|
-
*
|
|
372
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
373
|
-
*
|
|
374
|
-
* ```ts
|
|
375
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
376
|
-
* const listener = (...args: ProcessEventMap['exit']) => { ... };
|
|
377
|
-
* ```
|
|
378
|
-
*/
|
|
379
|
-
type ExitListener = (...args: ProcessEventMap["exit"]) => void;
|
|
380
|
-
/**
|
|
381
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
382
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
383
|
-
* have their parameter types inferred automatically.
|
|
384
|
-
*
|
|
385
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
386
|
-
*
|
|
387
|
-
* ```ts
|
|
388
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
389
|
-
* const listener = (...args: ProcessEventMap['message']) => { ... };
|
|
390
|
-
* ```
|
|
391
|
-
*/
|
|
392
|
-
type MessageListener = (...args: ProcessEventMap["message"]) => void;
|
|
393
|
-
/**
|
|
394
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
395
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
396
|
-
* have their parameter types inferred automatically.
|
|
397
|
-
*
|
|
398
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
399
|
-
*
|
|
400
|
-
* ```ts
|
|
401
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
402
|
-
* const listener = (...args: ProcessEventMap['rejectionHandled']) => { ... };
|
|
403
|
-
* ```
|
|
404
|
-
*/
|
|
405
|
-
type RejectionHandledListener = (...args: ProcessEventMap["rejectionHandled"]) => void;
|
|
406
|
-
/**
|
|
407
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
408
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
409
|
-
* have their parameter types inferred automatically.
|
|
332
|
+
* Most of the time the unhandledRejection will be an Error, but this should not be relied upon
|
|
333
|
+
* as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
|
|
410
334
|
*/
|
|
335
|
+
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
336
|
+
type WarningListener = (warning: Error) => void;
|
|
337
|
+
type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
|
|
411
338
|
type SignalsListener = (signal: Signals) => void;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
*
|
|
419
|
-
* ```ts
|
|
420
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
421
|
-
* const listener = (...args: ProcessEventMap['uncaughtException']) => { ... };
|
|
422
|
-
* ```
|
|
423
|
-
*/
|
|
424
|
-
type UncaughtExceptionListener = (...args: ProcessEventMap["uncaughtException"]) => void;
|
|
425
|
-
/**
|
|
426
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
427
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
428
|
-
* have their parameter types inferred automatically.
|
|
429
|
-
*
|
|
430
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
431
|
-
*
|
|
432
|
-
* ```ts
|
|
433
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
434
|
-
* const listener = (...args: ProcessEventMap['unhandledRejection']) => { ... };
|
|
435
|
-
* ```
|
|
436
|
-
*/
|
|
437
|
-
type UnhandledRejectionListener = (...args: ProcessEventMap["unhandledRejection"]) => void;
|
|
438
|
-
/**
|
|
439
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
440
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
441
|
-
* have their parameter types inferred automatically.
|
|
442
|
-
*
|
|
443
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
444
|
-
*
|
|
445
|
-
* ```ts
|
|
446
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
447
|
-
* const listener = (...args: ProcessEventMap['warning']) => { ... };
|
|
448
|
-
* ```
|
|
449
|
-
*/
|
|
450
|
-
type WarningListener = (...args: ProcessEventMap["warning"]) => void;
|
|
451
|
-
/**
|
|
452
|
-
* @deprecated Global listener types will be removed in a future version.
|
|
453
|
-
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
454
|
-
* have their parameter types inferred automatically.
|
|
455
|
-
*
|
|
456
|
-
* `process` event types are also available via `ProcessEventMap`:
|
|
457
|
-
*
|
|
458
|
-
* ```ts
|
|
459
|
-
* import type { ProcessEventMap } from 'node:process';
|
|
460
|
-
* const listener = (...args: ProcessEventMap['worker']) => { ... };
|
|
461
|
-
* ```
|
|
462
|
-
*/
|
|
463
|
-
type WorkerListener = (...args: ProcessEventMap["worker"]) => void;
|
|
339
|
+
type MultipleResolveListener = (
|
|
340
|
+
type: MultipleResolveType,
|
|
341
|
+
promise: Promise<unknown>,
|
|
342
|
+
value: unknown,
|
|
343
|
+
) => void;
|
|
344
|
+
type WorkerListener = (worker: Worker) => void;
|
|
464
345
|
interface Socket extends ReadWriteStream {
|
|
465
346
|
isTTY?: true | undefined;
|
|
466
347
|
}
|
|
@@ -729,8 +610,7 @@ declare module "node:process" {
|
|
|
729
610
|
* arguments passed when the Node.js process was launched. The first element will
|
|
730
611
|
* be {@link execPath}. See `process.argv0` if access to the original value
|
|
731
612
|
* of `argv[0]` is needed. The second element will be the path to the JavaScript
|
|
732
|
-
* file being executed.
|
|
733
|
-
* will be the absolute path to it. The remaining elements are additional command-line
|
|
613
|
+
* file being executed. The remaining elements will be any additional command-line
|
|
734
614
|
* arguments.
|
|
735
615
|
*
|
|
736
616
|
* For example, assuming the following script for `process-args.js`:
|
|
@@ -871,7 +751,7 @@ declare module "node:process" {
|
|
|
871
751
|
* should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
|
|
872
752
|
* unless there are specific reasons such as custom dlopen flags or loading from ES modules.
|
|
873
753
|
*
|
|
874
|
-
* The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-
|
|
754
|
+
* The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v22.x/api/os.html#dlopen-constants)`
|
|
875
755
|
* documentation for details.
|
|
876
756
|
*
|
|
877
757
|
* An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
|
|
@@ -1620,7 +1500,7 @@ declare module "node:process" {
|
|
|
1620
1500
|
*
|
|
1621
1501
|
* The result of a previous call to `process.threadCpuUsage()` can be passed as the
|
|
1622
1502
|
* argument to the function, to get a diff reading.
|
|
1623
|
-
* @since
|
|
1503
|
+
* @since v22.19.0
|
|
1624
1504
|
* @param previousValue A previous return value from calling
|
|
1625
1505
|
* `process.threadCpuUsage()`
|
|
1626
1506
|
*/
|
|
@@ -1645,8 +1525,7 @@ declare module "node:process" {
|
|
|
1645
1525
|
title: string;
|
|
1646
1526
|
/**
|
|
1647
1527
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1648
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
|
|
1649
|
-
* `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
|
|
1528
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1650
1529
|
*
|
|
1651
1530
|
* ```js
|
|
1652
1531
|
* import { arch } from 'node:process';
|
|
@@ -1706,7 +1585,7 @@ declare module "node:process" {
|
|
|
1706
1585
|
constrainedMemory(): number;
|
|
1707
1586
|
/**
|
|
1708
1587
|
* Gets the amount of free memory that is still available to the process (in bytes).
|
|
1709
|
-
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-
|
|
1588
|
+
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v22.x/api/process.html#processavailablememory) for more information.
|
|
1710
1589
|
* @since v20.13.0
|
|
1711
1590
|
*/
|
|
1712
1591
|
availableMemory(): number;
|
|
@@ -1862,24 +1741,6 @@ declare module "node:process" {
|
|
|
1862
1741
|
*/
|
|
1863
1742
|
readonly release: ProcessRelease;
|
|
1864
1743
|
readonly features: ProcessFeatures;
|
|
1865
|
-
/**
|
|
1866
|
-
* The `process.traceProcessWarnings` property indicates whether the `--trace-warnings` flag
|
|
1867
|
-
* is set on the current Node.js process. This property allows programmatic control over the
|
|
1868
|
-
* tracing of warnings, enabling or disabling stack traces for warnings at runtime.
|
|
1869
|
-
*
|
|
1870
|
-
* ```js
|
|
1871
|
-
* // Enable trace warnings
|
|
1872
|
-
* process.traceProcessWarnings = true;
|
|
1873
|
-
*
|
|
1874
|
-
* // Emit a warning with a stack trace
|
|
1875
|
-
* process.emitWarning('Warning with stack trace');
|
|
1876
|
-
*
|
|
1877
|
-
* // Disable trace warnings
|
|
1878
|
-
* process.traceProcessWarnings = false;
|
|
1879
|
-
* ```
|
|
1880
|
-
* @since v6.10.0
|
|
1881
|
-
*/
|
|
1882
|
-
traceProcessWarnings: boolean;
|
|
1883
1744
|
/**
|
|
1884
1745
|
* `process.umask()` returns the Node.js process's file mode creation mask. Child
|
|
1885
1746
|
* processes inherit the mask from the parent process.
|
|
@@ -1944,7 +1805,7 @@ declare module "node:process" {
|
|
|
1944
1805
|
* If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
|
|
1945
1806
|
* @since v0.7.2
|
|
1946
1807
|
*/
|
|
1947
|
-
disconnect
|
|
1808
|
+
disconnect(): void;
|
|
1948
1809
|
/**
|
|
1949
1810
|
* If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC
|
|
1950
1811
|
* channel is connected and will return `false` after `process.disconnect()` is called.
|
|
@@ -1998,7 +1859,7 @@ declare module "node:process" {
|
|
|
1998
1859
|
allowedNodeEnvironmentFlags: ReadonlySet<string>;
|
|
1999
1860
|
/**
|
|
2000
1861
|
* `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
|
|
2001
|
-
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-
|
|
1862
|
+
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v22.x/api/report.html).
|
|
2002
1863
|
* @since v11.8.0
|
|
2003
1864
|
*/
|
|
2004
1865
|
report: ProcessReport;
|
|
@@ -2113,63 +1974,111 @@ declare module "node:process" {
|
|
|
2113
1974
|
* **Default:** `process.env`.
|
|
2114
1975
|
*/
|
|
2115
1976
|
execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
|
|
2116
|
-
|
|
2117
|
-
addListener
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
): this;
|
|
2121
|
-
addListener(
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
):
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
):
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
): this;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
prependListener<E extends keyof ProcessEventMap>(
|
|
2147
|
-
eventName: E,
|
|
2148
|
-
listener: (...args: ProcessEventMap[E]) => void,
|
|
1977
|
+
/* EventEmitter */
|
|
1978
|
+
addListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
1979
|
+
addListener(event: "disconnect", listener: DisconnectListener): this;
|
|
1980
|
+
addListener(event: "exit", listener: ExitListener): this;
|
|
1981
|
+
addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
1982
|
+
addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
1983
|
+
addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
1984
|
+
addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1985
|
+
addListener(event: "warning", listener: WarningListener): this;
|
|
1986
|
+
addListener(event: "message", listener: MessageListener): this;
|
|
1987
|
+
addListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1988
|
+
addListener(event: Signals, listener: SignalsListener): this;
|
|
1989
|
+
addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1990
|
+
addListener(event: "worker", listener: WorkerListener): this;
|
|
1991
|
+
emit(event: "beforeExit", code: number): boolean;
|
|
1992
|
+
emit(event: "disconnect"): boolean;
|
|
1993
|
+
emit(event: "exit", code: number): boolean;
|
|
1994
|
+
emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
|
|
1995
|
+
emit(event: "uncaughtException", error: Error): boolean;
|
|
1996
|
+
emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
|
|
1997
|
+
emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
|
|
1998
|
+
emit(event: "warning", warning: Error): boolean;
|
|
1999
|
+
emit(event: "message", message: unknown, sendHandle: SendHandle): this;
|
|
2000
|
+
emit(event: "workerMessage", value: any, source: number): this;
|
|
2001
|
+
emit(event: Signals, signal?: Signals): boolean;
|
|
2002
|
+
emit(
|
|
2003
|
+
event: "multipleResolves",
|
|
2004
|
+
type: MultipleResolveType,
|
|
2005
|
+
promise: Promise<unknown>,
|
|
2006
|
+
value: unknown,
|
|
2149
2007
|
): this;
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
): this;
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
): this;
|
|
2165
|
-
|
|
2166
|
-
|
|
2008
|
+
emit(event: "worker", listener: WorkerListener): this;
|
|
2009
|
+
on(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2010
|
+
on(event: "disconnect", listener: DisconnectListener): this;
|
|
2011
|
+
on(event: "exit", listener: ExitListener): this;
|
|
2012
|
+
on(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
2013
|
+
on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
2014
|
+
on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
2015
|
+
on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2016
|
+
on(event: "warning", listener: WarningListener): this;
|
|
2017
|
+
on(event: "message", listener: MessageListener): this;
|
|
2018
|
+
on(event: Signals, listener: SignalsListener): this;
|
|
2019
|
+
on(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2020
|
+
on(event: "worker", listener: WorkerListener): this;
|
|
2021
|
+
on(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2022
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2023
|
+
once(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2024
|
+
once(event: "disconnect", listener: DisconnectListener): this;
|
|
2025
|
+
once(event: "exit", listener: ExitListener): this;
|
|
2026
|
+
once(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
2027
|
+
once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
2028
|
+
once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
2029
|
+
once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2030
|
+
once(event: "warning", listener: WarningListener): this;
|
|
2031
|
+
once(event: "message", listener: MessageListener): this;
|
|
2032
|
+
once(event: Signals, listener: SignalsListener): this;
|
|
2033
|
+
once(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2034
|
+
once(event: "worker", listener: WorkerListener): this;
|
|
2035
|
+
once(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2036
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2037
|
+
prependListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2038
|
+
prependListener(event: "disconnect", listener: DisconnectListener): this;
|
|
2039
|
+
prependListener(event: "exit", listener: ExitListener): this;
|
|
2040
|
+
prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
2041
|
+
prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
2042
|
+
prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
2043
|
+
prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2044
|
+
prependListener(event: "warning", listener: WarningListener): this;
|
|
2045
|
+
prependListener(event: "message", listener: MessageListener): this;
|
|
2046
|
+
prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2047
|
+
prependListener(event: Signals, listener: SignalsListener): this;
|
|
2048
|
+
prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2049
|
+
prependListener(event: "worker", listener: WorkerListener): this;
|
|
2050
|
+
prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2051
|
+
prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
|
|
2052
|
+
prependOnceListener(event: "exit", listener: ExitListener): this;
|
|
2053
|
+
prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
|
|
2054
|
+
prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
|
|
2055
|
+
prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
|
|
2056
|
+
prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2057
|
+
prependOnceListener(event: "warning", listener: WarningListener): this;
|
|
2058
|
+
prependOnceListener(event: "message", listener: MessageListener): this;
|
|
2059
|
+
prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2060
|
+
prependOnceListener(event: Signals, listener: SignalsListener): this;
|
|
2061
|
+
prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2062
|
+
prependOnceListener(event: "worker", listener: WorkerListener): this;
|
|
2063
|
+
listeners(event: "beforeExit"): BeforeExitListener[];
|
|
2064
|
+
listeners(event: "disconnect"): DisconnectListener[];
|
|
2065
|
+
listeners(event: "exit"): ExitListener[];
|
|
2066
|
+
listeners(event: "rejectionHandled"): RejectionHandledListener[];
|
|
2067
|
+
listeners(event: "uncaughtException"): UncaughtExceptionListener[];
|
|
2068
|
+
listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
|
|
2069
|
+
listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
|
|
2070
|
+
listeners(event: "warning"): WarningListener[];
|
|
2071
|
+
listeners(event: "message"): MessageListener[];
|
|
2072
|
+
listeners(event: "workerMessage"): ((value: any, source: number) => void)[];
|
|
2073
|
+
listeners(event: Signals): SignalsListener[];
|
|
2074
|
+
listeners(event: "multipleResolves"): MultipleResolveListener[];
|
|
2075
|
+
listeners(event: "worker"): WorkerListener[];
|
|
2167
2076
|
}
|
|
2168
2077
|
}
|
|
2169
2078
|
}
|
|
2170
2079
|
export = process;
|
|
2171
2080
|
}
|
|
2172
|
-
declare module "process" {
|
|
2173
|
-
import process = require("
|
|
2081
|
+
declare module "node:process" {
|
|
2082
|
+
import process = require("process");
|
|
2174
2083
|
export = process;
|
|
2175
2084
|
}
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
* The `punycode` module is a third-party dependency used by Node.js and
|
|
24
24
|
* made available to developers as a convenience. Fixes or other modifications to
|
|
25
25
|
* the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
|
|
26
|
-
* @deprecated
|
|
27
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
26
|
+
* @deprecated Since v7.0.0 - Deprecated
|
|
27
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/punycode.js)
|
|
28
28
|
*/
|
|
29
|
-
declare module "
|
|
29
|
+
declare module "punycode" {
|
|
30
30
|
/**
|
|
31
31
|
* The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
|
|
32
32
|
* characters to the equivalent string of Unicode codepoints.
|
|
@@ -112,6 +112,6 @@ declare module "node:punycode" {
|
|
|
112
112
|
*/
|
|
113
113
|
const version: string;
|
|
114
114
|
}
|
|
115
|
-
declare module "punycode" {
|
|
116
|
-
export * from "
|
|
115
|
+
declare module "node:punycode" {
|
|
116
|
+
export * from "punycode";
|
|
117
117
|
}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* `querystring` is more performant than `URLSearchParams` but is not a
|
|
10
10
|
* standardized API. Use `URLSearchParams` when performance is not critical or
|
|
11
11
|
* when compatibility with browser code is desirable.
|
|
12
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
12
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
|
-
declare module "
|
|
14
|
+
declare module "querystring" {
|
|
15
15
|
interface StringifyOptions {
|
|
16
16
|
/**
|
|
17
17
|
* The function to use when converting URL-unsafe characters to percent-encoding in the query string.
|
|
@@ -147,6 +147,6 @@ declare module "node:querystring" {
|
|
|
147
147
|
*/
|
|
148
148
|
function unescape(str: string): string;
|
|
149
149
|
}
|
|
150
|
-
declare module "querystring" {
|
|
151
|
-
export * from "
|
|
150
|
+
declare module "node:querystring" {
|
|
151
|
+
export * from "querystring";
|
|
152
152
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since v17.0.0
|
|
3
3
|
*/
|
|
4
|
-
declare module "
|
|
4
|
+
declare module "readline/promises" {
|
|
5
5
|
import { Abortable } from "node:events";
|
|
6
6
|
import {
|
|
7
7
|
CompleterResult,
|
|
@@ -156,6 +156,6 @@ declare module "node:readline/promises" {
|
|
|
156
156
|
): Interface;
|
|
157
157
|
function createInterface(options: ReadLineOptions): Interface;
|
|
158
158
|
}
|
|
159
|
-
declare module "readline/promises" {
|
|
160
|
-
export * from "
|
|
159
|
+
declare module "node:readline/promises" {
|
|
160
|
+
export * from "readline/promises";
|
|
161
161
|
}
|