@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,68 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Workers (threads) are useful for performing CPU-intensive JavaScript operations.
|
|
10
|
-
* They do not help much with I/O-intensive work. The Node.js built-in
|
|
11
|
-
* asynchronous I/O operations are more efficient than Workers can be.
|
|
12
|
-
*
|
|
13
|
-
* Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
|
|
14
|
-
* so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
|
|
15
|
-
*
|
|
16
|
-
* ```js
|
|
17
|
-
* import {
|
|
18
|
-
* Worker,
|
|
19
|
-
* isMainThread,
|
|
20
|
-
* parentPort,
|
|
21
|
-
* workerData,
|
|
22
|
-
* } from 'node:worker_threads';
|
|
23
|
-
*
|
|
24
|
-
* if (!isMainThread) {
|
|
25
|
-
* const { parse } = await import('some-js-parsing-library');
|
|
26
|
-
* const script = workerData;
|
|
27
|
-
* parentPort.postMessage(parse(script));
|
|
28
|
-
* }
|
|
29
|
-
*
|
|
30
|
-
* export default function parseJSAsync(script) {
|
|
31
|
-
* return new Promise((resolve, reject) => {
|
|
32
|
-
* const worker = new Worker(new URL(import.meta.url), {
|
|
33
|
-
* workerData: script,
|
|
34
|
-
* });
|
|
35
|
-
* worker.on('message', resolve);
|
|
36
|
-
* worker.on('error', reject);
|
|
37
|
-
* worker.on('exit', (code) => {
|
|
38
|
-
* if (code !== 0)
|
|
39
|
-
* reject(new Error(`Worker stopped with exit code ${code}`));
|
|
40
|
-
* });
|
|
41
|
-
* });
|
|
42
|
-
* };
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* The above example spawns a Worker thread for each `parseJSAsync()` call. In
|
|
46
|
-
* practice, use a pool of Workers for these kinds of tasks. Otherwise, the
|
|
47
|
-
* overhead of creating Workers would likely exceed their benefit.
|
|
48
|
-
*
|
|
49
|
-
* When implementing a worker pool, use the `AsyncResource` API to inform
|
|
50
|
-
* diagnostic tools (e.g. to provide asynchronous stack traces) about the
|
|
51
|
-
* correlation between tasks and their outcomes. See `"Using AsyncResource for a Worker thread pool"` in the `async_hooks` documentation for an example implementation.
|
|
52
|
-
*
|
|
53
|
-
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
54
|
-
* specifically `argv` and `execArgv` options.
|
|
55
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/worker_threads.js)
|
|
56
|
-
*/
|
|
57
|
-
declare module "worker_threads" {
|
|
58
|
-
import { Context } from "node:vm";
|
|
59
|
-
import { EventEmitter, NodeEventTarget } from "node:events";
|
|
60
|
-
import { EventLoopUtilityFunction } from "node:perf_hooks";
|
|
1
|
+
declare module "node:worker_threads" {
|
|
2
|
+
import {
|
|
3
|
+
EventEmitter,
|
|
4
|
+
InternalEventEmitter,
|
|
5
|
+
InternalEventTargetEventProperties,
|
|
6
|
+
NodeEventTarget,
|
|
7
|
+
} from "node:events";
|
|
61
8
|
import { FileHandle } from "node:fs/promises";
|
|
9
|
+
import { Performance } from "node:perf_hooks";
|
|
62
10
|
import { Readable, Writable } from "node:stream";
|
|
63
11
|
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
64
12
|
import { URL } from "node:url";
|
|
65
|
-
import { HeapInfo } from "node:v8";
|
|
13
|
+
import { CPUProfileHandle, CPUProfileOptions, HeapInfo, HeapProfileHandle, HeapProfileOptions } from "node:v8";
|
|
14
|
+
import { Context } from "node:vm";
|
|
66
15
|
import { MessageEvent } from "undici-types";
|
|
67
16
|
const isInternalThread: boolean;
|
|
68
17
|
const isMainThread: boolean;
|
|
@@ -72,185 +21,7 @@ declare module "worker_threads" {
|
|
|
72
21
|
const threadId: number;
|
|
73
22
|
const threadName: string | null;
|
|
74
23
|
const workerData: any;
|
|
75
|
-
|
|
76
|
-
* Instances of the `worker.MessageChannel` class represent an asynchronous,
|
|
77
|
-
* two-way communications channel.
|
|
78
|
-
* The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
|
79
|
-
*
|
|
80
|
-
* ```js
|
|
81
|
-
* import { MessageChannel } from 'node:worker_threads';
|
|
82
|
-
*
|
|
83
|
-
* const { port1, port2 } = new MessageChannel();
|
|
84
|
-
* port1.on('message', (message) => console.log('received', message));
|
|
85
|
-
* port2.postMessage({ foo: 'bar' });
|
|
86
|
-
* // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
|
|
87
|
-
* ```
|
|
88
|
-
* @since v10.5.0
|
|
89
|
-
*/
|
|
90
|
-
class MessageChannel {
|
|
91
|
-
readonly port1: MessagePort;
|
|
92
|
-
readonly port2: MessagePort;
|
|
93
|
-
}
|
|
94
|
-
interface WorkerPerformance {
|
|
95
|
-
eventLoopUtilization: EventLoopUtilityFunction;
|
|
96
|
-
}
|
|
97
|
-
type Transferable =
|
|
98
|
-
| ArrayBuffer
|
|
99
|
-
| MessagePort
|
|
100
|
-
| AbortSignal
|
|
101
|
-
| FileHandle
|
|
102
|
-
| ReadableStream
|
|
103
|
-
| WritableStream
|
|
104
|
-
| TransformStream;
|
|
105
|
-
/** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
|
|
106
|
-
type TransferListItem = Transferable;
|
|
107
|
-
/**
|
|
108
|
-
* Instances of the `worker.MessagePort` class represent one end of an
|
|
109
|
-
* asynchronous, two-way communications channel. It can be used to transfer
|
|
110
|
-
* structured data, memory regions and other `MessagePort`s between different `Worker`s.
|
|
111
|
-
*
|
|
112
|
-
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
|
113
|
-
* @since v10.5.0
|
|
114
|
-
*/
|
|
115
|
-
class MessagePort implements EventTarget {
|
|
116
|
-
/**
|
|
117
|
-
* Disables further sending of messages on either side of the connection.
|
|
118
|
-
* This method can be called when no further communication will happen over this `MessagePort`.
|
|
119
|
-
*
|
|
120
|
-
* The `'close' event` is emitted on both `MessagePort` instances that
|
|
121
|
-
* are part of the channel.
|
|
122
|
-
* @since v10.5.0
|
|
123
|
-
*/
|
|
124
|
-
close(): void;
|
|
125
|
-
/**
|
|
126
|
-
* Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
|
|
127
|
-
* the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
|
|
128
|
-
*
|
|
129
|
-
* In particular, the significant differences to `JSON` are:
|
|
130
|
-
*
|
|
131
|
-
* * `value` may contain circular references.
|
|
132
|
-
* * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
|
|
133
|
-
* * `value` may contain typed arrays, both using `ArrayBuffer`s
|
|
134
|
-
* and `SharedArrayBuffer`s.
|
|
135
|
-
* * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
|
|
136
|
-
* * `value` may not contain native (C++-backed) objects other than:
|
|
137
|
-
*
|
|
138
|
-
* ```js
|
|
139
|
-
* import { MessageChannel } from 'node:worker_threads';
|
|
140
|
-
* const { port1, port2 } = new MessageChannel();
|
|
141
|
-
*
|
|
142
|
-
* port1.on('message', (message) => console.log(message));
|
|
143
|
-
*
|
|
144
|
-
* const circularData = {};
|
|
145
|
-
* circularData.foo = circularData;
|
|
146
|
-
* // Prints: { foo: [Circular] }
|
|
147
|
-
* port2.postMessage(circularData);
|
|
148
|
-
* ```
|
|
149
|
-
*
|
|
150
|
-
* `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort`, and `FileHandle` objects.
|
|
151
|
-
* After transferring, they are not usable on the sending side of the channel
|
|
152
|
-
* anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
|
|
153
|
-
* not supported.
|
|
154
|
-
*
|
|
155
|
-
* If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
|
|
156
|
-
* from either thread. They cannot be listed in `transferList`.
|
|
157
|
-
*
|
|
158
|
-
* `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
|
|
159
|
-
*
|
|
160
|
-
* ```js
|
|
161
|
-
* import { MessageChannel } from 'node:worker_threads';
|
|
162
|
-
* const { port1, port2 } = new MessageChannel();
|
|
163
|
-
*
|
|
164
|
-
* port1.on('message', (message) => console.log(message));
|
|
165
|
-
*
|
|
166
|
-
* const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
|
|
167
|
-
* // This posts a copy of `uint8Array`:
|
|
168
|
-
* port2.postMessage(uint8Array);
|
|
169
|
-
* // This does not copy data, but renders `uint8Array` unusable:
|
|
170
|
-
* port2.postMessage(uint8Array, [ uint8Array.buffer ]);
|
|
171
|
-
*
|
|
172
|
-
* // The memory for the `sharedUint8Array` is accessible from both the
|
|
173
|
-
* // original and the copy received by `.on('message')`:
|
|
174
|
-
* const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
|
|
175
|
-
* port2.postMessage(sharedUint8Array);
|
|
176
|
-
*
|
|
177
|
-
* // This transfers a freshly created message port to the receiver.
|
|
178
|
-
* // This can be used, for example, to create communication channels between
|
|
179
|
-
* // multiple `Worker` threads that are children of the same parent thread.
|
|
180
|
-
* const otherChannel = new MessageChannel();
|
|
181
|
-
* port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
|
|
182
|
-
* ```
|
|
183
|
-
*
|
|
184
|
-
* The message object is cloned immediately, and can be modified after
|
|
185
|
-
* posting without having side effects.
|
|
186
|
-
*
|
|
187
|
-
* For more information on the serialization and deserialization mechanisms
|
|
188
|
-
* behind this API, see the `serialization API of the node:v8 module`.
|
|
189
|
-
* @since v10.5.0
|
|
190
|
-
*/
|
|
191
|
-
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
192
|
-
/**
|
|
193
|
-
* If true, the `MessagePort` object will keep the Node.js event loop active.
|
|
194
|
-
* @since v18.1.0, v16.17.0
|
|
195
|
-
*/
|
|
196
|
-
hasRef(): boolean;
|
|
197
|
-
/**
|
|
198
|
-
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
|
|
199
|
-
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
|
200
|
-
*
|
|
201
|
-
* If listeners are attached or removed using `.on('message')`, the port
|
|
202
|
-
* is `ref()`ed and `unref()`ed automatically depending on whether
|
|
203
|
-
* listeners for the event exist.
|
|
204
|
-
* @since v10.5.0
|
|
205
|
-
*/
|
|
206
|
-
ref(): void;
|
|
207
|
-
/**
|
|
208
|
-
* Calling `unref()` on a port allows the thread to exit if this is the only
|
|
209
|
-
* active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
|
|
210
|
-
*
|
|
211
|
-
* If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
|
|
212
|
-
* listeners for the event exist.
|
|
213
|
-
* @since v10.5.0
|
|
214
|
-
*/
|
|
215
|
-
unref(): void;
|
|
216
|
-
/**
|
|
217
|
-
* Starts receiving messages on this `MessagePort`. When using this port
|
|
218
|
-
* as an event emitter, this is called automatically once `'message'` listeners are attached.
|
|
219
|
-
*
|
|
220
|
-
* This method exists for parity with the Web `MessagePort` API. In Node.js,
|
|
221
|
-
* it is only useful for ignoring messages when no event listener is present.
|
|
222
|
-
* Node.js also diverges in its handling of `.onmessage`. Setting it
|
|
223
|
-
* automatically calls `.start()`, but unsetting it lets messages queue up
|
|
224
|
-
* until a new handler is set or the port is discarded.
|
|
225
|
-
* @since v10.5.0
|
|
226
|
-
*/
|
|
227
|
-
start(): void;
|
|
228
|
-
addListener(event: "close", listener: (ev: Event) => void): this;
|
|
229
|
-
addListener(event: "message", listener: (value: any) => void): this;
|
|
230
|
-
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
231
|
-
addListener(event: string, listener: (arg: any) => void): this;
|
|
232
|
-
emit(event: "close", ev: Event): boolean;
|
|
233
|
-
emit(event: "message", value: any): boolean;
|
|
234
|
-
emit(event: "messageerror", error: Error): boolean;
|
|
235
|
-
emit(event: string, arg: any): boolean;
|
|
236
|
-
off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
237
|
-
off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
238
|
-
off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
239
|
-
off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
240
|
-
on(event: "close", listener: (ev: Event) => void): this;
|
|
241
|
-
on(event: "message", listener: (value: any) => void): this;
|
|
242
|
-
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
243
|
-
on(event: string, listener: (arg: any) => void): this;
|
|
244
|
-
once(event: "close", listener: (ev: Event) => void): this;
|
|
245
|
-
once(event: "message", listener: (value: any) => void): this;
|
|
246
|
-
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
247
|
-
once(event: string, listener: (arg: any) => void): this;
|
|
248
|
-
removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
249
|
-
removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
250
|
-
removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
251
|
-
removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
252
|
-
}
|
|
253
|
-
interface MessagePort extends NodeEventTarget {}
|
|
24
|
+
interface WorkerPerformance extends Pick<Performance, "eventLoopUtilization"> {}
|
|
254
25
|
interface WorkerOptions {
|
|
255
26
|
/**
|
|
256
27
|
* List of arguments which would be stringified and appended to
|
|
@@ -301,9 +72,12 @@ declare module "worker_threads" {
|
|
|
301
72
|
*/
|
|
302
73
|
stackSizeMb?: number | undefined;
|
|
303
74
|
}
|
|
304
|
-
interface
|
|
305
|
-
|
|
306
|
-
[
|
|
75
|
+
interface WorkerEventMap {
|
|
76
|
+
"error": [err: unknown];
|
|
77
|
+
"exit": [exitCode: number];
|
|
78
|
+
"message": [value: any];
|
|
79
|
+
"messageerror": [error: Error];
|
|
80
|
+
"online": [];
|
|
307
81
|
}
|
|
308
82
|
/**
|
|
309
83
|
* The `Worker` class represents an independent JavaScript execution thread.
|
|
@@ -369,7 +143,7 @@ declare module "worker_threads" {
|
|
|
369
143
|
* ```
|
|
370
144
|
* @since v10.5.0
|
|
371
145
|
*/
|
|
372
|
-
class Worker
|
|
146
|
+
class Worker implements EventEmitter {
|
|
373
147
|
/**
|
|
374
148
|
* If `stdin: true` was passed to the `Worker` constructor, this is a
|
|
375
149
|
* writable stream. The data written to this stream will be made available in
|
|
@@ -398,8 +172,8 @@ declare module "worker_threads" {
|
|
|
398
172
|
readonly threadId: number;
|
|
399
173
|
/**
|
|
400
174
|
* A string identifier for the referenced thread or null if the thread is not running.
|
|
401
|
-
* Inside the worker thread, it is available as
|
|
402
|
-
* @since
|
|
175
|
+
* Inside the worker thread, it is available as `require('node:worker_threads').threadName`.
|
|
176
|
+
* @since v24.6.0
|
|
403
177
|
*/
|
|
404
178
|
readonly threadName: string | null;
|
|
405
179
|
/**
|
|
@@ -452,7 +226,7 @@ declare module "worker_threads" {
|
|
|
452
226
|
* This method returns a `Promise` that will resolve to an object identical to `process.threadCpuUsage()`,
|
|
453
227
|
* or reject with an `ERR_WORKER_NOT_RUNNING` error if the worker is no longer running.
|
|
454
228
|
* This methods allows the statistics to be observed from outside the actual thread.
|
|
455
|
-
* @since
|
|
229
|
+
* @since v24.6.0
|
|
456
230
|
*/
|
|
457
231
|
cpuUsage(prev?: NodeJS.CpuUsage): Promise<NodeJS.CpuUsage>;
|
|
458
232
|
/**
|
|
@@ -469,14 +243,12 @@ declare module "worker_threads" {
|
|
|
469
243
|
* This method returns a `Promise` that will resolve to an object identical to `v8.getHeapStatistics()`,
|
|
470
244
|
* or reject with an `ERR_WORKER_NOT_RUNNING` error if the worker is no longer running.
|
|
471
245
|
* This methods allows the statistics to be observed from outside the actual thread.
|
|
472
|
-
* @since
|
|
246
|
+
* @since v24.0.0
|
|
473
247
|
*/
|
|
474
248
|
getHeapStatistics(): Promise<HeapInfo>;
|
|
475
249
|
/**
|
|
476
|
-
* Starting a CPU profile
|
|
477
|
-
*
|
|
478
|
-
* stop collecting the profile, then return a Promise that fulfills with an error or the
|
|
479
|
-
* profile data.
|
|
250
|
+
* Starting a CPU profile then return a Promise that fulfills with an error
|
|
251
|
+
* or an `CPUProfileHandle` object. This API supports `await using` syntax.
|
|
480
252
|
*
|
|
481
253
|
* ```js
|
|
482
254
|
* const { Worker } = require('node:worker_threads');
|
|
@@ -487,15 +259,69 @@ declare module "worker_threads" {
|
|
|
487
259
|
* `, { eval: true });
|
|
488
260
|
*
|
|
489
261
|
* worker.on('online', async () => {
|
|
490
|
-
* const handle = await worker.startCpuProfile(
|
|
262
|
+
* const handle = await worker.startCpuProfile({ sampleInterval: 1 });
|
|
491
263
|
* const profile = await handle.stop();
|
|
492
264
|
* console.log(profile);
|
|
493
265
|
* worker.terminate();
|
|
494
266
|
* });
|
|
495
267
|
* ```
|
|
496
|
-
*
|
|
268
|
+
*
|
|
269
|
+
* `await using` example.
|
|
270
|
+
*
|
|
271
|
+
* ```js
|
|
272
|
+
* const { Worker } = require('node:worker_threads');
|
|
273
|
+
*
|
|
274
|
+
* const w = new Worker(`
|
|
275
|
+
* const { parentPort } = require('node:worker_threads');
|
|
276
|
+
* parentPort.on('message', () => {});
|
|
277
|
+
* `, { eval: true });
|
|
278
|
+
*
|
|
279
|
+
* w.on('online', async () => {
|
|
280
|
+
* // Stop profile automatically when return and profile will be discarded
|
|
281
|
+
* await using handle = await w.startCpuProfile();
|
|
282
|
+
* });
|
|
283
|
+
* ```
|
|
284
|
+
* @since v24.8.0
|
|
497
285
|
*/
|
|
498
|
-
startCpuProfile(
|
|
286
|
+
startCpuProfile(options?: CPUProfileOptions): Promise<CPUProfileHandle>;
|
|
287
|
+
/**
|
|
288
|
+
* Starting a Heap profile then return a Promise that fulfills with an error
|
|
289
|
+
* or an `HeapProfileHandle` object. This API supports `await using` syntax.
|
|
290
|
+
*
|
|
291
|
+
* ```js
|
|
292
|
+
* import { Worker } from 'node:worker_threads';
|
|
293
|
+
*
|
|
294
|
+
* const worker = new Worker(`
|
|
295
|
+
* const { parentPort } = require('node:worker_threads');
|
|
296
|
+
* parentPort.on('message', () => {});
|
|
297
|
+
* `, { eval: true });
|
|
298
|
+
*
|
|
299
|
+
* worker.on('online', async () => {
|
|
300
|
+
* const handle = await worker.startHeapProfile();
|
|
301
|
+
* const profile = await handle.stop();
|
|
302
|
+
* console.log(profile);
|
|
303
|
+
* worker.terminate();
|
|
304
|
+
* });
|
|
305
|
+
* ```
|
|
306
|
+
*
|
|
307
|
+
* `await using` example.
|
|
308
|
+
*
|
|
309
|
+
* ```js
|
|
310
|
+
* import { Worker } from 'node:worker_threads';
|
|
311
|
+
*
|
|
312
|
+
* const w = new Worker(`
|
|
313
|
+
* const { parentPort } = require('node:worker_threads');
|
|
314
|
+
* parentPort.on('message', () => {});
|
|
315
|
+
* `, { eval: true });
|
|
316
|
+
*
|
|
317
|
+
* w.on('online', async () => {
|
|
318
|
+
* // Stop profile automatically when return and profile will be discarded
|
|
319
|
+
* await using handle = await w.startHeapProfile();
|
|
320
|
+
* });
|
|
321
|
+
* ```
|
|
322
|
+
* @since v24.9.0
|
|
323
|
+
*/
|
|
324
|
+
startHeapProfile(options?: HeapProfileOptions): Promise<HeapProfileHandle>;
|
|
499
325
|
/**
|
|
500
326
|
* Calls `worker.terminate()` when the dispose scope is exited.
|
|
501
327
|
*
|
|
@@ -505,120 +331,22 @@ declare module "worker_threads" {
|
|
|
505
331
|
* // Worker is automatically terminate when the scope is exited.
|
|
506
332
|
* }
|
|
507
333
|
* ```
|
|
508
|
-
* @since
|
|
334
|
+
* @since v24.2.0
|
|
509
335
|
*/
|
|
510
336
|
[Symbol.asyncDispose](): Promise<void>;
|
|
511
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
|
512
|
-
addListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
513
|
-
addListener(event: "message", listener: (value: any) => void): this;
|
|
514
|
-
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
515
|
-
addListener(event: "online", listener: () => void): this;
|
|
516
|
-
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
517
|
-
emit(event: "error", err: Error): boolean;
|
|
518
|
-
emit(event: "exit", exitCode: number): boolean;
|
|
519
|
-
emit(event: "message", value: any): boolean;
|
|
520
|
-
emit(event: "messageerror", error: Error): boolean;
|
|
521
|
-
emit(event: "online"): boolean;
|
|
522
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
523
|
-
on(event: "error", listener: (err: Error) => void): this;
|
|
524
|
-
on(event: "exit", listener: (exitCode: number) => void): this;
|
|
525
|
-
on(event: "message", listener: (value: any) => void): this;
|
|
526
|
-
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
527
|
-
on(event: "online", listener: () => void): this;
|
|
528
|
-
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
529
|
-
once(event: "error", listener: (err: Error) => void): this;
|
|
530
|
-
once(event: "exit", listener: (exitCode: number) => void): this;
|
|
531
|
-
once(event: "message", listener: (value: any) => void): this;
|
|
532
|
-
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
533
|
-
once(event: "online", listener: () => void): this;
|
|
534
|
-
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
535
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
536
|
-
prependListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
537
|
-
prependListener(event: "message", listener: (value: any) => void): this;
|
|
538
|
-
prependListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
539
|
-
prependListener(event: "online", listener: () => void): this;
|
|
540
|
-
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
541
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
542
|
-
prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
543
|
-
prependOnceListener(event: "message", listener: (value: any) => void): this;
|
|
544
|
-
prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
545
|
-
prependOnceListener(event: "online", listener: () => void): this;
|
|
546
|
-
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
547
|
-
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
548
|
-
removeListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
549
|
-
removeListener(event: "message", listener: (value: any) => void): this;
|
|
550
|
-
removeListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
551
|
-
removeListener(event: "online", listener: () => void): this;
|
|
552
|
-
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
553
|
-
off(event: "error", listener: (err: Error) => void): this;
|
|
554
|
-
off(event: "exit", listener: (exitCode: number) => void): this;
|
|
555
|
-
off(event: "message", listener: (value: any) => void): this;
|
|
556
|
-
off(event: "messageerror", listener: (error: Error) => void): this;
|
|
557
|
-
off(event: "online", listener: () => void): this;
|
|
558
|
-
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
559
|
-
}
|
|
560
|
-
interface BroadcastChannel extends NodeJS.RefCounted {}
|
|
561
|
-
/**
|
|
562
|
-
* Instances of `BroadcastChannel` allow asynchronous one-to-many communication
|
|
563
|
-
* with all other `BroadcastChannel` instances bound to the same channel name.
|
|
564
|
-
*
|
|
565
|
-
* ```js
|
|
566
|
-
* 'use strict';
|
|
567
|
-
*
|
|
568
|
-
* import {
|
|
569
|
-
* isMainThread,
|
|
570
|
-
* BroadcastChannel,
|
|
571
|
-
* Worker,
|
|
572
|
-
* } from 'node:worker_threads';
|
|
573
|
-
*
|
|
574
|
-
* const bc = new BroadcastChannel('hello');
|
|
575
|
-
*
|
|
576
|
-
* if (isMainThread) {
|
|
577
|
-
* let c = 0;
|
|
578
|
-
* bc.onmessage = (event) => {
|
|
579
|
-
* console.log(event.data);
|
|
580
|
-
* if (++c === 10) bc.close();
|
|
581
|
-
* };
|
|
582
|
-
* for (let n = 0; n < 10; n++)
|
|
583
|
-
* new Worker(__filename);
|
|
584
|
-
* } else {
|
|
585
|
-
* bc.postMessage('hello from every worker');
|
|
586
|
-
* bc.close();
|
|
587
|
-
* }
|
|
588
|
-
* ```
|
|
589
|
-
* @since v15.4.0
|
|
590
|
-
*/
|
|
591
|
-
class BroadcastChannel extends EventTarget {
|
|
592
|
-
readonly name: string;
|
|
593
|
-
/**
|
|
594
|
-
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
|
595
|
-
* @since v15.4.0
|
|
596
|
-
*/
|
|
597
|
-
onmessage: (message: MessageEvent) => void;
|
|
598
|
-
/**
|
|
599
|
-
* Invoked with a received message cannot be deserialized.
|
|
600
|
-
* @since v15.4.0
|
|
601
|
-
*/
|
|
602
|
-
onmessageerror: (message: MessageEvent) => void;
|
|
603
|
-
constructor(name: string);
|
|
604
|
-
/**
|
|
605
|
-
* Closes the `BroadcastChannel` connection.
|
|
606
|
-
* @since v15.4.0
|
|
607
|
-
*/
|
|
608
|
-
close(): void;
|
|
609
|
-
/**
|
|
610
|
-
* @since v15.4.0
|
|
611
|
-
* @param message Any cloneable JavaScript value.
|
|
612
|
-
*/
|
|
613
|
-
postMessage(message: unknown): void;
|
|
614
337
|
}
|
|
338
|
+
interface Worker extends InternalEventEmitter<WorkerEventMap> {}
|
|
615
339
|
/**
|
|
616
340
|
* Mark an object as not transferable. If `object` occurs in the transfer list of
|
|
617
|
-
* a `port.postMessage()` call,
|
|
341
|
+
* a [`port.postMessage()`](https://nodejs.org/docs/latest-v26.x/api/worker_threads.html#portpostmessagevalue-transferlist) call, an error is thrown. This is a no-op if
|
|
342
|
+
* `object` is a primitive value.
|
|
618
343
|
*
|
|
619
344
|
* In particular, this makes sense for objects that can be cloned, rather than
|
|
620
345
|
* transferred, and which are used by other objects on the sending side.
|
|
621
|
-
* For example, Node.js marks the `ArrayBuffer`s it uses for its
|
|
346
|
+
* For example, Node.js marks the `ArrayBuffer`s it uses for its
|
|
347
|
+
* [`Buffer` pool](https://nodejs.org/docs/latest-v26.x/api/buffer.html#static-method-bufferallocunsafesize) with this.
|
|
348
|
+
* `ArrayBuffer.prototype.transfer()` is disallowed on such array buffer
|
|
349
|
+
* instances.
|
|
622
350
|
*
|
|
623
351
|
* This operation cannot be undone.
|
|
624
352
|
*
|
|
@@ -632,11 +360,17 @@ declare module "worker_threads" {
|
|
|
632
360
|
* markAsUntransferable(pooledBuffer);
|
|
633
361
|
*
|
|
634
362
|
* const { port1 } = new MessageChannel();
|
|
635
|
-
*
|
|
363
|
+
* try {
|
|
364
|
+
* // This will throw an error, because pooledBuffer is not transferable.
|
|
365
|
+
* port1.postMessage(typedArray1, [ typedArray1.buffer ]);
|
|
366
|
+
* } catch (error) {
|
|
367
|
+
* // error.name === 'DataCloneError'
|
|
368
|
+
* }
|
|
636
369
|
*
|
|
637
370
|
* // The following line prints the contents of typedArray1 -- it still owns
|
|
638
|
-
* // its memory and has been
|
|
639
|
-
* // `markAsUntransferable()`, this would print an empty Uint8Array
|
|
371
|
+
* // its memory and has not been transferred. Without
|
|
372
|
+
* // `markAsUntransferable()`, this would print an empty Uint8Array and the
|
|
373
|
+
* // postMessage call would have succeeded.
|
|
640
374
|
* // typedArray2 is intact as well.
|
|
641
375
|
* console.log(typedArray1);
|
|
642
376
|
* console.log(typedArray2);
|
|
@@ -771,49 +505,165 @@ declare module "worker_threads" {
|
|
|
771
505
|
transferList: readonly Transferable[],
|
|
772
506
|
timeout?: number,
|
|
773
507
|
): Promise<void>;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
MessagePort
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
508
|
+
// #region web types
|
|
509
|
+
type LockMode = "exclusive" | "shared";
|
|
510
|
+
type Transferable =
|
|
511
|
+
| ArrayBuffer
|
|
512
|
+
| MessagePort
|
|
513
|
+
| AbortSignal
|
|
514
|
+
| FileHandle
|
|
515
|
+
| ReadableStream
|
|
516
|
+
| WritableStream
|
|
517
|
+
| TransformStream;
|
|
518
|
+
interface LockGrantedCallback<T> {
|
|
519
|
+
(lock: Lock | null): T;
|
|
520
|
+
}
|
|
521
|
+
interface LockInfo {
|
|
522
|
+
clientId: string;
|
|
523
|
+
mode: LockMode;
|
|
524
|
+
name: string;
|
|
525
|
+
}
|
|
526
|
+
interface LockManagerSnapshot {
|
|
527
|
+
held: LockInfo[];
|
|
528
|
+
pending: LockInfo[];
|
|
529
|
+
}
|
|
530
|
+
interface LockOptions {
|
|
531
|
+
ifAvailable?: boolean;
|
|
532
|
+
mode?: LockMode;
|
|
533
|
+
signal?: AbortSignal;
|
|
534
|
+
steal?: boolean;
|
|
535
|
+
}
|
|
536
|
+
interface StructuredSerializeOptions {
|
|
537
|
+
transfer?: Transferable[];
|
|
538
|
+
}
|
|
539
|
+
interface BroadcastChannelEventMap {
|
|
540
|
+
"message": MessageEvent;
|
|
541
|
+
"messageerror": MessageEvent;
|
|
542
|
+
}
|
|
543
|
+
interface BroadcastChannel
|
|
544
|
+
extends EventTarget, InternalEventTargetEventProperties<BroadcastChannelEventMap>, NodeJS.RefCounted
|
|
545
|
+
{
|
|
546
|
+
readonly name: string;
|
|
547
|
+
close(): void;
|
|
548
|
+
postMessage(message: any): void;
|
|
549
|
+
addEventListener<K extends keyof BroadcastChannelEventMap>(
|
|
550
|
+
type: K,
|
|
551
|
+
listener: (ev: BroadcastChannelEventMap[K]) => void,
|
|
552
|
+
options?: AddEventListenerOptions | boolean,
|
|
553
|
+
): void;
|
|
554
|
+
addEventListener(
|
|
555
|
+
type: string,
|
|
556
|
+
listener: EventListener | EventListenerObject,
|
|
557
|
+
options?: AddEventListenerOptions | boolean,
|
|
558
|
+
): void;
|
|
559
|
+
removeEventListener<K extends keyof BroadcastChannelEventMap>(
|
|
560
|
+
type: K,
|
|
561
|
+
listener: (ev: BroadcastChannelEventMap[K]) => void,
|
|
562
|
+
options?: EventListenerOptions | boolean,
|
|
563
|
+
): void;
|
|
564
|
+
removeEventListener(
|
|
565
|
+
type: string,
|
|
566
|
+
listener: EventListener | EventListenerObject,
|
|
567
|
+
options?: EventListenerOptions | boolean,
|
|
568
|
+
): void;
|
|
569
|
+
}
|
|
570
|
+
var BroadcastChannel: {
|
|
571
|
+
prototype: BroadcastChannel;
|
|
572
|
+
new(name: string): BroadcastChannel;
|
|
573
|
+
};
|
|
574
|
+
interface Lock {
|
|
575
|
+
readonly mode: LockMode;
|
|
576
|
+
readonly name: string;
|
|
577
|
+
}
|
|
578
|
+
// var Lock: {
|
|
579
|
+
// prototype: Lock;
|
|
580
|
+
// new(): Lock;
|
|
581
|
+
// };
|
|
582
|
+
interface LockManager {
|
|
583
|
+
query(): Promise<LockManagerSnapshot>;
|
|
584
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
585
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
586
|
+
}
|
|
587
|
+
// var LockManager: {
|
|
588
|
+
// prototype: LockManager;
|
|
589
|
+
// new(): LockManager;
|
|
590
|
+
// };
|
|
591
|
+
interface MessageChannel {
|
|
592
|
+
readonly port1: MessagePort;
|
|
593
|
+
readonly port2: MessagePort;
|
|
594
|
+
}
|
|
595
|
+
var MessageChannel: {
|
|
596
|
+
prototype: MessageChannel;
|
|
597
|
+
new(): MessageChannel;
|
|
598
|
+
};
|
|
599
|
+
interface MessagePortEventMap {
|
|
600
|
+
"close": Event;
|
|
601
|
+
"message": MessageEvent;
|
|
602
|
+
"messageerror": MessageEvent;
|
|
603
|
+
}
|
|
604
|
+
interface MessagePort extends NodeEventTarget, InternalEventTargetEventProperties<MessagePortEventMap> {
|
|
605
|
+
close(): void;
|
|
606
|
+
postMessage(message: any, transfer: Transferable[]): void;
|
|
607
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
608
|
+
start(): void;
|
|
609
|
+
hasRef(): boolean;
|
|
610
|
+
ref(): void;
|
|
611
|
+
unref(): void;
|
|
612
|
+
addEventListener<K extends keyof MessagePortEventMap>(
|
|
613
|
+
type: K,
|
|
614
|
+
listener: (ev: MessagePortEventMap[K]) => void,
|
|
615
|
+
options?: AddEventListenerOptions | boolean,
|
|
616
|
+
): void;
|
|
617
|
+
addEventListener(
|
|
618
|
+
type: string,
|
|
619
|
+
listener: EventListener | EventListenerObject,
|
|
620
|
+
options?: AddEventListenerOptions | boolean,
|
|
621
|
+
): void;
|
|
622
|
+
removeEventListener<K extends keyof MessagePortEventMap>(
|
|
623
|
+
type: K,
|
|
624
|
+
listener: (ev: MessagePortEventMap[K]) => void,
|
|
625
|
+
options?: EventListenerOptions | boolean,
|
|
626
|
+
): void;
|
|
627
|
+
removeEventListener(
|
|
628
|
+
type: string,
|
|
629
|
+
listener: EventListener | EventListenerObject,
|
|
630
|
+
options?: EventListenerOptions | boolean,
|
|
631
|
+
): void;
|
|
632
|
+
// #region NodeEventTarget
|
|
633
|
+
addListener(event: "close", listener: (ev: Event) => void): this;
|
|
634
|
+
addListener(event: "message", listener: (value: any) => void): this;
|
|
635
|
+
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
636
|
+
addListener(event: string, listener: (arg: any) => void): this;
|
|
637
|
+
emit(event: "close", ev: Event): boolean;
|
|
638
|
+
emit(event: "message", value: any): boolean;
|
|
639
|
+
emit(event: "messageerror", error: Error): boolean;
|
|
640
|
+
emit(event: string, arg: any): boolean;
|
|
641
|
+
off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
642
|
+
off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
643
|
+
off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
644
|
+
off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
645
|
+
on(event: "close", listener: (ev: Event) => void): this;
|
|
646
|
+
on(event: "message", listener: (value: any) => void): this;
|
|
647
|
+
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
648
|
+
on(event: string, listener: (arg: any) => void): this;
|
|
649
|
+
once(event: "close", listener: (ev: Event) => void): this;
|
|
650
|
+
once(event: "message", listener: (value: any) => void): this;
|
|
651
|
+
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
652
|
+
once(event: string, listener: (arg: any) => void): this;
|
|
653
|
+
removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
654
|
+
removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
655
|
+
removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
656
|
+
removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
657
|
+
// #endregion
|
|
815
658
|
}
|
|
659
|
+
var MessagePort: {
|
|
660
|
+
prototype: MessagePort;
|
|
661
|
+
new(): MessagePort;
|
|
662
|
+
};
|
|
663
|
+
var locks: LockManager;
|
|
664
|
+
export import structuredClone = globalThis.structuredClone;
|
|
665
|
+
// #endregion
|
|
816
666
|
}
|
|
817
|
-
declare module "
|
|
818
|
-
export * from "worker_threads";
|
|
667
|
+
declare module "worker_threads" {
|
|
668
|
+
export * from "node:worker_threads";
|
|
819
669
|
}
|