@psnext/slingcli 2.4.20260520-2 → 2.4.20260520-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +23 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +557 -385
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +13 -82
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +61 -144
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js +14 -36
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +234 -96
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +85 -55
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +101 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +231 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +42 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +114 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +39 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +3 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.js +50 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +125 -73
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +86 -8
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +85 -56
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +103 -18
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js +4 -4
- package/node_modules/@earendil-works/pi-agent-core/dist/node.js +3 -0
- package/node_modules/@earendil-works/pi-agent-core/package.json +23 -10
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +11 -3
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +117 -353
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +35 -32
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +5 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +19 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +35 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +24 -10
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-prompt-cache.js +10 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +19 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.js +13 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +6 -4
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +97 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -1
- package/node_modules/@earendil-works/pi-ai/package.json +15 -20
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli.js +4 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/config.js +45 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +4 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +127 -151
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +25 -15
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/template.js +17 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +48 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +71 -33
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +6 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +39 -9
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +20 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.js +2 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js +7 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +7 -11
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +7 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +14 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +6 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +99 -17
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/dark.json +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/light.json +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +83 -41
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +62 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/ansi.js +52 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/child-process.js +9 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/html.js +40 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/mime.js +59 -16
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.js +16 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/shell.js +6 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.js +118 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/tools-manager.js +80 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/version-check.js +9 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/windows-self-update.js +77 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/LICENSE +21 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Agent.md +84 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +287 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +315 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Dispatcher.md +1427 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Fetch.md +60 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/GlobalInstallation.md +141 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/MockClient.md +81 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/MockPool.md +555 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RedirectHandler.md +98 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RetryAgent.md +49 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RetryHandler.md +116 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/SnapshotAgent.md +639 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +274 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +231 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/index-fetch.js +65 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/index.js +236 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/api-connect.js +112 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/api-pipeline.js +265 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/api-request.js +238 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/api-stream.js +270 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/api-upgrade.js +121 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +581 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +234 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/sqlite-cache-store.js +463 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +153 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/constants.js +120 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/errors.js +477 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/request.js +535 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/socks5-client.js +422 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/socks5-utils.js +212 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +76 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/tree.js +160 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/util.js +1019 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +172 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/balanced-pool.js +214 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +1669 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +1326 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +666 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher.js +44 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +107 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool-base.js +232 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool.js +143 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +343 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +159 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +264 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/encoding/index.js +33 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/global.js +62 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +586 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/decorator-handler.js +66 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +192 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +407 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +508 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +285 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dump.js +112 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-utils.js +501 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-agent.js +363 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-recorder.js +623 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +408 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/date.js +653 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/runtime-features.js +93 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/stats.js +32 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/timers.js +425 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cache.js +862 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/index.js +199 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/parse.js +322 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +494 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/body.js +503 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata.js +278 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +2403 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +1522 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/infra/index.js +229 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +1004 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +329 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/frame.js +127 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/receiver.js +490 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +491 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +756 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +152 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/scripts/strip-comments.js +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +1803 -0
- package/node_modules/@earendil-works/pi-coding-agent/package.json +34 -36
- package/node_modules/@earendil-works/pi-tui/dist/components/image.js +27 -14
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +4 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +11 -5
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +22 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +27 -15
- package/node_modules/@earendil-works/pi-tui/package.json +9 -12
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/package.json +6 -6
- package/slingshot/index.js +259 -255
- package/node_modules/@borewit/text-codec/LICENSE.txt +0 -9
- package/node_modules/@borewit/text-codec/README.md +0 -87
- package/node_modules/@borewit/text-codec/lib/index.d.ts +0 -6
- package/node_modules/@borewit/text-codec/lib/index.js +0 -380
- package/node_modules/@borewit/text-codec/package.json +0 -70
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js +0 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js +0 -92
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js +0 -42
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js +0 -31
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js +0 -170
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js +0 -90
- package/node_modules/@tokenizer/inflate/LICENSE +0 -15
- package/node_modules/@tokenizer/inflate/README.md +0 -114
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +0 -6
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +0 -19
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +0 -26
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +0 -233
- package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +0 -94
- package/node_modules/@tokenizer/inflate/lib/ZipToken.js +0 -117
- package/node_modules/@tokenizer/inflate/lib/index.d.ts +0 -3
- package/node_modules/@tokenizer/inflate/lib/index.js +0 -2
- package/node_modules/@tokenizer/inflate/package.json +0 -76
- package/node_modules/@tokenizer/token/README.md +0 -19
- package/node_modules/@tokenizer/token/index.d.ts +0 -30
- package/node_modules/@tokenizer/token/package.json +0 -33
- package/node_modules/@tootallnate/quickjs-emscripten/LICENSE +0 -21
- package/node_modules/@tootallnate/quickjs-emscripten/README.md +0 -597
- package/node_modules/@tootallnate/quickjs-emscripten/c/interface.c +0 -819
- package/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.d.ts +0 -24
- package/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
- package/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.d.ts +0 -48
- package/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
- package/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/context.d.ts +0 -371
- package/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
- package/node_modules/@tootallnate/quickjs-emscripten/dist/context.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/debug.d.ts +0 -5
- package/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
- package/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.d.ts +0 -75
- package/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
- package/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/emscripten-types.d.ts +0 -97
- package/node_modules/@tootallnate/quickjs-emscripten/dist/emscripten-types.js +0 -15
- package/node_modules/@tootallnate/quickjs-emscripten/dist/emscripten-types.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/errors.d.ts +0 -28
- package/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
- package/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.d.ts +0 -9
- package/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
- package/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.d.ts +0 -5
- package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
- package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.d.ts +0 -67
- package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
- package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/index.d.ts +0 -75
- package/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
- package/node_modules/@tootallnate/quickjs-emscripten/dist/index.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.d.ts +0 -115
- package/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
- package/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/memory.d.ts +0 -18
- package/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
- package/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.d.ts +0 -53
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.d.ts +0 -27
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module.d.ts +0 -152
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
- package/node_modules/@tootallnate/quickjs-emscripten/dist/module.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.d.ts +0 -38
- package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
- package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.d.ts +0 -174
- package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
- package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.d.ts +0 -114
- package/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
- package/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/types.d.ts +0 -158
- package/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
- package/node_modules/@tootallnate/quickjs-emscripten/dist/types.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/variants.d.ts +0 -113
- package/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
- package/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.d.ts +0 -68
- package/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
- package/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js.map +0 -1
- package/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
- package/node_modules/@types/mime-types/LICENSE +0 -21
- package/node_modules/@types/mime-types/README.md +0 -28
- package/node_modules/@types/mime-types/index.d.ts +0 -9
- package/node_modules/@types/mime-types/package.json +0 -25
- package/node_modules/@types/yauzl/LICENSE +0 -21
- package/node_modules/@types/yauzl/README.md +0 -15
- package/node_modules/@types/yauzl/index.d.ts +0 -110
- package/node_modules/@types/yauzl/package.json +0 -27
- package/node_modules/ansi-regex/index.d.ts +0 -33
- package/node_modules/ansi-regex/index.js +0 -14
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/package.json +0 -61
- package/node_modules/ansi-regex/readme.md +0 -66
- package/node_modules/ansi-styles/index.d.ts +0 -345
- package/node_modules/ansi-styles/index.js +0 -163
- package/node_modules/ansi-styles/package.json +0 -56
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/any-promise/.jshintrc +0 -4
- package/node_modules/any-promise/.npmignore +0 -7
- package/node_modules/any-promise/LICENSE +0 -19
- package/node_modules/any-promise/README.md +0 -161
- package/node_modules/any-promise/implementation.d.ts +0 -3
- package/node_modules/any-promise/implementation.js +0 -1
- package/node_modules/any-promise/index.d.ts +0 -73
- package/node_modules/any-promise/index.js +0 -1
- package/node_modules/any-promise/loader.js +0 -78
- package/node_modules/any-promise/optional.js +0 -6
- package/node_modules/any-promise/package.json +0 -45
- package/node_modules/any-promise/register/bluebird.d.ts +0 -1
- package/node_modules/any-promise/register/bluebird.js +0 -2
- package/node_modules/any-promise/register/es6-promise.d.ts +0 -1
- package/node_modules/any-promise/register/es6-promise.js +0 -2
- package/node_modules/any-promise/register/lie.d.ts +0 -1
- package/node_modules/any-promise/register/lie.js +0 -2
- package/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
- package/node_modules/any-promise/register/native-promise-only.js +0 -2
- package/node_modules/any-promise/register/pinkie.d.ts +0 -1
- package/node_modules/any-promise/register/pinkie.js +0 -2
- package/node_modules/any-promise/register/promise.d.ts +0 -1
- package/node_modules/any-promise/register/promise.js +0 -2
- package/node_modules/any-promise/register/q.d.ts +0 -1
- package/node_modules/any-promise/register/q.js +0 -2
- package/node_modules/any-promise/register/rsvp.d.ts +0 -1
- package/node_modules/any-promise/register/rsvp.js +0 -2
- package/node_modules/any-promise/register/vow.d.ts +0 -1
- package/node_modules/any-promise/register/vow.js +0 -2
- package/node_modules/any-promise/register/when.d.ts +0 -1
- package/node_modules/any-promise/register/when.js +0 -2
- package/node_modules/any-promise/register-shim.js +0 -18
- package/node_modules/any-promise/register.d.ts +0 -17
- package/node_modules/any-promise/register.js +0 -94
- package/node_modules/ast-types/.github/dependabot.yml +0 -9
- package/node_modules/ast-types/.github/workflows/main.yml +0 -29
- package/node_modules/ast-types/LICENSE +0 -20
- package/node_modules/ast-types/README.md +0 -512
- package/node_modules/ast-types/def/babel-core.d.ts +0 -2
- package/node_modules/ast-types/def/babel-core.js +0 -256
- package/node_modules/ast-types/def/babel.d.ts +0 -2
- package/node_modules/ast-types/def/babel.js +0 -11
- package/node_modules/ast-types/def/core.d.ts +0 -2
- package/node_modules/ast-types/def/core.js +0 -298
- package/node_modules/ast-types/def/es-proposals.d.ts +0 -2
- package/node_modules/ast-types/def/es-proposals.js +0 -33
- package/node_modules/ast-types/def/es2020.d.ts +0 -2
- package/node_modules/ast-types/def/es2020.js +0 -16
- package/node_modules/ast-types/def/es6.d.ts +0 -2
- package/node_modules/ast-types/def/es6.js +0 -210
- package/node_modules/ast-types/def/es7.d.ts +0 -2
- package/node_modules/ast-types/def/es7.js +0 -34
- package/node_modules/ast-types/def/esprima.d.ts +0 -2
- package/node_modules/ast-types/def/esprima.js +0 -49
- package/node_modules/ast-types/def/flow.d.ts +0 -2
- package/node_modules/ast-types/def/flow.js +0 -292
- package/node_modules/ast-types/def/jsx.d.ts +0 -2
- package/node_modules/ast-types/def/jsx.js +0 -103
- package/node_modules/ast-types/def/type-annotations.d.ts +0 -7
- package/node_modules/ast-types/def/type-annotations.js +0 -40
- package/node_modules/ast-types/def/typescript.d.ts +0 -2
- package/node_modules/ast-types/def/typescript.js +0 -344
- package/node_modules/ast-types/fork.d.ts +0 -42
- package/node_modules/ast-types/fork.js +0 -52
- package/node_modules/ast-types/gen/builders.d.ts +0 -2584
- package/node_modules/ast-types/gen/builders.js +0 -2
- package/node_modules/ast-types/gen/kinds.d.ts +0 -264
- package/node_modules/ast-types/gen/kinds.js +0 -2
- package/node_modules/ast-types/gen/namedTypes.d.ts +0 -1809
- package/node_modules/ast-types/gen/namedTypes.js +0 -6
- package/node_modules/ast-types/gen/visitor.d.ts +0 -268
- package/node_modules/ast-types/gen/visitor.js +0 -2
- package/node_modules/ast-types/lib/equiv.d.ts +0 -5
- package/node_modules/ast-types/lib/equiv.js +0 -154
- package/node_modules/ast-types/lib/node-path.d.ts +0 -22
- package/node_modules/ast-types/lib/node-path.js +0 -411
- package/node_modules/ast-types/lib/path-visitor.d.ts +0 -52
- package/node_modules/ast-types/lib/path-visitor.js +0 -343
- package/node_modules/ast-types/lib/path.d.ts +0 -25
- package/node_modules/ast-types/lib/path.js +0 -331
- package/node_modules/ast-types/lib/scope.d.ts +0 -26
- package/node_modules/ast-types/lib/scope.js +0 -318
- package/node_modules/ast-types/lib/shared.d.ts +0 -13
- package/node_modules/ast-types/lib/shared.js +0 -47
- package/node_modules/ast-types/lib/types.d.ts +0 -136
- package/node_modules/ast-types/lib/types.js +0 -780
- package/node_modules/ast-types/main.d.ts +0 -28
- package/node_modules/ast-types/main.js +0 -53
- package/node_modules/ast-types/package.json +0 -65
- package/node_modules/ast-types/tsconfig.json +0 -21
- package/node_modules/ast-types/types.d.ts +0 -6
- package/node_modules/ast-types/types.js +0 -2
- package/node_modules/basic-ftp/LICENSE.txt +0 -19
- package/node_modules/basic-ftp/README.md +0 -244
- package/node_modules/basic-ftp/dist/Client.d.ts +0 -340
- package/node_modules/basic-ftp/dist/Client.js +0 -785
- package/node_modules/basic-ftp/dist/FileInfo.d.ts +0 -80
- package/node_modules/basic-ftp/dist/FileInfo.js +0 -92
- package/node_modules/basic-ftp/dist/FtpContext.d.ts +0 -175
- package/node_modules/basic-ftp/dist/FtpContext.js +0 -375
- package/node_modules/basic-ftp/dist/ProgressTracker.d.ts +0 -45
- package/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
- package/node_modules/basic-ftp/dist/StringEncoding.d.ts +0 -1
- package/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
- package/node_modules/basic-ftp/dist/StringWriter.d.ts +0 -10
- package/node_modules/basic-ftp/dist/StringWriter.js +0 -29
- package/node_modules/basic-ftp/dist/index.d.ts +0 -9
- package/node_modules/basic-ftp/dist/index.js +0 -28
- package/node_modules/basic-ftp/dist/netUtils.d.ts +0 -21
- package/node_modules/basic-ftp/dist/netUtils.js +0 -66
- package/node_modules/basic-ftp/dist/parseControlResponse.d.ts +0 -22
- package/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
- package/node_modules/basic-ftp/dist/parseList.d.ts +0 -5
- package/node_modules/basic-ftp/dist/parseList.js +0 -79
- package/node_modules/basic-ftp/dist/parseListDOS.d.ts +0 -12
- package/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
- package/node_modules/basic-ftp/dist/parseListMLSD.d.ts +0 -20
- package/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
- package/node_modules/basic-ftp/dist/parseListUnix.d.ts +0 -12
- package/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
- package/node_modules/basic-ftp/dist/transfer.d.ts +0 -39
- package/node_modules/basic-ftp/dist/transfer.js +0 -318
- package/node_modules/basic-ftp/package.json +0 -52
- package/node_modules/buffer-crc32/LICENSE +0 -19
- package/node_modules/buffer-crc32/README.md +0 -47
- package/node_modules/buffer-crc32/index.js +0 -111
- package/node_modules/buffer-crc32/package.json +0 -39
- package/node_modules/cli-highlight/LICENSE.txt +0 -15
- package/node_modules/cli-highlight/README.md +0 -88
- package/node_modules/cli-highlight/bin/highlight +0 -2
- package/node_modules/cli-highlight/dist/cli.d.ts +0 -1
- package/node_modules/cli-highlight/dist/cli.js +0 -102
- package/node_modules/cli-highlight/dist/cli.js.map +0 -1
- package/node_modules/cli-highlight/dist/index.d.ts +0 -53
- package/node_modules/cli-highlight/dist/index.js +0 -112
- package/node_modules/cli-highlight/dist/index.js.map +0 -1
- package/node_modules/cli-highlight/dist/test/test.d.ts +0 -1
- package/node_modules/cli-highlight/dist/test/test.js +0 -62
- package/node_modules/cli-highlight/dist/test/test.js.map +0 -1
- package/node_modules/cli-highlight/dist/theme.d.ts +0 -270
- package/node_modules/cli-highlight/dist/theme.js +0 -265
- package/node_modules/cli-highlight/dist/theme.js.map +0 -1
- package/node_modules/cli-highlight/node_modules/chalk/index.d.ts +0 -415
- package/node_modules/cli-highlight/node_modules/chalk/package.json +0 -68
- package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
- package/node_modules/cli-highlight/node_modules/chalk/source/index.js +0 -229
- package/node_modules/cli-highlight/node_modules/chalk/source/templates.js +0 -134
- package/node_modules/cli-highlight/node_modules/chalk/source/util.js +0 -39
- package/node_modules/cli-highlight/package.json +0 -129
- package/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/cliui/README.md +0 -141
- package/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/cliui/build/lib/index.js +0 -287
- package/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/cliui/index.mjs +0 -13
- package/node_modules/cliui/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- package/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/cliui/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
- package/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/cliui/package.json +0 -83
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -839
- package/node_modules/color-convert/index.js +0 -81
- package/node_modules/color-convert/package.json +0 -48
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -28
- package/node_modules/degenerator/README.md +0 -117
- package/node_modules/degenerator/dist/compile.d.ts +0 -11
- package/node_modules/degenerator/dist/compile.d.ts.map +0 -1
- package/node_modules/degenerator/dist/compile.js +0 -107
- package/node_modules/degenerator/dist/compile.js.map +0 -1
- package/node_modules/degenerator/dist/degenerator.d.ts +0 -12
- package/node_modules/degenerator/dist/degenerator.d.ts.map +0 -1
- package/node_modules/degenerator/dist/degenerator.js +0 -156
- package/node_modules/degenerator/dist/degenerator.js.map +0 -1
- package/node_modules/degenerator/dist/index.d.ts +0 -3
- package/node_modules/degenerator/dist/index.d.ts.map +0 -1
- package/node_modules/degenerator/dist/index.js +0 -19
- package/node_modules/degenerator/dist/index.js.map +0 -1
- package/node_modules/degenerator/package.json +0 -42
- package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/emoji-regex/package.json +0 -50
- package/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/end-of-stream/LICENSE +0 -21
- package/node_modules/end-of-stream/README.md +0 -54
- package/node_modules/end-of-stream/index.js +0 -96
- package/node_modules/end-of-stream/package.json +0 -37
- package/node_modules/escalade/dist/index.js +0 -22
- package/node_modules/escalade/dist/index.mjs +0 -22
- package/node_modules/escalade/index.d.mts +0 -11
- package/node_modules/escalade/index.d.ts +0 -15
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/package.json +0 -74
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escalade/sync/index.d.mts +0 -9
- package/node_modules/escalade/sync/index.d.ts +0 -13
- package/node_modules/escalade/sync/index.js +0 -18
- package/node_modules/escalade/sync/index.mjs +0 -18
- package/node_modules/escodegen/LICENSE.BSD +0 -21
- package/node_modules/escodegen/README.md +0 -84
- package/node_modules/escodegen/bin/escodegen.js +0 -77
- package/node_modules/escodegen/bin/esgenerate.js +0 -64
- package/node_modules/escodegen/escodegen.js +0 -2667
- package/node_modules/escodegen/package.json +0 -63
- package/node_modules/esprima/LICENSE.BSD +0 -21
- package/node_modules/esprima/README.md +0 -46
- package/node_modules/esprima/bin/esparse.js +0 -139
- package/node_modules/esprima/bin/esvalidate.js +0 -236
- package/node_modules/esprima/dist/esprima.js +0 -6709
- package/node_modules/esprima/package.json +0 -112
- package/node_modules/estraverse/.jshintrc +0 -16
- package/node_modules/estraverse/LICENSE.BSD +0 -19
- package/node_modules/estraverse/README.md +0 -153
- package/node_modules/estraverse/estraverse.js +0 -805
- package/node_modules/estraverse/gulpfile.js +0 -70
- package/node_modules/estraverse/package.json +0 -40
- package/node_modules/esutils/LICENSE.BSD +0 -19
- package/node_modules/esutils/README.md +0 -174
- package/node_modules/esutils/lib/ast.js +0 -144
- package/node_modules/esutils/lib/code.js +0 -135
- package/node_modules/esutils/lib/keyword.js +0 -165
- package/node_modules/esutils/lib/utils.js +0 -33
- package/node_modules/esutils/package.json +0 -44
- package/node_modules/extract-zip/LICENSE +0 -23
- package/node_modules/extract-zip/cli.js +0 -19
- package/node_modules/extract-zip/index.d.ts +0 -21
- package/node_modules/extract-zip/index.js +0 -173
- package/node_modules/extract-zip/package.json +0 -80
- package/node_modules/extract-zip/readme.md +0 -57
- package/node_modules/fd-slicer/.npmignore +0 -2
- package/node_modules/fd-slicer/.travis.yml +0 -7
- package/node_modules/fd-slicer/CHANGELOG.md +0 -49
- package/node_modules/fd-slicer/LICENSE +0 -21
- package/node_modules/fd-slicer/README.md +0 -199
- package/node_modules/fd-slicer/index.js +0 -296
- package/node_modules/fd-slicer/package.json +0 -36
- package/node_modules/fd-slicer/test/test.js +0 -350
- package/node_modules/file-type/core.d.ts +0 -253
- package/node_modules/file-type/core.js +0 -2899
- package/node_modules/file-type/index.d.ts +0 -98
- package/node_modules/file-type/index.js +0 -163
- package/node_modules/file-type/license +0 -9
- package/node_modules/file-type/package.json +0 -290
- package/node_modules/file-type/readme.md +0 -667
- package/node_modules/file-type/supported.js +0 -360
- package/node_modules/file-type/util.js +0 -60
- package/node_modules/get-caller-file/LICENSE.md +0 -6
- package/node_modules/get-caller-file/README.md +0 -41
- package/node_modules/get-caller-file/index.d.ts +0 -2
- package/node_modules/get-caller-file/index.js +0 -22
- package/node_modules/get-caller-file/index.js.map +0 -1
- package/node_modules/get-caller-file/package.json +0 -42
- package/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/get-stream/index.d.ts +0 -108
- package/node_modules/get-stream/index.js +0 -60
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -50
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/get-uri/LICENSE +0 -22
- package/node_modules/get-uri/README.md +0 -109
- package/node_modules/get-uri/dist/data.d.ts +0 -16
- package/node_modules/get-uri/dist/data.js +0 -43
- package/node_modules/get-uri/dist/data.js.map +0 -1
- package/node_modules/get-uri/dist/file.d.ts +0 -17
- package/node_modules/get-uri/dist/file.js +0 -57
- package/node_modules/get-uri/dist/file.js.map +0 -1
- package/node_modules/get-uri/dist/ftp.d.ts +0 -14
- package/node_modules/get-uri/dist/ftp.js +0 -93
- package/node_modules/get-uri/dist/ftp.js.map +0 -1
- package/node_modules/get-uri/dist/http-error.d.ts +0 -8
- package/node_modules/get-uri/dist/http-error.js +0 -15
- package/node_modules/get-uri/dist/http-error.js.map +0 -1
- package/node_modules/get-uri/dist/http.d.ts +0 -29
- package/node_modules/get-uri/dist/http.js +0 -191
- package/node_modules/get-uri/dist/http.js.map +0 -1
- package/node_modules/get-uri/dist/https.d.ts +0 -6
- package/node_modules/get-uri/dist/https.js +0 -16
- package/node_modules/get-uri/dist/https.js.map +0 -1
- package/node_modules/get-uri/dist/index.d.ts +0 -37
- package/node_modules/get-uri/dist/index.js +0 -57
- package/node_modules/get-uri/dist/index.js.map +0 -1
- package/node_modules/get-uri/dist/notfound.d.ts +0 -10
- package/node_modules/get-uri/dist/notfound.js +0 -16
- package/node_modules/get-uri/dist/notfound.js.map +0 -1
- package/node_modules/get-uri/dist/notmodified.d.ts +0 -10
- package/node_modules/get-uri/dist/notmodified.js +0 -17
- package/node_modules/get-uri/dist/notmodified.js.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.d.ts +0 -17
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.d.ts.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.js +0 -54
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.js.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.d.ts +0 -8
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.d.ts.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.js +0 -48
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.d.ts +0 -8
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.d.ts.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.js +0 -26
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.js.map +0 -1
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/package.json +0 -48
- package/node_modules/get-uri/package.json +0 -58
- package/node_modules/has-flag/index.d.ts +0 -39
- package/node_modules/has-flag/index.js +0 -8
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/package.json +0 -46
- package/node_modules/has-flag/readme.md +0 -89
- package/node_modules/ieee754/LICENSE +0 -11
- package/node_modules/ieee754/README.md +0 -51
- package/node_modules/ieee754/index.d.ts +0 -10
- package/node_modules/ieee754/index.js +0 -85
- package/node_modules/ieee754/package.json +0 -52
- package/node_modules/ip-address/LICENSE +0 -19
- package/node_modules/ip-address/README.md +0 -278
- package/node_modules/ip-address/dist/address-error.d.ts +0 -4
- package/node_modules/ip-address/dist/address-error.js +0 -12
- package/node_modules/ip-address/dist/address-error.js.map +0 -1
- package/node_modules/ip-address/dist/common.d.ts +0 -20
- package/node_modules/ip-address/dist/common.js +0 -67
- package/node_modules/ip-address/dist/common.js.map +0 -1
- package/node_modules/ip-address/dist/ip-address.d.ts +0 -7
- package/node_modules/ip-address/dist/ip-address.js +0 -35
- package/node_modules/ip-address/dist/ip-address.js.map +0 -1
- package/node_modules/ip-address/dist/ipv4.d.ts +0 -267
- package/node_modules/ip-address/dist/ipv4.js +0 -485
- package/node_modules/ip-address/dist/ipv4.js.map +0 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +0 -489
- package/node_modules/ip-address/dist/ipv6.js +0 -1217
- package/node_modules/ip-address/dist/ipv6.js.map +0 -1
- package/node_modules/ip-address/dist/v4/constants.d.ts +0 -4
- package/node_modules/ip-address/dist/v4/constants.js +0 -8
- package/node_modules/ip-address/dist/v4/constants.js.map +0 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +0 -44
- package/node_modules/ip-address/dist/v6/constants.js +0 -81
- package/node_modules/ip-address/dist/v6/constants.js.map +0 -1
- package/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
- package/node_modules/ip-address/dist/v6/helpers.js +0 -54
- package/node_modules/ip-address/dist/v6/helpers.js.map +0 -1
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -5
- package/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +0 -1
- package/node_modules/ip-address/package.json +0 -88
- package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/mime-db/HISTORY.md +0 -541
- package/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/mime-db/README.md +0 -109
- package/node_modules/mime-db/db.json +0 -9342
- package/node_modules/mime-db/index.js +0 -12
- package/node_modules/mime-db/package.json +0 -56
- package/node_modules/mime-types/HISTORY.md +0 -428
- package/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/mime-types/README.md +0 -126
- package/node_modules/mime-types/index.js +0 -211
- package/node_modules/mime-types/mimeScore.js +0 -57
- package/node_modules/mime-types/package.json +0 -49
- package/node_modules/mz/LICENSE +0 -22
- package/node_modules/mz/README.md +0 -106
- package/node_modules/mz/child_process.js +0 -8
- package/node_modules/mz/crypto.js +0 -9
- package/node_modules/mz/dns.js +0 -16
- package/node_modules/mz/fs.js +0 -62
- package/node_modules/mz/index.js +0 -8
- package/node_modules/mz/package.json +0 -44
- package/node_modules/mz/readline.js +0 -64
- package/node_modules/mz/zlib.js +0 -13
- package/node_modules/netmask/CHANGELOG.md +0 -66
- package/node_modules/netmask/LICENSE.md +0 -21
- package/node_modules/netmask/README.md +0 -112
- package/node_modules/netmask/dist/netmask.d.ts +0 -21
- package/node_modules/netmask/dist/netmask.js +0 -68
- package/node_modules/netmask/dist/netmask4.d.ts +0 -20
- package/node_modules/netmask/dist/netmask4.js +0 -189
- package/node_modules/netmask/dist/netmask6.d.ts +0 -20
- package/node_modules/netmask/dist/netmask6.js +0 -187
- package/node_modules/netmask/package.json +0 -45
- package/node_modules/object-assign/index.js +0 -90
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/package.json +0 -42
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/pac-proxy-agent/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/README.md +0 -27
- package/node_modules/pac-proxy-agent/dist/index.d.ts +0 -60
- package/node_modules/pac-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/pac-proxy-agent/dist/index.js +0 -238
- package/node_modules/pac-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/pac-proxy-agent/package.json +0 -58
- package/node_modules/pac-resolver/LICENSE +0 -22
- package/node_modules/pac-resolver/README.md +0 -59
- package/node_modules/pac-resolver/dist/dateRange.d.ts +0 -67
- package/node_modules/pac-resolver/dist/dateRange.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/dateRange.js +0 -73
- package/node_modules/pac-resolver/dist/dateRange.js.map +0 -1
- package/node_modules/pac-resolver/dist/dnsDomainIs.d.ts +0 -23
- package/node_modules/pac-resolver/dist/dnsDomainIs.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
- package/node_modules/pac-resolver/dist/dnsDomainIs.js.map +0 -1
- package/node_modules/pac-resolver/dist/dnsDomainLevels.d.ts +0 -18
- package/node_modules/pac-resolver/dist/dnsDomainLevels.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
- package/node_modules/pac-resolver/dist/dnsDomainLevels.js.map +0 -1
- package/node_modules/pac-resolver/dist/dnsResolve.d.ts +0 -16
- package/node_modules/pac-resolver/dist/dnsResolve.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
- package/node_modules/pac-resolver/dist/dnsResolve.js.map +0 -1
- package/node_modules/pac-resolver/dist/index.d.ts +0 -50
- package/node_modules/pac-resolver/dist/index.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/index.js +0 -87
- package/node_modules/pac-resolver/dist/index.js.map +0 -1
- package/node_modules/pac-resolver/dist/ip.d.ts +0 -8
- package/node_modules/pac-resolver/dist/ip.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/ip.js +0 -50
- package/node_modules/pac-resolver/dist/ip.js.map +0 -1
- package/node_modules/pac-resolver/dist/isInNet.d.ts +0 -24
- package/node_modules/pac-resolver/dist/isInNet.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/isInNet.js +0 -42
- package/node_modules/pac-resolver/dist/isInNet.js.map +0 -1
- package/node_modules/pac-resolver/dist/isPlainHostName.d.ts +0 -18
- package/node_modules/pac-resolver/dist/isPlainHostName.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
- package/node_modules/pac-resolver/dist/isPlainHostName.js.map +0 -1
- package/node_modules/pac-resolver/dist/isResolvable.d.ts +0 -8
- package/node_modules/pac-resolver/dist/isResolvable.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/isResolvable.js +0 -23
- package/node_modules/pac-resolver/dist/isResolvable.js.map +0 -1
- package/node_modules/pac-resolver/dist/localHostOrDomainIs.d.ts +0 -26
- package/node_modules/pac-resolver/dist/localHostOrDomainIs.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
- package/node_modules/pac-resolver/dist/localHostOrDomainIs.js.map +0 -1
- package/node_modules/pac-resolver/dist/myIpAddress.d.ts +0 -16
- package/node_modules/pac-resolver/dist/myIpAddress.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
- package/node_modules/pac-resolver/dist/myIpAddress.js.map +0 -1
- package/node_modules/pac-resolver/dist/shExpMatch.d.ts +0 -23
- package/node_modules/pac-resolver/dist/shExpMatch.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
- package/node_modules/pac-resolver/dist/shExpMatch.js.map +0 -1
- package/node_modules/pac-resolver/dist/timeRange.d.ts +0 -43
- package/node_modules/pac-resolver/dist/timeRange.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/timeRange.js +0 -92
- package/node_modules/pac-resolver/dist/timeRange.js.map +0 -1
- package/node_modules/pac-resolver/dist/util.d.ts +0 -6
- package/node_modules/pac-resolver/dist/util.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/util.js +0 -22
- package/node_modules/pac-resolver/dist/util.js.map +0 -1
- package/node_modules/pac-resolver/dist/weekdayRange.d.ts +0 -45
- package/node_modules/pac-resolver/dist/weekdayRange.d.ts.map +0 -1
- package/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
- package/node_modules/pac-resolver/dist/weekdayRange.js.map +0 -1
- package/node_modules/pac-resolver/package.json +0 -47
- package/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5/lib/common/doctype.js +0 -162
- package/node_modules/parse5/lib/common/error-codes.js +0 -65
- package/node_modules/parse5/lib/common/foreign-content.js +0 -265
- package/node_modules/parse5/lib/common/html.js +0 -272
- package/node_modules/parse5/lib/common/unicode.js +0 -109
- package/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
- package/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
- package/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
- package/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
- package/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
- package/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -222
- package/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
- package/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
- package/node_modules/parse5/lib/index.js +0 -29
- package/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
- package/node_modules/parse5/lib/parser/index.js +0 -2956
- package/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
- package/node_modules/parse5/lib/serializer/index.js +0 -176
- package/node_modules/parse5/lib/tokenizer/index.js +0 -2196
- package/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
- package/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
- package/node_modules/parse5/lib/tree-adapters/default.js +0 -217
- package/node_modules/parse5/lib/utils/merge-options.js +0 -13
- package/node_modules/parse5/lib/utils/mixin.js +0 -39
- package/node_modules/parse5/package.json +0 -35
- package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
- package/node_modules/parse5-htmlparser2-tree-adapter/lib/index.js +0 -348
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/doctype.js +0 -162
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/error-codes.js +0 -65
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/foreign-content.js +0 -265
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/html.js +0 -272
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/unicode.js +0 -109
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/index.js +0 -29
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/index.js +0 -2956
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/serializer/index.js +0 -176
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/index.js +0 -2196
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tree-adapters/default.js +0 -221
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/merge-options.js +0 -13
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/mixin.js +0 -39
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/package.json +0 -35
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -27
- package/node_modules/pend/LICENSE +0 -23
- package/node_modules/pend/README.md +0 -41
- package/node_modules/pend/index.js +0 -55
- package/node_modules/pend/package.json +0 -18
- package/node_modules/pend/test.js +0 -137
- package/node_modules/proxy-agent/LICENSE +0 -22
- package/node_modules/proxy-agent/README.md +0 -59
- package/node_modules/proxy-agent/dist/index.d.ts +0 -62
- package/node_modules/proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/proxy-agent/dist/index.js +0 -138
- package/node_modules/proxy-agent/dist/index.js.map +0 -1
- package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
- package/node_modules/proxy-agent/node_modules/lru-cache/index.d.ts +0 -869
- package/node_modules/proxy-agent/node_modules/lru-cache/index.js +0 -1227
- package/node_modules/proxy-agent/node_modules/lru-cache/index.mjs +0 -1227
- package/node_modules/proxy-agent/node_modules/lru-cache/package.json +0 -96
- package/node_modules/proxy-agent/package.json +0 -60
- package/node_modules/proxy-from-env/.eslintrc +0 -29
- package/node_modules/proxy-from-env/.travis.yml +0 -10
- package/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-from-env/README.md +0 -131
- package/node_modules/proxy-from-env/index.js +0 -108
- package/node_modules/proxy-from-env/package.json +0 -34
- package/node_modules/proxy-from-env/test.js +0 -483
- package/node_modules/pump/.github/FUNDING.yml +0 -2
- package/node_modules/pump/.travis.yml +0 -5
- package/node_modules/pump/LICENSE +0 -21
- package/node_modules/pump/README.md +0 -74
- package/node_modules/pump/SECURITY.md +0 -5
- package/node_modules/pump/empty.js +0 -1
- package/node_modules/pump/index.js +0 -86
- package/node_modules/pump/package.json +0 -30
- package/node_modules/pump/test-browser.js +0 -66
- package/node_modules/pump/test-node.js +0 -53
- package/node_modules/require-directory/.jshintrc +0 -67
- package/node_modules/require-directory/.npmignore +0 -1
- package/node_modules/require-directory/.travis.yml +0 -3
- package/node_modules/require-directory/LICENSE +0 -22
- package/node_modules/require-directory/README.markdown +0 -184
- package/node_modules/require-directory/index.js +0 -86
- package/node_modules/require-directory/package.json +0 -40
- package/node_modules/smart-buffer/.prettierrc.yaml +0 -5
- package/node_modules/smart-buffer/.travis.yml +0 -13
- package/node_modules/smart-buffer/LICENSE +0 -20
- package/node_modules/smart-buffer/README.md +0 -633
- package/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
- package/node_modules/smart-buffer/build/smartbuffer.js.map +0 -1
- package/node_modules/smart-buffer/build/utils.js +0 -108
- package/node_modules/smart-buffer/build/utils.js.map +0 -1
- package/node_modules/smart-buffer/docs/CHANGELOG.md +0 -70
- package/node_modules/smart-buffer/docs/README_v3.md +0 -367
- package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
- package/node_modules/smart-buffer/package.json +0 -79
- package/node_modules/smart-buffer/typings/smartbuffer.d.ts +0 -755
- package/node_modules/smart-buffer/typings/utils.d.ts +0 -66
- package/node_modules/socks/.eslintrc.cjs +0 -11
- package/node_modules/socks/.prettierrc.yaml +0 -7
- package/node_modules/socks/LICENSE +0 -20
- package/node_modules/socks/README.md +0 -686
- package/node_modules/socks/build/client/socksclient.js +0 -793
- package/node_modules/socks/build/client/socksclient.js.map +0 -1
- package/node_modules/socks/build/common/constants.js +0 -108
- package/node_modules/socks/build/common/constants.js.map +0 -1
- package/node_modules/socks/build/common/helpers.js +0 -167
- package/node_modules/socks/build/common/helpers.js.map +0 -1
- package/node_modules/socks/build/common/receivebuffer.js +0 -43
- package/node_modules/socks/build/common/receivebuffer.js.map +0 -1
- package/node_modules/socks/build/common/util.js +0 -25
- package/node_modules/socks/build/common/util.js.map +0 -1
- package/node_modules/socks/build/index.js +0 -18
- package/node_modules/socks/build/index.js.map +0 -1
- package/node_modules/socks/docs/examples/index.md +0 -17
- package/node_modules/socks/docs/examples/javascript/associateExample.md +0 -90
- package/node_modules/socks/docs/examples/javascript/bindExample.md +0 -83
- package/node_modules/socks/docs/examples/javascript/connectExample.md +0 -258
- package/node_modules/socks/docs/examples/typescript/associateExample.md +0 -93
- package/node_modules/socks/docs/examples/typescript/bindExample.md +0 -86
- package/node_modules/socks/docs/examples/typescript/connectExample.md +0 -265
- package/node_modules/socks/docs/index.md +0 -5
- package/node_modules/socks/docs/migratingFromV1.md +0 -86
- package/node_modules/socks/package.json +0 -58
- package/node_modules/socks/typings/client/socksclient.d.ts +0 -162
- package/node_modules/socks/typings/common/constants.d.ts +0 -151
- package/node_modules/socks/typings/common/helpers.d.ts +0 -17
- package/node_modules/socks/typings/common/receivebuffer.d.ts +0 -12
- package/node_modules/socks/typings/common/util.d.ts +0 -14
- package/node_modules/socks/typings/index.d.ts +0 -1
- package/node_modules/socks-proxy-agent/LICENSE +0 -22
- package/node_modules/socks-proxy-agent/README.md +0 -50
- package/node_modules/socks-proxy-agent/dist/index.d.ts +0 -27
- package/node_modules/socks-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/socks-proxy-agent/dist/index.js +0 -195
- package/node_modules/socks-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/socks-proxy-agent/package.json +0 -142
- package/node_modules/source-map/LICENSE +0 -28
- package/node_modules/source-map/README.md +0 -742
- package/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/node_modules/source-map/dist/source-map.js +0 -3233
- package/node_modules/source-map/dist/source-map.min.js +0 -2
- package/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/node_modules/source-map/lib/array-set.js +0 -121
- package/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/node_modules/source-map/lib/base64.js +0 -67
- package/node_modules/source-map/lib/binary-search.js +0 -111
- package/node_modules/source-map/lib/mapping-list.js +0 -79
- package/node_modules/source-map/lib/quick-sort.js +0 -114
- package/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/node_modules/source-map/lib/source-node.js +0 -413
- package/node_modules/source-map/lib/util.js +0 -488
- package/node_modules/source-map/package.json +0 -73
- package/node_modules/source-map/source-map.d.ts +0 -98
- package/node_modules/source-map/source-map.js +0 -8
- package/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/string-width/index.js +0 -47
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/string-width/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/string-width/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width/package.json +0 -56
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/strip-ansi/index.d.ts +0 -15
- package/node_modules/strip-ansi/index.js +0 -19
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/package.json +0 -59
- package/node_modules/strip-ansi/readme.md +0 -37
- package/node_modules/strtok3/LICENSE.txt +0 -21
- package/node_modules/strtok3/README.md +0 -399
- package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +0 -76
- package/node_modules/strtok3/lib/AbstractTokenizer.js +0 -111
- package/node_modules/strtok3/lib/BlobTokenizer.d.ts +0 -29
- package/node_modules/strtok3/lib/BlobTokenizer.js +0 -53
- package/node_modules/strtok3/lib/BufferTokenizer.d.ts +0 -29
- package/node_modules/strtok3/lib/BufferTokenizer.js +0 -52
- package/node_modules/strtok3/lib/FileTokenizer.d.ts +0 -37
- package/node_modules/strtok3/lib/FileTokenizer.js +0 -61
- package/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +0 -34
- package/node_modules/strtok3/lib/ReadStreamTokenizer.js +0 -107
- package/node_modules/strtok3/lib/core.d.ts +0 -40
- package/node_modules/strtok3/lib/core.js +0 -62
- package/node_modules/strtok3/lib/index.d.ts +0 -16
- package/node_modules/strtok3/lib/index.js +0 -22
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +0 -54
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +0 -71
- package/node_modules/strtok3/lib/stream/Deferred.d.ts +0 -6
- package/node_modules/strtok3/lib/stream/Deferred.js +0 -10
- package/node_modules/strtok3/lib/stream/Errors.d.ts +0 -10
- package/node_modules/strtok3/lib/stream/Errors.js +0 -16
- package/node_modules/strtok3/lib/stream/StreamReader.d.ts +0 -29
- package/node_modules/strtok3/lib/stream/StreamReader.js +0 -83
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +0 -14
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +0 -27
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +0 -19
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +0 -62
- package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +0 -14
- package/node_modules/strtok3/lib/stream/WebStreamReader.js +0 -13
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +0 -5
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +0 -19
- package/node_modules/strtok3/lib/stream/index.d.ts +0 -6
- package/node_modules/strtok3/lib/stream/index.js +0 -5
- package/node_modules/strtok3/lib/types.d.ts +0 -139
- package/node_modules/strtok3/lib/types.js +0 -1
- package/node_modules/strtok3/package.json +0 -94
- package/node_modules/supports-color/browser.js +0 -5
- package/node_modules/supports-color/index.js +0 -135
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/package.json +0 -53
- package/node_modules/supports-color/readme.md +0 -76
- package/node_modules/thenify/LICENSE +0 -22
- package/node_modules/thenify/README.md +0 -120
- package/node_modules/thenify/index.js +0 -77
- package/node_modules/thenify/package.json +0 -31
- package/node_modules/thenify-all/LICENSE +0 -22
- package/node_modules/thenify-all/README.md +0 -66
- package/node_modules/thenify-all/index.js +0 -73
- package/node_modules/thenify-all/package.json +0 -34
- package/node_modules/token-types/LICENSE.txt +0 -9
- package/node_modules/token-types/README.md +0 -120
- package/node_modules/token-types/lib/index.d.ts +0 -135
- package/node_modules/token-types/lib/index.js +0 -401
- package/node_modules/token-types/package.json +0 -81
- package/node_modules/uint8array-extras/index.d.ts +0 -331
- package/node_modules/uint8array-extras/index.js +0 -318
- package/node_modules/uint8array-extras/license +0 -9
- package/node_modules/uint8array-extras/package.json +0 -54
- package/node_modules/uint8array-extras/readme.md +0 -318
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -491
- package/node_modules/uuid/dist/index.d.ts +0 -15
- package/node_modules/uuid/dist/index.js +0 -14
- package/node_modules/uuid/dist/max.d.ts +0 -2
- package/node_modules/uuid/dist/max.js +0 -1
- package/node_modules/uuid/dist/md5.d.ts +0 -2
- package/node_modules/uuid/dist/md5.js +0 -135
- package/node_modules/uuid/dist/nil.d.ts +0 -2
- package/node_modules/uuid/dist/nil.js +0 -1
- package/node_modules/uuid/dist/parse.d.ts +0 -3
- package/node_modules/uuid/dist/parse.js +0 -9
- package/node_modules/uuid/dist/regex.d.ts +0 -2
- package/node_modules/uuid/dist/regex.js +0 -1
- package/node_modules/uuid/dist/rng.d.ts +0 -1
- package/node_modules/uuid/dist/rng.js +0 -4
- package/node_modules/uuid/dist/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/sha1.js +0 -70
- package/node_modules/uuid/dist/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/stringify.js +0 -35
- package/node_modules/uuid/dist/types.d.ts +0 -22
- package/node_modules/uuid/dist/types.js +0 -1
- package/node_modules/uuid/dist/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/v1.d.ts +0 -11
- package/node_modules/uuid/dist/v1.js +0 -83
- package/node_modules/uuid/dist/v1ToV6.d.ts +0 -3
- package/node_modules/uuid/dist/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/v3.d.ts +0 -9
- package/node_modules/uuid/dist/v3.js +0 -9
- package/node_modules/uuid/dist/v35.d.ts +0 -7
- package/node_modules/uuid/dist/v35.js +0 -39
- package/node_modules/uuid/dist/v4.d.ts +0 -4
- package/node_modules/uuid/dist/v4.js +0 -29
- package/node_modules/uuid/dist/v5.d.ts +0 -9
- package/node_modules/uuid/dist/v5.js +0 -9
- package/node_modules/uuid/dist/v6.d.ts +0 -4
- package/node_modules/uuid/dist/v6.js +0 -20
- package/node_modules/uuid/dist/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/v7.d.ts +0 -9
- package/node_modules/uuid/dist/v7.js +0 -65
- package/node_modules/uuid/dist/validate.d.ts +0 -2
- package/node_modules/uuid/dist/validate.js +0 -5
- package/node_modules/uuid/dist/version.d.ts +0 -2
- package/node_modules/uuid/dist/version.js +0 -8
- package/node_modules/uuid/dist-node/bin/uuid +0 -2
- package/node_modules/uuid/dist-node/index.js +0 -14
- package/node_modules/uuid/dist-node/max.js +0 -1
- package/node_modules/uuid/dist-node/md5.js +0 -11
- package/node_modules/uuid/dist-node/nil.js +0 -1
- package/node_modules/uuid/dist-node/parse.js +0 -9
- package/node_modules/uuid/dist-node/regex.js +0 -1
- package/node_modules/uuid/dist-node/rng.js +0 -4
- package/node_modules/uuid/dist-node/sha1.js +0 -11
- package/node_modules/uuid/dist-node/stringify.js +0 -35
- package/node_modules/uuid/dist-node/types.js +0 -1
- package/node_modules/uuid/dist-node/uuid-bin.js +0 -70
- package/node_modules/uuid/dist-node/v1.js +0 -83
- package/node_modules/uuid/dist-node/v1ToV6.js +0 -10
- package/node_modules/uuid/dist-node/v3.js +0 -9
- package/node_modules/uuid/dist-node/v35.js +0 -39
- package/node_modules/uuid/dist-node/v4.js +0 -29
- package/node_modules/uuid/dist-node/v5.js +0 -9
- package/node_modules/uuid/dist-node/v6.js +0 -20
- package/node_modules/uuid/dist-node/v6ToV1.js +0 -10
- package/node_modules/uuid/dist-node/v7.js +0 -65
- package/node_modules/uuid/dist-node/validate.js +0 -5
- package/node_modules/uuid/dist-node/version.js +0 -8
- package/node_modules/uuid/package.json +0 -110
- package/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi/package.json +0 -62
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/y18n/LICENSE +0 -13
- package/node_modules/y18n/README.md +0 -127
- package/node_modules/y18n/build/index.cjs +0 -203
- package/node_modules/y18n/build/lib/cjs.js +0 -6
- package/node_modules/y18n/build/lib/index.js +0 -174
- package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
- package/node_modules/y18n/index.mjs +0 -8
- package/node_modules/y18n/package.json +0 -70
- package/node_modules/yargs/LICENSE +0 -21
- package/node_modules/yargs/README.md +0 -202
- package/node_modules/yargs/browser.mjs +0 -7
- package/node_modules/yargs/build/index.cjs +0 -2920
- package/node_modules/yargs/build/lib/argsert.js +0 -62
- package/node_modules/yargs/build/lib/command.js +0 -382
- package/node_modules/yargs/build/lib/completion-templates.js +0 -47
- package/node_modules/yargs/build/lib/completion.js +0 -128
- package/node_modules/yargs/build/lib/middleware.js +0 -53
- package/node_modules/yargs/build/lib/parse-command.js +0 -32
- package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
- package/node_modules/yargs/build/lib/usage.js +0 -548
- package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
- package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
- package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -26
- package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
- package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
- package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
- package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
- package/node_modules/yargs/build/lib/validation.js +0 -308
- package/node_modules/yargs/build/lib/yargs-factory.js +0 -1143
- package/node_modules/yargs/build/lib/yerror.js +0 -7
- package/node_modules/yargs/helpers/helpers.mjs +0 -10
- package/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/yargs/helpers/package.json +0 -3
- package/node_modules/yargs/index.cjs +0 -39
- package/node_modules/yargs/index.mjs +0 -8
- package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -92
- package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -67
- package/node_modules/yargs/locales/be.json +0 -46
- package/node_modules/yargs/locales/de.json +0 -46
- package/node_modules/yargs/locales/en.json +0 -51
- package/node_modules/yargs/locales/es.json +0 -46
- package/node_modules/yargs/locales/fi.json +0 -49
- package/node_modules/yargs/locales/fr.json +0 -53
- package/node_modules/yargs/locales/hi.json +0 -49
- package/node_modules/yargs/locales/hu.json +0 -46
- package/node_modules/yargs/locales/id.json +0 -50
- package/node_modules/yargs/locales/it.json +0 -46
- package/node_modules/yargs/locales/ja.json +0 -51
- package/node_modules/yargs/locales/ko.json +0 -49
- package/node_modules/yargs/locales/nb.json +0 -44
- package/node_modules/yargs/locales/nl.json +0 -49
- package/node_modules/yargs/locales/nn.json +0 -44
- package/node_modules/yargs/locales/pirate.json +0 -13
- package/node_modules/yargs/locales/pl.json +0 -49
- package/node_modules/yargs/locales/pt.json +0 -45
- package/node_modules/yargs/locales/pt_BR.json +0 -48
- package/node_modules/yargs/locales/ru.json +0 -46
- package/node_modules/yargs/locales/th.json +0 -46
- package/node_modules/yargs/locales/tr.json +0 -48
- package/node_modules/yargs/locales/zh_CN.json +0 -48
- package/node_modules/yargs/locales/zh_TW.json +0 -47
- package/node_modules/yargs/package.json +0 -122
- package/node_modules/yargs/yargs +0 -9
- package/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/yargs-parser/browser.js +0 -29
- package/node_modules/yargs-parser/build/index.cjs +0 -1042
- package/node_modules/yargs-parser/build/lib/index.js +0 -59
- package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
- package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
- package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1037
- package/node_modules/yargs-parser/package.json +0 -87
- package/node_modules/yauzl/LICENSE +0 -21
- package/node_modules/yauzl/README.md +0 -658
- package/node_modules/yauzl/index.js +0 -796
- package/node_modules/yauzl/package.json +0 -40
- /package/node_modules/{once → isexe}/LICENSE +0 -0
- /package/node_modules/{ansi-styles → path-key}/license +0 -0
- /package/node_modules/{cli-highlight/node_modules/chalk → shebang-regex}/license +0 -0
- /package/node_modules/{wrappy → which}/LICENSE +0 -0
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js
ADDED
|
@@ -0,0 +1,1004 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const assert = require('node:assert')
|
|
4
|
+
const { types, inspect } = require('node:util')
|
|
5
|
+
const { markAsUncloneable } = require('node:worker_threads')
|
|
6
|
+
|
|
7
|
+
const UNDEFINED = 1
|
|
8
|
+
const BOOLEAN = 2
|
|
9
|
+
const STRING = 3
|
|
10
|
+
const SYMBOL = 4
|
|
11
|
+
const NUMBER = 5
|
|
12
|
+
const BIGINT = 6
|
|
13
|
+
const NULL = 7
|
|
14
|
+
const OBJECT = 8 // function and object
|
|
15
|
+
|
|
16
|
+
const FunctionPrototypeSymbolHasInstance = Function.call.bind(Function.prototype[Symbol.hasInstance])
|
|
17
|
+
|
|
18
|
+
/** @type {import('../../../types/webidl').Webidl} */
|
|
19
|
+
const webidl = {
|
|
20
|
+
converters: {},
|
|
21
|
+
util: {},
|
|
22
|
+
errors: {},
|
|
23
|
+
is: {}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description Instantiate an error.
|
|
28
|
+
*
|
|
29
|
+
* @param {Object} opts
|
|
30
|
+
* @param {string} opts.header
|
|
31
|
+
* @param {string} opts.message
|
|
32
|
+
* @returns {TypeError}
|
|
33
|
+
*/
|
|
34
|
+
webidl.errors.exception = function (message) {
|
|
35
|
+
return new TypeError(`${message.header}: ${message.message}`)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @description Instantiate an error when conversion from one type to another has failed.
|
|
40
|
+
*
|
|
41
|
+
* @param {Object} opts
|
|
42
|
+
* @param {string} opts.prefix
|
|
43
|
+
* @param {string} opts.argument
|
|
44
|
+
* @param {string[]} opts.types
|
|
45
|
+
* @returns {TypeError}
|
|
46
|
+
*/
|
|
47
|
+
webidl.errors.conversionFailed = function (opts) {
|
|
48
|
+
const plural = opts.types.length === 1 ? '' : ' one of'
|
|
49
|
+
const message =
|
|
50
|
+
`${opts.argument} could not be converted to` +
|
|
51
|
+
`${plural}: ${opts.types.join(', ')}.`
|
|
52
|
+
|
|
53
|
+
return webidl.errors.exception({
|
|
54
|
+
header: opts.prefix,
|
|
55
|
+
message
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @description Instantiate an error when an invalid argument is provided
|
|
61
|
+
*
|
|
62
|
+
* @param {Object} context
|
|
63
|
+
* @param {string} context.prefix
|
|
64
|
+
* @param {string} context.value
|
|
65
|
+
* @param {string} context.type
|
|
66
|
+
* @returns {TypeError}
|
|
67
|
+
*/
|
|
68
|
+
webidl.errors.invalidArgument = function (context) {
|
|
69
|
+
return webidl.errors.exception({
|
|
70
|
+
header: context.prefix,
|
|
71
|
+
message: `"${context.value}" is an invalid ${context.type}.`
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// https://webidl.spec.whatwg.org/#implements
|
|
76
|
+
webidl.brandCheck = function (V, I) {
|
|
77
|
+
if (!FunctionPrototypeSymbolHasInstance(I, V)) {
|
|
78
|
+
const err = new TypeError('Illegal invocation')
|
|
79
|
+
err.code = 'ERR_INVALID_THIS' // node compat.
|
|
80
|
+
throw err
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
webidl.brandCheckMultiple = function (List) {
|
|
85
|
+
const prototypes = List.map((c) => webidl.util.MakeTypeAssertion(c))
|
|
86
|
+
|
|
87
|
+
return (V) => {
|
|
88
|
+
if (prototypes.every(typeCheck => !typeCheck(V))) {
|
|
89
|
+
const err = new TypeError('Illegal invocation')
|
|
90
|
+
err.code = 'ERR_INVALID_THIS' // node compat.
|
|
91
|
+
throw err
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
webidl.argumentLengthCheck = function ({ length }, min, ctx) {
|
|
97
|
+
if (length < min) {
|
|
98
|
+
throw webidl.errors.exception({
|
|
99
|
+
message: `${min} argument${min !== 1 ? 's' : ''} required, ` +
|
|
100
|
+
`but${length ? ' only' : ''} ${length} found.`,
|
|
101
|
+
header: ctx
|
|
102
|
+
})
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
webidl.illegalConstructor = function () {
|
|
107
|
+
throw webidl.errors.exception({
|
|
108
|
+
header: 'TypeError',
|
|
109
|
+
message: 'Illegal constructor'
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
webidl.util.MakeTypeAssertion = function (I) {
|
|
114
|
+
return (O) => FunctionPrototypeSymbolHasInstance(I, O)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
|
118
|
+
webidl.util.Type = function (V) {
|
|
119
|
+
switch (typeof V) {
|
|
120
|
+
case 'undefined': return UNDEFINED
|
|
121
|
+
case 'boolean': return BOOLEAN
|
|
122
|
+
case 'string': return STRING
|
|
123
|
+
case 'symbol': return SYMBOL
|
|
124
|
+
case 'number': return NUMBER
|
|
125
|
+
case 'bigint': return BIGINT
|
|
126
|
+
case 'function':
|
|
127
|
+
case 'object': {
|
|
128
|
+
if (V === null) {
|
|
129
|
+
return NULL
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return OBJECT
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
webidl.util.Types = {
|
|
138
|
+
UNDEFINED,
|
|
139
|
+
BOOLEAN,
|
|
140
|
+
STRING,
|
|
141
|
+
SYMBOL,
|
|
142
|
+
NUMBER,
|
|
143
|
+
BIGINT,
|
|
144
|
+
NULL,
|
|
145
|
+
OBJECT
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
webidl.util.TypeValueToString = function (o) {
|
|
149
|
+
switch (webidl.util.Type(o)) {
|
|
150
|
+
case UNDEFINED: return 'Undefined'
|
|
151
|
+
case BOOLEAN: return 'Boolean'
|
|
152
|
+
case STRING: return 'String'
|
|
153
|
+
case SYMBOL: return 'Symbol'
|
|
154
|
+
case NUMBER: return 'Number'
|
|
155
|
+
case BIGINT: return 'BigInt'
|
|
156
|
+
case NULL: return 'Null'
|
|
157
|
+
case OBJECT: return 'Object'
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
webidl.util.markAsUncloneable = markAsUncloneable
|
|
162
|
+
|
|
163
|
+
// https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
164
|
+
webidl.util.ConvertToInt = function (V, bitLength, signedness, flags) {
|
|
165
|
+
let upperBound
|
|
166
|
+
let lowerBound
|
|
167
|
+
|
|
168
|
+
// 1. If bitLength is 64, then:
|
|
169
|
+
if (bitLength === 64) {
|
|
170
|
+
// 1. Let upperBound be 2^53 − 1.
|
|
171
|
+
upperBound = Math.pow(2, 53) - 1
|
|
172
|
+
|
|
173
|
+
// 2. If signedness is "unsigned", then let lowerBound be 0.
|
|
174
|
+
if (signedness === 'unsigned') {
|
|
175
|
+
lowerBound = 0
|
|
176
|
+
} else {
|
|
177
|
+
// 3. Otherwise let lowerBound be −2^53 + 1.
|
|
178
|
+
lowerBound = Math.pow(-2, 53) + 1
|
|
179
|
+
}
|
|
180
|
+
} else if (signedness === 'unsigned') {
|
|
181
|
+
// 2. Otherwise, if signedness is "unsigned", then:
|
|
182
|
+
|
|
183
|
+
// 1. Let lowerBound be 0.
|
|
184
|
+
lowerBound = 0
|
|
185
|
+
|
|
186
|
+
// 2. Let upperBound be 2^bitLength − 1.
|
|
187
|
+
upperBound = Math.pow(2, bitLength) - 1
|
|
188
|
+
} else {
|
|
189
|
+
// 3. Otherwise:
|
|
190
|
+
|
|
191
|
+
// 1. Let lowerBound be -2^(bitLength − 1).
|
|
192
|
+
lowerBound = -Math.pow(2, bitLength - 1)
|
|
193
|
+
|
|
194
|
+
// 2. Let upperBound be 2^(bitLength − 1) − 1.
|
|
195
|
+
upperBound = Math.pow(2, bitLength - 1) - 1
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// 4. Let x be ? ToNumber(V).
|
|
199
|
+
let x = Number(V)
|
|
200
|
+
|
|
201
|
+
// 5. If x is −0, then set x to +0.
|
|
202
|
+
if (x === 0) {
|
|
203
|
+
x = 0
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// 6. If the conversion is to an IDL type associated
|
|
207
|
+
// with the [EnforceRange] extended attribute, then:
|
|
208
|
+
if (webidl.util.HasFlag(flags, webidl.attributes.EnforceRange)) {
|
|
209
|
+
// 1. If x is NaN, +∞, or −∞, then throw a TypeError.
|
|
210
|
+
if (
|
|
211
|
+
Number.isNaN(x) ||
|
|
212
|
+
x === Number.POSITIVE_INFINITY ||
|
|
213
|
+
x === Number.NEGATIVE_INFINITY
|
|
214
|
+
) {
|
|
215
|
+
throw webidl.errors.exception({
|
|
216
|
+
header: 'Integer conversion',
|
|
217
|
+
message: `Could not convert ${webidl.util.Stringify(V)} to an integer.`
|
|
218
|
+
})
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// 2. Set x to IntegerPart(x).
|
|
222
|
+
x = webidl.util.IntegerPart(x)
|
|
223
|
+
|
|
224
|
+
// 3. If x < lowerBound or x > upperBound, then
|
|
225
|
+
// throw a TypeError.
|
|
226
|
+
if (x < lowerBound || x > upperBound) {
|
|
227
|
+
throw webidl.errors.exception({
|
|
228
|
+
header: 'Integer conversion',
|
|
229
|
+
message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// 4. Return x.
|
|
234
|
+
return x
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// 7. If x is not NaN and the conversion is to an IDL
|
|
238
|
+
// type associated with the [Clamp] extended
|
|
239
|
+
// attribute, then:
|
|
240
|
+
if (!Number.isNaN(x) && webidl.util.HasFlag(flags, webidl.attributes.Clamp)) {
|
|
241
|
+
// 1. Set x to min(max(x, lowerBound), upperBound).
|
|
242
|
+
x = Math.min(Math.max(x, lowerBound), upperBound)
|
|
243
|
+
|
|
244
|
+
// 2. Round x to the nearest integer, choosing the
|
|
245
|
+
// even integer if it lies halfway between two,
|
|
246
|
+
// and choosing +0 rather than −0.
|
|
247
|
+
if (Math.floor(x) % 2 === 0) {
|
|
248
|
+
x = Math.floor(x)
|
|
249
|
+
} else {
|
|
250
|
+
x = Math.ceil(x)
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// 3. Return x.
|
|
254
|
+
return x
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// 8. If x is NaN, +0, +∞, or −∞, then return +0.
|
|
258
|
+
if (
|
|
259
|
+
Number.isNaN(x) ||
|
|
260
|
+
(x === 0 && Object.is(0, x)) ||
|
|
261
|
+
x === Number.POSITIVE_INFINITY ||
|
|
262
|
+
x === Number.NEGATIVE_INFINITY
|
|
263
|
+
) {
|
|
264
|
+
return 0
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// 9. Set x to IntegerPart(x).
|
|
268
|
+
x = webidl.util.IntegerPart(x)
|
|
269
|
+
|
|
270
|
+
// 10. Set x to x modulo 2^bitLength.
|
|
271
|
+
x = x % Math.pow(2, bitLength)
|
|
272
|
+
|
|
273
|
+
// 11. If signedness is "signed" and x ≥ 2^(bitLength − 1),
|
|
274
|
+
// then return x − 2^bitLength.
|
|
275
|
+
if (signedness === 'signed' && x >= Math.pow(2, bitLength - 1)) {
|
|
276
|
+
return x - Math.pow(2, bitLength)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// 12. Otherwise, return x.
|
|
280
|
+
return x
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// https://webidl.spec.whatwg.org/#abstract-opdef-integerpart
|
|
284
|
+
webidl.util.IntegerPart = function (n) {
|
|
285
|
+
// 1. Let r be floor(abs(n)).
|
|
286
|
+
const r = Math.floor(Math.abs(n))
|
|
287
|
+
|
|
288
|
+
// 2. If n < 0, then return -1 × r.
|
|
289
|
+
if (n < 0) {
|
|
290
|
+
return -1 * r
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// 3. Otherwise, return r.
|
|
294
|
+
return r
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
webidl.util.Stringify = function (V) {
|
|
298
|
+
const type = webidl.util.Type(V)
|
|
299
|
+
|
|
300
|
+
switch (type) {
|
|
301
|
+
case SYMBOL:
|
|
302
|
+
return `Symbol(${V.description})`
|
|
303
|
+
case OBJECT:
|
|
304
|
+
return inspect(V)
|
|
305
|
+
case STRING:
|
|
306
|
+
return `"${V}"`
|
|
307
|
+
case BIGINT:
|
|
308
|
+
return `${V}n`
|
|
309
|
+
default:
|
|
310
|
+
return `${V}`
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
webidl.util.IsResizableArrayBuffer = function (V) {
|
|
315
|
+
if (types.isArrayBuffer(V)) {
|
|
316
|
+
return V.resizable
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (types.isSharedArrayBuffer(V)) {
|
|
320
|
+
return V.growable
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
throw webidl.errors.exception({
|
|
324
|
+
header: 'IsResizableArrayBuffer',
|
|
325
|
+
message: `"${webidl.util.Stringify(V)}" is not an array buffer.`
|
|
326
|
+
})
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
webidl.util.HasFlag = function (flags, attributes) {
|
|
330
|
+
return typeof flags === 'number' && (flags & attributes) === attributes
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// https://webidl.spec.whatwg.org/#es-sequence
|
|
334
|
+
webidl.sequenceConverter = function (converter) {
|
|
335
|
+
return (V, prefix, argument, Iterable) => {
|
|
336
|
+
// 1. If Type(V) is not Object, throw a TypeError.
|
|
337
|
+
if (webidl.util.Type(V) !== OBJECT) {
|
|
338
|
+
throw webidl.errors.exception({
|
|
339
|
+
header: prefix,
|
|
340
|
+
message: `${argument} (${webidl.util.Stringify(V)}) is not iterable.`
|
|
341
|
+
})
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// 2. Let method be ? GetMethod(V, @@iterator).
|
|
345
|
+
/** @type {Generator} */
|
|
346
|
+
const method = typeof Iterable === 'function' ? Iterable() : V?.[Symbol.iterator]?.()
|
|
347
|
+
const seq = []
|
|
348
|
+
let index = 0
|
|
349
|
+
|
|
350
|
+
// 3. If method is undefined, throw a TypeError.
|
|
351
|
+
if (
|
|
352
|
+
method === undefined ||
|
|
353
|
+
typeof method.next !== 'function'
|
|
354
|
+
) {
|
|
355
|
+
throw webidl.errors.exception({
|
|
356
|
+
header: prefix,
|
|
357
|
+
message: `${argument} is not iterable.`
|
|
358
|
+
})
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// https://webidl.spec.whatwg.org/#create-sequence-from-iterable
|
|
362
|
+
while (true) {
|
|
363
|
+
const { done, value } = method.next()
|
|
364
|
+
|
|
365
|
+
if (done) {
|
|
366
|
+
break
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
seq.push(converter(value, prefix, `${argument}[${index++}]`))
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return seq
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// https://webidl.spec.whatwg.org/#es-to-record
|
|
377
|
+
webidl.recordConverter = function (keyConverter, valueConverter) {
|
|
378
|
+
return (O, prefix, argument) => {
|
|
379
|
+
// 1. If Type(O) is not Object, throw a TypeError.
|
|
380
|
+
if (webidl.util.Type(O) !== OBJECT) {
|
|
381
|
+
throw webidl.errors.exception({
|
|
382
|
+
header: prefix,
|
|
383
|
+
message: `${argument} ("${webidl.util.TypeValueToString(O)}") is not an Object.`
|
|
384
|
+
})
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// 2. Let result be a new empty instance of record<K, V>.
|
|
388
|
+
const result = {}
|
|
389
|
+
|
|
390
|
+
if (!types.isProxy(O)) {
|
|
391
|
+
// 1. Let desc be ? O.[[GetOwnProperty]](key).
|
|
392
|
+
const keys = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)]
|
|
393
|
+
|
|
394
|
+
for (const key of keys) {
|
|
395
|
+
const keyName = webidl.util.Stringify(key)
|
|
396
|
+
|
|
397
|
+
// 1. Let typedKey be key converted to an IDL value of type K.
|
|
398
|
+
const typedKey = keyConverter(key, prefix, `Key ${keyName} in ${argument}`)
|
|
399
|
+
|
|
400
|
+
// 2. Let value be ? Get(O, key).
|
|
401
|
+
// 3. Let typedValue be value converted to an IDL value of type V.
|
|
402
|
+
const typedValue = valueConverter(O[key], prefix, `${argument}[${keyName}]`)
|
|
403
|
+
|
|
404
|
+
// 4. Set result[typedKey] to typedValue.
|
|
405
|
+
result[typedKey] = typedValue
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// 5. Return result.
|
|
409
|
+
return result
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// 3. Let keys be ? O.[[OwnPropertyKeys]]().
|
|
413
|
+
const keys = Reflect.ownKeys(O)
|
|
414
|
+
|
|
415
|
+
// 4. For each key of keys.
|
|
416
|
+
for (const key of keys) {
|
|
417
|
+
// 1. Let desc be ? O.[[GetOwnProperty]](key).
|
|
418
|
+
const desc = Reflect.getOwnPropertyDescriptor(O, key)
|
|
419
|
+
|
|
420
|
+
// 2. If desc is not undefined and desc.[[Enumerable]] is true:
|
|
421
|
+
if (desc?.enumerable) {
|
|
422
|
+
// 1. Let typedKey be key converted to an IDL value of type K.
|
|
423
|
+
const typedKey = keyConverter(key, prefix, argument)
|
|
424
|
+
|
|
425
|
+
// 2. Let value be ? Get(O, key).
|
|
426
|
+
// 3. Let typedValue be value converted to an IDL value of type V.
|
|
427
|
+
const typedValue = valueConverter(O[key], prefix, argument)
|
|
428
|
+
|
|
429
|
+
// 4. Set result[typedKey] to typedValue.
|
|
430
|
+
result[typedKey] = typedValue
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// 5. Return result.
|
|
435
|
+
return result
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
webidl.interfaceConverter = function (TypeCheck, name) {
|
|
440
|
+
return (V, prefix, argument) => {
|
|
441
|
+
if (!TypeCheck(V)) {
|
|
442
|
+
throw webidl.errors.exception({
|
|
443
|
+
header: prefix,
|
|
444
|
+
message: `Expected ${argument} ("${webidl.util.Stringify(V)}") to be an instance of ${name}.`
|
|
445
|
+
})
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return V
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
webidl.dictionaryConverter = function (converters) {
|
|
453
|
+
// "For each dictionary member member declared on dictionary, in lexicographical order:"
|
|
454
|
+
converters.sort((a, b) => (a.key > b.key) - (a.key < b.key))
|
|
455
|
+
|
|
456
|
+
return (dictionary, prefix, argument) => {
|
|
457
|
+
const dict = {}
|
|
458
|
+
|
|
459
|
+
if (dictionary != null && webidl.util.Type(dictionary) !== OBJECT) {
|
|
460
|
+
throw webidl.errors.exception({
|
|
461
|
+
header: prefix,
|
|
462
|
+
message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`
|
|
463
|
+
})
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
for (const options of converters) {
|
|
467
|
+
const { key, defaultValue, required, converter } = options
|
|
468
|
+
|
|
469
|
+
if (required === true) {
|
|
470
|
+
if (dictionary == null || !Object.hasOwn(dictionary, key)) {
|
|
471
|
+
throw webidl.errors.exception({
|
|
472
|
+
header: prefix,
|
|
473
|
+
message: `Missing required key "${key}".`
|
|
474
|
+
})
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
let value = dictionary?.[key]
|
|
479
|
+
const hasDefault = defaultValue !== undefined
|
|
480
|
+
|
|
481
|
+
// Only use defaultValue if value is undefined and
|
|
482
|
+
// a defaultValue options was provided.
|
|
483
|
+
if (hasDefault && value === undefined) {
|
|
484
|
+
value = defaultValue()
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// A key can be optional and have no default value.
|
|
488
|
+
// When this happens, do not perform a conversion,
|
|
489
|
+
// and do not assign the key a value.
|
|
490
|
+
if (required || hasDefault || value !== undefined) {
|
|
491
|
+
value = converter(value, prefix, `${argument}.${key}`)
|
|
492
|
+
|
|
493
|
+
if (
|
|
494
|
+
options.allowedValues &&
|
|
495
|
+
!options.allowedValues.includes(value)
|
|
496
|
+
) {
|
|
497
|
+
throw webidl.errors.exception({
|
|
498
|
+
header: prefix,
|
|
499
|
+
message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`
|
|
500
|
+
})
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
dict[key] = value
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return dict
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
webidl.nullableConverter = function (converter) {
|
|
512
|
+
return (V, prefix, argument) => {
|
|
513
|
+
if (V === null) {
|
|
514
|
+
return V
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
return converter(V, prefix, argument)
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @param {*} value
|
|
523
|
+
* @returns {boolean}
|
|
524
|
+
*/
|
|
525
|
+
webidl.is.USVString = function (value) {
|
|
526
|
+
return (
|
|
527
|
+
typeof value === 'string' &&
|
|
528
|
+
value.isWellFormed()
|
|
529
|
+
)
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
webidl.is.ReadableStream = webidl.util.MakeTypeAssertion(ReadableStream)
|
|
533
|
+
webidl.is.Blob = webidl.util.MakeTypeAssertion(Blob)
|
|
534
|
+
webidl.is.URLSearchParams = webidl.util.MakeTypeAssertion(URLSearchParams)
|
|
535
|
+
webidl.is.File = webidl.util.MakeTypeAssertion(File)
|
|
536
|
+
webidl.is.URL = webidl.util.MakeTypeAssertion(URL)
|
|
537
|
+
webidl.is.AbortSignal = webidl.util.MakeTypeAssertion(AbortSignal)
|
|
538
|
+
webidl.is.MessagePort = webidl.util.MakeTypeAssertion(MessagePort)
|
|
539
|
+
|
|
540
|
+
webidl.is.BufferSource = function (V) {
|
|
541
|
+
return types.isArrayBuffer(V) || (
|
|
542
|
+
ArrayBuffer.isView(V) &&
|
|
543
|
+
types.isArrayBuffer(V.buffer)
|
|
544
|
+
)
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
// https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy
|
|
548
|
+
webidl.util.getCopyOfBytesHeldByBufferSource = function (bufferSource) {
|
|
549
|
+
// 1. Let jsBufferSource be the result of converting bufferSource to a JavaScript value.
|
|
550
|
+
const jsBufferSource = bufferSource
|
|
551
|
+
|
|
552
|
+
// 2. Let jsArrayBuffer be jsBufferSource.
|
|
553
|
+
let jsArrayBuffer = jsBufferSource
|
|
554
|
+
|
|
555
|
+
// 3. Let offset be 0.
|
|
556
|
+
let offset = 0
|
|
557
|
+
|
|
558
|
+
// 4. Let length be 0.
|
|
559
|
+
let length = 0
|
|
560
|
+
|
|
561
|
+
// 5. If jsBufferSource has a [[ViewedArrayBuffer]] internal slot, then:
|
|
562
|
+
if (types.isTypedArray(jsBufferSource) || types.isDataView(jsBufferSource)) {
|
|
563
|
+
// 5.1. Set jsArrayBuffer to jsBufferSource.[[ViewedArrayBuffer]].
|
|
564
|
+
jsArrayBuffer = jsBufferSource.buffer
|
|
565
|
+
|
|
566
|
+
// 5.2. Set offset to jsBufferSource.[[ByteOffset]].
|
|
567
|
+
offset = jsBufferSource.byteOffset
|
|
568
|
+
|
|
569
|
+
// 5.3. Set length to jsBufferSource.[[ByteLength]].
|
|
570
|
+
length = jsBufferSource.byteLength
|
|
571
|
+
} else {
|
|
572
|
+
// 6. Otherwise:
|
|
573
|
+
|
|
574
|
+
// 6.1. Assert: jsBufferSource is an ArrayBuffer or SharedArrayBuffer object.
|
|
575
|
+
assert(types.isAnyArrayBuffer(jsBufferSource))
|
|
576
|
+
|
|
577
|
+
// 6.2. Set length to jsBufferSource.[[ArrayBufferByteLength]].
|
|
578
|
+
length = jsBufferSource.byteLength
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// 7. If IsDetachedBuffer(jsArrayBuffer) is true, then return the empty byte sequence.
|
|
582
|
+
if (jsArrayBuffer.detached) {
|
|
583
|
+
return new Uint8Array(0)
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// 8. Let bytes be a new byte sequence of length equal to length.
|
|
587
|
+
const bytes = new Uint8Array(length)
|
|
588
|
+
|
|
589
|
+
// 9. For i in the range offset to offset + length − 1, inclusive,
|
|
590
|
+
// set bytes[i − offset] to GetValueFromBuffer(jsArrayBuffer, i, Uint8, true, Unordered).
|
|
591
|
+
const view = new Uint8Array(jsArrayBuffer, offset, length)
|
|
592
|
+
bytes.set(view)
|
|
593
|
+
|
|
594
|
+
// 10. Return bytes.
|
|
595
|
+
return bytes
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// https://webidl.spec.whatwg.org/#es-DOMString
|
|
599
|
+
webidl.converters.DOMString = function (V, prefix, argument, flags) {
|
|
600
|
+
// 1. If V is null and the conversion is to an IDL type
|
|
601
|
+
// associated with the [LegacyNullToEmptyString]
|
|
602
|
+
// extended attribute, then return the DOMString value
|
|
603
|
+
// that represents the empty string.
|
|
604
|
+
if (V === null && webidl.util.HasFlag(flags, webidl.attributes.LegacyNullToEmptyString)) {
|
|
605
|
+
return ''
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// 2. Let x be ? ToString(V).
|
|
609
|
+
if (typeof V === 'symbol') {
|
|
610
|
+
throw webidl.errors.exception({
|
|
611
|
+
header: prefix,
|
|
612
|
+
message: `${argument} is a symbol, which cannot be converted to a DOMString.`
|
|
613
|
+
})
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// 3. Return the IDL DOMString value that represents the
|
|
617
|
+
// same sequence of code units as the one the
|
|
618
|
+
// ECMAScript String value x represents.
|
|
619
|
+
return String(V)
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
// https://webidl.spec.whatwg.org/#es-ByteString
|
|
623
|
+
webidl.converters.ByteString = function (V, prefix, argument) {
|
|
624
|
+
// 1. Let x be ? ToString(V).
|
|
625
|
+
if (typeof V === 'symbol') {
|
|
626
|
+
throw webidl.errors.exception({
|
|
627
|
+
header: prefix,
|
|
628
|
+
message: `${argument} is a symbol, which cannot be converted to a ByteString.`
|
|
629
|
+
})
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const x = String(V)
|
|
633
|
+
|
|
634
|
+
// 2. If the value of any element of x is greater than
|
|
635
|
+
// 255, then throw a TypeError.
|
|
636
|
+
for (let index = 0; index < x.length; index++) {
|
|
637
|
+
if (x.charCodeAt(index) > 255) {
|
|
638
|
+
throw new TypeError(
|
|
639
|
+
'Cannot convert argument to a ByteString because the character at ' +
|
|
640
|
+
`index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`
|
|
641
|
+
)
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
// 3. Return an IDL ByteString value whose length is the
|
|
646
|
+
// length of x, and where the value of each element is
|
|
647
|
+
// the value of the corresponding element of x.
|
|
648
|
+
return x
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* @param {unknown} value
|
|
653
|
+
* @returns {string}
|
|
654
|
+
* @see https://webidl.spec.whatwg.org/#es-USVString
|
|
655
|
+
*/
|
|
656
|
+
webidl.converters.USVString = function (value) {
|
|
657
|
+
// TODO: rewrite this so we can control the errors thrown
|
|
658
|
+
if (typeof value === 'string') {
|
|
659
|
+
return value.toWellFormed()
|
|
660
|
+
}
|
|
661
|
+
return `${value}`.toWellFormed()
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
// https://webidl.spec.whatwg.org/#es-boolean
|
|
665
|
+
webidl.converters.boolean = function (V) {
|
|
666
|
+
// 1. Let x be the result of computing ToBoolean(V).
|
|
667
|
+
// https://262.ecma-international.org/10.0/index.html#table-10
|
|
668
|
+
const x = Boolean(V)
|
|
669
|
+
|
|
670
|
+
// 2. Return the IDL boolean value that is the one that represents
|
|
671
|
+
// the same truth value as the ECMAScript Boolean value x.
|
|
672
|
+
return x
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
// https://webidl.spec.whatwg.org/#es-any
|
|
676
|
+
webidl.converters.any = function (V) {
|
|
677
|
+
return V
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
// https://webidl.spec.whatwg.org/#es-long-long
|
|
681
|
+
webidl.converters['long long'] = function (V, prefix, argument) {
|
|
682
|
+
// 1. Let x be ? ConvertToInt(V, 64, "signed").
|
|
683
|
+
const x = webidl.util.ConvertToInt(V, 64, 'signed', 0, prefix, argument)
|
|
684
|
+
|
|
685
|
+
// 2. Return the IDL long long value that represents
|
|
686
|
+
// the same numeric value as x.
|
|
687
|
+
return x
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
// https://webidl.spec.whatwg.org/#es-unsigned-long-long
|
|
691
|
+
webidl.converters['unsigned long long'] = function (V, prefix, argument) {
|
|
692
|
+
// 1. Let x be ? ConvertToInt(V, 64, "unsigned").
|
|
693
|
+
const x = webidl.util.ConvertToInt(V, 64, 'unsigned', 0, prefix, argument)
|
|
694
|
+
|
|
695
|
+
// 2. Return the IDL unsigned long long value that
|
|
696
|
+
// represents the same numeric value as x.
|
|
697
|
+
return x
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
// https://webidl.spec.whatwg.org/#es-unsigned-long
|
|
701
|
+
webidl.converters['unsigned long'] = function (V, prefix, argument) {
|
|
702
|
+
// 1. Let x be ? ConvertToInt(V, 32, "unsigned").
|
|
703
|
+
const x = webidl.util.ConvertToInt(V, 32, 'unsigned', 0, prefix, argument)
|
|
704
|
+
|
|
705
|
+
// 2. Return the IDL unsigned long value that
|
|
706
|
+
// represents the same numeric value as x.
|
|
707
|
+
return x
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
// https://webidl.spec.whatwg.org/#es-unsigned-short
|
|
711
|
+
webidl.converters['unsigned short'] = function (V, prefix, argument, flags) {
|
|
712
|
+
// 1. Let x be ? ConvertToInt(V, 16, "unsigned").
|
|
713
|
+
const x = webidl.util.ConvertToInt(V, 16, 'unsigned', flags, prefix, argument)
|
|
714
|
+
|
|
715
|
+
// 2. Return the IDL unsigned short value that represents
|
|
716
|
+
// the same numeric value as x.
|
|
717
|
+
return x
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
// https://webidl.spec.whatwg.org/#idl-ArrayBuffer
|
|
721
|
+
webidl.converters.ArrayBuffer = function (V, prefix, argument, flags) {
|
|
722
|
+
// 1. If V is not an Object, or V does not have an
|
|
723
|
+
// [[ArrayBufferData]] internal slot, then throw a
|
|
724
|
+
// TypeError.
|
|
725
|
+
// 2. If IsSharedArrayBuffer(V) is true, then throw a
|
|
726
|
+
// TypeError.
|
|
727
|
+
// see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances
|
|
728
|
+
if (
|
|
729
|
+
webidl.util.Type(V) !== OBJECT ||
|
|
730
|
+
!types.isArrayBuffer(V)
|
|
731
|
+
) {
|
|
732
|
+
throw webidl.errors.conversionFailed({
|
|
733
|
+
prefix,
|
|
734
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
735
|
+
types: ['ArrayBuffer']
|
|
736
|
+
})
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
// 3. If the conversion is not to an IDL type associated
|
|
740
|
+
// with the [AllowResizable] extended attribute, and
|
|
741
|
+
// IsResizableArrayBuffer(V) is true, then throw a
|
|
742
|
+
// TypeError.
|
|
743
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V)) {
|
|
744
|
+
throw webidl.errors.exception({
|
|
745
|
+
header: prefix,
|
|
746
|
+
message: `${argument} cannot be a resizable ArrayBuffer.`
|
|
747
|
+
})
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
// 4. Return the IDL ArrayBuffer value that is a
|
|
751
|
+
// reference to the same object as V.
|
|
752
|
+
return V
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// https://webidl.spec.whatwg.org/#idl-SharedArrayBuffer
|
|
756
|
+
webidl.converters.SharedArrayBuffer = function (V, prefix, argument, flags) {
|
|
757
|
+
// 1. If V is not an Object, or V does not have an
|
|
758
|
+
// [[ArrayBufferData]] internal slot, then throw a
|
|
759
|
+
// TypeError.
|
|
760
|
+
// 2. If IsSharedArrayBuffer(V) is false, then throw a
|
|
761
|
+
// TypeError.
|
|
762
|
+
// see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances
|
|
763
|
+
if (
|
|
764
|
+
webidl.util.Type(V) !== OBJECT ||
|
|
765
|
+
!types.isSharedArrayBuffer(V)
|
|
766
|
+
) {
|
|
767
|
+
throw webidl.errors.conversionFailed({
|
|
768
|
+
prefix,
|
|
769
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
770
|
+
types: ['SharedArrayBuffer']
|
|
771
|
+
})
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// 3. If the conversion is not to an IDL type associated
|
|
775
|
+
// with the [AllowResizable] extended attribute, and
|
|
776
|
+
// IsResizableArrayBuffer(V) is true, then throw a
|
|
777
|
+
// TypeError.
|
|
778
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V)) {
|
|
779
|
+
throw webidl.errors.exception({
|
|
780
|
+
header: prefix,
|
|
781
|
+
message: `${argument} cannot be a resizable SharedArrayBuffer.`
|
|
782
|
+
})
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// 4. Return the IDL SharedArrayBuffer value that is a
|
|
786
|
+
// reference to the same object as V.
|
|
787
|
+
return V
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
// https://webidl.spec.whatwg.org/#dfn-typed-array-type
|
|
791
|
+
webidl.converters.TypedArray = function (V, T, prefix, argument, flags) {
|
|
792
|
+
// 1. Let T be the IDL type V is being converted to.
|
|
793
|
+
|
|
794
|
+
// 2. If Type(V) is not Object, or V does not have a
|
|
795
|
+
// [[TypedArrayName]] internal slot with a value
|
|
796
|
+
// equal to T’s name, then throw a TypeError.
|
|
797
|
+
if (
|
|
798
|
+
webidl.util.Type(V) !== OBJECT ||
|
|
799
|
+
!types.isTypedArray(V) ||
|
|
800
|
+
V.constructor.name !== T.name
|
|
801
|
+
) {
|
|
802
|
+
throw webidl.errors.conversionFailed({
|
|
803
|
+
prefix,
|
|
804
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
805
|
+
types: [T.name]
|
|
806
|
+
})
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
// 3. If the conversion is not to an IDL type associated
|
|
810
|
+
// with the [AllowShared] extended attribute, and
|
|
811
|
+
// IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is
|
|
812
|
+
// true, then throw a TypeError.
|
|
813
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
|
|
814
|
+
throw webidl.errors.exception({
|
|
815
|
+
header: prefix,
|
|
816
|
+
message: `${argument} cannot be a view on a shared array buffer.`
|
|
817
|
+
})
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// 4. If the conversion is not to an IDL type associated
|
|
821
|
+
// with the [AllowResizable] extended attribute, and
|
|
822
|
+
// IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
|
|
823
|
+
// true, then throw a TypeError.
|
|
824
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V.buffer)) {
|
|
825
|
+
throw webidl.errors.exception({
|
|
826
|
+
header: prefix,
|
|
827
|
+
message: `${argument} cannot be a view on a resizable array buffer.`
|
|
828
|
+
})
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// 5. Return the IDL value of type T that is a reference
|
|
832
|
+
// to the same object as V.
|
|
833
|
+
return V
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
// https://webidl.spec.whatwg.org/#idl-DataView
|
|
837
|
+
webidl.converters.DataView = function (V, prefix, argument, flags) {
|
|
838
|
+
// 1. If Type(V) is not Object, or V does not have a
|
|
839
|
+
// [[DataView]] internal slot, then throw a TypeError.
|
|
840
|
+
if (webidl.util.Type(V) !== OBJECT || !types.isDataView(V)) {
|
|
841
|
+
throw webidl.errors.conversionFailed({
|
|
842
|
+
prefix,
|
|
843
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
844
|
+
types: ['DataView']
|
|
845
|
+
})
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// 2. If the conversion is not to an IDL type associated
|
|
849
|
+
// with the [AllowShared] extended attribute, and
|
|
850
|
+
// IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,
|
|
851
|
+
// then throw a TypeError.
|
|
852
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
|
|
853
|
+
throw webidl.errors.exception({
|
|
854
|
+
header: prefix,
|
|
855
|
+
message: `${argument} cannot be a view on a shared array buffer.`
|
|
856
|
+
})
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// 3. If the conversion is not to an IDL type associated
|
|
860
|
+
// with the [AllowResizable] extended attribute, and
|
|
861
|
+
// IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
|
|
862
|
+
// true, then throw a TypeError.
|
|
863
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V.buffer)) {
|
|
864
|
+
throw webidl.errors.exception({
|
|
865
|
+
header: prefix,
|
|
866
|
+
message: `${argument} cannot be a view on a resizable array buffer.`
|
|
867
|
+
})
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
// 4. Return the IDL DataView value that is a reference
|
|
871
|
+
// to the same object as V.
|
|
872
|
+
return V
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
// https://webidl.spec.whatwg.org/#ArrayBufferView
|
|
876
|
+
webidl.converters.ArrayBufferView = function (V, prefix, argument, flags) {
|
|
877
|
+
if (
|
|
878
|
+
webidl.util.Type(V) !== OBJECT ||
|
|
879
|
+
!types.isArrayBufferView(V)
|
|
880
|
+
) {
|
|
881
|
+
throw webidl.errors.conversionFailed({
|
|
882
|
+
prefix,
|
|
883
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
884
|
+
types: ['ArrayBufferView']
|
|
885
|
+
})
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
|
|
889
|
+
throw webidl.errors.exception({
|
|
890
|
+
header: prefix,
|
|
891
|
+
message: `${argument} cannot be a view on a shared array buffer.`
|
|
892
|
+
})
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V.buffer)) {
|
|
896
|
+
throw webidl.errors.exception({
|
|
897
|
+
header: prefix,
|
|
898
|
+
message: `${argument} cannot be a view on a resizable array buffer.`
|
|
899
|
+
})
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
return V
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// https://webidl.spec.whatwg.org/#BufferSource
|
|
906
|
+
webidl.converters.BufferSource = function (V, prefix, argument, flags) {
|
|
907
|
+
if (types.isArrayBuffer(V)) {
|
|
908
|
+
return webidl.converters.ArrayBuffer(V, prefix, argument, flags)
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
if (types.isArrayBufferView(V)) {
|
|
912
|
+
flags &= ~webidl.attributes.AllowShared
|
|
913
|
+
|
|
914
|
+
return webidl.converters.ArrayBufferView(V, prefix, argument, flags)
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
// Make this explicit for easier debugging
|
|
918
|
+
if (types.isSharedArrayBuffer(V)) {
|
|
919
|
+
throw webidl.errors.exception({
|
|
920
|
+
header: prefix,
|
|
921
|
+
message: `${argument} cannot be a SharedArrayBuffer.`
|
|
922
|
+
})
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
throw webidl.errors.conversionFailed({
|
|
926
|
+
prefix,
|
|
927
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
928
|
+
types: ['ArrayBuffer', 'ArrayBufferView']
|
|
929
|
+
})
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
// https://webidl.spec.whatwg.org/#AllowSharedBufferSource
|
|
933
|
+
webidl.converters.AllowSharedBufferSource = function (V, prefix, argument, flags) {
|
|
934
|
+
if (types.isArrayBuffer(V)) {
|
|
935
|
+
return webidl.converters.ArrayBuffer(V, prefix, argument, flags)
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (types.isSharedArrayBuffer(V)) {
|
|
939
|
+
return webidl.converters.SharedArrayBuffer(V, prefix, argument, flags)
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (types.isArrayBufferView(V)) {
|
|
943
|
+
flags |= webidl.attributes.AllowShared
|
|
944
|
+
return webidl.converters.ArrayBufferView(V, prefix, argument, flags)
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
throw webidl.errors.conversionFailed({
|
|
948
|
+
prefix,
|
|
949
|
+
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
950
|
+
types: ['ArrayBuffer', 'SharedArrayBuffer', 'ArrayBufferView']
|
|
951
|
+
})
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
webidl.converters['sequence<ByteString>'] = webidl.sequenceConverter(
|
|
955
|
+
webidl.converters.ByteString
|
|
956
|
+
)
|
|
957
|
+
|
|
958
|
+
webidl.converters['sequence<sequence<ByteString>>'] = webidl.sequenceConverter(
|
|
959
|
+
webidl.converters['sequence<ByteString>']
|
|
960
|
+
)
|
|
961
|
+
|
|
962
|
+
webidl.converters['record<ByteString, ByteString>'] = webidl.recordConverter(
|
|
963
|
+
webidl.converters.ByteString,
|
|
964
|
+
webidl.converters.ByteString
|
|
965
|
+
)
|
|
966
|
+
|
|
967
|
+
webidl.converters.Blob = webidl.interfaceConverter(webidl.is.Blob, 'Blob')
|
|
968
|
+
|
|
969
|
+
webidl.converters.AbortSignal = webidl.interfaceConverter(
|
|
970
|
+
webidl.is.AbortSignal,
|
|
971
|
+
'AbortSignal'
|
|
972
|
+
)
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* [LegacyTreatNonObjectAsNull]
|
|
976
|
+
* callback EventHandlerNonNull = any (Event event);
|
|
977
|
+
* typedef EventHandlerNonNull? EventHandler;
|
|
978
|
+
* @param {*} V
|
|
979
|
+
*/
|
|
980
|
+
webidl.converters.EventHandlerNonNull = function (V) {
|
|
981
|
+
if (webidl.util.Type(V) !== OBJECT) {
|
|
982
|
+
return null
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
// [I]f the value is not an object, it will be converted to null, and if the value is not callable,
|
|
986
|
+
// it will be converted to a callback function value that does nothing when called.
|
|
987
|
+
if (typeof V === 'function') {
|
|
988
|
+
return V
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
return () => {}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
webidl.attributes = {
|
|
995
|
+
Clamp: 1 << 0,
|
|
996
|
+
EnforceRange: 1 << 1,
|
|
997
|
+
AllowShared: 1 << 2,
|
|
998
|
+
AllowResizable: 1 << 3,
|
|
999
|
+
LegacyNullToEmptyString: 1 << 4
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
module.exports = {
|
|
1003
|
+
webidl
|
|
1004
|
+
}
|