@psnext/slingcli 3.3.20260911-1 → 3.3.20260914-1
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/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-VDBOM5UG.js → chunk-BRL3MDQL.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +79 -32
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert/strict.d.ts +13 -56
- package/node_modules/@types/node/assert.d.ts +189 -190
- package/node_modules/@types/node/async_hooks.d.ts +151 -43
- package/node_modules/@types/node/buffer.buffer.d.ts +12 -13
- package/node_modules/@types/node/buffer.d.ts +103 -237
- package/node_modules/@types/node/child_process.d.ts +39 -154
- package/node_modules/@types/node/cluster.d.ts +238 -384
- package/node_modules/@types/node/console.d.ts +45 -404
- package/node_modules/@types/node/constants.d.ts +3 -10
- package/node_modules/@types/node/crypto.d.ts +1000 -1593
- package/node_modules/@types/node/dgram.d.ts +133 -81
- package/node_modules/@types/node/diagnostics_channel.d.ts +277 -59
- package/node_modules/@types/node/dns/promises.d.ts +9 -15
- package/node_modules/@types/node/dns.d.ts +136 -183
- package/node_modules/@types/node/domain.d.ts +12 -32
- package/node_modules/@types/node/events.d.ts +872 -840
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +256 -85
- package/node_modules/@types/node/fs.d.ts +865 -525
- package/node_modules/@types/node/globals.d.ts +12 -34
- package/node_modules/@types/node/globals.typedarray.d.ts +63 -0
- package/node_modules/@types/node/http.d.ts +433 -312
- package/node_modules/@types/node/http2.d.ts +545 -891
- package/node_modules/@types/node/https.d.ts +64 -243
- package/node_modules/@types/node/index.d.ts +25 -7
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +70 -58
- package/node_modules/@types/node/inspector.generated.d.ts +764 -410
- package/node_modules/@types/node/module.d.ts +54 -219
- package/node_modules/@types/node/net.d.ts +208 -222
- package/node_modules/@types/node/os.d.ts +41 -49
- package/node_modules/@types/node/package.json +13 -3
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +119 -141
- package/node_modules/@types/node/perf_hooks.d.ts +339 -690
- package/node_modules/@types/node/process.d.ts +389 -205
- package/node_modules/@types/node/punycode.d.ts +3 -31
- package/node_modules/@types/node/querystring.d.ts +3 -16
- package/node_modules/@types/node/quic.d.ts +2153 -0
- package/node_modules/@types/node/readline/promises.d.ts +3 -6
- package/node_modules/@types/node/readline.d.ts +66 -152
- package/node_modules/@types/node/repl.d.ts +101 -109
- package/node_modules/@types/node/sea.d.ts +1 -116
- package/node_modules/@types/node/sqlite.d.ts +486 -68
- package/node_modules/@types/node/stream/consumers.d.ts +91 -15
- package/node_modules/@types/node/stream/iter.d.ts +452 -0
- package/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/node/stream/web.d.ts +197 -454
- package/node_modules/@types/node/stream.d.ts +603 -491
- package/node_modules/@types/node/string_decoder.d.ts +3 -43
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +513 -292
- package/node_modules/@types/node/timers/promises.d.ts +3 -18
- package/node_modules/@types/node/timers.d.ts +3 -141
- package/node_modules/@types/node/tls.d.ts +166 -257
- package/node_modules/@types/node/trace_events.d.ts +3 -97
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -8
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +2 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +26 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +61 -43
- package/node_modules/@types/node/url.d.ts +156 -584
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +170 -1099
- package/node_modules/@types/node/v8.d.ts +175 -36
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +292 -209
- package/node_modules/@types/node/wasi.d.ts +24 -74
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +14 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +97 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +257 -407
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +24 -165
- 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 +13 -12
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +63 -37
- package/node_modules/undici-types/connector.d.ts +5 -2
- package/node_modules/undici-types/cookies.d.ts +3 -1
- package/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
- package/node_modules/undici-types/dispatcher.d.ts +136 -139
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +92 -54
- package/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/undici-types/fetch.d.ts +51 -25
- 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/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +10 -9
- package/node_modules/undici-types/header.d.ts +162 -1
- package/node_modules/undici-types/index.d.ts +69 -47
- package/node_modules/undici-types/interceptors.d.ts +72 -9
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +26 -21
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -14
- package/node_modules/undici-types/proxy-agent.d.ts +14 -6
- package/node_modules/undici-types/readable.d.ts +19 -16
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +148 -30
- package/node_modules/undici-types/websocket.d.ts +48 -10
- package/node_modules/zod/README.md +2 -2
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +14 -30
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +1 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +2 -11
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -4
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +53 -137
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +70 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +87 -35
- package/node_modules/zod/src/v4/core/api.ts +21 -29
- package/node_modules/zod/src/v4/core/checks.ts +61 -1
- package/node_modules/zod/src/v4/core/compile.ts +35 -24
- package/node_modules/zod/src/v4/core/core.ts +1 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +9 -63
- package/node_modules/zod/src/v4/core/memoizer.ts +2 -5
- package/node_modules/zod/src/v4/core/regexes.ts +4 -0
- package/node_modules/zod/src/v4/core/schemas.ts +36 -109
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +177 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
- package/node_modules/zod/src/v4/core/to-json-schema.ts +1 -1
- package/node_modules/zod/src/v4/core/util.ts +0 -4
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/src/v4/core/visit.ts +0 -11
- package/node_modules/zod/src/v4/locales/ar.ts +1 -0
- package/node_modules/zod/src/v4/locales/az.ts +1 -0
- package/node_modules/zod/src/v4/locales/be.ts +1 -0
- package/node_modules/zod/src/v4/locales/bg.ts +1 -0
- package/node_modules/zod/src/v4/locales/bn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ca.ts +1 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
- package/node_modules/zod/src/v4/locales/cs.ts +1 -0
- package/node_modules/zod/src/v4/locales/da.ts +1 -0
- package/node_modules/zod/src/v4/locales/de.ts +1 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +1 -0
- package/node_modules/zod/src/v4/locales/eo.ts +1 -0
- package/node_modules/zod/src/v4/locales/es.ts +1 -0
- package/node_modules/zod/src/v4/locales/fa.ts +1 -0
- package/node_modules/zod/src/v4/locales/fi.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr.ts +1 -0
- package/node_modules/zod/src/v4/locales/gu.ts +1 -0
- package/node_modules/zod/src/v4/locales/he.ts +1 -0
- package/node_modules/zod/src/v4/locales/hi.ts +1 -0
- package/node_modules/zod/src/v4/locales/hr.ts +1 -0
- package/node_modules/zod/src/v4/locales/hu.ts +1 -0
- package/node_modules/zod/src/v4/locales/hy.ts +1 -0
- package/node_modules/zod/src/v4/locales/id.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +1 -0
- package/node_modules/zod/src/v4/locales/it.ts +1 -0
- package/node_modules/zod/src/v4/locales/ja.ts +1 -0
- package/node_modules/zod/src/v4/locales/ka.ts +1 -0
- package/node_modules/zod/src/v4/locales/km.ts +1 -0
- package/node_modules/zod/src/v4/locales/kn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ko.ts +1 -0
- package/node_modules/zod/src/v4/locales/lt.ts +1 -0
- package/node_modules/zod/src/v4/locales/mk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ms.ts +1 -0
- package/node_modules/zod/src/v4/locales/ne.ts +1 -0
- package/node_modules/zod/src/v4/locales/nl.ts +1 -0
- package/node_modules/zod/src/v4/locales/nn.ts +1 -0
- package/node_modules/zod/src/v4/locales/no.ts +1 -0
- package/node_modules/zod/src/v4/locales/ota.ts +1 -0
- package/node_modules/zod/src/v4/locales/pl.ts +1 -0
- package/node_modules/zod/src/v4/locales/ps.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt.ts +1 -0
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +1 -0
- package/node_modules/zod/src/v4/locales/sk.ts +1 -0
- package/node_modules/zod/src/v4/locales/sl.ts +1 -0
- package/node_modules/zod/src/v4/locales/sv.ts +1 -0
- package/node_modules/zod/src/v4/locales/ta.ts +1 -0
- package/node_modules/zod/src/v4/locales/tg.ts +1 -0
- package/node_modules/zod/src/v4/locales/th.ts +1 -0
- package/node_modules/zod/src/v4/locales/tk.ts +1 -0
- package/node_modules/zod/src/v4/locales/tr.ts +1 -0
- package/node_modules/zod/src/v4/locales/uk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ur.ts +1 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +1 -0
- package/node_modules/zod/src/v4/locales/yo.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +12 -23
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +56 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +7 -0
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/schemas.cjs +11 -15
- package/node_modules/zod/v4/classic/schemas.d.cts +4 -6
- package/node_modules/zod/v4/classic/schemas.d.ts +4 -6
- package/node_modules/zod/v4/classic/schemas.js +9 -13
- package/node_modules/zod/v4/core/api.cjs +11 -23
- package/node_modules/zod/v4/core/api.d.cts +8 -4
- package/node_modules/zod/v4/core/api.d.ts +8 -4
- package/node_modules/zod/v4/core/api.js +11 -23
- package/node_modules/zod/v4/core/checks.cjs +32 -1
- package/node_modules/zod/v4/core/checks.d.cts +16 -0
- package/node_modules/zod/v4/core/checks.d.ts +16 -0
- package/node_modules/zod/v4/core/checks.js +31 -0
- package/node_modules/zod/v4/core/compile.cjs +12 -17
- package/node_modules/zod/v4/core/compile.js +13 -18
- package/node_modules/zod/v4/core/core.cjs +1 -1
- package/node_modules/zod/v4/core/core.js +1 -1
- package/node_modules/zod/v4/core/json-schema-processors.cjs +8 -44
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -1
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -1
- package/node_modules/zod/v4/core/json-schema-processors.js +8 -43
- package/node_modules/zod/v4/core/memoizer.cjs +2 -5
- package/node_modules/zod/v4/core/memoizer.js +2 -5
- package/node_modules/zod/v4/core/regexes.cjs +4 -2
- package/node_modules/zod/v4/core/regexes.d.cts +1 -0
- package/node_modules/zod/v4/core/regexes.d.ts +1 -0
- package/node_modules/zod/v4/core/regexes.js +2 -0
- package/node_modules/zod/v4/core/schemas.cjs +33 -73
- package/node_modules/zod/v4/core/schemas.d.cts +7 -22
- package/node_modules/zod/v4/core/schemas.d.ts +7 -22
- package/node_modules/zod/v4/core/schemas.js +30 -72
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -1
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -3
- package/node_modules/zod/v4/core/to-json-schema.js +1 -1
- package/node_modules/zod/v4/core/util.cjs +0 -4
- package/node_modules/zod/v4/core/util.js +0 -4
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/node_modules/zod/v4/core/visit.cjs +0 -12
- package/node_modules/zod/v4/core/visit.js +0 -12
- package/node_modules/zod/v4/locales/ar.cjs +1 -0
- package/node_modules/zod/v4/locales/ar.js +1 -0
- package/node_modules/zod/v4/locales/az.cjs +1 -0
- package/node_modules/zod/v4/locales/az.js +1 -0
- package/node_modules/zod/v4/locales/be.cjs +1 -0
- package/node_modules/zod/v4/locales/be.js +1 -0
- package/node_modules/zod/v4/locales/bg.cjs +1 -0
- package/node_modules/zod/v4/locales/bg.js +1 -0
- package/node_modules/zod/v4/locales/bn.cjs +1 -0
- package/node_modules/zod/v4/locales/bn.js +1 -0
- package/node_modules/zod/v4/locales/ca.cjs +1 -0
- package/node_modules/zod/v4/locales/ca.js +1 -0
- package/node_modules/zod/v4/locales/ckb.cjs +1 -0
- package/node_modules/zod/v4/locales/ckb.js +1 -0
- package/node_modules/zod/v4/locales/cs.cjs +1 -0
- package/node_modules/zod/v4/locales/cs.js +1 -0
- package/node_modules/zod/v4/locales/da.cjs +1 -0
- package/node_modules/zod/v4/locales/da.js +1 -0
- package/node_modules/zod/v4/locales/de.cjs +1 -0
- package/node_modules/zod/v4/locales/de.js +1 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +1 -0
- package/node_modules/zod/v4/locales/en.js +1 -0
- package/node_modules/zod/v4/locales/eo.cjs +1 -0
- package/node_modules/zod/v4/locales/eo.js +1 -0
- package/node_modules/zod/v4/locales/es.cjs +1 -0
- package/node_modules/zod/v4/locales/es.js +1 -0
- package/node_modules/zod/v4/locales/fa.cjs +1 -0
- package/node_modules/zod/v4/locales/fa.js +1 -0
- package/node_modules/zod/v4/locales/fi.cjs +1 -0
- package/node_modules/zod/v4/locales/fi.js +1 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
- package/node_modules/zod/v4/locales/fr-CA.js +1 -0
- package/node_modules/zod/v4/locales/fr.cjs +1 -0
- package/node_modules/zod/v4/locales/fr.js +1 -0
- package/node_modules/zod/v4/locales/gu.cjs +1 -0
- package/node_modules/zod/v4/locales/gu.js +1 -0
- package/node_modules/zod/v4/locales/he.cjs +1 -0
- package/node_modules/zod/v4/locales/he.js +1 -0
- package/node_modules/zod/v4/locales/hi.cjs +1 -0
- package/node_modules/zod/v4/locales/hi.js +1 -0
- package/node_modules/zod/v4/locales/hr.cjs +1 -0
- package/node_modules/zod/v4/locales/hr.js +1 -0
- package/node_modules/zod/v4/locales/hu.cjs +1 -0
- package/node_modules/zod/v4/locales/hu.js +1 -0
- package/node_modules/zod/v4/locales/hy.cjs +1 -0
- package/node_modules/zod/v4/locales/hy.js +1 -0
- package/node_modules/zod/v4/locales/id.cjs +1 -0
- package/node_modules/zod/v4/locales/id.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +1 -0
- package/node_modules/zod/v4/locales/is.js +1 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -0
- package/node_modules/zod/v4/locales/it.js +1 -0
- package/node_modules/zod/v4/locales/ja.cjs +1 -0
- package/node_modules/zod/v4/locales/ja.js +1 -0
- package/node_modules/zod/v4/locales/ka.cjs +1 -0
- package/node_modules/zod/v4/locales/ka.js +1 -0
- package/node_modules/zod/v4/locales/km.cjs +1 -0
- package/node_modules/zod/v4/locales/km.js +1 -0
- package/node_modules/zod/v4/locales/kn.cjs +1 -0
- package/node_modules/zod/v4/locales/kn.js +1 -0
- package/node_modules/zod/v4/locales/ko.cjs +1 -0
- package/node_modules/zod/v4/locales/ko.js +1 -0
- package/node_modules/zod/v4/locales/lt.cjs +1 -0
- package/node_modules/zod/v4/locales/lt.js +1 -0
- package/node_modules/zod/v4/locales/mk.cjs +1 -0
- package/node_modules/zod/v4/locales/mk.js +1 -0
- package/node_modules/zod/v4/locales/ms.cjs +1 -0
- package/node_modules/zod/v4/locales/ms.js +1 -0
- package/node_modules/zod/v4/locales/ne.cjs +1 -0
- package/node_modules/zod/v4/locales/ne.js +1 -0
- package/node_modules/zod/v4/locales/nl.cjs +1 -0
- package/node_modules/zod/v4/locales/nl.js +1 -0
- package/node_modules/zod/v4/locales/nn.cjs +1 -0
- package/node_modules/zod/v4/locales/nn.js +1 -0
- package/node_modules/zod/v4/locales/no.cjs +1 -0
- package/node_modules/zod/v4/locales/no.js +1 -0
- package/node_modules/zod/v4/locales/ota.cjs +1 -0
- package/node_modules/zod/v4/locales/ota.js +1 -0
- package/node_modules/zod/v4/locales/pl.cjs +1 -0
- package/node_modules/zod/v4/locales/pl.js +1 -0
- package/node_modules/zod/v4/locales/ps.cjs +1 -0
- package/node_modules/zod/v4/locales/ps.js +1 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
- package/node_modules/zod/v4/locales/pt-BR.js +1 -0
- package/node_modules/zod/v4/locales/pt.cjs +1 -0
- package/node_modules/zod/v4/locales/pt.js +1 -0
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +1 -0
- package/node_modules/zod/v4/locales/ru.js +1 -0
- package/node_modules/zod/v4/locales/sk.cjs +1 -0
- package/node_modules/zod/v4/locales/sk.js +1 -0
- package/node_modules/zod/v4/locales/sl.cjs +1 -0
- package/node_modules/zod/v4/locales/sl.js +1 -0
- package/node_modules/zod/v4/locales/sv.cjs +1 -0
- package/node_modules/zod/v4/locales/sv.js +1 -0
- package/node_modules/zod/v4/locales/ta.cjs +1 -0
- package/node_modules/zod/v4/locales/ta.js +1 -0
- package/node_modules/zod/v4/locales/tg.cjs +1 -0
- package/node_modules/zod/v4/locales/tg.js +1 -0
- package/node_modules/zod/v4/locales/th.cjs +1 -0
- package/node_modules/zod/v4/locales/th.js +1 -0
- package/node_modules/zod/v4/locales/tk.cjs +1 -0
- package/node_modules/zod/v4/locales/tk.js +1 -0
- package/node_modules/zod/v4/locales/tr.cjs +1 -0
- package/node_modules/zod/v4/locales/tr.js +1 -0
- package/node_modules/zod/v4/locales/uk.cjs +1 -0
- package/node_modules/zod/v4/locales/uk.js +1 -0
- package/node_modules/zod/v4/locales/ur.cjs +1 -0
- package/node_modules/zod/v4/locales/ur.js +1 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +1 -0
- package/node_modules/zod/v4/locales/vi.js +1 -0
- package/node_modules/zod/v4/locales/yo.cjs +1 -0
- package/node_modules/zod/v4/locales/yo.js +1 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-CN.js +1 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-TW.js +1 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +11 -13
- package/node_modules/zod/v4/mini/schemas.d.cts +1 -4
- package/node_modules/zod/v4/mini/schemas.d.ts +1 -4
- package/node_modules/zod/v4/mini/schemas.js +9 -11
- package/package.json +2 -2
- package/slingshot/index.js +183 -182
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
declare module "process" {
|
|
1
|
+
declare module "node: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
|
-
|
|
7
6
|
interface BuiltInModule {
|
|
8
7
|
"assert": typeof import("assert");
|
|
9
8
|
"node:assert": typeof import("node:assert");
|
|
@@ -35,6 +34,7 @@ declare module "process" {
|
|
|
35
34
|
"node:domain": typeof import("node:domain");
|
|
36
35
|
"events": typeof import("events");
|
|
37
36
|
"node:events": typeof import("node:events");
|
|
37
|
+
"node:ffi": typeof import("node:ffi");
|
|
38
38
|
"fs": typeof import("fs");
|
|
39
39
|
"node:fs": typeof import("node:fs");
|
|
40
40
|
"fs/promises": typeof import("fs/promises");
|
|
@@ -69,6 +69,7 @@ declare module "process" {
|
|
|
69
69
|
"node:punycode": typeof import("node:punycode");
|
|
70
70
|
"querystring": typeof import("querystring");
|
|
71
71
|
"node:querystring": typeof import("node:querystring");
|
|
72
|
+
"node:quic": typeof import("node:quic");
|
|
72
73
|
"readline": typeof import("readline");
|
|
73
74
|
"node:readline": typeof import("node:readline");
|
|
74
75
|
"readline/promises": typeof import("readline/promises");
|
|
@@ -81,6 +82,8 @@ declare module "process" {
|
|
|
81
82
|
"node:stream": typeof import("node:stream");
|
|
82
83
|
"stream/consumers": typeof import("stream/consumers");
|
|
83
84
|
"node:stream/consumers": typeof import("node:stream/consumers");
|
|
85
|
+
"stream/iter": typeof import("stream/iter");
|
|
86
|
+
"node:stream/iter": typeof import("node:stream/iter");
|
|
84
87
|
"stream/promises": typeof import("stream/promises");
|
|
85
88
|
"node:stream/promises": typeof import("node:stream/promises");
|
|
86
89
|
"stream/web": typeof import("stream/web");
|
|
@@ -103,8 +106,6 @@ declare module "process" {
|
|
|
103
106
|
"node:url": typeof import("node:url");
|
|
104
107
|
"util": typeof import("util");
|
|
105
108
|
"node:util": typeof import("node:util");
|
|
106
|
-
"sys": typeof import("util");
|
|
107
|
-
"node:sys": typeof import("node:util");
|
|
108
109
|
"util/types": typeof import("util/types");
|
|
109
110
|
"node:util/types": typeof import("node:util/types");
|
|
110
111
|
"v8": typeof import("v8");
|
|
@@ -118,8 +119,28 @@ declare module "process" {
|
|
|
118
119
|
"zlib": typeof import("zlib");
|
|
119
120
|
"node:zlib": typeof import("node:zlib");
|
|
120
121
|
}
|
|
122
|
+
type SignalsEventMap = { [S in NodeJS.Signals]: [signal: S] };
|
|
123
|
+
interface ProcessEventMap extends SignalsEventMap {
|
|
124
|
+
"beforeExit": [code: number];
|
|
125
|
+
"disconnect": [];
|
|
126
|
+
"exit": [code: number];
|
|
127
|
+
"message": [
|
|
128
|
+
message: object | boolean | number | string | null,
|
|
129
|
+
sendHandle: SendHandle | undefined,
|
|
130
|
+
];
|
|
131
|
+
"rejectionHandled": [promise: Promise<unknown>];
|
|
132
|
+
"uncaughtException": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
|
|
133
|
+
"uncaughtExceptionMonitor": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
|
|
134
|
+
"unhandledRejection": [reason: unknown, promise: Promise<unknown>];
|
|
135
|
+
"warning": [warning: Error];
|
|
136
|
+
"worker": [worker: Worker];
|
|
137
|
+
"workerMessage": [value: any, source: number];
|
|
138
|
+
}
|
|
121
139
|
global {
|
|
122
140
|
var process: NodeJS.Process;
|
|
141
|
+
namespace process {
|
|
142
|
+
export { ProcessEventMap };
|
|
143
|
+
}
|
|
123
144
|
namespace NodeJS {
|
|
124
145
|
// this namespace merge is here because these are specifically used
|
|
125
146
|
// as the type for process.stdin, process.stdout, and process.stderr.
|
|
@@ -196,7 +217,7 @@ declare module "process" {
|
|
|
196
217
|
readonly ipv6: boolean;
|
|
197
218
|
/**
|
|
198
219
|
* A boolean value that is `true` if the current Node.js build supports
|
|
199
|
-
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-
|
|
220
|
+
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v26.x/api/modules.md#loading-ecmascript-modules-using-require).
|
|
200
221
|
* @since v22.10.0
|
|
201
222
|
*/
|
|
202
223
|
readonly require_module: boolean;
|
|
@@ -233,12 +254,11 @@ declare module "process" {
|
|
|
233
254
|
*/
|
|
234
255
|
readonly tls_sni: boolean;
|
|
235
256
|
/**
|
|
236
|
-
* A value that is `"strip"` by default,
|
|
237
|
-
*
|
|
238
|
-
* Node.js is run with `--no-experimental-strip-types`.
|
|
257
|
+
* A value that is `"strip"` by default, and `false` if
|
|
258
|
+
* Node.js is run with `--no-strip-types`.
|
|
239
259
|
* @since v22.10.0
|
|
240
260
|
*/
|
|
241
|
-
readonly typescript: "strip" |
|
|
261
|
+
readonly typescript: "strip" | false;
|
|
242
262
|
/**
|
|
243
263
|
* A boolean value that is `true` if the current Node.js build includes support for libuv.
|
|
244
264
|
*
|
|
@@ -277,10 +297,8 @@ declare module "process" {
|
|
|
277
297
|
| "loong64"
|
|
278
298
|
| "mips"
|
|
279
299
|
| "mipsel"
|
|
280
|
-
| "ppc"
|
|
281
300
|
| "ppc64"
|
|
282
301
|
| "riscv64"
|
|
283
|
-
| "s390"
|
|
284
302
|
| "s390x"
|
|
285
303
|
| "x64";
|
|
286
304
|
type Signals =
|
|
@@ -322,26 +340,129 @@ declare module "process" {
|
|
|
322
340
|
| "SIGLOST"
|
|
323
341
|
| "SIGINFO";
|
|
324
342
|
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;
|
|
331
343
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
344
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
345
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
346
|
+
* have their parameter types inferred automatically.
|
|
347
|
+
*
|
|
348
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
349
|
+
*
|
|
350
|
+
* ```ts
|
|
351
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
352
|
+
* const listener = (...args: ProcessEventMap['beforeExit']) => { ... };
|
|
353
|
+
* ```
|
|
354
|
+
*/
|
|
355
|
+
type BeforeExitListener = (...args: ProcessEventMap["beforeExit"]) => void;
|
|
356
|
+
/**
|
|
357
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
358
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
359
|
+
* have their parameter types inferred automatically.
|
|
360
|
+
*
|
|
361
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
362
|
+
*
|
|
363
|
+
* ```ts
|
|
364
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
365
|
+
* const listener = (...args: ProcessEventMap['disconnect']) => { ... };
|
|
366
|
+
* ```
|
|
367
|
+
*/
|
|
368
|
+
type DisconnectListener = (...args: ProcessEventMap["disconnect"]) => void;
|
|
369
|
+
/**
|
|
370
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
371
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
372
|
+
* have their parameter types inferred automatically.
|
|
373
|
+
*
|
|
374
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
375
|
+
*
|
|
376
|
+
* ```ts
|
|
377
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
378
|
+
* const listener = (...args: ProcessEventMap['exit']) => { ... };
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
type ExitListener = (...args: ProcessEventMap["exit"]) => void;
|
|
382
|
+
/**
|
|
383
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
384
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
385
|
+
* have their parameter types inferred automatically.
|
|
386
|
+
*
|
|
387
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
388
|
+
*
|
|
389
|
+
* ```ts
|
|
390
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
391
|
+
* const listener = (...args: ProcessEventMap['message']) => { ... };
|
|
392
|
+
* ```
|
|
393
|
+
*/
|
|
394
|
+
type MessageListener = (...args: ProcessEventMap["message"]) => void;
|
|
395
|
+
/**
|
|
396
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
397
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
398
|
+
* have their parameter types inferred automatically.
|
|
399
|
+
*
|
|
400
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
401
|
+
*
|
|
402
|
+
* ```ts
|
|
403
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
404
|
+
* const listener = (...args: ProcessEventMap['rejectionHandled']) => { ... };
|
|
405
|
+
* ```
|
|
406
|
+
*/
|
|
407
|
+
type RejectionHandledListener = (...args: ProcessEventMap["rejectionHandled"]) => void;
|
|
408
|
+
/**
|
|
409
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
410
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
411
|
+
* have their parameter types inferred automatically.
|
|
334
412
|
*/
|
|
335
|
-
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
336
|
-
type WarningListener = (warning: Error) => void;
|
|
337
|
-
type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
|
|
338
413
|
type SignalsListener = (signal: Signals) => void;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
414
|
+
/**
|
|
415
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
416
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
417
|
+
* have their parameter types inferred automatically.
|
|
418
|
+
*
|
|
419
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
420
|
+
*
|
|
421
|
+
* ```ts
|
|
422
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
423
|
+
* const listener = (...args: ProcessEventMap['uncaughtException']) => { ... };
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
type UncaughtExceptionListener = (...args: ProcessEventMap["uncaughtException"]) => void;
|
|
427
|
+
/**
|
|
428
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
429
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
430
|
+
* have their parameter types inferred automatically.
|
|
431
|
+
*
|
|
432
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
433
|
+
*
|
|
434
|
+
* ```ts
|
|
435
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
436
|
+
* const listener = (...args: ProcessEventMap['unhandledRejection']) => { ... };
|
|
437
|
+
* ```
|
|
438
|
+
*/
|
|
439
|
+
type UnhandledRejectionListener = (...args: ProcessEventMap["unhandledRejection"]) => void;
|
|
440
|
+
/**
|
|
441
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
442
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
443
|
+
* have their parameter types inferred automatically.
|
|
444
|
+
*
|
|
445
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
446
|
+
*
|
|
447
|
+
* ```ts
|
|
448
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
449
|
+
* const listener = (...args: ProcessEventMap['warning']) => { ... };
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
type WarningListener = (...args: ProcessEventMap["warning"]) => void;
|
|
453
|
+
/**
|
|
454
|
+
* @deprecated Global listener types will be removed in a future version.
|
|
455
|
+
* Callbacks passed directly to `process`'s EventEmitter methods
|
|
456
|
+
* have their parameter types inferred automatically.
|
|
457
|
+
*
|
|
458
|
+
* `process` event types are also available via `ProcessEventMap`:
|
|
459
|
+
*
|
|
460
|
+
* ```ts
|
|
461
|
+
* import type { ProcessEventMap } from 'node:process';
|
|
462
|
+
* const listener = (...args: ProcessEventMap['worker']) => { ... };
|
|
463
|
+
* ```
|
|
464
|
+
*/
|
|
465
|
+
type WorkerListener = (...args: ProcessEventMap["worker"]) => void;
|
|
345
466
|
interface Socket extends ReadWriteStream {
|
|
346
467
|
isTTY?: true | undefined;
|
|
347
468
|
}
|
|
@@ -428,6 +549,58 @@ declare module "process" {
|
|
|
428
549
|
* @since v20.0.0
|
|
429
550
|
*/
|
|
430
551
|
has(scope: string, reference?: string): boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Drops the specified permission from the current process. This operation is
|
|
554
|
+
* **irreversible** — once a permission is dropped, it cannot be restored through
|
|
555
|
+
* any Node.js API.
|
|
556
|
+
*
|
|
557
|
+
* If no reference is provided, the entire scope is dropped. For example,
|
|
558
|
+
* `process.permission.drop('fs.read')` will revoke ALL file system read
|
|
559
|
+
* permissions.
|
|
560
|
+
*
|
|
561
|
+
* When a reference is provided, only the permission for that specific resource
|
|
562
|
+
* is dropped. For example, `process.permission.drop('fs.read', '/etc/myapp')`
|
|
563
|
+
* will revoke read access to that directory while keeping other read
|
|
564
|
+
* permissions intact.
|
|
565
|
+
*
|
|
566
|
+
* **Important:** You can only drop the exact resource that was explicitly
|
|
567
|
+
* granted. The reference passed to `drop()` must match the original grant:
|
|
568
|
+
*
|
|
569
|
+
* * If a permission was granted using a wildcard (`*`), such as
|
|
570
|
+
* `--allow-fs-read=*`, individual paths cannot be dropped - only the entire
|
|
571
|
+
* scope can be dropped (by calling `drop()` without a reference).
|
|
572
|
+
* * If a directory was granted (e.g. `--allow-fs-read=/my/folder`), you cannot
|
|
573
|
+
* drop access to individual files inside it. You must drop the same directory
|
|
574
|
+
* that was granted. Any remaining grants continue to apply.
|
|
575
|
+
*
|
|
576
|
+
* The available scopes are the same as [`process.permission.has()`][]:
|
|
577
|
+
*
|
|
578
|
+
* `fs` - All File System (drops both read and write)
|
|
579
|
+
* * `fs.read` - File System read operations
|
|
580
|
+
* * `fs.write` - File System write operations
|
|
581
|
+
* * `child` - Child process spawning operations
|
|
582
|
+
* * `worker` - Worker thread spawning operation
|
|
583
|
+
* * `net` - Network operations
|
|
584
|
+
* * `inspector` - Inspector operations
|
|
585
|
+
* * `wasi` - WASI operations
|
|
586
|
+
* * `addon` - Native addon operations
|
|
587
|
+
*
|
|
588
|
+
* ```js
|
|
589
|
+
* const fs = require('node:fs');
|
|
590
|
+
*
|
|
591
|
+
* // Read configuration during startup
|
|
592
|
+
* const config = fs.readFileSync('/etc/myapp/config.json', 'utf8');
|
|
593
|
+
*
|
|
594
|
+
* // Drop read access to the config directory after initialization
|
|
595
|
+
* process.permission.drop('fs.read', '/etc/myapp');
|
|
596
|
+
*
|
|
597
|
+
* // This will now throw ERR_ACCESS_DENIED
|
|
598
|
+
* fs.readFileSync('/etc/myapp/config.json');
|
|
599
|
+
* ```
|
|
600
|
+
* @since v26.3.0
|
|
601
|
+
* @experimental
|
|
602
|
+
*/
|
|
603
|
+
drop(scope: string, reference?: string): void;
|
|
431
604
|
}
|
|
432
605
|
interface ProcessReport {
|
|
433
606
|
/**
|
|
@@ -610,7 +783,8 @@ declare module "process" {
|
|
|
610
783
|
* arguments passed when the Node.js process was launched. The first element will
|
|
611
784
|
* be {@link execPath}. See `process.argv0` if access to the original value
|
|
612
785
|
* of `argv[0]` is needed. The second element will be the path to the JavaScript
|
|
613
|
-
* file being executed.
|
|
786
|
+
* file being executed. If a [program entry point](https://nodejs.org/docs/latest-v26.x/api/cli.html#program-entry-point) was provided, the second element
|
|
787
|
+
* will be the absolute path to it. The remaining elements are additional command-line
|
|
614
788
|
* arguments.
|
|
615
789
|
*
|
|
616
790
|
* For example, assuming the following script for `process-args.js`:
|
|
@@ -669,14 +843,14 @@ declare module "process" {
|
|
|
669
843
|
*
|
|
670
844
|
* Results in `process.execArgv`:
|
|
671
845
|
*
|
|
672
|
-
* ```
|
|
846
|
+
* ```json
|
|
673
847
|
* ["--icu-data-dir=./foo", "--require", "./bar.js"]
|
|
674
848
|
* ```
|
|
675
849
|
*
|
|
676
850
|
* And `process.argv`:
|
|
677
851
|
*
|
|
678
|
-
* ```
|
|
679
|
-
* [
|
|
852
|
+
* ```json
|
|
853
|
+
* ["/usr/local/bin/node", "script.js", "--version"]
|
|
680
854
|
* ```
|
|
681
855
|
*
|
|
682
856
|
* Refer to `Worker constructor` for the detailed behavior of worker
|
|
@@ -688,8 +862,8 @@ declare module "process" {
|
|
|
688
862
|
* The `process.execPath` property returns the absolute pathname of the executable
|
|
689
863
|
* that started the Node.js process. Symbolic links, if any, are resolved.
|
|
690
864
|
*
|
|
691
|
-
* ```
|
|
692
|
-
*
|
|
865
|
+
* ```json
|
|
866
|
+
* "/usr/local/bin/node"
|
|
693
867
|
* ```
|
|
694
868
|
* @since v0.1.100
|
|
695
869
|
*/
|
|
@@ -702,6 +876,28 @@ declare module "process" {
|
|
|
702
876
|
* @since v0.7.0
|
|
703
877
|
*/
|
|
704
878
|
abort(): never;
|
|
879
|
+
/**
|
|
880
|
+
* The `process.addUncaughtExceptionCaptureCallback()` function adds a callback
|
|
881
|
+
* that will be invoked when an uncaught exception occurs, receiving the exception
|
|
882
|
+
* value as its first argument.
|
|
883
|
+
*
|
|
884
|
+
* Unlike `process.setUncaughtExceptionCaptureCallback()`, this function allows
|
|
885
|
+
* multiple callbacks to be registered and does not conflict with the
|
|
886
|
+
* [`domain`](https://nodejs.org/docs/latest-v26.x/api/domain.html) module. Callbacks are called in reverse order of registration
|
|
887
|
+
* (most recent first). If a callback returns `true`, subsequent callbacks
|
|
888
|
+
* and the default uncaught exception handling are skipped.
|
|
889
|
+
*
|
|
890
|
+
* ```js
|
|
891
|
+
* import process from 'node:process';
|
|
892
|
+
*
|
|
893
|
+
* process.addUncaughtExceptionCaptureCallback((err) => {
|
|
894
|
+
* console.error('Caught exception:', err.message);
|
|
895
|
+
* return true; // Indicates exception was handled
|
|
896
|
+
* });
|
|
897
|
+
* ```
|
|
898
|
+
* @since v25.9.0
|
|
899
|
+
*/
|
|
900
|
+
addUncaughtExceptionCaptureCallback(fn: (err: unknown) => boolean): void;
|
|
705
901
|
/**
|
|
706
902
|
* The `process.chdir()` method changes the current working directory of the
|
|
707
903
|
* Node.js process or throws an exception if doing so fails (for instance, if
|
|
@@ -751,7 +947,7 @@ declare module "process" {
|
|
|
751
947
|
* should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
|
|
752
948
|
* unless there are specific reasons such as custom dlopen flags or loading from ES modules.
|
|
753
949
|
*
|
|
754
|
-
* The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-
|
|
950
|
+
* The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v26.x/api/os.html#dlopen-constants)`
|
|
755
951
|
* documentation for details.
|
|
756
952
|
*
|
|
757
953
|
* An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
|
|
@@ -850,18 +1046,18 @@ declare module "process" {
|
|
|
850
1046
|
*
|
|
851
1047
|
* An example of this object looks like:
|
|
852
1048
|
*
|
|
853
|
-
* ```
|
|
1049
|
+
* ```json
|
|
854
1050
|
* {
|
|
855
|
-
* TERM:
|
|
856
|
-
* SHELL:
|
|
857
|
-
* USER:
|
|
858
|
-
* PATH:
|
|
859
|
-
* PWD:
|
|
860
|
-
* EDITOR:
|
|
861
|
-
* SHLVL:
|
|
862
|
-
* HOME:
|
|
863
|
-
* LOGNAME:
|
|
864
|
-
* _:
|
|
1051
|
+
* "TERM": "xterm-256color",
|
|
1052
|
+
* "SHELL": "/usr/local/bin/bash",
|
|
1053
|
+
* "USER": "maciej",
|
|
1054
|
+
* "PATH": "~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin",
|
|
1055
|
+
* "PWD": "/Users/maciej",
|
|
1056
|
+
* "EDITOR": "vim",
|
|
1057
|
+
* "SHLVL": "1",
|
|
1058
|
+
* "HOME": "/Users/maciej",
|
|
1059
|
+
* "LOGNAME": "maciej",
|
|
1060
|
+
* "_": "/usr/local/bin/node"
|
|
865
1061
|
* }
|
|
866
1062
|
* ```
|
|
867
1063
|
*
|
|
@@ -1298,10 +1494,11 @@ declare module "process" {
|
|
|
1298
1494
|
* method with a non-`null` argument while another capture function is set will
|
|
1299
1495
|
* throw an error.
|
|
1300
1496
|
*
|
|
1301
|
-
*
|
|
1497
|
+
* To register multiple callbacks that can coexist, use
|
|
1498
|
+
* `process.addUncaughtExceptionCaptureCallback()` instead.
|
|
1302
1499
|
* @since v9.3.0
|
|
1303
1500
|
*/
|
|
1304
|
-
setUncaughtExceptionCaptureCallback(cb: ((err:
|
|
1501
|
+
setUncaughtExceptionCaptureCallback(cb: ((err: unknown) => void) | null): void;
|
|
1305
1502
|
/**
|
|
1306
1503
|
* Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
|
|
1307
1504
|
* @since v9.3.0
|
|
@@ -1354,30 +1551,35 @@ declare module "process" {
|
|
|
1354
1551
|
* Will generate an object similar to:
|
|
1355
1552
|
*
|
|
1356
1553
|
* ```console
|
|
1357
|
-
* { node: '
|
|
1358
|
-
* acorn: '8.
|
|
1359
|
-
* ada: '
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
* brotli: '1.0
|
|
1363
|
-
*
|
|
1364
|
-
* cldr: '
|
|
1365
|
-
* icu: '
|
|
1366
|
-
* llhttp: '
|
|
1367
|
-
* modules: '
|
|
1368
|
-
* napi: '
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
*
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1379
|
-
*
|
|
1380
|
-
*
|
|
1554
|
+
* { node: '26.0.0-pre',
|
|
1555
|
+
* acorn: '8.15.0',
|
|
1556
|
+
* ada: '3.4.1',
|
|
1557
|
+
* amaro: '1.1.5',
|
|
1558
|
+
* ares: '1.34.6',
|
|
1559
|
+
* brotli: '1.2.0',
|
|
1560
|
+
* merve: '1.0.0',
|
|
1561
|
+
* cldr: '48.0',
|
|
1562
|
+
* icu: '78.2',
|
|
1563
|
+
* llhttp: '9.3.0',
|
|
1564
|
+
* modules: '144',
|
|
1565
|
+
* napi: '10',
|
|
1566
|
+
* nbytes: '0.1.1',
|
|
1567
|
+
* ncrypto: '0.0.1',
|
|
1568
|
+
* nghttp2: '1.68.0',
|
|
1569
|
+
* nghttp3: '',
|
|
1570
|
+
* ngtcp2: '',
|
|
1571
|
+
* openssl: '3.5.4',
|
|
1572
|
+
* simdjson: '4.2.4',
|
|
1573
|
+
* simdutf: '7.3.3',
|
|
1574
|
+
* sqlite: '3.51.2',
|
|
1575
|
+
* tz: '2025c',
|
|
1576
|
+
* undici: '7.18.2',
|
|
1577
|
+
* unicode: '17.0',
|
|
1578
|
+
* uv: '1.51.0',
|
|
1579
|
+
* uvwasi: '0.0.23',
|
|
1580
|
+
* v8: '14.3.127.18-node.10',
|
|
1581
|
+
* zlib: '1.3.1-e00f703',
|
|
1582
|
+
* zstd: '1.5.7' }
|
|
1381
1583
|
* ```
|
|
1382
1584
|
* @since v0.2.0
|
|
1383
1585
|
*/
|
|
@@ -1390,29 +1592,28 @@ declare module "process" {
|
|
|
1390
1592
|
*
|
|
1391
1593
|
* An example of the possible output looks like:
|
|
1392
1594
|
*
|
|
1393
|
-
* ```
|
|
1595
|
+
* ```json
|
|
1394
1596
|
* {
|
|
1395
|
-
* target_defaults:
|
|
1396
|
-
* { cflags: [],
|
|
1397
|
-
* default_configuration:
|
|
1398
|
-
* defines: [],
|
|
1399
|
-
* include_dirs: [],
|
|
1400
|
-
* libraries: [] },
|
|
1401
|
-
* variables:
|
|
1597
|
+
* "target_defaults":
|
|
1598
|
+
* { "cflags": [],
|
|
1599
|
+
* "default_configuration": "Release",
|
|
1600
|
+
* "defines": [],
|
|
1601
|
+
* "include_dirs": [],
|
|
1602
|
+
* "libraries": [] },
|
|
1603
|
+
* "variables":
|
|
1402
1604
|
* {
|
|
1403
|
-
* host_arch:
|
|
1404
|
-
* napi_build_version: 5,
|
|
1405
|
-
* node_install_npm:
|
|
1406
|
-
* node_prefix:
|
|
1407
|
-
* node_shared_cares:
|
|
1408
|
-
* node_shared_http_parser:
|
|
1409
|
-
* node_shared_libuv:
|
|
1410
|
-
* node_shared_zlib:
|
|
1411
|
-
* node_use_openssl:
|
|
1412
|
-
* node_shared_openssl:
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1415
|
-
* v8_use_snapshot: 1
|
|
1605
|
+
* "host_arch": "x64",
|
|
1606
|
+
* "napi_build_version": 5,
|
|
1607
|
+
* "node_install_npm": "true",
|
|
1608
|
+
* "node_prefix": "",
|
|
1609
|
+
* "node_shared_cares": "false",
|
|
1610
|
+
* "node_shared_http_parser": "false",
|
|
1611
|
+
* "node_shared_libuv": "false",
|
|
1612
|
+
* "node_shared_zlib": "false",
|
|
1613
|
+
* "node_use_openssl": "true",
|
|
1614
|
+
* "node_shared_openssl": "false",
|
|
1615
|
+
* "target_arch": "x64",
|
|
1616
|
+
* "v8_use_snapshot": 1
|
|
1416
1617
|
* }
|
|
1417
1618
|
* }
|
|
1418
1619
|
* ```
|
|
@@ -1500,7 +1701,7 @@ declare module "process" {
|
|
|
1500
1701
|
*
|
|
1501
1702
|
* The result of a previous call to `process.threadCpuUsage()` can be passed as the
|
|
1502
1703
|
* argument to the function, to get a diff reading.
|
|
1503
|
-
* @since
|
|
1704
|
+
* @since v23.9.0
|
|
1504
1705
|
* @param previousValue A previous return value from calling
|
|
1505
1706
|
* `process.threadCpuUsage()`
|
|
1506
1707
|
*/
|
|
@@ -1525,7 +1726,8 @@ declare module "process" {
|
|
|
1525
1726
|
title: string;
|
|
1526
1727
|
/**
|
|
1527
1728
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1528
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
|
|
1729
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
|
|
1730
|
+
* `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
|
|
1529
1731
|
*
|
|
1530
1732
|
* ```js
|
|
1531
1733
|
* import { arch } from 'node:process';
|
|
@@ -1585,7 +1787,7 @@ declare module "process" {
|
|
|
1585
1787
|
constrainedMemory(): number;
|
|
1586
1788
|
/**
|
|
1587
1789
|
* Gets the amount of free memory that is still available to the process (in bytes).
|
|
1588
|
-
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-
|
|
1790
|
+
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v26.x/api/process.html#processavailablememory) for more information.
|
|
1589
1791
|
* @since v20.13.0
|
|
1590
1792
|
*/
|
|
1591
1793
|
availableMemory(): number;
|
|
@@ -1725,13 +1927,13 @@ declare module "process" {
|
|
|
1725
1927
|
*
|
|
1726
1928
|
* `process.release` contains the following properties:
|
|
1727
1929
|
*
|
|
1728
|
-
* ```
|
|
1930
|
+
* ```json
|
|
1729
1931
|
* {
|
|
1730
|
-
* name:
|
|
1731
|
-
* lts:
|
|
1732
|
-
* sourceUrl:
|
|
1733
|
-
* headersUrl:
|
|
1734
|
-
* libUrl:
|
|
1932
|
+
* "name": "node",
|
|
1933
|
+
* "lts": "Hydrogen",
|
|
1934
|
+
* "sourceUrl": "https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz",
|
|
1935
|
+
* "headersUrl": "https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz",
|
|
1936
|
+
* "libUrl": "https://nodejs.org/download/release/v18.12.0/win-x64/node.lib"
|
|
1735
1937
|
* }
|
|
1736
1938
|
* ```
|
|
1737
1939
|
*
|
|
@@ -1741,6 +1943,24 @@ declare module "process" {
|
|
|
1741
1943
|
*/
|
|
1742
1944
|
readonly release: ProcessRelease;
|
|
1743
1945
|
readonly features: ProcessFeatures;
|
|
1946
|
+
/**
|
|
1947
|
+
* The `process.traceProcessWarnings` property indicates whether the `--trace-warnings` flag
|
|
1948
|
+
* is set on the current Node.js process. This property allows programmatic control over the
|
|
1949
|
+
* tracing of warnings, enabling or disabling stack traces for warnings at runtime.
|
|
1950
|
+
*
|
|
1951
|
+
* ```js
|
|
1952
|
+
* // Enable trace warnings
|
|
1953
|
+
* process.traceProcessWarnings = true;
|
|
1954
|
+
*
|
|
1955
|
+
* // Emit a warning with a stack trace
|
|
1956
|
+
* process.emitWarning('Warning with stack trace');
|
|
1957
|
+
*
|
|
1958
|
+
* // Disable trace warnings
|
|
1959
|
+
* process.traceProcessWarnings = false;
|
|
1960
|
+
* ```
|
|
1961
|
+
* @since v6.10.0
|
|
1962
|
+
*/
|
|
1963
|
+
traceProcessWarnings: boolean;
|
|
1744
1964
|
/**
|
|
1745
1965
|
* `process.umask()` returns the Node.js process's file mode creation mask. Child
|
|
1746
1966
|
* processes inherit the mask from the parent process.
|
|
@@ -1805,7 +2025,7 @@ declare module "process" {
|
|
|
1805
2025
|
* If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
|
|
1806
2026
|
* @since v0.7.2
|
|
1807
2027
|
*/
|
|
1808
|
-
disconnect(): void;
|
|
2028
|
+
disconnect?(): void;
|
|
1809
2029
|
/**
|
|
1810
2030
|
* 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
|
|
1811
2031
|
* channel is connected and will return `false` after `process.disconnect()` is called.
|
|
@@ -1859,7 +2079,7 @@ declare module "process" {
|
|
|
1859
2079
|
allowedNodeEnvironmentFlags: ReadonlySet<string>;
|
|
1860
2080
|
/**
|
|
1861
2081
|
* `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
|
|
1862
|
-
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-
|
|
2082
|
+
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v26.x/api/report.html).
|
|
1863
2083
|
* @since v11.8.0
|
|
1864
2084
|
*/
|
|
1865
2085
|
report: ProcessReport;
|
|
@@ -1962,7 +2182,19 @@ declare module "process" {
|
|
|
1962
2182
|
* All other resources are discarded by the system when the processes are swapped, without triggering
|
|
1963
2183
|
* any exit or close events and without running any cleanup handler.
|
|
1964
2184
|
*
|
|
1965
|
-
*
|
|
2185
|
+
* On success, all other resources are discarded by the system when the
|
|
2186
|
+
* processes are swapped, without triggering any exit or close events, without
|
|
2187
|
+
* running any JavaScript cleanup handler (for example `process.on('exit')`),
|
|
2188
|
+
* and without invoking native `AtExit` callbacks registered through the
|
|
2189
|
+
* embedder API. Callers that need to run cleanup logic should do so before
|
|
2190
|
+
* calling `process.execve()`.
|
|
2191
|
+
*
|
|
2192
|
+
* This function does not return on success. If the underlying `execve(2)`
|
|
2193
|
+
* system call fails, an `Error` is thrown whose `code` property is set to the
|
|
2194
|
+
* corresponding `errno` string (for example, `'ENOENT'` when `file` does not
|
|
2195
|
+
* exist), with `syscall` set to `'execve'` and `path` set to `file`. When
|
|
2196
|
+
* `execve(2)` fails the current process continues to run with its state
|
|
2197
|
+
* unchanged, so a caller may handle the error and take another action.
|
|
1966
2198
|
*
|
|
1967
2199
|
* This function is not available on Windows or IBM i.
|
|
1968
2200
|
* @since v22.15.0
|
|
@@ -1974,111 +2206,63 @@ declare module "process" {
|
|
|
1974
2206
|
* **Default:** `process.env`.
|
|
1975
2207
|
*/
|
|
1976
2208
|
execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
|
|
1977
|
-
|
|
1978
|
-
addListener
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
addListener(
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2209
|
+
// #region InternalEventEmitter
|
|
2210
|
+
addListener<E extends keyof ProcessEventMap>(
|
|
2211
|
+
eventName: E,
|
|
2212
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2213
|
+
): this;
|
|
2214
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2215
|
+
emit<E extends keyof ProcessEventMap>(eventName: E, ...args: ProcessEventMap[E]): boolean;
|
|
2216
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
2217
|
+
listenerCount<E extends keyof ProcessEventMap>(
|
|
2218
|
+
eventName: E,
|
|
2219
|
+
listener?: (...args: ProcessEventMap[E]) => void,
|
|
2220
|
+
): number;
|
|
2221
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
2222
|
+
listeners<E extends keyof ProcessEventMap>(eventName: E): ((...args: ProcessEventMap[E]) => void)[];
|
|
2223
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
2224
|
+
off<E extends keyof ProcessEventMap>(
|
|
2225
|
+
eventName: E,
|
|
2226
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2227
|
+
): this;
|
|
2228
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2229
|
+
on<E extends keyof ProcessEventMap>(
|
|
2230
|
+
eventName: E,
|
|
2231
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2232
|
+
): this;
|
|
2233
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2234
|
+
once<E extends keyof ProcessEventMap>(
|
|
2235
|
+
eventName: E,
|
|
2236
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2237
|
+
): this;
|
|
2238
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2239
|
+
prependListener<E extends keyof ProcessEventMap>(
|
|
2240
|
+
eventName: E,
|
|
2241
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2007
2242
|
): this;
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
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[];
|
|
2243
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2244
|
+
prependOnceListener<E extends keyof ProcessEventMap>(
|
|
2245
|
+
eventName: E,
|
|
2246
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2247
|
+
): this;
|
|
2248
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2249
|
+
rawListeners<E extends keyof ProcessEventMap>(eventName: E): ((...args: ProcessEventMap[E]) => void)[];
|
|
2250
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
2251
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
2252
|
+
removeAllListeners<E extends keyof ProcessEventMap>(eventName?: E): this;
|
|
2253
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
2254
|
+
removeListener<E extends keyof ProcessEventMap>(
|
|
2255
|
+
eventName: E,
|
|
2256
|
+
listener: (...args: ProcessEventMap[E]) => void,
|
|
2257
|
+
): this;
|
|
2258
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
2259
|
+
// #endregion
|
|
2076
2260
|
}
|
|
2077
2261
|
}
|
|
2078
2262
|
}
|
|
2079
2263
|
export = process;
|
|
2080
2264
|
}
|
|
2081
|
-
declare module "
|
|
2082
|
-
import process = require("process");
|
|
2265
|
+
declare module "process" {
|
|
2266
|
+
import process = require("node:process");
|
|
2083
2267
|
export = process;
|
|
2084
2268
|
}
|