cursorconnect 0.1.0 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/bridge-runtime/.env.example +19 -0
- package/bridge-runtime/dist/agent-title-match.d.ts +17 -0
- package/bridge-runtime/dist/agent-title-match.js +213 -0
- package/bridge-runtime/dist/cdp-bridge.d.ts +23 -0
- package/bridge-runtime/dist/cdp-bridge.js +116 -0
- package/bridge-runtime/dist/cdp-client.d.ts +24 -0
- package/bridge-runtime/dist/cdp-client.js +145 -0
- package/bridge-runtime/dist/chat-display-store.d.ts +13 -0
- package/bridge-runtime/dist/chat-display-store.js +29 -0
- package/bridge-runtime/dist/chat-display.d.ts +11 -0
- package/bridge-runtime/dist/chat-display.js +290 -0
- package/bridge-runtime/dist/chat-sync.d.ts +6 -0
- package/bridge-runtime/dist/chat-sync.js +88 -0
- package/bridge-runtime/dist/command-executor.d.ts +26 -0
- package/bridge-runtime/dist/command-executor.js +577 -0
- package/bridge-runtime/dist/composer-images.d.ts +6 -0
- package/bridge-runtime/dist/composer-images.js +130 -0
- package/bridge-runtime/dist/composer-title-index.d.ts +10 -0
- package/bridge-runtime/dist/composer-title-index.js +51 -0
- package/bridge-runtime/dist/config.d.ts +3 -0
- package/bridge-runtime/dist/config.js +37 -0
- package/bridge-runtime/dist/dom-extractor.d.ts +15 -0
- package/bridge-runtime/dist/dom-extractor.js +68 -0
- package/bridge-runtime/dist/extract-page.d.ts +7 -0
- package/bridge-runtime/dist/extract-page.js +1298 -0
- package/bridge-runtime/dist/focused-window.d.ts +3 -0
- package/bridge-runtime/dist/focused-window.js +40 -0
- package/bridge-runtime/dist/history-pipeline-log.d.ts +16 -0
- package/bridge-runtime/dist/history-pipeline-log.js +29 -0
- package/bridge-runtime/dist/image-upload-store.d.ts +5 -0
- package/bridge-runtime/dist/image-upload-store.js +30 -0
- package/bridge-runtime/dist/index.d.ts +1 -0
- package/bridge-runtime/dist/index.js +68 -0
- package/bridge-runtime/dist/jsonl-index.d.ts +36 -0
- package/bridge-runtime/dist/jsonl-index.js +338 -0
- package/bridge-runtime/dist/media-path.d.ts +9 -0
- package/bridge-runtime/dist/media-path.js +59 -0
- package/bridge-runtime/dist/message-debug-store.d.ts +8 -0
- package/bridge-runtime/dist/message-debug-store.js +16 -0
- package/bridge-runtime/dist/message-filter.d.ts +29 -0
- package/bridge-runtime/dist/message-filter.js +143 -0
- package/bridge-runtime/dist/openai-transcribe.d.ts +1 -0
- package/bridge-runtime/dist/openai-transcribe.js +32 -0
- package/bridge-runtime/dist/pairing-code.d.ts +3 -0
- package/bridge-runtime/dist/pairing-code.js +17 -0
- package/bridge-runtime/dist/pairing-identity.d.ts +16 -0
- package/bridge-runtime/dist/pairing-identity.js +88 -0
- package/bridge-runtime/dist/relay-upstream.d.ts +13 -0
- package/bridge-runtime/dist/relay-upstream.js +128 -0
- package/bridge-runtime/dist/relay.d.ts +49 -0
- package/bridge-runtime/dist/relay.js +626 -0
- package/bridge-runtime/dist/sidebar-merge.d.ts +4 -0
- package/bridge-runtime/dist/sidebar-merge.js +47 -0
- package/bridge-runtime/dist/state-manager.d.ts +19 -0
- package/bridge-runtime/dist/state-manager.js +81 -0
- package/bridge-runtime/dist/types.d.ts +251 -0
- package/bridge-runtime/dist/types.js +1 -0
- package/bridge-runtime/dist/window-monitor.d.ts +20 -0
- package/bridge-runtime/dist/window-monitor.js +91 -0
- package/bridge-runtime/node_modules/.package-lock.json +1263 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/LICENSE +24 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/Readme.md +79 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
- package/bridge-runtime/node_modules/@socket.io/component-emitter/package.json +28 -0
- package/bridge-runtime/node_modules/@types/cors/LICENSE +21 -0
- package/bridge-runtime/node_modules/@types/cors/README.md +75 -0
- package/bridge-runtime/node_modules/@types/cors/index.d.ts +56 -0
- package/bridge-runtime/node_modules/@types/cors/package.json +38 -0
- package/bridge-runtime/node_modules/@types/node/LICENSE +21 -0
- package/bridge-runtime/node_modules/@types/node/README.md +15 -0
- package/bridge-runtime/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/bridge-runtime/node_modules/@types/node/assert.d.ts +1078 -0
- package/bridge-runtime/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/bridge-runtime/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/bridge-runtime/node_modules/@types/node/buffer.d.ts +1934 -0
- package/bridge-runtime/node_modules/@types/node/child_process.d.ts +1476 -0
- package/bridge-runtime/node_modules/@types/node/cluster.d.ts +578 -0
- package/bridge-runtime/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/bridge-runtime/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/bridge-runtime/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/bridge-runtime/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/bridge-runtime/node_modules/@types/node/console.d.ts +452 -0
- package/bridge-runtime/node_modules/@types/node/constants.d.ts +21 -0
- package/bridge-runtime/node_modules/@types/node/crypto.d.ts +4545 -0
- package/bridge-runtime/node_modules/@types/node/dgram.d.ts +600 -0
- package/bridge-runtime/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/bridge-runtime/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/bridge-runtime/node_modules/@types/node/dns.d.ts +923 -0
- package/bridge-runtime/node_modules/@types/node/domain.d.ts +170 -0
- package/bridge-runtime/node_modules/@types/node/events.d.ts +976 -0
- package/bridge-runtime/node_modules/@types/node/fs/promises.d.ts +1295 -0
- package/bridge-runtime/node_modules/@types/node/fs.d.ts +4461 -0
- package/bridge-runtime/node_modules/@types/node/globals.d.ts +172 -0
- package/bridge-runtime/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/bridge-runtime/node_modules/@types/node/http.d.ts +2089 -0
- package/bridge-runtime/node_modules/@types/node/http2.d.ts +2721 -0
- package/bridge-runtime/node_modules/@types/node/https.d.ts +579 -0
- package/bridge-runtime/node_modules/@types/node/index.d.ts +97 -0
- package/bridge-runtime/node_modules/@types/node/inspector.d.ts +253 -0
- package/bridge-runtime/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/bridge-runtime/node_modules/@types/node/module.d.ts +891 -0
- package/bridge-runtime/node_modules/@types/node/net.d.ts +1076 -0
- package/bridge-runtime/node_modules/@types/node/os.d.ts +506 -0
- package/bridge-runtime/node_modules/@types/node/package.json +145 -0
- package/bridge-runtime/node_modules/@types/node/path.d.ts +200 -0
- package/bridge-runtime/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/bridge-runtime/node_modules/@types/node/process.d.ts +2084 -0
- package/bridge-runtime/node_modules/@types/node/punycode.d.ts +117 -0
- package/bridge-runtime/node_modules/@types/node/querystring.d.ts +152 -0
- package/bridge-runtime/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/bridge-runtime/node_modules/@types/node/readline.d.ts +594 -0
- package/bridge-runtime/node_modules/@types/node/repl.d.ts +428 -0
- package/bridge-runtime/node_modules/@types/node/sea.d.ts +153 -0
- package/bridge-runtime/node_modules/@types/node/sqlite.d.ts +721 -0
- package/bridge-runtime/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/bridge-runtime/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/bridge-runtime/node_modules/@types/node/stream/web.d.ts +622 -0
- package/bridge-runtime/node_modules/@types/node/stream.d.ts +1687 -0
- package/bridge-runtime/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/bridge-runtime/node_modules/@types/node/test.d.ts +2163 -0
- package/bridge-runtime/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/bridge-runtime/node_modules/@types/node/timers.d.ts +287 -0
- package/bridge-runtime/node_modules/@types/node/tls.d.ts +1319 -0
- package/bridge-runtime/node_modules/@types/node/trace_events.d.ts +197 -0
- package/bridge-runtime/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/bridge-runtime/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/bridge-runtime/node_modules/@types/node/ts5.6/index.d.ts +97 -0
- package/bridge-runtime/node_modules/@types/node/tty.d.ts +208 -0
- package/bridge-runtime/node_modules/@types/node/url.d.ts +984 -0
- package/bridge-runtime/node_modules/@types/node/util.d.ts +2606 -0
- package/bridge-runtime/node_modules/@types/node/v8.d.ts +920 -0
- package/bridge-runtime/node_modules/@types/node/vm.d.ts +1000 -0
- package/bridge-runtime/node_modules/@types/node/wasi.d.ts +181 -0
- package/bridge-runtime/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/bridge-runtime/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/bridge-runtime/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/bridge-runtime/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/bridge-runtime/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/bridge-runtime/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/bridge-runtime/node_modules/@types/node/worker_threads.d.ts +784 -0
- package/bridge-runtime/node_modules/@types/node/zlib.d.ts +747 -0
- package/bridge-runtime/node_modules/@types/ws/LICENSE +21 -0
- package/bridge-runtime/node_modules/@types/ws/README.md +15 -0
- package/bridge-runtime/node_modules/@types/ws/index.d.mts +451 -0
- package/bridge-runtime/node_modules/@types/ws/index.d.ts +445 -0
- package/bridge-runtime/node_modules/@types/ws/package.json +72 -0
- package/bridge-runtime/node_modules/accepts/HISTORY.md +243 -0
- package/bridge-runtime/node_modules/accepts/LICENSE +23 -0
- package/bridge-runtime/node_modules/accepts/README.md +140 -0
- package/bridge-runtime/node_modules/accepts/index.js +238 -0
- package/bridge-runtime/node_modules/accepts/package.json +47 -0
- package/bridge-runtime/node_modules/array-flatten/LICENSE +21 -0
- package/bridge-runtime/node_modules/array-flatten/README.md +43 -0
- package/bridge-runtime/node_modules/array-flatten/array-flatten.js +64 -0
- package/bridge-runtime/node_modules/array-flatten/package.json +39 -0
- package/bridge-runtime/node_modules/base64id/CHANGELOG.md +16 -0
- package/bridge-runtime/node_modules/base64id/LICENSE +22 -0
- package/bridge-runtime/node_modules/base64id/README.md +18 -0
- package/bridge-runtime/node_modules/base64id/lib/base64id.js +103 -0
- package/bridge-runtime/node_modules/base64id/package.json +13 -0
- package/bridge-runtime/node_modules/body-parser/HISTORY.md +686 -0
- package/bridge-runtime/node_modules/body-parser/LICENSE +23 -0
- package/bridge-runtime/node_modules/body-parser/README.md +476 -0
- package/bridge-runtime/node_modules/body-parser/index.js +156 -0
- package/bridge-runtime/node_modules/body-parser/lib/read.js +205 -0
- package/bridge-runtime/node_modules/body-parser/lib/types/json.js +243 -0
- package/bridge-runtime/node_modules/body-parser/lib/types/raw.js +101 -0
- package/bridge-runtime/node_modules/body-parser/lib/types/text.js +121 -0
- package/bridge-runtime/node_modules/body-parser/lib/types/urlencoded.js +299 -0
- package/bridge-runtime/node_modules/body-parser/package.json +55 -0
- package/bridge-runtime/node_modules/bytes/History.md +97 -0
- package/bridge-runtime/node_modules/bytes/LICENSE +23 -0
- package/bridge-runtime/node_modules/bytes/Readme.md +152 -0
- package/bridge-runtime/node_modules/bytes/index.js +170 -0
- package/bridge-runtime/node_modules/bytes/package.json +42 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/bridge-runtime/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/call-bound/.eslintrc +13 -0
- package/bridge-runtime/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/call-bound/.nycrc +9 -0
- package/bridge-runtime/node_modules/call-bound/CHANGELOG.md +42 -0
- package/bridge-runtime/node_modules/call-bound/LICENSE +21 -0
- package/bridge-runtime/node_modules/call-bound/README.md +53 -0
- package/bridge-runtime/node_modules/call-bound/index.d.ts +94 -0
- package/bridge-runtime/node_modules/call-bound/index.js +19 -0
- package/bridge-runtime/node_modules/call-bound/package.json +99 -0
- package/bridge-runtime/node_modules/call-bound/test/index.js +61 -0
- package/bridge-runtime/node_modules/call-bound/tsconfig.json +10 -0
- package/bridge-runtime/node_modules/chokidar/LICENSE +21 -0
- package/bridge-runtime/node_modules/chokidar/README.md +305 -0
- package/bridge-runtime/node_modules/chokidar/esm/handler.d.ts +90 -0
- package/bridge-runtime/node_modules/chokidar/esm/handler.js +629 -0
- package/bridge-runtime/node_modules/chokidar/esm/index.d.ts +215 -0
- package/bridge-runtime/node_modules/chokidar/esm/index.js +798 -0
- package/bridge-runtime/node_modules/chokidar/esm/package.json +1 -0
- package/bridge-runtime/node_modules/chokidar/handler.d.ts +90 -0
- package/bridge-runtime/node_modules/chokidar/handler.js +635 -0
- package/bridge-runtime/node_modules/chokidar/index.d.ts +215 -0
- package/bridge-runtime/node_modules/chokidar/index.js +804 -0
- package/bridge-runtime/node_modules/chokidar/package.json +69 -0
- package/bridge-runtime/node_modules/content-disposition/HISTORY.md +60 -0
- package/bridge-runtime/node_modules/content-disposition/LICENSE +22 -0
- package/bridge-runtime/node_modules/content-disposition/README.md +142 -0
- package/bridge-runtime/node_modules/content-disposition/index.js +458 -0
- package/bridge-runtime/node_modules/content-disposition/package.json +44 -0
- package/bridge-runtime/node_modules/content-type/HISTORY.md +29 -0
- package/bridge-runtime/node_modules/content-type/LICENSE +22 -0
- package/bridge-runtime/node_modules/content-type/README.md +94 -0
- package/bridge-runtime/node_modules/content-type/index.js +225 -0
- package/bridge-runtime/node_modules/content-type/package.json +42 -0
- package/bridge-runtime/node_modules/cookie/LICENSE +24 -0
- package/bridge-runtime/node_modules/cookie/README.md +317 -0
- package/bridge-runtime/node_modules/cookie/SECURITY.md +25 -0
- package/bridge-runtime/node_modules/cookie/index.js +335 -0
- package/bridge-runtime/node_modules/cookie/package.json +44 -0
- package/bridge-runtime/node_modules/cookie-signature/History.md +42 -0
- package/bridge-runtime/node_modules/cookie-signature/Readme.md +42 -0
- package/bridge-runtime/node_modules/cookie-signature/index.js +51 -0
- package/bridge-runtime/node_modules/cookie-signature/package.json +18 -0
- package/bridge-runtime/node_modules/cors/LICENSE +22 -0
- package/bridge-runtime/node_modules/cors/README.md +277 -0
- package/bridge-runtime/node_modules/cors/lib/index.js +238 -0
- package/bridge-runtime/node_modules/cors/package.json +42 -0
- package/bridge-runtime/node_modules/debug/.coveralls.yml +1 -0
- package/bridge-runtime/node_modules/debug/.eslintrc +11 -0
- package/bridge-runtime/node_modules/debug/.travis.yml +14 -0
- package/bridge-runtime/node_modules/debug/CHANGELOG.md +362 -0
- package/bridge-runtime/node_modules/debug/LICENSE +19 -0
- package/bridge-runtime/node_modules/debug/Makefile +50 -0
- package/bridge-runtime/node_modules/debug/README.md +312 -0
- package/bridge-runtime/node_modules/debug/component.json +19 -0
- package/bridge-runtime/node_modules/debug/karma.conf.js +70 -0
- package/bridge-runtime/node_modules/debug/node.js +1 -0
- package/bridge-runtime/node_modules/debug/package.json +49 -0
- package/bridge-runtime/node_modules/debug/src/browser.js +185 -0
- package/bridge-runtime/node_modules/debug/src/debug.js +202 -0
- package/bridge-runtime/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/debug/src/inspector-log.js +15 -0
- package/bridge-runtime/node_modules/debug/src/node.js +248 -0
- package/bridge-runtime/node_modules/depd/History.md +103 -0
- package/bridge-runtime/node_modules/depd/LICENSE +22 -0
- package/bridge-runtime/node_modules/depd/Readme.md +280 -0
- package/bridge-runtime/node_modules/depd/index.js +538 -0
- package/bridge-runtime/node_modules/depd/lib/browser/index.js +77 -0
- package/bridge-runtime/node_modules/depd/package.json +45 -0
- package/bridge-runtime/node_modules/destroy/LICENSE +23 -0
- package/bridge-runtime/node_modules/destroy/README.md +63 -0
- package/bridge-runtime/node_modules/destroy/index.js +209 -0
- package/bridge-runtime/node_modules/destroy/package.json +48 -0
- package/bridge-runtime/node_modules/dotenv/CHANGELOG.md +643 -0
- package/bridge-runtime/node_modules/dotenv/LICENSE +23 -0
- package/bridge-runtime/node_modules/dotenv/README-es.md +757 -0
- package/bridge-runtime/node_modules/dotenv/README.md +812 -0
- package/bridge-runtime/node_modules/dotenv/SECURITY.md +1 -0
- package/bridge-runtime/node_modules/dotenv/config.d.ts +1 -0
- package/bridge-runtime/node_modules/dotenv/config.js +9 -0
- package/bridge-runtime/node_modules/dotenv/lib/cli-options.js +17 -0
- package/bridge-runtime/node_modules/dotenv/lib/env-options.js +28 -0
- package/bridge-runtime/node_modules/dotenv/lib/main.d.ts +179 -0
- package/bridge-runtime/node_modules/dotenv/lib/main.js +423 -0
- package/bridge-runtime/node_modules/dotenv/package.json +62 -0
- package/bridge-runtime/node_modules/dotenv/skills/dotenv/SKILL.md +200 -0
- package/bridge-runtime/node_modules/dotenv/skills/dotenvx/SKILL.md +118 -0
- package/bridge-runtime/node_modules/dunder-proto/.eslintrc +5 -0
- package/bridge-runtime/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/dunder-proto/.nycrc +13 -0
- package/bridge-runtime/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/bridge-runtime/node_modules/dunder-proto/LICENSE +21 -0
- package/bridge-runtime/node_modules/dunder-proto/README.md +54 -0
- package/bridge-runtime/node_modules/dunder-proto/get.d.ts +5 -0
- package/bridge-runtime/node_modules/dunder-proto/get.js +30 -0
- package/bridge-runtime/node_modules/dunder-proto/package.json +76 -0
- package/bridge-runtime/node_modules/dunder-proto/set.d.ts +5 -0
- package/bridge-runtime/node_modules/dunder-proto/set.js +35 -0
- package/bridge-runtime/node_modules/dunder-proto/test/get.js +34 -0
- package/bridge-runtime/node_modules/dunder-proto/test/index.js +4 -0
- package/bridge-runtime/node_modules/dunder-proto/test/set.js +50 -0
- package/bridge-runtime/node_modules/dunder-proto/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/ee-first/LICENSE +22 -0
- package/bridge-runtime/node_modules/ee-first/README.md +80 -0
- package/bridge-runtime/node_modules/ee-first/index.js +95 -0
- package/bridge-runtime/node_modules/ee-first/package.json +29 -0
- package/bridge-runtime/node_modules/encodeurl/LICENSE +22 -0
- package/bridge-runtime/node_modules/encodeurl/README.md +109 -0
- package/bridge-runtime/node_modules/encodeurl/index.js +60 -0
- package/bridge-runtime/node_modules/encodeurl/package.json +40 -0
- package/bridge-runtime/node_modules/engine.io/LICENSE +19 -0
- package/bridge-runtime/node_modules/engine.io/README.md +603 -0
- package/bridge-runtime/node_modules/engine.io/build/contrib/types.cookie.d.ts +113 -0
- package/bridge-runtime/node_modules/engine.io/build/contrib/types.cookie.js +6 -0
- package/bridge-runtime/node_modules/engine.io/build/engine.io.d.ts +27 -0
- package/bridge-runtime/node_modules/engine.io/build/engine.io.js +54 -0
- package/bridge-runtime/node_modules/engine.io/build/parser-v3/index.d.ts +88 -0
- package/bridge-runtime/node_modules/engine.io/build/parser-v3/index.js +424 -0
- package/bridge-runtime/node_modules/engine.io/build/parser-v3/utf8.d.ts +14 -0
- package/bridge-runtime/node_modules/engine.io/build/parser-v3/utf8.js +187 -0
- package/bridge-runtime/node_modules/engine.io/build/server.d.ts +272 -0
- package/bridge-runtime/node_modules/engine.io/build/server.js +810 -0
- package/bridge-runtime/node_modules/engine.io/build/socket.d.ts +180 -0
- package/bridge-runtime/node_modules/engine.io/build/socket.js +460 -0
- package/bridge-runtime/node_modules/engine.io/build/transport.d.ts +135 -0
- package/bridge-runtime/node_modules/engine.io/build/transport.js +121 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/index.d.ts +17 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/index.js +23 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/polling-jsonp.d.ts +12 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/polling-jsonp.js +41 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/polling.d.ts +87 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/polling.js +333 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/websocket.d.ts +33 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/websocket.js +93 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/webtransport.d.ts +12 -0
- package/bridge-runtime/node_modules/engine.io/build/transports/webtransport.js +63 -0
- package/bridge-runtime/node_modules/engine.io/build/transports-uws/index.d.ts +7 -0
- package/bridge-runtime/node_modules/engine.io/build/transports-uws/index.js +8 -0
- package/bridge-runtime/node_modules/engine.io/build/transports-uws/polling.d.ts +99 -0
- package/bridge-runtime/node_modules/engine.io/build/transports-uws/polling.js +365 -0
- package/bridge-runtime/node_modules/engine.io/build/transports-uws/websocket.d.ts +32 -0
- package/bridge-runtime/node_modules/engine.io/build/transports-uws/websocket.js +73 -0
- package/bridge-runtime/node_modules/engine.io/build/userver.d.ts +43 -0
- package/bridge-runtime/node_modules/engine.io/build/userver.js +290 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/LICENSE +20 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/README.md +481 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/package.json +64 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/src/browser.js +272 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/src/common.js +292 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/debug/src/node.js +263 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/LICENSE +20 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/README.md +548 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/browser.js +8 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/index.js +22 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/buffer-util.js +131 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/constants.js +19 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/event-target.js +292 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/extension.js +203 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/limiter.js +55 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/receiver.js +706 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/sender.js +607 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/stream.js +161 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/subprotocol.js +62 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/validation.js +152 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/websocket-server.js +554 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/lib/websocket.js +1393 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/package.json +70 -0
- package/bridge-runtime/node_modules/engine.io/node_modules/ws/wrapper.mjs +21 -0
- package/bridge-runtime/node_modules/engine.io/package.json +71 -0
- package/bridge-runtime/node_modules/engine.io/wrapper.mjs +10 -0
- package/bridge-runtime/node_modules/engine.io-client/LICENSE +22 -0
- package/bridge-runtime/node_modules/engine.io-client/README.md +331 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/globals.js +26 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/index.js +32 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/package.json +10 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/socket.js +765 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transport.js +153 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
- package/bridge-runtime/node_modules/engine.io-client/build/cjs/util.js +65 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/globals.js +22 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/index.js +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/package.json +10 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/socket.js +727 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transport.js +142 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm/util.js +59 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
- package/bridge-runtime/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
- package/bridge-runtime/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
- package/bridge-runtime/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
- package/bridge-runtime/node_modules/engine.io-client/dist/engine.io.js +3064 -0
- package/bridge-runtime/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
- package/bridge-runtime/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
- package/bridge-runtime/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/LICENSE +20 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/README.md +481 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/package.json +64 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/src/browser.js +272 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/src/common.js +292 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/debug/src/node.js +263 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/LICENSE +20 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/README.md +548 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/browser.js +8 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/index.js +22 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js +131 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/constants.js +19 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/event-target.js +292 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/extension.js +203 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/limiter.js +55 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/receiver.js +706 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/sender.js +607 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/stream.js +161 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js +62 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/validation.js +152 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js +554 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/lib/websocket.js +1393 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/package.json +70 -0
- package/bridge-runtime/node_modules/engine.io-client/node_modules/ws/wrapper.mjs +21 -0
- package/bridge-runtime/node_modules/engine.io-client/package.json +95 -0
- package/bridge-runtime/node_modules/engine.io-parser/LICENSE +22 -0
- package/bridge-runtime/node_modules/engine.io-parser/Readme.md +158 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/index.js +164 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/cjs/package.json +8 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/commons.js +14 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/index.js +156 -0
- package/bridge-runtime/node_modules/engine.io-parser/build/esm/package.json +8 -0
- package/bridge-runtime/node_modules/engine.io-parser/package.json +46 -0
- package/bridge-runtime/node_modules/es-define-property/.eslintrc +13 -0
- package/bridge-runtime/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/es-define-property/.nycrc +9 -0
- package/bridge-runtime/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/bridge-runtime/node_modules/es-define-property/LICENSE +21 -0
- package/bridge-runtime/node_modules/es-define-property/README.md +49 -0
- package/bridge-runtime/node_modules/es-define-property/index.d.ts +3 -0
- package/bridge-runtime/node_modules/es-define-property/index.js +14 -0
- package/bridge-runtime/node_modules/es-define-property/package.json +81 -0
- package/bridge-runtime/node_modules/es-define-property/test/index.js +56 -0
- package/bridge-runtime/node_modules/es-define-property/tsconfig.json +10 -0
- package/bridge-runtime/node_modules/es-errors/.eslintrc +5 -0
- package/bridge-runtime/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/es-errors/CHANGELOG.md +40 -0
- package/bridge-runtime/node_modules/es-errors/LICENSE +21 -0
- package/bridge-runtime/node_modules/es-errors/README.md +55 -0
- package/bridge-runtime/node_modules/es-errors/eval.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/eval.js +4 -0
- package/bridge-runtime/node_modules/es-errors/index.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/index.js +4 -0
- package/bridge-runtime/node_modules/es-errors/package.json +80 -0
- package/bridge-runtime/node_modules/es-errors/range.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/range.js +4 -0
- package/bridge-runtime/node_modules/es-errors/ref.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/ref.js +4 -0
- package/bridge-runtime/node_modules/es-errors/syntax.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/syntax.js +4 -0
- package/bridge-runtime/node_modules/es-errors/test/index.js +19 -0
- package/bridge-runtime/node_modules/es-errors/tsconfig.json +49 -0
- package/bridge-runtime/node_modules/es-errors/type.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/type.js +4 -0
- package/bridge-runtime/node_modules/es-errors/uri.d.ts +3 -0
- package/bridge-runtime/node_modules/es-errors/uri.js +4 -0
- package/bridge-runtime/node_modules/es-object-atoms/.eslintrc +16 -0
- package/bridge-runtime/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/es-object-atoms/CHANGELOG.md +44 -0
- package/bridge-runtime/node_modules/es-object-atoms/LICENSE +21 -0
- package/bridge-runtime/node_modules/es-object-atoms/README.md +63 -0
- package/bridge-runtime/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/bridge-runtime/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/bridge-runtime/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/bridge-runtime/node_modules/es-object-atoms/ToObject.js +10 -0
- package/bridge-runtime/node_modules/es-object-atoms/index.d.ts +3 -0
- package/bridge-runtime/node_modules/es-object-atoms/index.js +4 -0
- package/bridge-runtime/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/bridge-runtime/node_modules/es-object-atoms/isObject.js +6 -0
- package/bridge-runtime/node_modules/es-object-atoms/package.json +79 -0
- package/bridge-runtime/node_modules/es-object-atoms/test/index.js +38 -0
- package/bridge-runtime/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/bridge-runtime/node_modules/escape-html/LICENSE +24 -0
- package/bridge-runtime/node_modules/escape-html/Readme.md +43 -0
- package/bridge-runtime/node_modules/escape-html/index.js +78 -0
- package/bridge-runtime/node_modules/escape-html/package.json +24 -0
- package/bridge-runtime/node_modules/etag/HISTORY.md +83 -0
- package/bridge-runtime/node_modules/etag/LICENSE +22 -0
- package/bridge-runtime/node_modules/etag/README.md +159 -0
- package/bridge-runtime/node_modules/etag/index.js +131 -0
- package/bridge-runtime/node_modules/etag/package.json +47 -0
- package/bridge-runtime/node_modules/express/History.md +3676 -0
- package/bridge-runtime/node_modules/express/LICENSE +24 -0
- package/bridge-runtime/node_modules/express/Readme.md +260 -0
- package/bridge-runtime/node_modules/express/index.js +11 -0
- package/bridge-runtime/node_modules/express/lib/application.js +661 -0
- package/bridge-runtime/node_modules/express/lib/express.js +116 -0
- package/bridge-runtime/node_modules/express/lib/middleware/init.js +43 -0
- package/bridge-runtime/node_modules/express/lib/middleware/query.js +47 -0
- package/bridge-runtime/node_modules/express/lib/request.js +525 -0
- package/bridge-runtime/node_modules/express/lib/response.js +1179 -0
- package/bridge-runtime/node_modules/express/lib/router/index.js +673 -0
- package/bridge-runtime/node_modules/express/lib/router/layer.js +181 -0
- package/bridge-runtime/node_modules/express/lib/router/route.js +230 -0
- package/bridge-runtime/node_modules/express/lib/utils.js +304 -0
- package/bridge-runtime/node_modules/express/lib/view.js +182 -0
- package/bridge-runtime/node_modules/express/package.json +102 -0
- package/bridge-runtime/node_modules/finalhandler/HISTORY.md +216 -0
- package/bridge-runtime/node_modules/finalhandler/LICENSE +22 -0
- package/bridge-runtime/node_modules/finalhandler/README.md +147 -0
- package/bridge-runtime/node_modules/finalhandler/SECURITY.md +25 -0
- package/bridge-runtime/node_modules/finalhandler/index.js +341 -0
- package/bridge-runtime/node_modules/finalhandler/package.json +47 -0
- package/bridge-runtime/node_modules/forwarded/HISTORY.md +21 -0
- package/bridge-runtime/node_modules/forwarded/LICENSE +22 -0
- package/bridge-runtime/node_modules/forwarded/README.md +57 -0
- package/bridge-runtime/node_modules/forwarded/index.js +90 -0
- package/bridge-runtime/node_modules/forwarded/package.json +45 -0
- package/bridge-runtime/node_modules/fresh/HISTORY.md +70 -0
- package/bridge-runtime/node_modules/fresh/LICENSE +23 -0
- package/bridge-runtime/node_modules/fresh/README.md +119 -0
- package/bridge-runtime/node_modules/fresh/index.js +137 -0
- package/bridge-runtime/node_modules/fresh/package.json +46 -0
- package/bridge-runtime/node_modules/function-bind/.eslintrc +21 -0
- package/bridge-runtime/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/bridge-runtime/node_modules/function-bind/.nycrc +13 -0
- package/bridge-runtime/node_modules/function-bind/CHANGELOG.md +136 -0
- package/bridge-runtime/node_modules/function-bind/LICENSE +20 -0
- package/bridge-runtime/node_modules/function-bind/README.md +46 -0
- package/bridge-runtime/node_modules/function-bind/implementation.js +84 -0
- package/bridge-runtime/node_modules/function-bind/index.js +5 -0
- package/bridge-runtime/node_modules/function-bind/package.json +87 -0
- package/bridge-runtime/node_modules/function-bind/test/.eslintrc +9 -0
- package/bridge-runtime/node_modules/function-bind/test/index.js +252 -0
- package/bridge-runtime/node_modules/get-intrinsic/.eslintrc +42 -0
- package/bridge-runtime/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/get-intrinsic/.nycrc +9 -0
- package/bridge-runtime/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/bridge-runtime/node_modules/get-intrinsic/LICENSE +21 -0
- package/bridge-runtime/node_modules/get-intrinsic/README.md +71 -0
- package/bridge-runtime/node_modules/get-intrinsic/index.js +378 -0
- package/bridge-runtime/node_modules/get-intrinsic/package.json +97 -0
- package/bridge-runtime/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/bridge-runtime/node_modules/get-proto/.eslintrc +10 -0
- package/bridge-runtime/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/get-proto/.nycrc +9 -0
- package/bridge-runtime/node_modules/get-proto/CHANGELOG.md +21 -0
- package/bridge-runtime/node_modules/get-proto/LICENSE +21 -0
- package/bridge-runtime/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/bridge-runtime/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/bridge-runtime/node_modules/get-proto/README.md +50 -0
- package/bridge-runtime/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/bridge-runtime/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/bridge-runtime/node_modules/get-proto/index.d.ts +5 -0
- package/bridge-runtime/node_modules/get-proto/index.js +27 -0
- package/bridge-runtime/node_modules/get-proto/package.json +81 -0
- package/bridge-runtime/node_modules/get-proto/test/index.js +68 -0
- package/bridge-runtime/node_modules/get-proto/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/gopd/.eslintrc +16 -0
- package/bridge-runtime/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/gopd/CHANGELOG.md +45 -0
- package/bridge-runtime/node_modules/gopd/LICENSE +21 -0
- package/bridge-runtime/node_modules/gopd/README.md +40 -0
- package/bridge-runtime/node_modules/gopd/gOPD.d.ts +1 -0
- package/bridge-runtime/node_modules/gopd/gOPD.js +4 -0
- package/bridge-runtime/node_modules/gopd/index.d.ts +5 -0
- package/bridge-runtime/node_modules/gopd/index.js +15 -0
- package/bridge-runtime/node_modules/gopd/package.json +77 -0
- package/bridge-runtime/node_modules/gopd/test/index.js +36 -0
- package/bridge-runtime/node_modules/gopd/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/has-symbols/.eslintrc +11 -0
- package/bridge-runtime/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/has-symbols/.nycrc +9 -0
- package/bridge-runtime/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/bridge-runtime/node_modules/has-symbols/LICENSE +21 -0
- package/bridge-runtime/node_modules/has-symbols/README.md +46 -0
- package/bridge-runtime/node_modules/has-symbols/index.d.ts +3 -0
- package/bridge-runtime/node_modules/has-symbols/index.js +14 -0
- package/bridge-runtime/node_modules/has-symbols/package.json +111 -0
- package/bridge-runtime/node_modules/has-symbols/shams.d.ts +3 -0
- package/bridge-runtime/node_modules/has-symbols/shams.js +45 -0
- package/bridge-runtime/node_modules/has-symbols/test/index.js +22 -0
- package/bridge-runtime/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/bridge-runtime/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/bridge-runtime/node_modules/has-symbols/test/tests.js +58 -0
- package/bridge-runtime/node_modules/has-symbols/tsconfig.json +10 -0
- package/bridge-runtime/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/hasown/.nycrc +13 -0
- package/bridge-runtime/node_modules/hasown/CHANGELOG.md +51 -0
- package/bridge-runtime/node_modules/hasown/LICENSE +21 -0
- package/bridge-runtime/node_modules/hasown/README.md +40 -0
- package/bridge-runtime/node_modules/hasown/eslint.config.mjs +6 -0
- package/bridge-runtime/node_modules/hasown/index.d.ts +4 -0
- package/bridge-runtime/node_modules/hasown/index.js +8 -0
- package/bridge-runtime/node_modules/hasown/package.json +92 -0
- package/bridge-runtime/node_modules/hasown/tsconfig.json +6 -0
- package/bridge-runtime/node_modules/http-errors/HISTORY.md +186 -0
- package/bridge-runtime/node_modules/http-errors/LICENSE +23 -0
- package/bridge-runtime/node_modules/http-errors/README.md +169 -0
- package/bridge-runtime/node_modules/http-errors/index.js +290 -0
- package/bridge-runtime/node_modules/http-errors/package.json +54 -0
- package/bridge-runtime/node_modules/iconv-lite/Changelog.md +162 -0
- package/bridge-runtime/node_modules/iconv-lite/LICENSE +21 -0
- package/bridge-runtime/node_modules/iconv-lite/README.md +156 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/index.js +22 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/bridge-runtime/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/bridge-runtime/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/bridge-runtime/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/bridge-runtime/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/bridge-runtime/node_modules/iconv-lite/lib/index.js +153 -0
- package/bridge-runtime/node_modules/iconv-lite/lib/streams.js +121 -0
- package/bridge-runtime/node_modules/iconv-lite/package.json +46 -0
- package/bridge-runtime/node_modules/inherits/LICENSE +16 -0
- package/bridge-runtime/node_modules/inherits/README.md +42 -0
- package/bridge-runtime/node_modules/inherits/inherits.js +9 -0
- package/bridge-runtime/node_modules/inherits/inherits_browser.js +27 -0
- package/bridge-runtime/node_modules/inherits/package.json +29 -0
- package/bridge-runtime/node_modules/ipaddr.js/LICENSE +19 -0
- package/bridge-runtime/node_modules/ipaddr.js/README.md +233 -0
- package/bridge-runtime/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/bridge-runtime/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/bridge-runtime/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/bridge-runtime/node_modules/ipaddr.js/package.json +35 -0
- package/bridge-runtime/node_modules/math-intrinsics/.eslintrc +16 -0
- package/bridge-runtime/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/bridge-runtime/node_modules/math-intrinsics/LICENSE +21 -0
- package/bridge-runtime/node_modules/math-intrinsics/README.md +50 -0
- package/bridge-runtime/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/abs.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/bridge-runtime/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/bridge-runtime/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/floor.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/isFinite.js +12 -0
- package/bridge-runtime/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/isInteger.js +16 -0
- package/bridge-runtime/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/isNaN.js +6 -0
- package/bridge-runtime/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/bridge-runtime/node_modules/math-intrinsics/max.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/max.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/min.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/min.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/mod.js +9 -0
- package/bridge-runtime/node_modules/math-intrinsics/package.json +86 -0
- package/bridge-runtime/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/pow.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/round.d.ts +1 -0
- package/bridge-runtime/node_modules/math-intrinsics/round.js +4 -0
- package/bridge-runtime/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/bridge-runtime/node_modules/math-intrinsics/sign.js +11 -0
- package/bridge-runtime/node_modules/math-intrinsics/test/index.js +192 -0
- package/bridge-runtime/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/bridge-runtime/node_modules/media-typer/HISTORY.md +22 -0
- package/bridge-runtime/node_modules/media-typer/LICENSE +22 -0
- package/bridge-runtime/node_modules/media-typer/README.md +81 -0
- package/bridge-runtime/node_modules/media-typer/index.js +270 -0
- package/bridge-runtime/node_modules/media-typer/package.json +26 -0
- package/bridge-runtime/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/bridge-runtime/node_modules/merge-descriptors/LICENSE +23 -0
- package/bridge-runtime/node_modules/merge-descriptors/README.md +49 -0
- package/bridge-runtime/node_modules/merge-descriptors/index.js +60 -0
- package/bridge-runtime/node_modules/merge-descriptors/package.json +39 -0
- package/bridge-runtime/node_modules/methods/HISTORY.md +29 -0
- package/bridge-runtime/node_modules/methods/LICENSE +24 -0
- package/bridge-runtime/node_modules/methods/README.md +51 -0
- package/bridge-runtime/node_modules/methods/index.js +69 -0
- package/bridge-runtime/node_modules/methods/package.json +36 -0
- package/bridge-runtime/node_modules/mime/CHANGELOG.md +164 -0
- package/bridge-runtime/node_modules/mime/LICENSE +21 -0
- package/bridge-runtime/node_modules/mime/README.md +90 -0
- package/bridge-runtime/node_modules/mime/cli.js +8 -0
- package/bridge-runtime/node_modules/mime/mime.js +108 -0
- package/bridge-runtime/node_modules/mime/package.json +44 -0
- package/bridge-runtime/node_modules/mime/src/build.js +53 -0
- package/bridge-runtime/node_modules/mime/src/test.js +60 -0
- package/bridge-runtime/node_modules/mime/types.json +1 -0
- package/bridge-runtime/node_modules/mime-db/HISTORY.md +507 -0
- package/bridge-runtime/node_modules/mime-db/LICENSE +23 -0
- package/bridge-runtime/node_modules/mime-db/README.md +100 -0
- package/bridge-runtime/node_modules/mime-db/db.json +8519 -0
- package/bridge-runtime/node_modules/mime-db/index.js +12 -0
- package/bridge-runtime/node_modules/mime-db/package.json +60 -0
- package/bridge-runtime/node_modules/mime-types/HISTORY.md +397 -0
- package/bridge-runtime/node_modules/mime-types/LICENSE +23 -0
- package/bridge-runtime/node_modules/mime-types/README.md +113 -0
- package/bridge-runtime/node_modules/mime-types/index.js +188 -0
- package/bridge-runtime/node_modules/mime-types/package.json +44 -0
- package/bridge-runtime/node_modules/ms/index.js +152 -0
- package/bridge-runtime/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/ms/package.json +37 -0
- package/bridge-runtime/node_modules/ms/readme.md +51 -0
- package/bridge-runtime/node_modules/negotiator/HISTORY.md +108 -0
- package/bridge-runtime/node_modules/negotiator/LICENSE +24 -0
- package/bridge-runtime/node_modules/negotiator/README.md +203 -0
- package/bridge-runtime/node_modules/negotiator/index.js +82 -0
- package/bridge-runtime/node_modules/negotiator/lib/charset.js +169 -0
- package/bridge-runtime/node_modules/negotiator/lib/encoding.js +184 -0
- package/bridge-runtime/node_modules/negotiator/lib/language.js +179 -0
- package/bridge-runtime/node_modules/negotiator/lib/mediaType.js +294 -0
- package/bridge-runtime/node_modules/negotiator/package.json +42 -0
- package/bridge-runtime/node_modules/object-assign/index.js +90 -0
- package/bridge-runtime/node_modules/object-assign/license +21 -0
- package/bridge-runtime/node_modules/object-assign/package.json +42 -0
- package/bridge-runtime/node_modules/object-assign/readme.md +61 -0
- package/bridge-runtime/node_modules/object-inspect/.eslintrc +53 -0
- package/bridge-runtime/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/object-inspect/.nycrc +13 -0
- package/bridge-runtime/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/bridge-runtime/node_modules/object-inspect/LICENSE +21 -0
- package/bridge-runtime/node_modules/object-inspect/example/all.js +23 -0
- package/bridge-runtime/node_modules/object-inspect/example/circular.js +6 -0
- package/bridge-runtime/node_modules/object-inspect/example/fn.js +5 -0
- package/bridge-runtime/node_modules/object-inspect/example/inspect.js +10 -0
- package/bridge-runtime/node_modules/object-inspect/index.js +544 -0
- package/bridge-runtime/node_modules/object-inspect/package-support.json +20 -0
- package/bridge-runtime/node_modules/object-inspect/package.json +105 -0
- package/bridge-runtime/node_modules/object-inspect/readme.markdown +84 -0
- package/bridge-runtime/node_modules/object-inspect/test/bigint.js +58 -0
- package/bridge-runtime/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/bridge-runtime/node_modules/object-inspect/test/circular.js +16 -0
- package/bridge-runtime/node_modules/object-inspect/test/deep.js +12 -0
- package/bridge-runtime/node_modules/object-inspect/test/element.js +53 -0
- package/bridge-runtime/node_modules/object-inspect/test/err.js +48 -0
- package/bridge-runtime/node_modules/object-inspect/test/fakes.js +29 -0
- package/bridge-runtime/node_modules/object-inspect/test/fn.js +76 -0
- package/bridge-runtime/node_modules/object-inspect/test/global.js +17 -0
- package/bridge-runtime/node_modules/object-inspect/test/has.js +15 -0
- package/bridge-runtime/node_modules/object-inspect/test/holes.js +15 -0
- package/bridge-runtime/node_modules/object-inspect/test/indent-option.js +271 -0
- package/bridge-runtime/node_modules/object-inspect/test/inspect.js +139 -0
- package/bridge-runtime/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/bridge-runtime/node_modules/object-inspect/test/number.js +58 -0
- package/bridge-runtime/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/bridge-runtime/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/bridge-runtime/node_modules/object-inspect/test/undef.js +12 -0
- package/bridge-runtime/node_modules/object-inspect/test/values.js +261 -0
- package/bridge-runtime/node_modules/object-inspect/test-core-js.js +26 -0
- package/bridge-runtime/node_modules/object-inspect/util.inspect.js +1 -0
- package/bridge-runtime/node_modules/on-finished/HISTORY.md +98 -0
- package/bridge-runtime/node_modules/on-finished/LICENSE +23 -0
- package/bridge-runtime/node_modules/on-finished/README.md +162 -0
- package/bridge-runtime/node_modules/on-finished/index.js +234 -0
- package/bridge-runtime/node_modules/on-finished/package.json +39 -0
- package/bridge-runtime/node_modules/parseurl/HISTORY.md +58 -0
- package/bridge-runtime/node_modules/parseurl/LICENSE +24 -0
- package/bridge-runtime/node_modules/parseurl/README.md +133 -0
- package/bridge-runtime/node_modules/parseurl/index.js +158 -0
- package/bridge-runtime/node_modules/parseurl/package.json +40 -0
- package/bridge-runtime/node_modules/path-to-regexp/LICENSE +21 -0
- package/bridge-runtime/node_modules/path-to-regexp/Readme.md +35 -0
- package/bridge-runtime/node_modules/path-to-regexp/index.js +158 -0
- package/bridge-runtime/node_modules/path-to-regexp/package.json +30 -0
- package/bridge-runtime/node_modules/proxy-addr/HISTORY.md +161 -0
- package/bridge-runtime/node_modules/proxy-addr/LICENSE +22 -0
- package/bridge-runtime/node_modules/proxy-addr/README.md +139 -0
- package/bridge-runtime/node_modules/proxy-addr/index.js +327 -0
- package/bridge-runtime/node_modules/proxy-addr/package.json +47 -0
- package/bridge-runtime/node_modules/qs/.editorconfig +46 -0
- package/bridge-runtime/node_modules/qs/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/qs/.github/SECURITY.md +11 -0
- package/bridge-runtime/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/bridge-runtime/node_modules/qs/.nycrc +13 -0
- package/bridge-runtime/node_modules/qs/CHANGELOG.md +822 -0
- package/bridge-runtime/node_modules/qs/LICENSE.md +29 -0
- package/bridge-runtime/node_modules/qs/README.md +758 -0
- package/bridge-runtime/node_modules/qs/dist/qs.js +141 -0
- package/bridge-runtime/node_modules/qs/eslint.config.mjs +57 -0
- package/bridge-runtime/node_modules/qs/lib/formats.js +23 -0
- package/bridge-runtime/node_modules/qs/lib/index.js +11 -0
- package/bridge-runtime/node_modules/qs/lib/parse.js +403 -0
- package/bridge-runtime/node_modules/qs/lib/stringify.js +363 -0
- package/bridge-runtime/node_modules/qs/lib/utils.js +342 -0
- package/bridge-runtime/node_modules/qs/package.json +94 -0
- package/bridge-runtime/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/bridge-runtime/node_modules/qs/test/parse.js +1703 -0
- package/bridge-runtime/node_modules/qs/test/stringify.js +1448 -0
- package/bridge-runtime/node_modules/qs/test/utils.js +432 -0
- package/bridge-runtime/node_modules/range-parser/HISTORY.md +56 -0
- package/bridge-runtime/node_modules/range-parser/LICENSE +23 -0
- package/bridge-runtime/node_modules/range-parser/README.md +84 -0
- package/bridge-runtime/node_modules/range-parser/index.js +162 -0
- package/bridge-runtime/node_modules/range-parser/package.json +44 -0
- package/bridge-runtime/node_modules/raw-body/LICENSE +22 -0
- package/bridge-runtime/node_modules/raw-body/README.md +223 -0
- package/bridge-runtime/node_modules/raw-body/index.d.ts +87 -0
- package/bridge-runtime/node_modules/raw-body/index.js +336 -0
- package/bridge-runtime/node_modules/raw-body/package.json +47 -0
- package/bridge-runtime/node_modules/readdirp/LICENSE +21 -0
- package/bridge-runtime/node_modules/readdirp/README.md +120 -0
- package/bridge-runtime/node_modules/readdirp/esm/index.d.ts +108 -0
- package/bridge-runtime/node_modules/readdirp/esm/index.js +257 -0
- package/bridge-runtime/node_modules/readdirp/esm/package.json +1 -0
- package/bridge-runtime/node_modules/readdirp/index.d.ts +108 -0
- package/bridge-runtime/node_modules/readdirp/index.js +263 -0
- package/bridge-runtime/node_modules/readdirp/package.json +70 -0
- package/bridge-runtime/node_modules/safe-buffer/LICENSE +21 -0
- package/bridge-runtime/node_modules/safe-buffer/README.md +584 -0
- package/bridge-runtime/node_modules/safe-buffer/index.d.ts +187 -0
- package/bridge-runtime/node_modules/safe-buffer/index.js +65 -0
- package/bridge-runtime/node_modules/safe-buffer/package.json +51 -0
- package/bridge-runtime/node_modules/safer-buffer/LICENSE +21 -0
- package/bridge-runtime/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/bridge-runtime/node_modules/safer-buffer/Readme.md +156 -0
- package/bridge-runtime/node_modules/safer-buffer/dangerous.js +58 -0
- package/bridge-runtime/node_modules/safer-buffer/package.json +34 -0
- package/bridge-runtime/node_modules/safer-buffer/safer.js +77 -0
- package/bridge-runtime/node_modules/safer-buffer/tests.js +406 -0
- package/bridge-runtime/node_modules/send/HISTORY.md +538 -0
- package/bridge-runtime/node_modules/send/LICENSE +23 -0
- package/bridge-runtime/node_modules/send/README.md +327 -0
- package/bridge-runtime/node_modules/send/SECURITY.md +24 -0
- package/bridge-runtime/node_modules/send/index.js +1142 -0
- package/bridge-runtime/node_modules/send/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/send/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/send/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/send/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/send/package.json +62 -0
- package/bridge-runtime/node_modules/serve-static/HISTORY.md +493 -0
- package/bridge-runtime/node_modules/serve-static/LICENSE +25 -0
- package/bridge-runtime/node_modules/serve-static/README.md +257 -0
- package/bridge-runtime/node_modules/serve-static/index.js +209 -0
- package/bridge-runtime/node_modules/serve-static/package.json +42 -0
- package/bridge-runtime/node_modules/setprototypeof/LICENSE +13 -0
- package/bridge-runtime/node_modules/setprototypeof/README.md +31 -0
- package/bridge-runtime/node_modules/setprototypeof/index.d.ts +2 -0
- package/bridge-runtime/node_modules/setprototypeof/index.js +17 -0
- package/bridge-runtime/node_modules/setprototypeof/package.json +38 -0
- package/bridge-runtime/node_modules/setprototypeof/test/index.js +24 -0
- package/bridge-runtime/node_modules/side-channel/.editorconfig +9 -0
- package/bridge-runtime/node_modules/side-channel/.eslintrc +12 -0
- package/bridge-runtime/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/side-channel/.nycrc +13 -0
- package/bridge-runtime/node_modules/side-channel/CHANGELOG.md +110 -0
- package/bridge-runtime/node_modules/side-channel/LICENSE +21 -0
- package/bridge-runtime/node_modules/side-channel/README.md +61 -0
- package/bridge-runtime/node_modules/side-channel/index.d.ts +14 -0
- package/bridge-runtime/node_modules/side-channel/index.js +43 -0
- package/bridge-runtime/node_modules/side-channel/package.json +85 -0
- package/bridge-runtime/node_modules/side-channel/test/index.js +104 -0
- package/bridge-runtime/node_modules/side-channel/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/side-channel-list/.editorconfig +9 -0
- package/bridge-runtime/node_modules/side-channel-list/.eslintrc +11 -0
- package/bridge-runtime/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/side-channel-list/.nycrc +13 -0
- package/bridge-runtime/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/bridge-runtime/node_modules/side-channel-list/LICENSE +21 -0
- package/bridge-runtime/node_modules/side-channel-list/README.md +62 -0
- package/bridge-runtime/node_modules/side-channel-list/index.d.ts +13 -0
- package/bridge-runtime/node_modules/side-channel-list/index.js +111 -0
- package/bridge-runtime/node_modules/side-channel-list/list.d.ts +14 -0
- package/bridge-runtime/node_modules/side-channel-list/package.json +77 -0
- package/bridge-runtime/node_modules/side-channel-list/test/index.js +154 -0
- package/bridge-runtime/node_modules/side-channel-list/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/side-channel-map/.editorconfig +9 -0
- package/bridge-runtime/node_modules/side-channel-map/.eslintrc +11 -0
- package/bridge-runtime/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/side-channel-map/.nycrc +13 -0
- package/bridge-runtime/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/bridge-runtime/node_modules/side-channel-map/LICENSE +21 -0
- package/bridge-runtime/node_modules/side-channel-map/README.md +62 -0
- package/bridge-runtime/node_modules/side-channel-map/index.d.ts +15 -0
- package/bridge-runtime/node_modules/side-channel-map/index.js +68 -0
- package/bridge-runtime/node_modules/side-channel-map/package.json +80 -0
- package/bridge-runtime/node_modules/side-channel-map/test/index.js +114 -0
- package/bridge-runtime/node_modules/side-channel-map/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/README.md +62 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/index.js +84 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/package.json +87 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/bridge-runtime/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/bridge-runtime/node_modules/socket.io/LICENSE +22 -0
- package/bridge-runtime/node_modules/socket.io/Readme.md +273 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.esm.min.js +7 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.esm.min.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.js +4955 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.min.js +7 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.min.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.msgpack.min.js +7 -0
- package/bridge-runtime/node_modules/socket.io/client-dist/socket.io.msgpack.min.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io/dist/broadcast-operator.d.ts +283 -0
- package/bridge-runtime/node_modules/socket.io/dist/broadcast-operator.js +436 -0
- package/bridge-runtime/node_modules/socket.io/dist/client.d.ts +120 -0
- package/bridge-runtime/node_modules/socket.io/dist/client.js +274 -0
- package/bridge-runtime/node_modules/socket.io/dist/index.d.ts +598 -0
- package/bridge-runtime/node_modules/socket.io/dist/index.js +818 -0
- package/bridge-runtime/node_modules/socket.io/dist/namespace.d.ts +432 -0
- package/bridge-runtime/node_modules/socket.io/dist/namespace.js +584 -0
- package/bridge-runtime/node_modules/socket.io/dist/parent-namespace.d.ts +30 -0
- package/bridge-runtime/node_modules/socket.io/dist/parent-namespace.js +88 -0
- package/bridge-runtime/node_modules/socket.io/dist/socket-types.d.ts +56 -0
- package/bridge-runtime/node_modules/socket.io/dist/socket-types.js +11 -0
- package/bridge-runtime/node_modules/socket.io/dist/socket.d.ts +613 -0
- package/bridge-runtime/node_modules/socket.io/dist/socket.js +977 -0
- package/bridge-runtime/node_modules/socket.io/dist/typed-events.d.ts +203 -0
- package/bridge-runtime/node_modules/socket.io/dist/typed-events.js +81 -0
- package/bridge-runtime/node_modules/socket.io/dist/uws.d.ts +3 -0
- package/bridge-runtime/node_modules/socket.io/dist/uws.js +136 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/README.md +481 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/package.json +64 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/src/browser.js +272 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/src/common.js +292 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/debug/src/node.js +263 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/socket.io/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/socket.io/package.json +88 -0
- package/bridge-runtime/node_modules/socket.io/wrapper.mjs +3 -0
- package/bridge-runtime/node_modules/socket.io-adapter/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io-adapter/Readme.md +23 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/cluster-adapter.d.ts +201 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/cluster-adapter.js +678 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/contrib/yeast.d.ts +23 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/contrib/yeast.js +54 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/in-memory-adapter.d.ts +178 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/in-memory-adapter.js +396 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/index.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-adapter/dist/index.js +10 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/README.md +481 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/package.json +64 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/src/browser.js +272 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/src/common.js +292 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/debug/src/node.js +263 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/README.md +548 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/browser.js +8 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/index.js +22 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/buffer-util.js +131 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/constants.js +19 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/event-target.js +292 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/extension.js +203 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/limiter.js +55 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/receiver.js +706 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/sender.js +607 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/stream.js +161 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/subprotocol.js +62 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/validation.js +152 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/websocket-server.js +554 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/lib/websocket.js +1393 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/package.json +70 -0
- package/bridge-runtime/node_modules/socket.io-adapter/node_modules/ws/wrapper.mjs +21 -0
- package/bridge-runtime/node_modules/socket.io-adapter/package.json +30 -0
- package/bridge-runtime/node_modules/socket.io-client/LICENSE +21 -0
- package/bridge-runtime/node_modules/socket.io-client/README.md +29 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/index.js +76 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/manager.js +416 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/on.js +9 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/socket.js +909 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
- package/bridge-runtime/node_modules/socket.io-client/build/cjs/url.js +69 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/manager.js +367 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/on.js +6 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/package.json +5 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/socket.js +880 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm/url.js +59 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/socket.js +902 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
- package/bridge-runtime/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.js +4955 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
- package/bridge-runtime/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/README.md +481 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/package.json +64 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/src/browser.js +272 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/src/common.js +292 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/debug/src/node.js +263 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/socket.io-client/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/socket.io-client/package.json +101 -0
- package/bridge-runtime/node_modules/socket.io-parser/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io-parser/Readme.md +81 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/binary.js +87 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/index.d.ts +101 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/index.js +367 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/is-binary.js +54 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/cjs/package.json +3 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/binary.js +83 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/index.d.ts +101 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/index.js +356 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm/package.json +3 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/index.d.ts +101 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/index.js +361 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
- package/bridge-runtime/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/LICENSE +20 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/README.md +481 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/package.json +64 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/src/browser.js +272 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/src/common.js +292 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/src/index.js +10 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/debug/src/node.js +263 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/ms/index.js +162 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/ms/license.md +21 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/ms/package.json +38 -0
- package/bridge-runtime/node_modules/socket.io-parser/node_modules/ms/readme.md +59 -0
- package/bridge-runtime/node_modules/socket.io-parser/package.json +44 -0
- package/bridge-runtime/node_modules/statuses/HISTORY.md +87 -0
- package/bridge-runtime/node_modules/statuses/LICENSE +23 -0
- package/bridge-runtime/node_modules/statuses/README.md +139 -0
- package/bridge-runtime/node_modules/statuses/codes.json +65 -0
- package/bridge-runtime/node_modules/statuses/index.js +146 -0
- package/bridge-runtime/node_modules/statuses/package.json +49 -0
- package/bridge-runtime/node_modules/toidentifier/HISTORY.md +9 -0
- package/bridge-runtime/node_modules/toidentifier/LICENSE +21 -0
- package/bridge-runtime/node_modules/toidentifier/README.md +61 -0
- package/bridge-runtime/node_modules/toidentifier/index.js +32 -0
- package/bridge-runtime/node_modules/toidentifier/package.json +38 -0
- package/bridge-runtime/node_modules/type-is/HISTORY.md +259 -0
- package/bridge-runtime/node_modules/type-is/LICENSE +23 -0
- package/bridge-runtime/node_modules/type-is/README.md +170 -0
- package/bridge-runtime/node_modules/type-is/index.js +266 -0
- package/bridge-runtime/node_modules/type-is/package.json +45 -0
- package/bridge-runtime/node_modules/undici-types/LICENSE +21 -0
- package/bridge-runtime/node_modules/undici-types/README.md +6 -0
- package/bridge-runtime/node_modules/undici-types/agent.d.ts +31 -0
- package/bridge-runtime/node_modules/undici-types/api.d.ts +43 -0
- package/bridge-runtime/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/bridge-runtime/node_modules/undici-types/cache.d.ts +36 -0
- package/bridge-runtime/node_modules/undici-types/client.d.ts +108 -0
- package/bridge-runtime/node_modules/undici-types/connector.d.ts +34 -0
- package/bridge-runtime/node_modules/undici-types/content-type.d.ts +21 -0
- package/bridge-runtime/node_modules/undici-types/cookies.d.ts +28 -0
- package/bridge-runtime/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/bridge-runtime/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/bridge-runtime/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/bridge-runtime/node_modules/undici-types/errors.d.ts +149 -0
- package/bridge-runtime/node_modules/undici-types/eventsource.d.ts +61 -0
- package/bridge-runtime/node_modules/undici-types/fetch.d.ts +209 -0
- package/bridge-runtime/node_modules/undici-types/file.d.ts +39 -0
- package/bridge-runtime/node_modules/undici-types/filereader.d.ts +54 -0
- package/bridge-runtime/node_modules/undici-types/formdata.d.ts +108 -0
- package/bridge-runtime/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/bridge-runtime/node_modules/undici-types/global-origin.d.ts +7 -0
- package/bridge-runtime/node_modules/undici-types/handlers.d.ts +15 -0
- package/bridge-runtime/node_modules/undici-types/header.d.ts +4 -0
- package/bridge-runtime/node_modules/undici-types/index.d.ts +71 -0
- package/bridge-runtime/node_modules/undici-types/interceptors.d.ts +17 -0
- package/bridge-runtime/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/bridge-runtime/node_modules/undici-types/mock-client.d.ts +25 -0
- package/bridge-runtime/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/bridge-runtime/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/bridge-runtime/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/bridge-runtime/node_modules/undici-types/package.json +55 -0
- package/bridge-runtime/node_modules/undici-types/patch.d.ts +33 -0
- package/bridge-runtime/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/bridge-runtime/node_modules/undici-types/pool.d.ts +39 -0
- package/bridge-runtime/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/bridge-runtime/node_modules/undici-types/readable.d.ts +65 -0
- package/bridge-runtime/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/bridge-runtime/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/bridge-runtime/node_modules/undici-types/util.d.ts +18 -0
- package/bridge-runtime/node_modules/undici-types/webidl.d.ts +228 -0
- package/bridge-runtime/node_modules/undici-types/websocket.d.ts +150 -0
- package/bridge-runtime/node_modules/unpipe/HISTORY.md +4 -0
- package/bridge-runtime/node_modules/unpipe/LICENSE +22 -0
- package/bridge-runtime/node_modules/unpipe/README.md +43 -0
- package/bridge-runtime/node_modules/unpipe/index.js +69 -0
- package/bridge-runtime/node_modules/unpipe/package.json +27 -0
- package/bridge-runtime/node_modules/utils-merge/LICENSE +20 -0
- package/bridge-runtime/node_modules/utils-merge/README.md +34 -0
- package/bridge-runtime/node_modules/utils-merge/index.js +23 -0
- package/bridge-runtime/node_modules/utils-merge/package.json +40 -0
- package/bridge-runtime/node_modules/vary/HISTORY.md +39 -0
- package/bridge-runtime/node_modules/vary/LICENSE +22 -0
- package/bridge-runtime/node_modules/vary/README.md +101 -0
- package/bridge-runtime/node_modules/vary/index.js +149 -0
- package/bridge-runtime/node_modules/vary/package.json +43 -0
- package/bridge-runtime/node_modules/ws/LICENSE +20 -0
- package/bridge-runtime/node_modules/ws/README.md +548 -0
- package/bridge-runtime/node_modules/ws/browser.js +8 -0
- package/bridge-runtime/node_modules/ws/index.js +22 -0
- package/bridge-runtime/node_modules/ws/lib/buffer-util.js +131 -0
- package/bridge-runtime/node_modules/ws/lib/constants.js +19 -0
- package/bridge-runtime/node_modules/ws/lib/event-target.js +292 -0
- package/bridge-runtime/node_modules/ws/lib/extension.js +203 -0
- package/bridge-runtime/node_modules/ws/lib/limiter.js +55 -0
- package/bridge-runtime/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/bridge-runtime/node_modules/ws/lib/receiver.js +760 -0
- package/bridge-runtime/node_modules/ws/lib/sender.js +607 -0
- package/bridge-runtime/node_modules/ws/lib/stream.js +161 -0
- package/bridge-runtime/node_modules/ws/lib/subprotocol.js +62 -0
- package/bridge-runtime/node_modules/ws/lib/validation.js +152 -0
- package/bridge-runtime/node_modules/ws/lib/websocket-server.js +562 -0
- package/bridge-runtime/node_modules/ws/lib/websocket.js +1407 -0
- package/bridge-runtime/node_modules/ws/package.json +70 -0
- package/bridge-runtime/node_modules/ws/wrapper.mjs +21 -0
- package/bridge-runtime/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
- package/bridge-runtime/node_modules/xmlhttprequest-ssl/README.md +67 -0
- package/bridge-runtime/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
- package/bridge-runtime/node_modules/xmlhttprequest-ssl/package.json +40 -0
- package/bridge-runtime/package-lock.json +1902 -0
- package/bridge-runtime/package.json +26 -0
- package/bridge-runtime/selectors.json +74 -0
- package/config.env.defaults +3 -0
- package/dist/big-code.js +25 -0
- package/dist/bridge-dir.js +82 -0
- package/dist/cli-version.js +13 -0
- package/dist/diagnose.js +224 -0
- package/dist/index.js +71 -65
- package/dist/launch.js +49 -16
- package/dist/pairing-code.js +18 -0
- package/dist/pairing-identity.js +3 -6
- package/dist/postinstall.js +7 -0
- package/dist/print-pairing.js +25 -21
- package/dist/relay-config.js +49 -0
- package/dist/repo-root.js +2 -5
- package/dist/semver.js +21 -0
- package/dist/version-check.js +31 -0
- package/package.json +9 -5
- package/version-policy.json +8 -0
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:worker_threads` module enables the use of threads that execute
|
|
3
|
+
* JavaScript in parallel. To access it:
|
|
4
|
+
*
|
|
5
|
+
* ```js
|
|
6
|
+
* import worker from 'node:worker_threads';
|
|
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";
|
|
61
|
+
import { FileHandle } from "node:fs/promises";
|
|
62
|
+
import { Readable, Writable } from "node:stream";
|
|
63
|
+
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
64
|
+
import { URL } from "node:url";
|
|
65
|
+
import { HeapInfo } from "node:v8";
|
|
66
|
+
import { MessageEvent } from "undici-types";
|
|
67
|
+
const isInternalThread: boolean;
|
|
68
|
+
const isMainThread: boolean;
|
|
69
|
+
const parentPort: null | MessagePort;
|
|
70
|
+
const resourceLimits: ResourceLimits;
|
|
71
|
+
const SHARE_ENV: unique symbol;
|
|
72
|
+
const threadId: number;
|
|
73
|
+
const workerData: any;
|
|
74
|
+
/**
|
|
75
|
+
* Instances of the `worker.MessageChannel` class represent an asynchronous,
|
|
76
|
+
* two-way communications channel.
|
|
77
|
+
* The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
|
78
|
+
*
|
|
79
|
+
* ```js
|
|
80
|
+
* import { MessageChannel } from 'node:worker_threads';
|
|
81
|
+
*
|
|
82
|
+
* const { port1, port2 } = new MessageChannel();
|
|
83
|
+
* port1.on('message', (message) => console.log('received', message));
|
|
84
|
+
* port2.postMessage({ foo: 'bar' });
|
|
85
|
+
* // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
|
|
86
|
+
* ```
|
|
87
|
+
* @since v10.5.0
|
|
88
|
+
*/
|
|
89
|
+
class MessageChannel {
|
|
90
|
+
readonly port1: MessagePort;
|
|
91
|
+
readonly port2: MessagePort;
|
|
92
|
+
}
|
|
93
|
+
interface WorkerPerformance {
|
|
94
|
+
eventLoopUtilization: EventLoopUtilityFunction;
|
|
95
|
+
}
|
|
96
|
+
type Transferable =
|
|
97
|
+
| ArrayBuffer
|
|
98
|
+
| MessagePort
|
|
99
|
+
| AbortSignal
|
|
100
|
+
| FileHandle
|
|
101
|
+
| ReadableStream
|
|
102
|
+
| WritableStream
|
|
103
|
+
| TransformStream;
|
|
104
|
+
/** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
|
|
105
|
+
type TransferListItem = Transferable;
|
|
106
|
+
/**
|
|
107
|
+
* Instances of the `worker.MessagePort` class represent one end of an
|
|
108
|
+
* asynchronous, two-way communications channel. It can be used to transfer
|
|
109
|
+
* structured data, memory regions and other `MessagePort`s between different `Worker`s.
|
|
110
|
+
*
|
|
111
|
+
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
|
112
|
+
* @since v10.5.0
|
|
113
|
+
*/
|
|
114
|
+
class MessagePort implements EventTarget {
|
|
115
|
+
/**
|
|
116
|
+
* Disables further sending of messages on either side of the connection.
|
|
117
|
+
* This method can be called when no further communication will happen over this `MessagePort`.
|
|
118
|
+
*
|
|
119
|
+
* The `'close' event` is emitted on both `MessagePort` instances that
|
|
120
|
+
* are part of the channel.
|
|
121
|
+
* @since v10.5.0
|
|
122
|
+
*/
|
|
123
|
+
close(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
|
|
126
|
+
* the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
|
|
127
|
+
*
|
|
128
|
+
* In particular, the significant differences to `JSON` are:
|
|
129
|
+
*
|
|
130
|
+
* * `value` may contain circular references.
|
|
131
|
+
* * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
|
|
132
|
+
* * `value` may contain typed arrays, both using `ArrayBuffer`s
|
|
133
|
+
* and `SharedArrayBuffer`s.
|
|
134
|
+
* * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
|
|
135
|
+
* * `value` may not contain native (C++-backed) objects other than:
|
|
136
|
+
*
|
|
137
|
+
* ```js
|
|
138
|
+
* import { MessageChannel } from 'node:worker_threads';
|
|
139
|
+
* const { port1, port2 } = new MessageChannel();
|
|
140
|
+
*
|
|
141
|
+
* port1.on('message', (message) => console.log(message));
|
|
142
|
+
*
|
|
143
|
+
* const circularData = {};
|
|
144
|
+
* circularData.foo = circularData;
|
|
145
|
+
* // Prints: { foo: [Circular] }
|
|
146
|
+
* port2.postMessage(circularData);
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort`, and `FileHandle` objects.
|
|
150
|
+
* After transferring, they are not usable on the sending side of the channel
|
|
151
|
+
* anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
|
|
152
|
+
* not supported.
|
|
153
|
+
*
|
|
154
|
+
* If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
|
|
155
|
+
* from either thread. They cannot be listed in `transferList`.
|
|
156
|
+
*
|
|
157
|
+
* `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
|
|
158
|
+
*
|
|
159
|
+
* ```js
|
|
160
|
+
* import { MessageChannel } from 'node:worker_threads';
|
|
161
|
+
* const { port1, port2 } = new MessageChannel();
|
|
162
|
+
*
|
|
163
|
+
* port1.on('message', (message) => console.log(message));
|
|
164
|
+
*
|
|
165
|
+
* const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
|
|
166
|
+
* // This posts a copy of `uint8Array`:
|
|
167
|
+
* port2.postMessage(uint8Array);
|
|
168
|
+
* // This does not copy data, but renders `uint8Array` unusable:
|
|
169
|
+
* port2.postMessage(uint8Array, [ uint8Array.buffer ]);
|
|
170
|
+
*
|
|
171
|
+
* // The memory for the `sharedUint8Array` is accessible from both the
|
|
172
|
+
* // original and the copy received by `.on('message')`:
|
|
173
|
+
* const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
|
|
174
|
+
* port2.postMessage(sharedUint8Array);
|
|
175
|
+
*
|
|
176
|
+
* // This transfers a freshly created message port to the receiver.
|
|
177
|
+
* // This can be used, for example, to create communication channels between
|
|
178
|
+
* // multiple `Worker` threads that are children of the same parent thread.
|
|
179
|
+
* const otherChannel = new MessageChannel();
|
|
180
|
+
* port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* The message object is cloned immediately, and can be modified after
|
|
184
|
+
* posting without having side effects.
|
|
185
|
+
*
|
|
186
|
+
* For more information on the serialization and deserialization mechanisms
|
|
187
|
+
* behind this API, see the `serialization API of the node:v8 module`.
|
|
188
|
+
* @since v10.5.0
|
|
189
|
+
*/
|
|
190
|
+
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
191
|
+
/**
|
|
192
|
+
* If true, the `MessagePort` object will keep the Node.js event loop active.
|
|
193
|
+
* @since v18.1.0, v16.17.0
|
|
194
|
+
*/
|
|
195
|
+
hasRef(): boolean;
|
|
196
|
+
/**
|
|
197
|
+
* 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
|
|
198
|
+
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
|
199
|
+
*
|
|
200
|
+
* If listeners are attached or removed using `.on('message')`, the port
|
|
201
|
+
* is `ref()`ed and `unref()`ed automatically depending on whether
|
|
202
|
+
* listeners for the event exist.
|
|
203
|
+
* @since v10.5.0
|
|
204
|
+
*/
|
|
205
|
+
ref(): void;
|
|
206
|
+
/**
|
|
207
|
+
* Calling `unref()` on a port allows the thread to exit if this is the only
|
|
208
|
+
* active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
|
|
209
|
+
*
|
|
210
|
+
* If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
|
|
211
|
+
* listeners for the event exist.
|
|
212
|
+
* @since v10.5.0
|
|
213
|
+
*/
|
|
214
|
+
unref(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Starts receiving messages on this `MessagePort`. When using this port
|
|
217
|
+
* as an event emitter, this is called automatically once `'message'` listeners are attached.
|
|
218
|
+
*
|
|
219
|
+
* This method exists for parity with the Web `MessagePort` API. In Node.js,
|
|
220
|
+
* it is only useful for ignoring messages when no event listener is present.
|
|
221
|
+
* Node.js also diverges in its handling of `.onmessage`. Setting it
|
|
222
|
+
* automatically calls `.start()`, but unsetting it lets messages queue up
|
|
223
|
+
* until a new handler is set or the port is discarded.
|
|
224
|
+
* @since v10.5.0
|
|
225
|
+
*/
|
|
226
|
+
start(): void;
|
|
227
|
+
addListener(event: "close", listener: (ev: Event) => void): this;
|
|
228
|
+
addListener(event: "message", listener: (value: any) => void): this;
|
|
229
|
+
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
230
|
+
addListener(event: string, listener: (arg: any) => void): this;
|
|
231
|
+
emit(event: "close", ev: Event): boolean;
|
|
232
|
+
emit(event: "message", value: any): boolean;
|
|
233
|
+
emit(event: "messageerror", error: Error): boolean;
|
|
234
|
+
emit(event: string, arg: any): boolean;
|
|
235
|
+
off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
236
|
+
off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
237
|
+
off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
238
|
+
off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
239
|
+
on(event: "close", listener: (ev: Event) => void): this;
|
|
240
|
+
on(event: "message", listener: (value: any) => void): this;
|
|
241
|
+
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
242
|
+
on(event: string, listener: (arg: any) => void): this;
|
|
243
|
+
once(event: "close", listener: (ev: Event) => void): this;
|
|
244
|
+
once(event: "message", listener: (value: any) => void): this;
|
|
245
|
+
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
246
|
+
once(event: string, listener: (arg: any) => void): this;
|
|
247
|
+
removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
248
|
+
removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
249
|
+
removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
250
|
+
removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
251
|
+
}
|
|
252
|
+
interface MessagePort extends NodeEventTarget {}
|
|
253
|
+
interface WorkerOptions {
|
|
254
|
+
/**
|
|
255
|
+
* List of arguments which would be stringified and appended to
|
|
256
|
+
* `process.argv` in the worker. This is mostly similar to the `workerData`
|
|
257
|
+
* but the values will be available on the global `process.argv` as if they
|
|
258
|
+
* were passed as CLI options to the script.
|
|
259
|
+
*/
|
|
260
|
+
argv?: any[] | undefined;
|
|
261
|
+
env?: NodeJS.Dict<string> | typeof SHARE_ENV | undefined;
|
|
262
|
+
eval?: boolean | undefined;
|
|
263
|
+
workerData?: any;
|
|
264
|
+
stdin?: boolean | undefined;
|
|
265
|
+
stdout?: boolean | undefined;
|
|
266
|
+
stderr?: boolean | undefined;
|
|
267
|
+
execArgv?: string[] | undefined;
|
|
268
|
+
resourceLimits?: ResourceLimits | undefined;
|
|
269
|
+
/**
|
|
270
|
+
* Additional data to send in the first worker message.
|
|
271
|
+
*/
|
|
272
|
+
transferList?: Transferable[] | undefined;
|
|
273
|
+
/**
|
|
274
|
+
* @default true
|
|
275
|
+
*/
|
|
276
|
+
trackUnmanagedFds?: boolean | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* An optional `name` to be appended to the worker title
|
|
279
|
+
* for debugging/identification purposes, making the final title as
|
|
280
|
+
* `[worker ${id}] ${name}`.
|
|
281
|
+
*/
|
|
282
|
+
name?: string | undefined;
|
|
283
|
+
}
|
|
284
|
+
interface ResourceLimits {
|
|
285
|
+
/**
|
|
286
|
+
* The maximum size of a heap space for recently created objects.
|
|
287
|
+
*/
|
|
288
|
+
maxYoungGenerationSizeMb?: number | undefined;
|
|
289
|
+
/**
|
|
290
|
+
* The maximum size of the main heap in MB.
|
|
291
|
+
*/
|
|
292
|
+
maxOldGenerationSizeMb?: number | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* The size of a pre-allocated memory range used for generated code.
|
|
295
|
+
*/
|
|
296
|
+
codeRangeSizeMb?: number | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* The default maximum stack size for the thread. Small values may lead to unusable Worker instances.
|
|
299
|
+
* @default 4
|
|
300
|
+
*/
|
|
301
|
+
stackSizeMb?: number | undefined;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* The `Worker` class represents an independent JavaScript execution thread.
|
|
305
|
+
* Most Node.js APIs are available inside of it.
|
|
306
|
+
*
|
|
307
|
+
* Notable differences inside a Worker environment are:
|
|
308
|
+
*
|
|
309
|
+
* * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
|
|
310
|
+
* * The `import { isMainThread } from 'node:worker_threads'` variable is set to `false`.
|
|
311
|
+
* * The `import { parentPort } from 'node:worker_threads'` message port is available.
|
|
312
|
+
* * `process.exit()` does not stop the whole program, just the single thread,
|
|
313
|
+
* and `process.abort()` is not available.
|
|
314
|
+
* * `process.chdir()` and `process` methods that set group or user ids
|
|
315
|
+
* are not available.
|
|
316
|
+
* * `process.env` is a copy of the parent thread's environment variables,
|
|
317
|
+
* unless otherwise specified. Changes to one copy are not visible in other
|
|
318
|
+
* threads, and are not visible to native add-ons (unless `worker.SHARE_ENV` is passed as the `env` option to the `Worker` constructor). On Windows, unlike the main thread, a copy of the
|
|
319
|
+
* environment variables operates in a case-sensitive manner.
|
|
320
|
+
* * `process.title` cannot be modified.
|
|
321
|
+
* * Signals are not delivered through `process.on('...')`.
|
|
322
|
+
* * Execution may stop at any point as a result of `worker.terminate()` being invoked.
|
|
323
|
+
* * IPC channels from parent processes are not accessible.
|
|
324
|
+
* * The `trace_events` module is not supported.
|
|
325
|
+
* * Native add-ons can only be loaded from multiple threads if they fulfill `certain conditions`.
|
|
326
|
+
*
|
|
327
|
+
* Creating `Worker` instances inside of other `Worker`s is possible.
|
|
328
|
+
*
|
|
329
|
+
* Like [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and the `node:cluster module`, two-way communication
|
|
330
|
+
* can be achieved through inter-thread message passing. Internally, a `Worker` has
|
|
331
|
+
* a built-in pair of `MessagePort` s that are already associated with each
|
|
332
|
+
* other when the `Worker` is created. While the `MessagePort` object on the parent
|
|
333
|
+
* side is not directly exposed, its functionalities are exposed through `worker.postMessage()` and the `worker.on('message')` event
|
|
334
|
+
* on the `Worker` object for the parent thread.
|
|
335
|
+
*
|
|
336
|
+
* To create custom messaging channels (which is encouraged over using the default
|
|
337
|
+
* global channel because it facilitates separation of concerns), users can create
|
|
338
|
+
* a `MessageChannel` object on either thread and pass one of the`MessagePort`s on that `MessageChannel` to the other thread through a
|
|
339
|
+
* pre-existing channel, such as the global one.
|
|
340
|
+
*
|
|
341
|
+
* See `port.postMessage()` for more information on how messages are passed,
|
|
342
|
+
* and what kind of JavaScript values can be successfully transported through
|
|
343
|
+
* the thread barrier.
|
|
344
|
+
*
|
|
345
|
+
* ```js
|
|
346
|
+
* import assert from 'node:assert';
|
|
347
|
+
* import {
|
|
348
|
+
* Worker, MessageChannel, MessagePort, isMainThread, parentPort,
|
|
349
|
+
* } from 'node:worker_threads';
|
|
350
|
+
* if (isMainThread) {
|
|
351
|
+
* const worker = new Worker(__filename);
|
|
352
|
+
* const subChannel = new MessageChannel();
|
|
353
|
+
* worker.postMessage({ hereIsYourPort: subChannel.port1 }, [subChannel.port1]);
|
|
354
|
+
* subChannel.port2.on('message', (value) => {
|
|
355
|
+
* console.log('received:', value);
|
|
356
|
+
* });
|
|
357
|
+
* } else {
|
|
358
|
+
* parentPort.once('message', (value) => {
|
|
359
|
+
* assert(value.hereIsYourPort instanceof MessagePort);
|
|
360
|
+
* value.hereIsYourPort.postMessage('the worker is sending this');
|
|
361
|
+
* value.hereIsYourPort.close();
|
|
362
|
+
* });
|
|
363
|
+
* }
|
|
364
|
+
* ```
|
|
365
|
+
* @since v10.5.0
|
|
366
|
+
*/
|
|
367
|
+
class Worker extends EventEmitter {
|
|
368
|
+
/**
|
|
369
|
+
* If `stdin: true` was passed to the `Worker` constructor, this is a
|
|
370
|
+
* writable stream. The data written to this stream will be made available in
|
|
371
|
+
* the worker thread as `process.stdin`.
|
|
372
|
+
* @since v10.5.0
|
|
373
|
+
*/
|
|
374
|
+
readonly stdin: Writable | null;
|
|
375
|
+
/**
|
|
376
|
+
* This is a readable stream which contains data written to `process.stdout` inside the worker thread. If `stdout: true` was not passed to the `Worker` constructor, then data is piped to the
|
|
377
|
+
* parent thread's `process.stdout` stream.
|
|
378
|
+
* @since v10.5.0
|
|
379
|
+
*/
|
|
380
|
+
readonly stdout: Readable;
|
|
381
|
+
/**
|
|
382
|
+
* This is a readable stream which contains data written to `process.stderr` inside the worker thread. If `stderr: true` was not passed to the `Worker` constructor, then data is piped to the
|
|
383
|
+
* parent thread's `process.stderr` stream.
|
|
384
|
+
* @since v10.5.0
|
|
385
|
+
*/
|
|
386
|
+
readonly stderr: Readable;
|
|
387
|
+
/**
|
|
388
|
+
* An integer identifier for the referenced thread. Inside the worker thread,
|
|
389
|
+
* it is available as `import { threadId } from 'node:worker_threads'`.
|
|
390
|
+
* This value is unique for each `Worker` instance inside a single process.
|
|
391
|
+
* @since v10.5.0
|
|
392
|
+
*/
|
|
393
|
+
readonly threadId: number;
|
|
394
|
+
/**
|
|
395
|
+
* Provides the set of JS engine resource constraints for this Worker thread.
|
|
396
|
+
* If the `resourceLimits` option was passed to the `Worker` constructor,
|
|
397
|
+
* this matches its values.
|
|
398
|
+
*
|
|
399
|
+
* If the worker has stopped, the return value is an empty object.
|
|
400
|
+
* @since v13.2.0, v12.16.0
|
|
401
|
+
*/
|
|
402
|
+
readonly resourceLimits?: ResourceLimits | undefined;
|
|
403
|
+
/**
|
|
404
|
+
* An object that can be used to query performance information from a worker
|
|
405
|
+
* instance. Similar to `perf_hooks.performance`.
|
|
406
|
+
* @since v15.1.0, v14.17.0, v12.22.0
|
|
407
|
+
*/
|
|
408
|
+
readonly performance: WorkerPerformance;
|
|
409
|
+
/**
|
|
410
|
+
* @param filename The path to the Worker’s main script or module.
|
|
411
|
+
* Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../,
|
|
412
|
+
* or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
|
|
413
|
+
*/
|
|
414
|
+
constructor(filename: string | URL, options?: WorkerOptions);
|
|
415
|
+
/**
|
|
416
|
+
* Send a message to the worker that is received via `require('node:worker_threads').parentPort.on('message')`.
|
|
417
|
+
* See `port.postMessage()` for more details.
|
|
418
|
+
* @since v10.5.0
|
|
419
|
+
*/
|
|
420
|
+
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
421
|
+
/**
|
|
422
|
+
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
|
|
423
|
+
* behavior). If the worker is `ref()`ed, calling `ref()` again has
|
|
424
|
+
* no effect.
|
|
425
|
+
* @since v10.5.0
|
|
426
|
+
*/
|
|
427
|
+
ref(): void;
|
|
428
|
+
/**
|
|
429
|
+
* Calling `unref()` on a worker allows the thread to exit if this is the only
|
|
430
|
+
* active handle in the event system. If the worker is already `unref()`ed calling `unref()` again has no effect.
|
|
431
|
+
* @since v10.5.0
|
|
432
|
+
*/
|
|
433
|
+
unref(): void;
|
|
434
|
+
/**
|
|
435
|
+
* Stop all JavaScript execution in the worker thread as soon as possible.
|
|
436
|
+
* Returns a Promise for the exit code that is fulfilled when the `'exit' event` is emitted.
|
|
437
|
+
* @since v10.5.0
|
|
438
|
+
*/
|
|
439
|
+
terminate(): Promise<number>;
|
|
440
|
+
/**
|
|
441
|
+
* This method returns a `Promise` that will resolve to an object identical to `process.threadCpuUsage()`,
|
|
442
|
+
* or reject with an `ERR_WORKER_NOT_RUNNING` error if the worker is no longer running.
|
|
443
|
+
* This methods allows the statistics to be observed from outside the actual thread.
|
|
444
|
+
* @since v22.19.0
|
|
445
|
+
*/
|
|
446
|
+
cpuUsage(prev?: NodeJS.CpuUsage): Promise<NodeJS.CpuUsage>;
|
|
447
|
+
/**
|
|
448
|
+
* Returns a readable stream for a V8 snapshot of the current state of the Worker.
|
|
449
|
+
* See `v8.getHeapSnapshot()` for more details.
|
|
450
|
+
*
|
|
451
|
+
* If the Worker thread is no longer running, which may occur before the `'exit' event` is emitted, the returned `Promise` is rejected
|
|
452
|
+
* immediately with an `ERR_WORKER_NOT_RUNNING` error.
|
|
453
|
+
* @since v13.9.0, v12.17.0
|
|
454
|
+
* @return A promise for a Readable Stream containing a V8 heap snapshot
|
|
455
|
+
*/
|
|
456
|
+
getHeapSnapshot(): Promise<Readable>;
|
|
457
|
+
/**
|
|
458
|
+
* This method returns a `Promise` that will resolve to an object identical to `v8.getHeapStatistics()`,
|
|
459
|
+
* or reject with an `ERR_WORKER_NOT_RUNNING` error if the worker is no longer running.
|
|
460
|
+
* This methods allows the statistics to be observed from outside the actual thread.
|
|
461
|
+
* @since v22.16.0
|
|
462
|
+
*/
|
|
463
|
+
getHeapStatistics(): Promise<HeapInfo>;
|
|
464
|
+
/**
|
|
465
|
+
* Calls `worker.terminate()` when the dispose scope is exited.
|
|
466
|
+
*
|
|
467
|
+
* ```js
|
|
468
|
+
* async function example() {
|
|
469
|
+
* await using worker = new Worker('for (;;) {}', { eval: true });
|
|
470
|
+
* // Worker is automatically terminate when the scope is exited.
|
|
471
|
+
* }
|
|
472
|
+
* ```
|
|
473
|
+
* @since v22.18.0
|
|
474
|
+
*/
|
|
475
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
476
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
477
|
+
addListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
478
|
+
addListener(event: "message", listener: (value: any) => void): this;
|
|
479
|
+
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
480
|
+
addListener(event: "online", listener: () => void): this;
|
|
481
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
482
|
+
emit(event: "error", err: Error): boolean;
|
|
483
|
+
emit(event: "exit", exitCode: number): boolean;
|
|
484
|
+
emit(event: "message", value: any): boolean;
|
|
485
|
+
emit(event: "messageerror", error: Error): boolean;
|
|
486
|
+
emit(event: "online"): boolean;
|
|
487
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
488
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
489
|
+
on(event: "exit", listener: (exitCode: number) => void): this;
|
|
490
|
+
on(event: "message", listener: (value: any) => void): this;
|
|
491
|
+
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
492
|
+
on(event: "online", listener: () => void): this;
|
|
493
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
494
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
495
|
+
once(event: "exit", listener: (exitCode: number) => void): this;
|
|
496
|
+
once(event: "message", listener: (value: any) => void): this;
|
|
497
|
+
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
498
|
+
once(event: "online", listener: () => void): this;
|
|
499
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
500
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
501
|
+
prependListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
502
|
+
prependListener(event: "message", listener: (value: any) => void): this;
|
|
503
|
+
prependListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
504
|
+
prependListener(event: "online", listener: () => void): this;
|
|
505
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
506
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
507
|
+
prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
508
|
+
prependOnceListener(event: "message", listener: (value: any) => void): this;
|
|
509
|
+
prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
510
|
+
prependOnceListener(event: "online", listener: () => void): this;
|
|
511
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
512
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
513
|
+
removeListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
514
|
+
removeListener(event: "message", listener: (value: any) => void): this;
|
|
515
|
+
removeListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
516
|
+
removeListener(event: "online", listener: () => void): this;
|
|
517
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
518
|
+
off(event: "error", listener: (err: Error) => void): this;
|
|
519
|
+
off(event: "exit", listener: (exitCode: number) => void): this;
|
|
520
|
+
off(event: "message", listener: (value: any) => void): this;
|
|
521
|
+
off(event: "messageerror", listener: (error: Error) => void): this;
|
|
522
|
+
off(event: "online", listener: () => void): this;
|
|
523
|
+
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
524
|
+
}
|
|
525
|
+
interface BroadcastChannel extends NodeJS.RefCounted {}
|
|
526
|
+
/**
|
|
527
|
+
* Instances of `BroadcastChannel` allow asynchronous one-to-many communication
|
|
528
|
+
* with all other `BroadcastChannel` instances bound to the same channel name.
|
|
529
|
+
*
|
|
530
|
+
* ```js
|
|
531
|
+
* 'use strict';
|
|
532
|
+
*
|
|
533
|
+
* import {
|
|
534
|
+
* isMainThread,
|
|
535
|
+
* BroadcastChannel,
|
|
536
|
+
* Worker,
|
|
537
|
+
* } from 'node:worker_threads';
|
|
538
|
+
*
|
|
539
|
+
* const bc = new BroadcastChannel('hello');
|
|
540
|
+
*
|
|
541
|
+
* if (isMainThread) {
|
|
542
|
+
* let c = 0;
|
|
543
|
+
* bc.onmessage = (event) => {
|
|
544
|
+
* console.log(event.data);
|
|
545
|
+
* if (++c === 10) bc.close();
|
|
546
|
+
* };
|
|
547
|
+
* for (let n = 0; n < 10; n++)
|
|
548
|
+
* new Worker(__filename);
|
|
549
|
+
* } else {
|
|
550
|
+
* bc.postMessage('hello from every worker');
|
|
551
|
+
* bc.close();
|
|
552
|
+
* }
|
|
553
|
+
* ```
|
|
554
|
+
* @since v15.4.0
|
|
555
|
+
*/
|
|
556
|
+
class BroadcastChannel extends EventTarget {
|
|
557
|
+
readonly name: string;
|
|
558
|
+
/**
|
|
559
|
+
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
|
560
|
+
* @since v15.4.0
|
|
561
|
+
*/
|
|
562
|
+
onmessage: (message: MessageEvent) => void;
|
|
563
|
+
/**
|
|
564
|
+
* Invoked with a received message cannot be deserialized.
|
|
565
|
+
* @since v15.4.0
|
|
566
|
+
*/
|
|
567
|
+
onmessageerror: (message: MessageEvent) => void;
|
|
568
|
+
constructor(name: string);
|
|
569
|
+
/**
|
|
570
|
+
* Closes the `BroadcastChannel` connection.
|
|
571
|
+
* @since v15.4.0
|
|
572
|
+
*/
|
|
573
|
+
close(): void;
|
|
574
|
+
/**
|
|
575
|
+
* @since v15.4.0
|
|
576
|
+
* @param message Any cloneable JavaScript value.
|
|
577
|
+
*/
|
|
578
|
+
postMessage(message: unknown): void;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Mark an object as not transferable. If `object` occurs in the transfer list of
|
|
582
|
+
* a `port.postMessage()` call, it is ignored.
|
|
583
|
+
*
|
|
584
|
+
* In particular, this makes sense for objects that can be cloned, rather than
|
|
585
|
+
* transferred, and which are used by other objects on the sending side.
|
|
586
|
+
* For example, Node.js marks the `ArrayBuffer`s it uses for its `Buffer pool` with this.
|
|
587
|
+
*
|
|
588
|
+
* This operation cannot be undone.
|
|
589
|
+
*
|
|
590
|
+
* ```js
|
|
591
|
+
* import { MessageChannel, markAsUntransferable } from 'node:worker_threads';
|
|
592
|
+
*
|
|
593
|
+
* const pooledBuffer = new ArrayBuffer(8);
|
|
594
|
+
* const typedArray1 = new Uint8Array(pooledBuffer);
|
|
595
|
+
* const typedArray2 = new Float64Array(pooledBuffer);
|
|
596
|
+
*
|
|
597
|
+
* markAsUntransferable(pooledBuffer);
|
|
598
|
+
*
|
|
599
|
+
* const { port1 } = new MessageChannel();
|
|
600
|
+
* port1.postMessage(typedArray1, [ typedArray1.buffer ]);
|
|
601
|
+
*
|
|
602
|
+
* // The following line prints the contents of typedArray1 -- it still owns
|
|
603
|
+
* // its memory and has been cloned, not transferred. Without
|
|
604
|
+
* // `markAsUntransferable()`, this would print an empty Uint8Array.
|
|
605
|
+
* // typedArray2 is intact as well.
|
|
606
|
+
* console.log(typedArray1);
|
|
607
|
+
* console.log(typedArray2);
|
|
608
|
+
* ```
|
|
609
|
+
*
|
|
610
|
+
* There is no equivalent to this API in browsers.
|
|
611
|
+
* @since v14.5.0, v12.19.0
|
|
612
|
+
*/
|
|
613
|
+
function markAsUntransferable(object: object): void;
|
|
614
|
+
/**
|
|
615
|
+
* Check if an object is marked as not transferable with
|
|
616
|
+
* {@link markAsUntransferable}.
|
|
617
|
+
* @since v21.0.0
|
|
618
|
+
*/
|
|
619
|
+
function isMarkedAsUntransferable(object: object): boolean;
|
|
620
|
+
/**
|
|
621
|
+
* Mark an object as not cloneable. If `object` is used as `message` in
|
|
622
|
+
* a `port.postMessage()` call, an error is thrown. This is a no-op if `object` is a
|
|
623
|
+
* primitive value.
|
|
624
|
+
*
|
|
625
|
+
* This has no effect on `ArrayBuffer`, or any `Buffer` like objects.
|
|
626
|
+
*
|
|
627
|
+
* This operation cannot be undone.
|
|
628
|
+
*
|
|
629
|
+
* ```js
|
|
630
|
+
* const { markAsUncloneable } = require('node:worker_threads');
|
|
631
|
+
*
|
|
632
|
+
* const anyObject = { foo: 'bar' };
|
|
633
|
+
* markAsUncloneable(anyObject);
|
|
634
|
+
* const { port1 } = new MessageChannel();
|
|
635
|
+
* try {
|
|
636
|
+
* // This will throw an error, because anyObject is not cloneable.
|
|
637
|
+
* port1.postMessage(anyObject)
|
|
638
|
+
* } catch (error) {
|
|
639
|
+
* // error.name === 'DataCloneError'
|
|
640
|
+
* }
|
|
641
|
+
* ```
|
|
642
|
+
*
|
|
643
|
+
* There is no equivalent to this API in browsers.
|
|
644
|
+
* @since v22.10.0
|
|
645
|
+
*/
|
|
646
|
+
function markAsUncloneable(object: object): void;
|
|
647
|
+
/**
|
|
648
|
+
* Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
|
|
649
|
+
* takes its place.
|
|
650
|
+
*
|
|
651
|
+
* The returned `MessagePort` is an object in the target context and
|
|
652
|
+
* inherits from its global `Object` class. Objects passed to the [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
|
|
653
|
+
* target context
|
|
654
|
+
* and inherit from its global `Object` class.
|
|
655
|
+
*
|
|
656
|
+
* However, the created `MessagePort` no longer inherits from [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
|
|
657
|
+
* [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
|
|
658
|
+
* events using it.
|
|
659
|
+
* @since v11.13.0
|
|
660
|
+
* @param port The message port to transfer.
|
|
661
|
+
* @param contextifiedSandbox A `contextified` object as returned by the `vm.createContext()` method.
|
|
662
|
+
*/
|
|
663
|
+
function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
|
|
664
|
+
/**
|
|
665
|
+
* Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property
|
|
666
|
+
* that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
|
|
667
|
+
*
|
|
668
|
+
* ```js
|
|
669
|
+
* import { MessageChannel, receiveMessageOnPort } from 'node:worker_threads';
|
|
670
|
+
* const { port1, port2 } = new MessageChannel();
|
|
671
|
+
* port1.postMessage({ hello: 'world' });
|
|
672
|
+
*
|
|
673
|
+
* console.log(receiveMessageOnPort(port2));
|
|
674
|
+
* // Prints: { message: { hello: 'world' } }
|
|
675
|
+
* console.log(receiveMessageOnPort(port2));
|
|
676
|
+
* // Prints: undefined
|
|
677
|
+
* ```
|
|
678
|
+
*
|
|
679
|
+
* When this function is used, no `'message'` event is emitted and the `onmessage` listener is not invoked.
|
|
680
|
+
* @since v12.3.0
|
|
681
|
+
*/
|
|
682
|
+
function receiveMessageOnPort(port: MessagePort):
|
|
683
|
+
| {
|
|
684
|
+
message: any;
|
|
685
|
+
}
|
|
686
|
+
| undefined;
|
|
687
|
+
type Serializable = string | object | number | boolean | bigint;
|
|
688
|
+
/**
|
|
689
|
+
* Within a worker thread, `worker.getEnvironmentData()` returns a clone
|
|
690
|
+
* of data passed to the spawning thread's `worker.setEnvironmentData()`.
|
|
691
|
+
* Every new `Worker` receives its own copy of the environment data
|
|
692
|
+
* automatically.
|
|
693
|
+
*
|
|
694
|
+
* ```js
|
|
695
|
+
* import {
|
|
696
|
+
* Worker,
|
|
697
|
+
* isMainThread,
|
|
698
|
+
* setEnvironmentData,
|
|
699
|
+
* getEnvironmentData,
|
|
700
|
+
* } from 'node:worker_threads';
|
|
701
|
+
*
|
|
702
|
+
* if (isMainThread) {
|
|
703
|
+
* setEnvironmentData('Hello', 'World!');
|
|
704
|
+
* const worker = new Worker(__filename);
|
|
705
|
+
* } else {
|
|
706
|
+
* console.log(getEnvironmentData('Hello')); // Prints 'World!'.
|
|
707
|
+
* }
|
|
708
|
+
* ```
|
|
709
|
+
* @since v15.12.0, v14.18.0
|
|
710
|
+
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
711
|
+
*/
|
|
712
|
+
function getEnvironmentData(key: Serializable): Serializable;
|
|
713
|
+
/**
|
|
714
|
+
* The `worker.setEnvironmentData()` API sets the content of `worker.getEnvironmentData()` in the current thread and all new `Worker` instances spawned from the current context.
|
|
715
|
+
* @since v15.12.0, v14.18.0
|
|
716
|
+
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
717
|
+
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
718
|
+
* for the `key` will be deleted.
|
|
719
|
+
*/
|
|
720
|
+
function setEnvironmentData(key: Serializable, value?: Serializable): void;
|
|
721
|
+
/**
|
|
722
|
+
* Sends a value to another worker, identified by its thread ID.
|
|
723
|
+
* @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
|
|
724
|
+
* If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
|
|
725
|
+
* @param value The value to send.
|
|
726
|
+
* @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
|
|
727
|
+
* or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
|
|
728
|
+
* @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
|
|
729
|
+
* If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
|
|
730
|
+
* @since v22.5.0
|
|
731
|
+
*/
|
|
732
|
+
function postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
|
|
733
|
+
function postMessageToThread(
|
|
734
|
+
threadId: number,
|
|
735
|
+
value: any,
|
|
736
|
+
transferList: readonly Transferable[],
|
|
737
|
+
timeout?: number,
|
|
738
|
+
): Promise<void>;
|
|
739
|
+
|
|
740
|
+
import {
|
|
741
|
+
BroadcastChannel as _BroadcastChannel,
|
|
742
|
+
MessageChannel as _MessageChannel,
|
|
743
|
+
MessagePort as _MessagePort,
|
|
744
|
+
} from "worker_threads";
|
|
745
|
+
global {
|
|
746
|
+
function structuredClone<T>(
|
|
747
|
+
value: T,
|
|
748
|
+
options?: { transfer?: Transferable[] },
|
|
749
|
+
): T;
|
|
750
|
+
/**
|
|
751
|
+
* `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'worker_threads'`
|
|
752
|
+
* https://nodejs.org/api/globals.html#broadcastchannel
|
|
753
|
+
* @since v18.0.0
|
|
754
|
+
*/
|
|
755
|
+
var BroadcastChannel: typeof globalThis extends {
|
|
756
|
+
onmessage: any;
|
|
757
|
+
BroadcastChannel: infer T;
|
|
758
|
+
} ? T
|
|
759
|
+
: typeof _BroadcastChannel;
|
|
760
|
+
/**
|
|
761
|
+
* `MessageChannel` class is a global reference for `import { MessageChannel } from 'worker_threads'`
|
|
762
|
+
* https://nodejs.org/api/globals.html#messagechannel
|
|
763
|
+
* @since v15.0.0
|
|
764
|
+
*/
|
|
765
|
+
var MessageChannel: typeof globalThis extends {
|
|
766
|
+
onmessage: any;
|
|
767
|
+
MessageChannel: infer T;
|
|
768
|
+
} ? T
|
|
769
|
+
: typeof _MessageChannel;
|
|
770
|
+
/**
|
|
771
|
+
* `MessagePort` class is a global reference for `import { MessagePort } from 'worker_threads'`
|
|
772
|
+
* https://nodejs.org/api/globals.html#messageport
|
|
773
|
+
* @since v15.0.0
|
|
774
|
+
*/
|
|
775
|
+
var MessagePort: typeof globalThis extends {
|
|
776
|
+
onmessage: any;
|
|
777
|
+
MessagePort: infer T;
|
|
778
|
+
} ? T
|
|
779
|
+
: typeof _MessagePort;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
declare module "node:worker_threads" {
|
|
783
|
+
export * from "worker_threads";
|
|
784
|
+
}
|