@relative-ci/core 5.3.1 → 5.3.2
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/lib/cjs/__/@actions/http-client/lib/index.js +2 -2
- package/lib/cjs/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@octokit/core/dist-src/index.js.map +1 -0
- package/lib/cjs/__/@octokit/core/dist-src/version.js.map +1 -0
- package/lib/cjs/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
- package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
- package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
- package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
- package/lib/cjs/__/@octokit/request/dist-bundle/index.js +200 -0
- package/lib/cjs/__/@octokit/request/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@octokit/request-error/dist-src/index.js.map +1 -0
- package/lib/cjs/__/before-after-hook/index.js.map +1 -0
- package/lib/cjs/__/before-after-hook/lib/add.js.map +1 -0
- package/lib/cjs/__/before-after-hook/lib/register.js.map +1 -0
- package/lib/cjs/__/before-after-hook/lib/remove.js.map +1 -0
- package/lib/cjs/__/cross-spawn/index.js +1 -1
- package/lib/cjs/__/env-ci/lib/git.js +1 -1
- package/lib/cjs/__/execa/index.js +149 -0
- package/lib/cjs/__/execa/index.js.map +1 -0
- package/lib/cjs/__/execa/lib/command.js.map +1 -0
- package/lib/cjs/__/execa/lib/error.js.map +1 -0
- package/lib/cjs/__/execa/lib/promise.js.map +1 -0
- package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
- package/lib/cjs/__/execa/lib/stream.js +35 -0
- package/lib/cjs/__/execa/lib/stream.js.map +1 -0
- package/lib/cjs/__/execa/lib/verbose.js +29 -0
- package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
- package/lib/cjs/__/fast-content-type-parse/index.js +1 -1
- package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
- package/lib/cjs/__/is-stream/index.js.map +1 -0
- package/lib/cjs/__/json-with-bigint/json-with-bigint.js +83 -23
- package/lib/cjs/__/json-with-bigint/json-with-bigint.js.map +1 -1
- package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
- package/lib/cjs/__/npm-run-path/index.js +63 -0
- package/lib/cjs/__/npm-run-path/index.js.map +1 -0
- package/lib/cjs/__/path-key/index.js +1 -1
- package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
- package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
- package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
- package/lib/cjs/__/tunnel/lib/tunnel.js +9 -9
- package/lib/cjs/__/tunnel/lib/tunnel.js.map +1 -1
- package/lib/cjs/__/undici/index.js +99 -85
- package/lib/cjs/__/undici/index.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/abort-signal.js +5 -2
- package/lib/cjs/__/undici/lib/api/abort-signal.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/api-connect.js +13 -7
- package/lib/cjs/__/undici/lib/api/api-connect.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/api-pipeline.js +10 -8
- package/lib/cjs/__/undici/lib/api/api-pipeline.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/api-request.js +63 -28
- package/lib/cjs/__/undici/lib/api/api-request.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/api-stream.js +14 -12
- package/lib/cjs/__/undici/lib/api/api-stream.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/api-upgrade.js +12 -9
- package/lib/cjs/__/undici/lib/api/api-upgrade.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/readable.js +147 -84
- package/lib/cjs/__/undici/lib/api/readable.js.map +1 -1
- package/lib/cjs/__/undici/lib/api/util.js +74 -27
- package/lib/cjs/__/undici/lib/api/util.js.map +1 -1
- package/lib/cjs/__/undici/lib/core/connect.js +83 -31
- package/lib/cjs/__/undici/lib/core/connect.js.map +1 -1
- package/lib/cjs/__/undici/lib/core/diagnostics.js +222 -0
- package/lib/cjs/__/undici/lib/core/diagnostics.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/errors.js +216 -21
- package/lib/cjs/__/undici/lib/core/errors.js.map +1 -1
- package/lib/cjs/__/undici/lib/core/request.js +116 -210
- package/lib/cjs/__/undici/lib/core/request.js.map +1 -1
- package/lib/cjs/__/undici/lib/core/symbols.js +10 -6
- package/lib/cjs/__/undici/lib/core/symbols.js.map +1 -1
- package/lib/cjs/__/undici/lib/core/tree.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/util.js +321 -123
- package/lib/cjs/__/undici/lib/core/util.js.map +1 -1
- package/lib/cjs/__/undici/lib/dispatcher/agent.js +150 -0
- package/lib/cjs/__/undici/lib/dispatcher/agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/client-h1.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/client-h2.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/client.js +651 -0
- package/lib/cjs/__/undici/lib/dispatcher/client.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/dispatcher-base.js +214 -0
- package/lib/cjs/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/dispatcher.js +83 -0
- package/lib/cjs/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/pool-base.js +211 -0
- package/lib/cjs/__/undici/lib/dispatcher/pool-base.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/pool.js +126 -0
- package/lib/cjs/__/undici/lib/dispatcher/pool.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/global.js +1 -1
- package/lib/cjs/__/undici/lib/global.js.map +1 -1
- package/lib/cjs/__/undici/lib/handler/decorator-handler.js.map +1 -0
- package/lib/cjs/__/undici/lib/handler/redirect-handler.js +237 -0
- package/lib/cjs/__/undici/lib/handler/redirect-handler.js.map +1 -0
- package/lib/cjs/__/undici/lib/handler/retry-handler.js.map +1 -0
- package/lib/cjs/__/undici/lib/interceptor/dns.js.map +1 -0
- package/lib/cjs/__/undici/lib/interceptor/dump.js.map +1 -0
- package/lib/cjs/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
- package/lib/cjs/__/undici/lib/interceptor/redirect.js.map +1 -0
- package/lib/cjs/__/undici/lib/interceptor/retry.js.map +1 -0
- package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js +10 -1
- package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -1
- package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js +10 -1
- package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/mock-agent.js +10 -21
- package/lib/cjs/__/undici/lib/mock/mock-agent.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/mock-client.js +4 -4
- package/lib/cjs/__/undici/lib/mock/mock-client.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/mock-errors.js +11 -0
- package/lib/cjs/__/undici/lib/mock/mock-errors.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/mock-interceptor.js +19 -18
- package/lib/cjs/__/undici/lib/mock/mock-interceptor.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/mock-pool.js +4 -4
- package/lib/cjs/__/undici/lib/mock/mock-pool.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/mock-utils.js +33 -17
- package/lib/cjs/__/undici/lib/mock/mock-utils.js.map +1 -1
- package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js +4 -1
- package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -1
- package/lib/cjs/__/undici/lib/util/timers.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cache/cache.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cache/cachestorage.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cache/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cache/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cookies/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cookies/index.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cookies/parse.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/cookies/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/eventsource/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/body.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/data-url.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/file.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/formdata.js +275 -0
- package/lib/cjs/__/undici/lib/web/fetch/formdata.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/global.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/headers.js +709 -0
- package/lib/cjs/__/undici/lib/web/fetch/headers.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/index.js +2235 -0
- package/lib/cjs/__/undici/lib/web/fetch/index.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/request.js +1069 -0
- package/lib/cjs/__/undici/lib/web/fetch/request.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/response.js +640 -0
- package/lib/cjs/__/undici/lib/web/fetch/response.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/util.js +1662 -0
- package/lib/cjs/__/undici/lib/web/fetch/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fetch/webidl.js +716 -0
- package/lib/cjs/__/undici/lib/web/fetch/webidl.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fileapi/encoding.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fileapi/filereader.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fileapi/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/fileapi/util.js +417 -0
- package/lib/cjs/__/undici/lib/web/fileapi/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/connection.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/events.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/frame.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/permessage-deflate.js +120 -0
- package/lib/cjs/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/receiver.js +518 -0
- package/lib/cjs/__/undici/lib/web/websocket/receiver.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/sender.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/web/websocket/websocket.js +622 -0
- package/lib/cjs/__/undici/lib/web/websocket/websocket.js.map +1 -0
- package/lib/cjs/__/universal-user-agent/index.js.map +1 -0
- package/lib/cjs/_virtual/index10.js +2 -2
- package/lib/cjs/_virtual/index11.js +2 -2
- package/lib/cjs/_virtual/index13.js +2 -2
- package/lib/cjs/_virtual/index14.js +2 -2
- package/lib/cjs/_virtual/index2.js +1 -1
- package/lib/cjs/_virtual/index3.js +1 -1
- package/lib/cjs/_virtual/index4.js +1 -1
- package/lib/cjs/_virtual/index8.js +4 -2
- package/lib/cjs/_virtual/index8.js.map +1 -1
- package/lib/cjs/_virtual/index9.js +2 -4
- package/lib/cjs/_virtual/index9.js.map +1 -1
- package/lib/cjs/env/load.js +1 -1
- package/lib/cjs/ingest/ingest.js +3 -3
- package/lib/esm/__/@actions/http-client/lib/index.js +2 -2
- package/lib/esm/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@octokit/core/dist-src/index.js.map +1 -0
- package/lib/esm/__/@octokit/core/dist-src/version.js.map +1 -0
- package/lib/esm/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
- package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
- package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
- package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
- package/lib/esm/__/@octokit/request/dist-bundle/index.js +198 -0
- package/lib/esm/__/@octokit/request/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@octokit/request-error/dist-src/index.js.map +1 -0
- package/lib/esm/__/before-after-hook/index.js.map +1 -0
- package/lib/esm/__/before-after-hook/lib/add.js.map +1 -0
- package/lib/esm/__/before-after-hook/lib/register.js.map +1 -0
- package/lib/esm/__/before-after-hook/lib/remove.js.map +1 -0
- package/lib/esm/__/cross-spawn/index.js +1 -1
- package/lib/esm/__/env-ci/lib/git.js +1 -1
- package/lib/esm/__/execa/index.js +141 -0
- package/lib/esm/__/execa/index.js.map +1 -0
- package/lib/esm/__/execa/lib/command.js.map +1 -0
- package/lib/esm/__/execa/lib/error.js.map +1 -0
- package/lib/esm/__/execa/lib/promise.js.map +1 -0
- package/lib/esm/__/execa/lib/stdio.js.map +1 -0
- package/lib/esm/__/execa/lib/stream.js +33 -0
- package/lib/esm/__/execa/lib/stream.js.map +1 -0
- package/lib/esm/__/execa/lib/verbose.js.map +1 -0
- package/lib/esm/__/fast-content-type-parse/index.js +1 -1
- package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
- package/lib/esm/__/is-stream/index.js.map +1 -0
- package/lib/esm/__/json-with-bigint/json-with-bigint.js +83 -23
- package/lib/esm/__/json-with-bigint/json-with-bigint.js.map +1 -1
- package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
- package/lib/esm/__/npm-run-path/index.js +55 -0
- package/lib/esm/__/npm-run-path/index.js.map +1 -0
- package/lib/esm/__/path-key/index.js +1 -1
- package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
- package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
- package/lib/esm/__/strip-final-newline/index.js.map +1 -0
- package/lib/esm/__/tunnel/lib/tunnel.js +6 -6
- package/lib/esm/__/tunnel/lib/tunnel.js.map +1 -1
- package/lib/esm/__/undici/index.js +89 -79
- package/lib/esm/__/undici/index.js.map +1 -1
- package/lib/esm/__/undici/lib/api/abort-signal.js +5 -2
- package/lib/esm/__/undici/lib/api/abort-signal.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-connect.js +11 -6
- package/lib/esm/__/undici/lib/api/api-connect.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-pipeline.js +9 -7
- package/lib/esm/__/undici/lib/api/api-pipeline.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-request.js +61 -27
- package/lib/esm/__/undici/lib/api/api-request.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-stream.js +12 -11
- package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-upgrade.js +11 -8
- package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -1
- package/lib/esm/__/undici/lib/api/readable.js +147 -84
- package/lib/esm/__/undici/lib/api/readable.js.map +1 -1
- package/lib/esm/__/undici/lib/api/util.js +74 -27
- package/lib/esm/__/undici/lib/api/util.js.map +1 -1
- package/lib/esm/__/undici/lib/core/connect.js +83 -31
- package/lib/esm/__/undici/lib/core/connect.js.map +1 -1
- package/lib/esm/__/undici/lib/core/diagnostics.js +215 -0
- package/lib/esm/__/undici/lib/core/diagnostics.js.map +1 -0
- package/lib/esm/__/undici/lib/core/errors.js +216 -21
- package/lib/esm/__/undici/lib/core/errors.js.map +1 -1
- package/lib/esm/__/undici/lib/core/request.js +105 -199
- package/lib/esm/__/undici/lib/core/request.js.map +1 -1
- package/lib/esm/__/undici/lib/core/symbols.js +10 -6
- package/lib/esm/__/undici/lib/core/symbols.js.map +1 -1
- package/lib/esm/__/undici/lib/core/tree.js.map +1 -0
- package/lib/esm/__/undici/lib/core/util.js +318 -120
- package/lib/esm/__/undici/lib/core/util.js.map +1 -1
- package/lib/esm/__/undici/lib/dispatcher/agent.js +148 -0
- package/lib/esm/__/undici/lib/dispatcher/agent.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/client-h1.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/client-h2.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/client.js +643 -0
- package/lib/esm/__/undici/lib/dispatcher/client.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/dispatcher-base.js +212 -0
- package/lib/esm/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/dispatcher.js +77 -0
- package/lib/esm/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/pool-base.js +209 -0
- package/lib/esm/__/undici/lib/dispatcher/pool-base.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/pool.js +124 -0
- package/lib/esm/__/undici/lib/dispatcher/pool.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
- package/lib/esm/__/undici/lib/global.js +1 -1
- package/lib/esm/__/undici/lib/global.js.map +1 -1
- package/lib/esm/__/undici/lib/handler/decorator-handler.js.map +1 -0
- package/lib/esm/__/undici/lib/handler/redirect-handler.js +230 -0
- package/lib/esm/__/undici/lib/handler/redirect-handler.js.map +1 -0
- package/lib/esm/__/undici/lib/handler/retry-handler.js.map +1 -0
- package/lib/esm/__/undici/lib/interceptor/dns.js.map +1 -0
- package/lib/esm/__/undici/lib/interceptor/dump.js.map +1 -0
- package/lib/esm/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
- package/lib/esm/__/undici/lib/interceptor/redirect.js.map +1 -0
- package/lib/esm/__/undici/lib/interceptor/retry.js.map +1 -0
- package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js +6 -1
- package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -1
- package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js +6 -1
- package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/mock-agent.js +10 -21
- package/lib/esm/__/undici/lib/mock/mock-agent.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/mock-client.js +3 -3
- package/lib/esm/__/undici/lib/mock/mock-client.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/mock-errors.js +11 -0
- package/lib/esm/__/undici/lib/mock/mock-errors.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/mock-interceptor.js +19 -18
- package/lib/esm/__/undici/lib/mock/mock-interceptor.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/mock-pool.js +3 -3
- package/lib/esm/__/undici/lib/mock/mock-pool.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/mock-utils.js +32 -16
- package/lib/esm/__/undici/lib/mock/mock-utils.js.map +1 -1
- package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js +4 -1
- package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -1
- package/lib/esm/__/undici/lib/util/timers.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cache/cache.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cache/cachestorage.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cache/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cache/util.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cookies/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cookies/index.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cookies/parse.js.map +1 -0
- package/lib/esm/__/undici/lib/web/cookies/util.js.map +1 -0
- package/lib/esm/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
- package/lib/esm/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
- package/lib/esm/__/undici/lib/web/eventsource/util.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/body.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/data-url.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/file.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/formdata.js +268 -0
- package/lib/esm/__/undici/lib/web/fetch/formdata.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/global.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/headers.js +702 -0
- package/lib/esm/__/undici/lib/web/fetch/headers.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/index.js +2224 -0
- package/lib/esm/__/undici/lib/web/fetch/index.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/request.js +1061 -0
- package/lib/esm/__/undici/lib/web/fetch/request.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/response.js +633 -0
- package/lib/esm/__/undici/lib/web/fetch/response.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/util.js +1652 -0
- package/lib/esm/__/undici/lib/web/fetch/util.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fetch/webidl.js +709 -0
- package/lib/esm/__/undici/lib/web/fetch/webidl.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fileapi/encoding.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fileapi/filereader.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fileapi/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/web/fileapi/util.js +409 -0
- package/lib/esm/__/undici/lib/web/fileapi/util.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/connection.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/events.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/frame.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/permessage-deflate.js +114 -0
- package/lib/esm/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/receiver.js +511 -0
- package/lib/esm/__/undici/lib/web/websocket/receiver.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/sender.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/util.js.map +1 -0
- package/lib/esm/__/undici/lib/web/websocket/websocket.js +616 -0
- package/lib/esm/__/undici/lib/web/websocket/websocket.js.map +1 -0
- package/lib/esm/__/universal-user-agent/index.js.map +1 -0
- package/lib/esm/_virtual/index10.js +4 -2
- package/lib/esm/_virtual/index10.js.map +1 -1
- package/lib/esm/_virtual/index11.js +2 -2
- package/lib/esm/_virtual/index13.js +2 -2
- package/lib/esm/_virtual/index14.js +2 -2
- package/lib/esm/_virtual/index2.js +1 -1
- package/lib/esm/_virtual/index3.js +1 -1
- package/lib/esm/_virtual/index4.js +1 -1
- package/lib/esm/_virtual/index8.js +2 -2
- package/lib/esm/_virtual/index9.js +2 -4
- package/lib/esm/_virtual/index9.js.map +1 -1
- package/lib/esm/env/load.js +1 -1
- package/package.json +12 -12
- package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js +0 -200
- package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
- package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/index.js +0 -226
- package/lib/cjs/__/@actions/http-client/__/undici/index.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js +0 -73
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js +0 -131
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +0 -276
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js +0 -238
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js +0 -246
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +0 -131
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js +0 -25
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js +0 -405
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js +0 -114
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js +0 -266
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js +0 -130
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js +0 -222
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js +0 -437
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js +0 -427
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js +0 -80
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js +0 -755
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +0 -149
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js +0 -650
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +0 -206
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +0 -83
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +0 -211
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +0 -126
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js +0 -47
- package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +0 -237
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js +0 -288
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +0 -23
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +0 -23
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js +0 -28
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +0 -183
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js +0 -83
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +0 -42
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +0 -224
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +0 -83
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +0 -35
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +0 -390
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +0 -63
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +0 -41
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +0 -275
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +0 -709
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js +0 -2235
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js +0 -1069
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js +0 -640
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js +0 -1662
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +0 -716
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +0 -417
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +0 -138
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +0 -454
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +0 -1
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +0 -618
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js +0 -236
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +0 -122
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js +0 -33
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js +0 -248
- package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/main.js +0 -109
- package/lib/cjs/__/@fastify/busboy/lib/main.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js +0 -331
- package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js +0 -206
- package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js +0 -66
- package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js +0 -26
- package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js +0 -126
- package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js +0 -28
- package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js.map +0 -1
- package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js +0 -211
- package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/index.js +0 -149
- package/lib/cjs/__/env-ci/__/execa/index.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/lib/command.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/lib/error.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/lib/promise.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/lib/stdio.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/lib/stream.js +0 -35
- package/lib/cjs/__/env-ci/__/execa/lib/stream.js.map +0 -1
- package/lib/cjs/__/env-ci/__/execa/lib/verbose.js +0 -29
- package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +0 -1
- package/lib/cjs/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
- package/lib/cjs/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
- package/lib/cjs/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
- package/lib/cjs/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
- package/lib/cjs/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
- package/lib/cjs/__/env-ci/__/is-stream/index.js.map +0 -1
- package/lib/cjs/__/env-ci/__/npm-run-path/index.js +0 -63
- package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +0 -1
- package/lib/cjs/__/env-ci/__/path-key/index.js.map +0 -1
- package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
- package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
- package/lib/cjs/__/env-ci/__/strip-final-newline/index.js.map +0 -1
- package/lib/cjs/__/undici/lib/agent.js +0 -169
- package/lib/cjs/__/undici/lib/agent.js.map +0 -1
- package/lib/cjs/__/undici/lib/balanced-pool.js +0 -208
- package/lib/cjs/__/undici/lib/balanced-pool.js.map +0 -1
- package/lib/cjs/__/undici/lib/cache/cache.js +0 -867
- package/lib/cjs/__/undici/lib/cache/cache.js.map +0 -1
- package/lib/cjs/__/undici/lib/cache/cachestorage.js +0 -161
- package/lib/cjs/__/undici/lib/cache/cachestorage.js.map +0 -1
- package/lib/cjs/__/undici/lib/cache/symbols.js +0 -19
- package/lib/cjs/__/undici/lib/cache/symbols.js.map +0 -1
- package/lib/cjs/__/undici/lib/cache/util.js +0 -69
- package/lib/cjs/__/undici/lib/cache/util.js.map +0 -1
- package/lib/cjs/__/undici/lib/client.js +0 -2314
- package/lib/cjs/__/undici/lib/client.js.map +0 -1
- package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js +0 -63
- package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js.map +0 -1
- package/lib/cjs/__/undici/lib/cookies/constants.js +0 -24
- package/lib/cjs/__/undici/lib/cookies/constants.js.map +0 -1
- package/lib/cjs/__/undici/lib/cookies/index.js +0 -200
- package/lib/cjs/__/undici/lib/cookies/index.js.map +0 -1
- package/lib/cjs/__/undici/lib/cookies/parse.js +0 -338
- package/lib/cjs/__/undici/lib/cookies/parse.js.map +0 -1
- package/lib/cjs/__/undici/lib/cookies/util.js +0 -286
- package/lib/cjs/__/undici/lib/cookies/util.js.map +0 -1
- package/lib/cjs/__/undici/lib/dispatcher-base.js +0 -208
- package/lib/cjs/__/undici/lib/dispatcher-base.js.map +0 -1
- package/lib/cjs/__/undici/lib/dispatcher.js +0 -37
- package/lib/cjs/__/undici/lib/dispatcher.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/body.js +0 -647
- package/lib/cjs/__/undici/lib/fetch/body.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/constants.js +0 -169
- package/lib/cjs/__/undici/lib/fetch/constants.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/dataURL.js +0 -649
- package/lib/cjs/__/undici/lib/fetch/dataURL.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/file.js +0 -369
- package/lib/cjs/__/undici/lib/fetch/file.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/formdata.js +0 -287
- package/lib/cjs/__/undici/lib/fetch/formdata.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/global.js +0 -52
- package/lib/cjs/__/undici/lib/fetch/global.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/headers.js +0 -609
- package/lib/cjs/__/undici/lib/fetch/headers.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/index.js +0 -2114
- package/lib/cjs/__/undici/lib/fetch/index.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/request.js +0 -979
- package/lib/cjs/__/undici/lib/fetch/request.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/response.js +0 -604
- package/lib/cjs/__/undici/lib/fetch/response.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/symbols.js +0 -22
- package/lib/cjs/__/undici/lib/fetch/symbols.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/util.js +0 -1170
- package/lib/cjs/__/undici/lib/fetch/util.js.map +0 -1
- package/lib/cjs/__/undici/lib/fetch/webidl.js +0 -665
- package/lib/cjs/__/undici/lib/fetch/webidl.js.map +0 -1
- package/lib/cjs/__/undici/lib/fileapi/encoding.js +0 -302
- package/lib/cjs/__/undici/lib/fileapi/encoding.js.map +0 -1
- package/lib/cjs/__/undici/lib/fileapi/filereader.js +0 -361
- package/lib/cjs/__/undici/lib/fileapi/filereader.js.map +0 -1
- package/lib/cjs/__/undici/lib/fileapi/progressevent.js +0 -92
- package/lib/cjs/__/undici/lib/fileapi/progressevent.js.map +0 -1
- package/lib/cjs/__/undici/lib/fileapi/symbols.js +0 -22
- package/lib/cjs/__/undici/lib/fileapi/symbols.js.map +0 -1
- package/lib/cjs/__/undici/lib/fileapi/util.js +0 -419
- package/lib/cjs/__/undici/lib/fileapi/util.js.map +0 -1
- package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js +0 -47
- package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js.map +0 -1
- package/lib/cjs/__/undici/lib/handler/RedirectHandler.js +0 -226
- package/lib/cjs/__/undici/lib/handler/RedirectHandler.js.map +0 -1
- package/lib/cjs/__/undici/lib/handler/RetryHandler.js +0 -358
- package/lib/cjs/__/undici/lib/handler/RetryHandler.js.map +0 -1
- package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js +0 -35
- package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js.map +0 -1
- package/lib/cjs/__/undici/lib/node/fixed-queue.js +0 -129
- package/lib/cjs/__/undici/lib/node/fixed-queue.js.map +0 -1
- package/lib/cjs/__/undici/lib/pool-base.js +0 -211
- package/lib/cjs/__/undici/lib/pool-base.js.map +0 -1
- package/lib/cjs/__/undici/lib/pool-stats.js +0 -49
- package/lib/cjs/__/undici/lib/pool-stats.js.map +0 -1
- package/lib/cjs/__/undici/lib/pool.js +0 -127
- package/lib/cjs/__/undici/lib/pool.js.map +0 -1
- package/lib/cjs/__/undici/lib/proxy-agent.js +0 -213
- package/lib/cjs/__/undici/lib/proxy-agent.js.map +0 -1
- package/lib/cjs/__/undici/lib/timers.js +0 -109
- package/lib/cjs/__/undici/lib/timers.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/connection.js +0 -318
- package/lib/cjs/__/undici/lib/websocket/connection.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/constants.js +0 -63
- package/lib/cjs/__/undici/lib/websocket/constants.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/events.js +0 -323
- package/lib/cjs/__/undici/lib/websocket/events.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/frame.js +0 -87
- package/lib/cjs/__/undici/lib/websocket/frame.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/receiver.js +0 -368
- package/lib/cjs/__/undici/lib/websocket/receiver.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/symbols.js +0 -24
- package/lib/cjs/__/undici/lib/websocket/symbols.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/util.js +0 -216
- package/lib/cjs/__/undici/lib/websocket/util.js.map +0 -1
- package/lib/cjs/__/undici/lib/websocket/websocket.js +0 -668
- package/lib/cjs/__/undici/lib/websocket/websocket.js.map +0 -1
- package/lib/cjs/_virtual/api-request2.js +0 -6
- package/lib/cjs/_virtual/api-request2.js.map +0 -1
- package/lib/cjs/_virtual/constants2.js +0 -6
- package/lib/cjs/_virtual/constants2.js.map +0 -1
- package/lib/cjs/_virtual/index15.js +0 -6
- package/lib/cjs/_virtual/index15.js.map +0 -1
- package/lib/cjs/_virtual/index16.js +0 -6
- package/lib/cjs/_virtual/index16.js.map +0 -1
- package/lib/cjs/_virtual/main.js +0 -6
- package/lib/cjs/_virtual/main.js.map +0 -1
- package/lib/cjs/_virtual/mock-interceptor2.js +0 -6
- package/lib/cjs/_virtual/mock-interceptor2.js.map +0 -1
- package/lib/cjs/_virtual/utils4.js +0 -6
- package/lib/cjs/_virtual/utils4.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js +0 -198
- package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +0 -1
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
- package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/index.js +0 -220
- package/lib/esm/__/@actions/http-client/__/undici/index.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js +0 -71
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js +0 -124
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +0 -268
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js +0 -231
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js +0 -238
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +0 -124
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js +0 -23
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js +0 -398
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js +0 -108
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js +0 -258
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js +0 -128
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js +0 -215
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js +0 -435
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js +0 -421
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js +0 -78
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js +0 -742
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +0 -147
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js +0 -642
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +0 -204
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +0 -77
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +0 -209
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +0 -124
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/global.js +0 -45
- package/lib/esm/__/@actions/http-client/__/undici/lib/global.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +0 -230
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js +0 -286
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +0 -17
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +0 -17
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js +0 -26
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +0 -181
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js +0 -77
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +0 -40
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +0 -222
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +0 -77
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +0 -33
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +0 -383
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +0 -56
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +0 -39
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +0 -268
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +0 -702
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js +0 -2224
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js +0 -1061
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js +0 -633
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js +0 -1652
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +0 -709
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +0 -409
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +0 -132
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +0 -447
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +0 -1
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +0 -612
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js +0 -229
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +0 -115
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js +0 -26
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js +0 -241
- package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/main.js +0 -102
- package/lib/esm/__/@fastify/busboy/lib/main.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/types/multipart.js +0 -324
- package/lib/esm/__/@fastify/busboy/lib/types/multipart.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js +0 -204
- package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js +0 -64
- package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/utils/basename.js +0 -24
- package/lib/esm/__/@fastify/busboy/lib/utils/basename.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js +0 -124
- package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js +0 -26
- package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js.map +0 -1
- package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js +0 -209
- package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/index.js +0 -141
- package/lib/esm/__/env-ci/__/execa/index.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/lib/command.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/lib/error.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/lib/promise.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/lib/stdio.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/lib/stream.js +0 -33
- package/lib/esm/__/env-ci/__/execa/lib/stream.js.map +0 -1
- package/lib/esm/__/env-ci/__/execa/lib/verbose.js.map +0 -1
- package/lib/esm/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
- package/lib/esm/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
- package/lib/esm/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
- package/lib/esm/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
- package/lib/esm/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
- package/lib/esm/__/env-ci/__/is-stream/index.js.map +0 -1
- package/lib/esm/__/env-ci/__/npm-run-path/index.js +0 -55
- package/lib/esm/__/env-ci/__/npm-run-path/index.js.map +0 -1
- package/lib/esm/__/env-ci/__/path-key/index.js.map +0 -1
- package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
- package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
- package/lib/esm/__/env-ci/__/strip-final-newline/index.js.map +0 -1
- package/lib/esm/__/undici/lib/agent.js +0 -167
- package/lib/esm/__/undici/lib/agent.js.map +0 -1
- package/lib/esm/__/undici/lib/balanced-pool.js +0 -206
- package/lib/esm/__/undici/lib/balanced-pool.js.map +0 -1
- package/lib/esm/__/undici/lib/cache/cache.js +0 -861
- package/lib/esm/__/undici/lib/cache/cache.js.map +0 -1
- package/lib/esm/__/undici/lib/cache/cachestorage.js +0 -159
- package/lib/esm/__/undici/lib/cache/cachestorage.js.map +0 -1
- package/lib/esm/__/undici/lib/cache/symbols.js +0 -17
- package/lib/esm/__/undici/lib/cache/symbols.js.map +0 -1
- package/lib/esm/__/undici/lib/cache/util.js +0 -63
- package/lib/esm/__/undici/lib/cache/util.js.map +0 -1
- package/lib/esm/__/undici/lib/client.js +0 -2305
- package/lib/esm/__/undici/lib/client.js.map +0 -1
- package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js +0 -61
- package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js.map +0 -1
- package/lib/esm/__/undici/lib/cookies/constants.js +0 -22
- package/lib/esm/__/undici/lib/cookies/constants.js.map +0 -1
- package/lib/esm/__/undici/lib/cookies/index.js +0 -198
- package/lib/esm/__/undici/lib/cookies/index.js.map +0 -1
- package/lib/esm/__/undici/lib/cookies/parse.js +0 -332
- package/lib/esm/__/undici/lib/cookies/parse.js.map +0 -1
- package/lib/esm/__/undici/lib/cookies/util.js +0 -284
- package/lib/esm/__/undici/lib/cookies/util.js.map +0 -1
- package/lib/esm/__/undici/lib/dispatcher-base.js +0 -206
- package/lib/esm/__/undici/lib/dispatcher-base.js.map +0 -1
- package/lib/esm/__/undici/lib/dispatcher.js +0 -31
- package/lib/esm/__/undici/lib/dispatcher.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/body.js +0 -638
- package/lib/esm/__/undici/lib/fetch/body.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/constants.js +0 -163
- package/lib/esm/__/undici/lib/fetch/constants.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/dataURL.js +0 -642
- package/lib/esm/__/undici/lib/fetch/dataURL.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/file.js +0 -362
- package/lib/esm/__/undici/lib/fetch/file.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/formdata.js +0 -281
- package/lib/esm/__/undici/lib/fetch/formdata.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/global.js +0 -50
- package/lib/esm/__/undici/lib/fetch/global.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/headers.js +0 -602
- package/lib/esm/__/undici/lib/fetch/headers.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/index.js +0 -2102
- package/lib/esm/__/undici/lib/fetch/index.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/request.js +0 -971
- package/lib/esm/__/undici/lib/fetch/request.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/response.js +0 -596
- package/lib/esm/__/undici/lib/fetch/response.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/symbols.js +0 -20
- package/lib/esm/__/undici/lib/fetch/symbols.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/util.js +0 -1161
- package/lib/esm/__/undici/lib/fetch/util.js.map +0 -1
- package/lib/esm/__/undici/lib/fetch/webidl.js +0 -659
- package/lib/esm/__/undici/lib/fetch/webidl.js.map +0 -1
- package/lib/esm/__/undici/lib/fileapi/encoding.js +0 -300
- package/lib/esm/__/undici/lib/fileapi/encoding.js.map +0 -1
- package/lib/esm/__/undici/lib/fileapi/filereader.js +0 -359
- package/lib/esm/__/undici/lib/fileapi/filereader.js.map +0 -1
- package/lib/esm/__/undici/lib/fileapi/progressevent.js +0 -90
- package/lib/esm/__/undici/lib/fileapi/progressevent.js.map +0 -1
- package/lib/esm/__/undici/lib/fileapi/symbols.js +0 -20
- package/lib/esm/__/undici/lib/fileapi/symbols.js.map +0 -1
- package/lib/esm/__/undici/lib/fileapi/util.js +0 -411
- package/lib/esm/__/undici/lib/fileapi/util.js.map +0 -1
- package/lib/esm/__/undici/lib/handler/DecoratorHandler.js +0 -45
- package/lib/esm/__/undici/lib/handler/DecoratorHandler.js.map +0 -1
- package/lib/esm/__/undici/lib/handler/RedirectHandler.js +0 -219
- package/lib/esm/__/undici/lib/handler/RedirectHandler.js.map +0 -1
- package/lib/esm/__/undici/lib/handler/RetryHandler.js +0 -352
- package/lib/esm/__/undici/lib/handler/RetryHandler.js.map +0 -1
- package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js +0 -33
- package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js.map +0 -1
- package/lib/esm/__/undici/lib/node/fixed-queue.js +0 -127
- package/lib/esm/__/undici/lib/node/fixed-queue.js.map +0 -1
- package/lib/esm/__/undici/lib/pool-base.js +0 -209
- package/lib/esm/__/undici/lib/pool-base.js.map +0 -1
- package/lib/esm/__/undici/lib/pool-stats.js +0 -47
- package/lib/esm/__/undici/lib/pool-stats.js.map +0 -1
- package/lib/esm/__/undici/lib/pool.js +0 -125
- package/lib/esm/__/undici/lib/pool.js.map +0 -1
- package/lib/esm/__/undici/lib/proxy-agent.js +0 -207
- package/lib/esm/__/undici/lib/proxy-agent.js.map +0 -1
- package/lib/esm/__/undici/lib/timers.js +0 -107
- package/lib/esm/__/undici/lib/timers.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/connection.js +0 -312
- package/lib/esm/__/undici/lib/websocket/connection.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/constants.js +0 -61
- package/lib/esm/__/undici/lib/websocket/constants.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/events.js +0 -317
- package/lib/esm/__/undici/lib/websocket/events.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/frame.js +0 -85
- package/lib/esm/__/undici/lib/websocket/frame.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/receiver.js +0 -361
- package/lib/esm/__/undici/lib/websocket/receiver.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/symbols.js +0 -22
- package/lib/esm/__/undici/lib/websocket/symbols.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/util.js +0 -214
- package/lib/esm/__/undici/lib/websocket/util.js.map +0 -1
- package/lib/esm/__/undici/lib/websocket/websocket.js +0 -662
- package/lib/esm/__/undici/lib/websocket/websocket.js.map +0 -1
- package/lib/esm/_virtual/api-request2.js +0 -4
- package/lib/esm/_virtual/api-request2.js.map +0 -1
- package/lib/esm/_virtual/constants2.js +0 -4
- package/lib/esm/_virtual/constants2.js.map +0 -1
- package/lib/esm/_virtual/index15.js +0 -4
- package/lib/esm/_virtual/index15.js.map +0 -1
- package/lib/esm/_virtual/index16.js +0 -4
- package/lib/esm/_virtual/index16.js.map +0 -1
- package/lib/esm/_virtual/main.js +0 -4
- package/lib/esm/_virtual/main.js.map +0 -1
- package/lib/esm/_virtual/mock-interceptor2.js +0 -4
- package/lib/esm/_virtual/mock-interceptor2.js.map +0 -1
- package/lib/esm/_virtual/utils4.js +0 -4
- package/lib/esm/_virtual/utils4.js.map +0 -1
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
- /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
- /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
- /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
- /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
- /package/lib/cjs/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
- /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
- /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
- /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
- /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
- /package/lib/cjs/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
- /package/lib/cjs/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
- /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
- /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
- /package/lib/cjs/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/core/tree.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/balanced-pool.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h1.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h2.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/env-http-proxy-agent.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/fixed-queue.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/pool-stats.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/proxy-agent.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/retry-agent.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/handler/decorator-handler.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/handler/retry-handler.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dns.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dump.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect-interceptor.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/retry.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/util/timers.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cache.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cachestorage.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/symbols.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/util.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/constants.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/index.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/parse.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/util.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource-stream.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/util.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/body.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/constants.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/data-url.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/dispatcher-weakref.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/file.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/formdata-parser.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/global.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/symbols.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/encoding.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/filereader.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/progressevent.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/symbols.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/connection.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/constants.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/events.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/frame.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/sender.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/symbols.js +0 -0
- /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/util.js +0 -0
- /package/lib/cjs/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
- /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
- /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
- /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
- /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
- /package/lib/esm/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
- /package/lib/esm/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
- /package/lib/esm/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
- /package/lib/esm/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
- /package/lib/esm/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
- /package/lib/esm/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
- /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
- /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
- /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
- /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
- /package/lib/esm/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
- /package/lib/esm/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
- /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
- /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
- /package/lib/esm/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/core/tree.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/balanced-pool.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h1.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h2.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/env-http-proxy-agent.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/fixed-queue.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/pool-stats.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/proxy-agent.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/retry-agent.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/handler/decorator-handler.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/handler/retry-handler.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dns.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dump.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect-interceptor.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/retry.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/util/timers.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cache.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cachestorage.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/symbols.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/util.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/constants.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/index.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/parse.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/util.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource-stream.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/util.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/body.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/constants.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/data-url.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/dispatcher-weakref.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/file.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/formdata-parser.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/global.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/symbols.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/encoding.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/filereader.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/progressevent.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/symbols.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/connection.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/constants.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/events.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/frame.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/sender.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/symbols.js +0 -0
- /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/util.js +0 -0
- /package/lib/esm/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
|
@@ -84,7 +84,7 @@ function requireMockInterceptor () {
|
|
|
84
84
|
if (opts.query) {
|
|
85
85
|
opts.path = buildURL(opts.path, opts.query);
|
|
86
86
|
} else {
|
|
87
|
-
// Matches https://github.com/nodejs/undici/blob/main/lib/fetch/index.js#L1811
|
|
87
|
+
// Matches https://github.com/nodejs/undici/blob/main/lib/web/fetch/index.js#L1811
|
|
88
88
|
const parsedURL = new URL(opts.path, 'data://');
|
|
89
89
|
opts.path = parsedURL.pathname + parsedURL.search;
|
|
90
90
|
}
|
|
@@ -100,7 +100,7 @@ function requireMockInterceptor () {
|
|
|
100
100
|
this[kContentLength] = false;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
createMockScopeDispatchData (statusCode, data, responseOptions
|
|
103
|
+
createMockScopeDispatchData ({ statusCode, data, responseOptions }) {
|
|
104
104
|
const responseData = getResponseData(data);
|
|
105
105
|
const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {};
|
|
106
106
|
const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers };
|
|
@@ -109,14 +109,11 @@ function requireMockInterceptor () {
|
|
|
109
109
|
return { statusCode, data, headers, trailers }
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
validateReplyParameters (
|
|
113
|
-
if (typeof statusCode === 'undefined') {
|
|
112
|
+
validateReplyParameters (replyParameters) {
|
|
113
|
+
if (typeof replyParameters.statusCode === 'undefined') {
|
|
114
114
|
throw new InvalidArgumentError('statusCode must be defined')
|
|
115
115
|
}
|
|
116
|
-
if (typeof
|
|
117
|
-
throw new InvalidArgumentError('data must be defined')
|
|
118
|
-
}
|
|
119
|
-
if (typeof responseOptions !== 'object') {
|
|
116
|
+
if (typeof replyParameters.responseOptions !== 'object' || replyParameters.responseOptions === null) {
|
|
120
117
|
throw new InvalidArgumentError('responseOptions must be an object')
|
|
121
118
|
}
|
|
122
119
|
}
|
|
@@ -124,28 +121,28 @@ function requireMockInterceptor () {
|
|
|
124
121
|
/**
|
|
125
122
|
* Mock an undici request with a defined reply.
|
|
126
123
|
*/
|
|
127
|
-
reply (
|
|
124
|
+
reply (replyOptionsCallbackOrStatusCode) {
|
|
128
125
|
// Values of reply aren't available right now as they
|
|
129
126
|
// can only be available when the reply callback is invoked.
|
|
130
|
-
if (typeof
|
|
127
|
+
if (typeof replyOptionsCallbackOrStatusCode === 'function') {
|
|
131
128
|
// We'll first wrap the provided callback in another function,
|
|
132
129
|
// this function will properly resolve the data from the callback
|
|
133
130
|
// when invoked.
|
|
134
131
|
const wrappedDefaultsCallback = (opts) => {
|
|
135
132
|
// Our reply options callback contains the parameter for statusCode, data and options.
|
|
136
|
-
const resolvedData =
|
|
133
|
+
const resolvedData = replyOptionsCallbackOrStatusCode(opts);
|
|
137
134
|
|
|
138
135
|
// Check if it is in the right format
|
|
139
|
-
if (typeof resolvedData !== 'object') {
|
|
136
|
+
if (typeof resolvedData !== 'object' || resolvedData === null) {
|
|
140
137
|
throw new InvalidArgumentError('reply options callback must return an object')
|
|
141
138
|
}
|
|
142
139
|
|
|
143
|
-
const {
|
|
144
|
-
this.validateReplyParameters(
|
|
140
|
+
const replyParameters = { data: '', responseOptions: {}, ...resolvedData };
|
|
141
|
+
this.validateReplyParameters(replyParameters);
|
|
145
142
|
// Since the values can be obtained immediately we return them
|
|
146
143
|
// from this higher order function that will be resolved later.
|
|
147
144
|
return {
|
|
148
|
-
...this.createMockScopeDispatchData(
|
|
145
|
+
...this.createMockScopeDispatchData(replyParameters)
|
|
149
146
|
}
|
|
150
147
|
};
|
|
151
148
|
|
|
@@ -158,11 +155,15 @@ function requireMockInterceptor () {
|
|
|
158
155
|
// we should have 1-3 parameters. So we spread the arguments of
|
|
159
156
|
// this function to obtain the parameters, since replyData will always
|
|
160
157
|
// just be the statusCode.
|
|
161
|
-
const
|
|
162
|
-
|
|
158
|
+
const replyParameters = {
|
|
159
|
+
statusCode: replyOptionsCallbackOrStatusCode,
|
|
160
|
+
data: arguments[1] === undefined ? '' : arguments[1],
|
|
161
|
+
responseOptions: arguments[2] === undefined ? {} : arguments[2]
|
|
162
|
+
};
|
|
163
|
+
this.validateReplyParameters(replyParameters);
|
|
163
164
|
|
|
164
165
|
// Send in-already provided data like usual
|
|
165
|
-
const dispatchData = this.createMockScopeDispatchData(
|
|
166
|
+
const dispatchData = this.createMockScopeDispatchData(replyParameters);
|
|
166
167
|
const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData);
|
|
167
168
|
return new MockScope(newMockDispatch)
|
|
168
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-interceptor.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-interceptor.js"],"sourcesContent":["'use strict'\n\nconst { getResponseData, buildKey, addMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kDispatchKey,\n kDefaultHeaders,\n kDefaultTrailers,\n kContentLength,\n kMockDispatch\n} = require('./mock-symbols')\nconst { InvalidArgumentError } = require('../core/errors')\nconst { buildURL } = require('../core/util')\n\n/**\n * Defines the scope API for an interceptor reply\n */\nclass MockScope {\n constructor (mockDispatch) {\n this[kMockDispatch] = mockDispatch\n }\n\n /**\n * Delay a reply by a set amount in ms.\n */\n delay (waitInMs) {\n if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {\n throw new InvalidArgumentError('waitInMs must be a valid integer > 0')\n }\n\n this[kMockDispatch].delay = waitInMs\n return this\n }\n\n /**\n * For a defined reply, never mark as consumed.\n */\n persist () {\n this[kMockDispatch].persist = true\n return this\n }\n\n /**\n * Allow one to define a reply for a set amount of matching requests.\n */\n times (repeatTimes) {\n if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {\n throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')\n }\n\n this[kMockDispatch].times = repeatTimes\n return this\n }\n}\n\n/**\n * Defines an interceptor for a Mock\n */\nclass MockInterceptor {\n constructor (opts, mockDispatches) {\n if (typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object')\n }\n if (typeof opts.path === 'undefined') {\n throw new InvalidArgumentError('opts.path must be defined')\n }\n if (typeof opts.method === 'undefined') {\n opts.method = 'GET'\n }\n // See https://github.com/nodejs/undici/issues/1245\n // As per RFC 3986, clients are not supposed to send URI\n // fragments to servers when they retrieve a document,\n if (typeof opts.path === 'string') {\n if (opts.query) {\n opts.path = buildURL(opts.path, opts.query)\n } else {\n // Matches https://github.com/nodejs/undici/blob/main/lib/fetch/index.js#L1811\n const parsedURL = new URL(opts.path, 'data://')\n opts.path = parsedURL.pathname + parsedURL.search\n }\n }\n if (typeof opts.method === 'string') {\n opts.method = opts.method.toUpperCase()\n }\n\n this[kDispatchKey] = buildKey(opts)\n this[kDispatches] = mockDispatches\n this[kDefaultHeaders] = {}\n this[kDefaultTrailers] = {}\n this[kContentLength] = false\n }\n\n createMockScopeDispatchData (statusCode, data, responseOptions = {}) {\n const responseData = getResponseData(data)\n const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}\n const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }\n const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }\n\n return { statusCode, data, headers, trailers }\n }\n\n validateReplyParameters (statusCode, data, responseOptions) {\n if (typeof statusCode === 'undefined') {\n throw new InvalidArgumentError('statusCode must be defined')\n }\n if (typeof data === 'undefined') {\n throw new InvalidArgumentError('data must be defined')\n }\n if (typeof responseOptions !== 'object') {\n throw new InvalidArgumentError('responseOptions must be an object')\n }\n }\n\n /**\n * Mock an undici request with a defined reply.\n */\n reply (replyData) {\n // Values of reply aren't available right now as they\n // can only be available when the reply callback is invoked.\n if (typeof replyData === 'function') {\n // We'll first wrap the provided callback in another function,\n // this function will properly resolve the data from the callback\n // when invoked.\n const wrappedDefaultsCallback = (opts) => {\n // Our reply options callback contains the parameter for statusCode, data and options.\n const resolvedData = replyData(opts)\n\n // Check if it is in the right format\n if (typeof resolvedData !== 'object') {\n throw new InvalidArgumentError('reply options callback must return an object')\n }\n\n const { statusCode, data = '', responseOptions = {} } = resolvedData\n this.validateReplyParameters(statusCode, data, responseOptions)\n // Since the values can be obtained immediately we return them\n // from this higher order function that will be resolved later.\n return {\n ...this.createMockScopeDispatchData(statusCode, data, responseOptions)\n }\n }\n\n // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)\n return new MockScope(newMockDispatch)\n }\n\n // We can have either one or three parameters, if we get here,\n // we should have 1-3 parameters. So we spread the arguments of\n // this function to obtain the parameters, since replyData will always\n // just be the statusCode.\n const [statusCode, data = '', responseOptions = {}] = [...arguments]\n this.validateReplyParameters(statusCode, data, responseOptions)\n\n // Send in-already provided data like usual\n const dispatchData = this.createMockScopeDispatchData(statusCode, data, responseOptions)\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Mock an undici request with a defined error.\n */\n replyWithError (error) {\n if (typeof error === 'undefined') {\n throw new InvalidArgumentError('error must be defined')\n }\n\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Set default reply headers on the interceptor for subsequent replies\n */\n defaultReplyHeaders (headers) {\n if (typeof headers === 'undefined') {\n throw new InvalidArgumentError('headers must be defined')\n }\n\n this[kDefaultHeaders] = headers\n return this\n }\n\n /**\n * Set default reply trailers on the interceptor for subsequent replies\n */\n defaultReplyTrailers (trailers) {\n if (typeof trailers === 'undefined') {\n throw new InvalidArgumentError('trailers must be defined')\n }\n\n this[kDefaultTrailers] = trailers\n return this\n }\n\n /**\n * Set reply content length header for replies on the interceptor\n */\n replyContentLength () {\n this[kContentLength] = true\n return this\n }\n}\n\nmodule.exports.MockInterceptor = MockInterceptor\nmodule.exports.MockScope = MockScope\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;AAEA,CAAA,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAGA,gBAAA;CACvD,MAAM;AACN,GAAE,WAAW;AACb,GAAE,YAAY;AACd,GAAE,eAAe;AACjB,GAAE,gBAAgB;AAClB,GAAE,cAAc;GACd;AACF,EAAC,GAAGC,kBAAA;CACJ,MAAM,EAAE,oBAAoB,EAAE,GAAGC,aAAA;CACjC,MAAM,EAAE,QAAQ,EAAE,GAAGC,WAAA;;AAErB;AACA;AACA;AACA,CAAA,MAAM,SAAS,CAAC;AAChB,GAAE,WAAW,CAAC,CAAC,YAAY,EAAE;AAC7B,KAAI,IAAI,CAAC,aAAa,CAAC,GAAG;AAC1B,GAAA;;AAEA;AACA;AACA;AACA,GAAE,KAAK,CAAC,CAAC,QAAQ,EAAE;AACnB,KAAI,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,QAAQ,IAAI,CAAC,EAAE;AACtF,OAAM,MAAM,IAAI,oBAAoB,CAAC,sCAAsC;AAC3E,KAAA;;AAEA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B,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"mock-interceptor.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-interceptor.js"],"sourcesContent":["'use strict'\n\nconst { getResponseData, buildKey, addMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kDispatchKey,\n kDefaultHeaders,\n kDefaultTrailers,\n kContentLength,\n kMockDispatch\n} = require('./mock-symbols')\nconst { InvalidArgumentError } = require('../core/errors')\nconst { buildURL } = require('../core/util')\n\n/**\n * Defines the scope API for an interceptor reply\n */\nclass MockScope {\n constructor (mockDispatch) {\n this[kMockDispatch] = mockDispatch\n }\n\n /**\n * Delay a reply by a set amount in ms.\n */\n delay (waitInMs) {\n if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {\n throw new InvalidArgumentError('waitInMs must be a valid integer > 0')\n }\n\n this[kMockDispatch].delay = waitInMs\n return this\n }\n\n /**\n * For a defined reply, never mark as consumed.\n */\n persist () {\n this[kMockDispatch].persist = true\n return this\n }\n\n /**\n * Allow one to define a reply for a set amount of matching requests.\n */\n times (repeatTimes) {\n if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {\n throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')\n }\n\n this[kMockDispatch].times = repeatTimes\n return this\n }\n}\n\n/**\n * Defines an interceptor for a Mock\n */\nclass MockInterceptor {\n constructor (opts, mockDispatches) {\n if (typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object')\n }\n if (typeof opts.path === 'undefined') {\n throw new InvalidArgumentError('opts.path must be defined')\n }\n if (typeof opts.method === 'undefined') {\n opts.method = 'GET'\n }\n // See https://github.com/nodejs/undici/issues/1245\n // As per RFC 3986, clients are not supposed to send URI\n // fragments to servers when they retrieve a document,\n if (typeof opts.path === 'string') {\n if (opts.query) {\n opts.path = buildURL(opts.path, opts.query)\n } else {\n // Matches https://github.com/nodejs/undici/blob/main/lib/web/fetch/index.js#L1811\n const parsedURL = new URL(opts.path, 'data://')\n opts.path = parsedURL.pathname + parsedURL.search\n }\n }\n if (typeof opts.method === 'string') {\n opts.method = opts.method.toUpperCase()\n }\n\n this[kDispatchKey] = buildKey(opts)\n this[kDispatches] = mockDispatches\n this[kDefaultHeaders] = {}\n this[kDefaultTrailers] = {}\n this[kContentLength] = false\n }\n\n createMockScopeDispatchData ({ statusCode, data, responseOptions }) {\n const responseData = getResponseData(data)\n const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}\n const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }\n const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }\n\n return { statusCode, data, headers, trailers }\n }\n\n validateReplyParameters (replyParameters) {\n if (typeof replyParameters.statusCode === 'undefined') {\n throw new InvalidArgumentError('statusCode must be defined')\n }\n if (typeof replyParameters.responseOptions !== 'object' || replyParameters.responseOptions === null) {\n throw new InvalidArgumentError('responseOptions must be an object')\n }\n }\n\n /**\n * Mock an undici request with a defined reply.\n */\n reply (replyOptionsCallbackOrStatusCode) {\n // Values of reply aren't available right now as they\n // can only be available when the reply callback is invoked.\n if (typeof replyOptionsCallbackOrStatusCode === 'function') {\n // We'll first wrap the provided callback in another function,\n // this function will properly resolve the data from the callback\n // when invoked.\n const wrappedDefaultsCallback = (opts) => {\n // Our reply options callback contains the parameter for statusCode, data and options.\n const resolvedData = replyOptionsCallbackOrStatusCode(opts)\n\n // Check if it is in the right format\n if (typeof resolvedData !== 'object' || resolvedData === null) {\n throw new InvalidArgumentError('reply options callback must return an object')\n }\n\n const replyParameters = { data: '', responseOptions: {}, ...resolvedData }\n this.validateReplyParameters(replyParameters)\n // Since the values can be obtained immediately we return them\n // from this higher order function that will be resolved later.\n return {\n ...this.createMockScopeDispatchData(replyParameters)\n }\n }\n\n // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)\n return new MockScope(newMockDispatch)\n }\n\n // We can have either one or three parameters, if we get here,\n // we should have 1-3 parameters. So we spread the arguments of\n // this function to obtain the parameters, since replyData will always\n // just be the statusCode.\n const replyParameters = {\n statusCode: replyOptionsCallbackOrStatusCode,\n data: arguments[1] === undefined ? '' : arguments[1],\n responseOptions: arguments[2] === undefined ? {} : arguments[2]\n }\n this.validateReplyParameters(replyParameters)\n\n // Send in-already provided data like usual\n const dispatchData = this.createMockScopeDispatchData(replyParameters)\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Mock an undici request with a defined error.\n */\n replyWithError (error) {\n if (typeof error === 'undefined') {\n throw new InvalidArgumentError('error must be defined')\n }\n\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Set default reply headers on the interceptor for subsequent replies\n */\n defaultReplyHeaders (headers) {\n if (typeof headers === 'undefined') {\n throw new InvalidArgumentError('headers must be defined')\n }\n\n this[kDefaultHeaders] = headers\n return this\n }\n\n /**\n * Set default reply trailers on the interceptor for subsequent replies\n */\n defaultReplyTrailers (trailers) {\n if (typeof trailers === 'undefined') {\n throw new InvalidArgumentError('trailers must be defined')\n }\n\n this[kDefaultTrailers] = trailers\n return this\n }\n\n /**\n * Set reply content length header for replies on the interceptor\n */\n replyContentLength () {\n this[kContentLength] = true\n return this\n }\n}\n\nmodule.exports.MockInterceptor = MockInterceptor\nmodule.exports.MockScope = MockScope\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;AAEA,CAAA,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAGA,gBAAA;CACvD,MAAM;AACN,GAAE,WAAW;AACb,GAAE,YAAY;AACd,GAAE,eAAe;AACjB,GAAE,gBAAgB;AAClB,GAAE,cAAc;GACd;AACF,EAAC,GAAGC,kBAAA;CACJ,MAAM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,KAAA;;AAEA,KAAI,IAAI,CAAC,eAAe,CAAC,GAAG;AAC5B,KAAI,OAAO;AACX,GAAA;;AAEA;AACA;AACA;AACA,GAAE,oBAAoB,CAAC,CAAC,QAAQ,EAAE;AAClC,KAAI,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AACzC,OAAM,MAAM,IAAI,oBAAoB,CAAC,0BAA0B;AAC/D,KAAA;;AAEA,KAAI,IAAI,CAAC,gBAAgB,CAAC,GAAG;AAC7B,KAAI,OAAO;AACX,GAAA;;AAEA;AACA;AACA;GACE,kBAAkB,CAAC,GAAG;AACxB,KAAI,IAAI,CAAC,cAAc,CAAC,GAAG;AAC3B,KAAI,OAAO;AACX,GAAA;AACA;;AAEA,CAAA,eAAA,CAAA,eAA8B,GAAG;AACjC,CAAA,eAAA,CAAA,SAAwB,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import require$$
|
|
2
|
-
import { __require as requirePool } from '../pool.js';
|
|
1
|
+
import require$$6 from 'node:util';
|
|
2
|
+
import { __require as requirePool } from '../dispatcher/pool.js';
|
|
3
3
|
import { __require as requireMockUtils } from './mock-utils.js';
|
|
4
4
|
import { __require as requireMockSymbols } from './mock-symbols.js';
|
|
5
5
|
import { __require as requireMockInterceptor } from './mock-interceptor.js';
|
|
@@ -13,7 +13,7 @@ function requireMockPool () {
|
|
|
13
13
|
if (hasRequiredMockPool) return mockPool;
|
|
14
14
|
hasRequiredMockPool = 1;
|
|
15
15
|
|
|
16
|
-
const { promisify } = require$$
|
|
16
|
+
const { promisify } = require$$6;
|
|
17
17
|
const Pool = requirePool();
|
|
18
18
|
const { buildMockDispatch } = requireMockUtils();
|
|
19
19
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-pool.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-pool.js"],"sourcesContent":["'use strict'\n\nconst { promisify } = require('util')\nconst Pool = require('../pool')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockPool provides an API that extends the Pool to influence the mockDispatches.\n */\nclass MockPool extends Pool {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockPool\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6"],"mappings":";;;;;;;;;;;;;;;CAEA,MAAM,EAAE,SAAS,EAAE,GAAGA;AACtB,CAAA,MAAM,IAAI,GAAGC,WAAA;CACb,MAAM,EAAE,iBAAiB,EAAE,GAAGC,gBAAA;CAC9B,MAAM;AACN,GAAE,WAAW;AACb,GAAE,UAAU;AACZ,GAAE,MAAM;AACR,GAAE,cAAc;AAChB,GAAE,OAAO;AACT,GAAE,iBAAiB;GACjB;AACF,EAAC,GAAGC,kBAAA;CACJ,MAAM,EAAE,eAAe,EAAE,GAAGC,sBAAA;AAC5B,CAAA,MAAM,OAAO,GAAGC,cAAA;CAChB,MAAM,EAAE,oBAAoB,EAAE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AC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;AAC3D,GAAA;AACA;;AAEA,CAAA,QAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"mock-pool.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-pool.js"],"sourcesContent":["'use strict'\n\nconst { promisify } = require('node:util')\nconst Pool = require('../dispatcher/pool')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockPool provides an API that extends the Pool to influence the mockDispatches.\n */\nclass MockPool extends Pool {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockPool\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6"],"mappings":";;;;;;;;;;;;;;;CAEA,MAAM,EAAE,SAAS,EAAE,GAAGA;AACtB,CAAA,MAAM,IAAI,GAAGC,WAAA;CACb,MAAM,EAAE,iBAAiB,EAAE,GAAGC,gBAAA;CAC9B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,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC;AACtD,GAAA;;GAEE,OAAO,MAAM,EAAE,GAAG;AACpB,KAAI,MAAM,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACzC,KAAI,IAAI,CAAC,UAAU,CAAC,GAAG;AACvB,KAAI,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;AAC3D,GAAA;AACA;;AAEA,CAAA,QAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -2,7 +2,7 @@ import { __require as requireMockErrors } from './mock-errors.js';
|
|
|
2
2
|
import { __require as requireMockSymbols } from './mock-symbols.js';
|
|
3
3
|
import { __require as requireUtil } from '../core/util.js';
|
|
4
4
|
import require$$2 from 'node:http';
|
|
5
|
-
import require$$
|
|
5
|
+
import require$$6 from 'node:util';
|
|
6
6
|
|
|
7
7
|
var mockUtils;
|
|
8
8
|
var hasRequiredMockUtils;
|
|
@@ -19,13 +19,13 @@ function requireMockUtils () {
|
|
|
19
19
|
kOrigin,
|
|
20
20
|
kGetNetConnect
|
|
21
21
|
} = requireMockSymbols();
|
|
22
|
-
const { buildURL
|
|
22
|
+
const { buildURL } = requireUtil();
|
|
23
23
|
const { STATUS_CODES } = require$$2;
|
|
24
24
|
const {
|
|
25
25
|
types: {
|
|
26
26
|
isPromise
|
|
27
27
|
}
|
|
28
|
-
} = require$$
|
|
28
|
+
} = require$$6;
|
|
29
29
|
|
|
30
30
|
function matchValue (match, value) {
|
|
31
31
|
if (typeof match === 'string') {
|
|
@@ -129,6 +129,10 @@ function requireMockUtils () {
|
|
|
129
129
|
function getResponseData (data) {
|
|
130
130
|
if (Buffer.isBuffer(data)) {
|
|
131
131
|
return data
|
|
132
|
+
} else if (data instanceof Uint8Array) {
|
|
133
|
+
return data
|
|
134
|
+
} else if (data instanceof ArrayBuffer) {
|
|
135
|
+
return data
|
|
132
136
|
} else if (typeof data === 'object') {
|
|
133
137
|
return JSON.stringify(data)
|
|
134
138
|
} else {
|
|
@@ -149,19 +153,20 @@ function requireMockUtils () {
|
|
|
149
153
|
// Match method
|
|
150
154
|
matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method));
|
|
151
155
|
if (matchedMockDispatches.length === 0) {
|
|
152
|
-
throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)
|
|
156
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}' on path '${resolvedPath}'`)
|
|
153
157
|
}
|
|
154
158
|
|
|
155
159
|
// Match body
|
|
156
160
|
matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true);
|
|
157
161
|
if (matchedMockDispatches.length === 0) {
|
|
158
|
-
throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)
|
|
162
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`)
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
// Match headers
|
|
162
166
|
matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers));
|
|
163
167
|
if (matchedMockDispatches.length === 0) {
|
|
164
|
-
|
|
168
|
+
const headers = typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers;
|
|
169
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`)
|
|
165
170
|
}
|
|
166
171
|
|
|
167
172
|
return matchedMockDispatches[0]
|
|
@@ -199,11 +204,21 @@ function requireMockUtils () {
|
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
function generateKeyValues (data) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
+
const keys = Object.keys(data);
|
|
208
|
+
const result = [];
|
|
209
|
+
for (let i = 0; i < keys.length; ++i) {
|
|
210
|
+
const key = keys[i];
|
|
211
|
+
const value = data[key];
|
|
212
|
+
const name = Buffer.from(`${key}`);
|
|
213
|
+
if (Array.isArray(value)) {
|
|
214
|
+
for (let j = 0; j < value.length; ++j) {
|
|
215
|
+
result.push(name, Buffer.from(`${value[j]}`));
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
result.push(name, Buffer.from(`${value}`));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return result
|
|
207
222
|
}
|
|
208
223
|
|
|
209
224
|
/**
|
|
@@ -285,10 +300,10 @@ function requireMockUtils () {
|
|
|
285
300
|
const responseHeaders = generateKeyValues(headers);
|
|
286
301
|
const responseTrailers = generateKeyValues(trailers);
|
|
287
302
|
|
|
288
|
-
handler.
|
|
289
|
-
handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode));
|
|
290
|
-
handler.onData(Buffer.from(responseData));
|
|
291
|
-
handler.onComplete(responseTrailers);
|
|
303
|
+
handler.onConnect?.(err => handler.onError(err), null);
|
|
304
|
+
handler.onHeaders?.(statusCode, responseHeaders, resume, getStatusText(statusCode));
|
|
305
|
+
handler.onData?.(Buffer.from(responseData));
|
|
306
|
+
handler.onComplete?.(responseTrailers);
|
|
292
307
|
deleteMockDispatch(mockDispatches, key);
|
|
293
308
|
}
|
|
294
309
|
|
|
@@ -358,7 +373,8 @@ function requireMockUtils () {
|
|
|
358
373
|
buildMockDispatch,
|
|
359
374
|
checkNetConnect,
|
|
360
375
|
buildMockOptions,
|
|
361
|
-
getHeaderByName
|
|
376
|
+
getHeaderByName,
|
|
377
|
+
buildHeadersFromArray
|
|
362
378
|
};
|
|
363
379
|
return mockUtils;
|
|
364
380
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-utils.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-utils.js"],"sourcesContent":["'use strict'\n\nconst { MockNotMatchedError } = require('./mock-errors')\nconst {\n kDispatches,\n kMockAgent,\n kOriginalDispatch,\n kOrigin,\n kGetNetConnect\n} = require('./mock-symbols')\nconst { buildURL, nop } = require('../core/util')\nconst { STATUS_CODES } = require('http')\nconst {\n types: {\n isPromise\n }\n} = require('util')\n\nfunction matchValue (match, value) {\n if (typeof match === 'string') {\n return match === value\n }\n if (match instanceof RegExp) {\n return match.test(value)\n }\n if (typeof match === 'function') {\n return match(value) === true\n }\n return false\n}\n\nfunction lowerCaseEntries (headers) {\n return Object.fromEntries(\n Object.entries(headers).map(([headerName, headerValue]) => {\n return [headerName.toLocaleLowerCase(), headerValue]\n })\n )\n}\n\n/**\n * @param {import('../../index').Headers|string[]|Record<string, string>} headers\n * @param {string} key\n */\nfunction getHeaderByName (headers, key) {\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {\n return headers[i + 1]\n }\n }\n\n return undefined\n } else if (typeof headers.get === 'function') {\n return headers.get(key)\n } else {\n return lowerCaseEntries(headers)[key.toLocaleLowerCase()]\n }\n}\n\n/** @param {string[]} headers */\nfunction buildHeadersFromArray (headers) { // fetch HeadersList\n const clone = headers.slice()\n const entries = []\n for (let index = 0; index < clone.length; index += 2) {\n entries.push([clone[index], clone[index + 1]])\n }\n return Object.fromEntries(entries)\n}\n\nfunction matchHeaders (mockDispatch, headers) {\n if (typeof mockDispatch.headers === 'function') {\n if (Array.isArray(headers)) { // fetch HeadersList\n headers = buildHeadersFromArray(headers)\n }\n return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})\n }\n if (typeof mockDispatch.headers === 'undefined') {\n return true\n }\n if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {\n return false\n }\n\n for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {\n const headerValue = getHeaderByName(headers, matchHeaderName)\n\n if (!matchValue(matchHeaderValue, headerValue)) {\n return false\n }\n }\n return true\n}\n\nfunction safeUrl (path) {\n if (typeof path !== 'string') {\n return path\n }\n\n const pathSegments = path.split('?')\n\n if (pathSegments.length !== 2) {\n return path\n }\n\n const qp = new URLSearchParams(pathSegments.pop())\n qp.sort()\n return [...pathSegments, qp.toString()].join('?')\n}\n\nfunction matchKey (mockDispatch, { path, method, body, headers }) {\n const pathMatch = matchValue(mockDispatch.path, path)\n const methodMatch = matchValue(mockDispatch.method, method)\n const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true\n const headersMatch = matchHeaders(mockDispatch, headers)\n return pathMatch && methodMatch && bodyMatch && headersMatch\n}\n\nfunction getResponseData (data) {\n if (Buffer.isBuffer(data)) {\n return data\n } else if (typeof data === 'object') {\n return JSON.stringify(data)\n } else {\n return data.toString()\n }\n}\n\nfunction getMockDispatch (mockDispatches, key) {\n const basePath = key.query ? buildURL(key.path, key.query) : key.path\n const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath\n\n // Match path\n let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)\n }\n\n // Match method\n matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)\n }\n\n // Match body\n matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)\n }\n\n // Match headers\n matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`)\n }\n\n return matchedMockDispatches[0]\n}\n\nfunction addMockDispatch (mockDispatches, key, data) {\n const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }\n const replyData = typeof data === 'function' ? { callback: data } : { ...data }\n const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }\n mockDispatches.push(newMockDispatch)\n return newMockDispatch\n}\n\nfunction deleteMockDispatch (mockDispatches, key) {\n const index = mockDispatches.findIndex(dispatch => {\n if (!dispatch.consumed) {\n return false\n }\n return matchKey(dispatch, key)\n })\n if (index !== -1) {\n mockDispatches.splice(index, 1)\n }\n}\n\nfunction buildKey (opts) {\n const { path, method, body, headers, query } = opts\n return {\n path,\n method,\n body,\n headers,\n query\n }\n}\n\nfunction generateKeyValues (data) {\n return Object.entries(data).reduce((keyValuePairs, [key, value]) => [\n ...keyValuePairs,\n Buffer.from(`${key}`),\n Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`)\n ], [])\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\n * @param {number} statusCode\n */\nfunction getStatusText (statusCode) {\n return STATUS_CODES[statusCode] || 'unknown'\n}\n\nasync function getResponse (body) {\n const buffers = []\n for await (const data of body) {\n buffers.push(data)\n }\n return Buffer.concat(buffers).toString('utf8')\n}\n\n/**\n * Mock dispatch function used to simulate undici dispatches\n */\nfunction mockDispatch (opts, handler) {\n // Get mock dispatch from built key\n const key = buildKey(opts)\n const mockDispatch = getMockDispatch(this[kDispatches], key)\n\n mockDispatch.timesInvoked++\n\n // Here's where we resolve a callback if a callback is present for the dispatch data.\n if (mockDispatch.data.callback) {\n mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }\n }\n\n // Parse mockDispatch data\n const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch\n const { timesInvoked, times } = mockDispatch\n\n // If it's used up and not persistent, mark as consumed\n mockDispatch.consumed = !persist && timesInvoked >= times\n mockDispatch.pending = timesInvoked < times\n\n // If specified, trigger dispatch error\n if (error !== null) {\n deleteMockDispatch(this[kDispatches], key)\n handler.onError(error)\n return true\n }\n\n // Handle the request with a delay if necessary\n if (typeof delay === 'number' && delay > 0) {\n setTimeout(() => {\n handleReply(this[kDispatches])\n }, delay)\n } else {\n handleReply(this[kDispatches])\n }\n\n function handleReply (mockDispatches, _data = data) {\n // fetch's HeadersList is a 1D string array\n const optsHeaders = Array.isArray(opts.headers)\n ? buildHeadersFromArray(opts.headers)\n : opts.headers\n const body = typeof _data === 'function'\n ? _data({ ...opts, headers: optsHeaders })\n : _data\n\n // util.types.isPromise is likely needed for jest.\n if (isPromise(body)) {\n // If handleReply is asynchronous, throwing an error\n // in the callback will reject the promise, rather than\n // synchronously throw the error, which breaks some tests.\n // Rather, we wait for the callback to resolve if it is a\n // promise, and then re-run handleReply with the new body.\n body.then((newData) => handleReply(mockDispatches, newData))\n return\n }\n\n const responseData = getResponseData(body)\n const responseHeaders = generateKeyValues(headers)\n const responseTrailers = generateKeyValues(trailers)\n\n handler.abort = nop\n handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode))\n handler.onData(Buffer.from(responseData))\n handler.onComplete(responseTrailers)\n deleteMockDispatch(mockDispatches, key)\n }\n\n function resume () {}\n\n return true\n}\n\nfunction buildMockDispatch () {\n const agent = this[kMockAgent]\n const origin = this[kOrigin]\n const originalDispatch = this[kOriginalDispatch]\n\n return function dispatch (opts, handler) {\n if (agent.isMockActive) {\n try {\n mockDispatch.call(this, opts, handler)\n } catch (error) {\n if (error instanceof MockNotMatchedError) {\n const netConnect = agent[kGetNetConnect]()\n if (netConnect === false) {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)\n }\n if (checkNetConnect(netConnect, origin)) {\n originalDispatch.call(this, opts, handler)\n } else {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)\n }\n } else {\n throw error\n }\n }\n } else {\n originalDispatch.call(this, opts, handler)\n }\n }\n}\n\nfunction checkNetConnect (netConnect, origin) {\n const url = new URL(origin)\n if (netConnect === true) {\n return true\n } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {\n return true\n }\n return false\n}\n\nfunction buildMockOptions (opts) {\n if (opts) {\n const { agent, ...mockOptions } = opts\n return mockOptions\n }\n}\n\nmodule.exports = {\n getResponseData,\n getMockDispatch,\n addMockDispatch,\n deleteMockDispatch,\n buildKey,\n generateKeyValues,\n matchValue,\n getResponse,\n getStatusText,\n mockDispatch,\n buildMockDispatch,\n checkNetConnect,\n buildMockOptions,\n getHeaderByName\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;CAEA,MAAM,EAAE,mBAAmB,EAAE,GAAGA,iBAAA;CAChC,MAAM;AACN,GAAE,WAAW;AACb,GAAE,UAAU;AACZ,GAAE,iBAAiB;AACnB,GAAE,OAAO;GACP;AACF,EAAC,GAAGC,kBAAA;AACJ,CAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAGC,WAAA;CAC1B,MAAM,EAAE,YAAY,EAAE,GAAGC;CACzB,MAAM;AACN,GAAE,KAAK,EAAE;KACL;AACJ;AACA,EAAC,GAAGC;;AAEJ,CAAA,SAAS,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;AACnC,GAAE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;KAC7B,OAAO,KAAK,KAAK;AACrB,GAAA;AACA,GAAE,IAAI,KAAK,YAAY,MAAM,EAAE;AAC/B,KAAI,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK;AAC3B,GAAA;AACA,GAAE,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;AACnC,KAAI,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK;AAC5B,GAAA;AACA,GAAE,OAAO;AACT,CAAA;;CAEA,SAAS,gBAAgB,EAAE,OAAO,EAAE;GAClC,OAAO,MAAM,CAAC,WAAW;AAC3B,KAAI,MAAM,CAAC,OA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,eAAe;AACjB,GAAE,kBAAkB;AACpB,GAAE,QAAQ;AACV,GAAE,iBAAiB;AACnB,GAAE,UAAU;AACZ,GAAE,WAAW;AACb,GAAE,aAAa;AACf,GAAE,YAAY;AACd,GAAE,iBAAiB;AACnB,GAAE,eAAe;AACjB,GAAE,gBAAgB;GAChB;AACF;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"mock-utils.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-utils.js"],"sourcesContent":["'use strict'\n\nconst { MockNotMatchedError } = require('./mock-errors')\nconst {\n kDispatches,\n kMockAgent,\n kOriginalDispatch,\n kOrigin,\n kGetNetConnect\n} = require('./mock-symbols')\nconst { buildURL } = require('../core/util')\nconst { STATUS_CODES } = require('node:http')\nconst {\n types: {\n isPromise\n }\n} = require('node:util')\n\nfunction matchValue (match, value) {\n if (typeof match === 'string') {\n return match === value\n }\n if (match instanceof RegExp) {\n return match.test(value)\n }\n if (typeof match === 'function') {\n return match(value) === true\n }\n return false\n}\n\nfunction lowerCaseEntries (headers) {\n return Object.fromEntries(\n Object.entries(headers).map(([headerName, headerValue]) => {\n return [headerName.toLocaleLowerCase(), headerValue]\n })\n )\n}\n\n/**\n * @param {import('../../index').Headers|string[]|Record<string, string>} headers\n * @param {string} key\n */\nfunction getHeaderByName (headers, key) {\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {\n return headers[i + 1]\n }\n }\n\n return undefined\n } else if (typeof headers.get === 'function') {\n return headers.get(key)\n } else {\n return lowerCaseEntries(headers)[key.toLocaleLowerCase()]\n }\n}\n\n/** @param {string[]} headers */\nfunction buildHeadersFromArray (headers) { // fetch HeadersList\n const clone = headers.slice()\n const entries = []\n for (let index = 0; index < clone.length; index += 2) {\n entries.push([clone[index], clone[index + 1]])\n }\n return Object.fromEntries(entries)\n}\n\nfunction matchHeaders (mockDispatch, headers) {\n if (typeof mockDispatch.headers === 'function') {\n if (Array.isArray(headers)) { // fetch HeadersList\n headers = buildHeadersFromArray(headers)\n }\n return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})\n }\n if (typeof mockDispatch.headers === 'undefined') {\n return true\n }\n if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {\n return false\n }\n\n for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {\n const headerValue = getHeaderByName(headers, matchHeaderName)\n\n if (!matchValue(matchHeaderValue, headerValue)) {\n return false\n }\n }\n return true\n}\n\nfunction safeUrl (path) {\n if (typeof path !== 'string') {\n return path\n }\n\n const pathSegments = path.split('?')\n\n if (pathSegments.length !== 2) {\n return path\n }\n\n const qp = new URLSearchParams(pathSegments.pop())\n qp.sort()\n return [...pathSegments, qp.toString()].join('?')\n}\n\nfunction matchKey (mockDispatch, { path, method, body, headers }) {\n const pathMatch = matchValue(mockDispatch.path, path)\n const methodMatch = matchValue(mockDispatch.method, method)\n const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true\n const headersMatch = matchHeaders(mockDispatch, headers)\n return pathMatch && methodMatch && bodyMatch && headersMatch\n}\n\nfunction getResponseData (data) {\n if (Buffer.isBuffer(data)) {\n return data\n } else if (data instanceof Uint8Array) {\n return data\n } else if (data instanceof ArrayBuffer) {\n return data\n } else if (typeof data === 'object') {\n return JSON.stringify(data)\n } else {\n return data.toString()\n }\n}\n\nfunction getMockDispatch (mockDispatches, key) {\n const basePath = key.query ? buildURL(key.path, key.query) : key.path\n const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath\n\n // Match path\n let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)\n }\n\n // Match method\n matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}' on path '${resolvedPath}'`)\n }\n\n // Match body\n matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`)\n }\n\n // Match headers\n matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))\n if (matchedMockDispatches.length === 0) {\n const headers = typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers\n throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`)\n }\n\n return matchedMockDispatches[0]\n}\n\nfunction addMockDispatch (mockDispatches, key, data) {\n const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }\n const replyData = typeof data === 'function' ? { callback: data } : { ...data }\n const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }\n mockDispatches.push(newMockDispatch)\n return newMockDispatch\n}\n\nfunction deleteMockDispatch (mockDispatches, key) {\n const index = mockDispatches.findIndex(dispatch => {\n if (!dispatch.consumed) {\n return false\n }\n return matchKey(dispatch, key)\n })\n if (index !== -1) {\n mockDispatches.splice(index, 1)\n }\n}\n\nfunction buildKey (opts) {\n const { path, method, body, headers, query } = opts\n return {\n path,\n method,\n body,\n headers,\n query\n }\n}\n\nfunction generateKeyValues (data) {\n const keys = Object.keys(data)\n const result = []\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i]\n const value = data[key]\n const name = Buffer.from(`${key}`)\n if (Array.isArray(value)) {\n for (let j = 0; j < value.length; ++j) {\n result.push(name, Buffer.from(`${value[j]}`))\n }\n } else {\n result.push(name, Buffer.from(`${value}`))\n }\n }\n return result\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\n * @param {number} statusCode\n */\nfunction getStatusText (statusCode) {\n return STATUS_CODES[statusCode] || 'unknown'\n}\n\nasync function getResponse (body) {\n const buffers = []\n for await (const data of body) {\n buffers.push(data)\n }\n return Buffer.concat(buffers).toString('utf8')\n}\n\n/**\n * Mock dispatch function used to simulate undici dispatches\n */\nfunction mockDispatch (opts, handler) {\n // Get mock dispatch from built key\n const key = buildKey(opts)\n const mockDispatch = getMockDispatch(this[kDispatches], key)\n\n mockDispatch.timesInvoked++\n\n // Here's where we resolve a callback if a callback is present for the dispatch data.\n if (mockDispatch.data.callback) {\n mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }\n }\n\n // Parse mockDispatch data\n const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch\n const { timesInvoked, times } = mockDispatch\n\n // If it's used up and not persistent, mark as consumed\n mockDispatch.consumed = !persist && timesInvoked >= times\n mockDispatch.pending = timesInvoked < times\n\n // If specified, trigger dispatch error\n if (error !== null) {\n deleteMockDispatch(this[kDispatches], key)\n handler.onError(error)\n return true\n }\n\n // Handle the request with a delay if necessary\n if (typeof delay === 'number' && delay > 0) {\n setTimeout(() => {\n handleReply(this[kDispatches])\n }, delay)\n } else {\n handleReply(this[kDispatches])\n }\n\n function handleReply (mockDispatches, _data = data) {\n // fetch's HeadersList is a 1D string array\n const optsHeaders = Array.isArray(opts.headers)\n ? buildHeadersFromArray(opts.headers)\n : opts.headers\n const body = typeof _data === 'function'\n ? _data({ ...opts, headers: optsHeaders })\n : _data\n\n // util.types.isPromise is likely needed for jest.\n if (isPromise(body)) {\n // If handleReply is asynchronous, throwing an error\n // in the callback will reject the promise, rather than\n // synchronously throw the error, which breaks some tests.\n // Rather, we wait for the callback to resolve if it is a\n // promise, and then re-run handleReply with the new body.\n body.then((newData) => handleReply(mockDispatches, newData))\n return\n }\n\n const responseData = getResponseData(body)\n const responseHeaders = generateKeyValues(headers)\n const responseTrailers = generateKeyValues(trailers)\n\n handler.onConnect?.(err => handler.onError(err), null)\n handler.onHeaders?.(statusCode, responseHeaders, resume, getStatusText(statusCode))\n handler.onData?.(Buffer.from(responseData))\n handler.onComplete?.(responseTrailers)\n deleteMockDispatch(mockDispatches, key)\n }\n\n function resume () {}\n\n return true\n}\n\nfunction buildMockDispatch () {\n const agent = this[kMockAgent]\n const origin = this[kOrigin]\n const originalDispatch = this[kOriginalDispatch]\n\n return function dispatch (opts, handler) {\n if (agent.isMockActive) {\n try {\n mockDispatch.call(this, opts, handler)\n } catch (error) {\n if (error instanceof MockNotMatchedError) {\n const netConnect = agent[kGetNetConnect]()\n if (netConnect === false) {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)\n }\n if (checkNetConnect(netConnect, origin)) {\n originalDispatch.call(this, opts, handler)\n } else {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)\n }\n } else {\n throw error\n }\n }\n } else {\n originalDispatch.call(this, opts, handler)\n }\n }\n}\n\nfunction checkNetConnect (netConnect, origin) {\n const url = new URL(origin)\n if (netConnect === true) {\n return true\n } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {\n return true\n }\n return false\n}\n\nfunction buildMockOptions (opts) {\n if (opts) {\n const { agent, ...mockOptions } = opts\n return mockOptions\n }\n}\n\nmodule.exports = {\n getResponseData,\n getMockDispatch,\n addMockDispatch,\n deleteMockDispatch,\n buildKey,\n generateKeyValues,\n matchValue,\n getResponse,\n getStatusText,\n mockDispatch,\n buildMockDispatch,\n checkNetConnect,\n buildMockOptions,\n getHeaderByName,\n buildHeadersFromArray\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;CAEA,MAAM,EAAE,mBAAmB,EAAE,GAAGA,iBAAA;CAChC,MAAM;AACN,GAAE,WAAW;AACb,GAAE,UAAU;AACZ,GAAE,iBAAiB;AACnB,GAAE,OAAO;GACP;AACF,EAAC,GAAGC,kBAAA;CACJ,MAAM,EAAE,QA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AAc,GAAG;AACjB,GAAE,eAAe;AACjB,GAAE,eAAe;AACjB,GAAE,eAAe;AACjB,GAAE,kBAAkB;AACpB,GAAE,QAAQ;AACV,GAAE,iBAAiB;AACnB,GAAE,UAAU;AACZ,GAAE,WAAW;AACb,GAAE,aAAa;AACf,GAAE,YAAY;AACd,GAAE,iBAAiB;AACnB,GAAE,eAAe;AACjB,GAAE,gBAAgB;AAClB,GAAE,eAAe;GACf;AACF;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -11,6 +11,9 @@ function requirePendingInterceptorsFormatter () {
|
|
|
11
11
|
const { Transform } = require$$0;
|
|
12
12
|
const { Console } = require$$1;
|
|
13
13
|
|
|
14
|
+
const PERSISTENT = process.versions.icu ? '✅' : 'Y ';
|
|
15
|
+
const NOT_PERSISTENT = process.versions.icu ? '❌' : 'N ';
|
|
16
|
+
|
|
14
17
|
/**
|
|
15
18
|
* Gets the output of `console.table(…)` as a string.
|
|
16
19
|
*/
|
|
@@ -37,7 +40,7 @@ function requirePendingInterceptorsFormatter () {
|
|
|
37
40
|
Origin: origin,
|
|
38
41
|
Path: path,
|
|
39
42
|
'Status code': statusCode,
|
|
40
|
-
Persistent: persist ?
|
|
43
|
+
Persistent: persist ? PERSISTENT : NOT_PERSISTENT,
|
|
41
44
|
Invocations: timesInvoked,
|
|
42
45
|
Remaining: persist ? Infinity : times - timesInvoked
|
|
43
46
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pending-interceptors-formatter.js","sources":["../../../../../../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js"],"sourcesContent":["'use strict'\n\nconst { Transform } = require('stream')\nconst { Console } = require('console')\n\n/**\n * Gets the output of `console.table(…)` as a string.\n */\nmodule.exports = class PendingInterceptorsFormatter {\n constructor ({ disableColors } = {}) {\n this.transform = new Transform({\n transform (chunk, _enc, cb) {\n cb(null, chunk)\n }\n })\n\n this.logger = new Console({\n stdout: this.transform,\n inspectOptions: {\n colors: !disableColors && !process.env.CI\n }\n })\n }\n\n format (pendingInterceptors) {\n const withPrettyHeaders = pendingInterceptors.map(\n ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({\n Method: method,\n Origin: origin,\n Path: path,\n 'Status code': statusCode,\n Persistent: persist ?
|
|
1
|
+
{"version":3,"file":"pending-interceptors-formatter.js","sources":["../../../../../../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js"],"sourcesContent":["'use strict'\n\nconst { Transform } = require('node:stream')\nconst { Console } = require('node:console')\n\nconst PERSISTENT = process.versions.icu ? '✅' : 'Y '\nconst NOT_PERSISTENT = process.versions.icu ? '❌' : 'N '\n\n/**\n * Gets the output of `console.table(…)` as a string.\n */\nmodule.exports = class PendingInterceptorsFormatter {\n constructor ({ disableColors } = {}) {\n this.transform = new Transform({\n transform (chunk, _enc, cb) {\n cb(null, chunk)\n }\n })\n\n this.logger = new Console({\n stdout: this.transform,\n inspectOptions: {\n colors: !disableColors && !process.env.CI\n }\n })\n }\n\n format (pendingInterceptors) {\n const withPrettyHeaders = pendingInterceptors.map(\n ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({\n Method: method,\n Origin: origin,\n Path: path,\n 'Status code': statusCode,\n Persistent: persist ? PERSISTENT : NOT_PERSISTENT,\n Invocations: timesInvoked,\n Remaining: persist ? Infinity : times - timesInvoked\n }))\n\n this.logger.table(withPrettyHeaders)\n return this.transform.read().toString()\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;CAEA,MAAM,EAAE,SAAS,EAAE,GAAG;CACtB,MAAM,EAAE,OAAO,EAAE,GAAG;;CAEpB,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,GAAG;CAChD,MAAM,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,GAAG;;AAEpD;AACA;AACA;AACA,CAAA,4BAAc,GAAG,MAAM,4BAA4B,CAAC;GAClD,WAAW,CAAC,CAAC,EAAE,aAAa,EAAE,GAAG,EAAE,EAAE;AACvC,KAAI,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC;OAC7B,SAAS,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;AAClC,SAAQ,EAAE,CAAC,IAAI,EAAE,KAAK;AACtB,OAAA;MACK;;AAEL,KAAI,IAAI,CAAC,MAAM,GAAG,IAAI,OAAO,CAAC;AAC9B,OAAM,MAAM,EAAE,IAAI,CAAC,SAAS;AAC5B,OAAM,cAAc,EAAE;SACd,MAAM,EAAE,CAAC,aAAa,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;AAC/C;MACK;AACL,GAAA;;AAEA,GAAE,MAAM,CAAC,CAAC,mBAAmB,EAAE;AAC/B,KAAI,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,GAAG;OAC/C,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;SACjF,MAAM,EAAE,MAAM;SACd,MAAM,EAAE,MAAM;SACd,IAAI,EAAE,IAAI;SACV,aAAa,EAAE,UAAU;AACjC,SAAQ,UAAU,EAAE,OAAO,GAAG,UAAU,GAAG,cAAc;SACjD,WAAW,EAAE,YAAY;AACjC,SAAQ,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG;AAChD,QAAO,CAAC;;AAER,KAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB;KACnC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,QAAQ;AACzC,GAAA;AACA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timers.js","sources":["../../../../../../../../node_modules/undici/lib/util/timers.js"],"sourcesContent":["'use strict'\n\n/**\n * This module offers an optimized timer implementation designed for scenarios\n * where high precision is not critical.\n *\n * The timer achieves faster performance by using a low-resolution approach,\n * with an accuracy target of within 500ms. This makes it particularly useful\n * for timers with delays of 1 second or more, where exact timing is less\n * crucial.\n *\n * It's important to note that Node.js timers are inherently imprecise, as\n * delays can occur due to the event loop being blocked by other operations.\n * Consequently, timers may trigger later than their scheduled time.\n */\n\n/**\n * The fastNow variable contains the internal fast timer clock value.\n *\n * @type {number}\n */\nlet fastNow = 0\n\n/**\n * RESOLUTION_MS represents the target resolution time in milliseconds.\n *\n * @type {number}\n * @default 1000\n */\nconst RESOLUTION_MS = 1e3\n\n/**\n * TICK_MS defines the desired interval in milliseconds between each tick.\n * The target value is set to half the resolution time, minus 1 ms, to account\n * for potential event loop overhead.\n *\n * @type {number}\n * @default 499\n */\nconst TICK_MS = (RESOLUTION_MS >> 1) - 1\n\n/**\n * fastNowTimeout is a Node.js timer used to manage and process\n * the FastTimers stored in the `fastTimers` array.\n *\n * @type {NodeJS.Timeout}\n */\nlet fastNowTimeout\n\n/**\n * The kFastTimer symbol is used to identify FastTimer instances.\n *\n * @type {Symbol}\n */\nconst kFastTimer = Symbol('kFastTimer')\n\n/**\n * The fastTimers array contains all active FastTimers.\n *\n * @type {FastTimer[]}\n */\nconst fastTimers = []\n\n/**\n * These constants represent the various states of a FastTimer.\n */\n\n/**\n * The `NOT_IN_LIST` constant indicates that the FastTimer is not included\n * in the `fastTimers` array. Timers with this status will not be processed\n * during the next tick by the `onTick` function.\n *\n * A FastTimer can be re-added to the `fastTimers` array by invoking the\n * `refresh` method on the FastTimer instance.\n *\n * @type {-2}\n */\nconst NOT_IN_LIST = -2\n\n/**\n * The `TO_BE_CLEARED` constant indicates that the FastTimer is scheduled\n * for removal from the `fastTimers` array. A FastTimer in this state will\n * be removed in the next tick by the `onTick` function and will no longer\n * be processed.\n *\n * This status is also set when the `clear` method is called on the FastTimer instance.\n *\n * @type {-1}\n */\nconst TO_BE_CLEARED = -1\n\n/**\n * The `PENDING` constant signifies that the FastTimer is awaiting processing\n * in the next tick by the `onTick` function. Timers with this status will have\n * their `_idleStart` value set and their status updated to `ACTIVE` in the next tick.\n *\n * @type {0}\n */\nconst PENDING = 0\n\n/**\n * The `ACTIVE` constant indicates that the FastTimer is active and waiting\n * for its timer to expire. During the next tick, the `onTick` function will\n * check if the timer has expired, and if so, it will execute the associated callback.\n *\n * @type {1}\n */\nconst ACTIVE = 1\n\n/**\n * The onTick function processes the fastTimers array.\n *\n * @returns {void}\n */\nfunction onTick () {\n /**\n * Increment the fastNow value by the TICK_MS value, despite the actual time\n * that has passed since the last tick. This approach ensures independence\n * from the system clock and delays caused by a blocked event loop.\n *\n * @type {number}\n */\n fastNow += TICK_MS\n\n /**\n * The `idx` variable is used to iterate over the `fastTimers` array.\n * Expired timers are removed by replacing them with the last element in the array.\n * Consequently, `idx` is only incremented when the current element is not removed.\n *\n * @type {number}\n */\n let idx = 0\n\n /**\n * The len variable will contain the length of the fastTimers array\n * and will be decremented when a FastTimer should be removed from the\n * fastTimers array.\n *\n * @type {number}\n */\n let len = fastTimers.length\n\n while (idx < len) {\n /**\n * @type {FastTimer}\n */\n const timer = fastTimers[idx]\n\n // If the timer is in the ACTIVE state and the timer has expired, it will\n // be processed in the next tick.\n if (timer._state === PENDING) {\n // Set the _idleStart value to the fastNow value minus the TICK_MS value\n // to account for the time the timer was in the PENDING state.\n timer._idleStart = fastNow - TICK_MS\n timer._state = ACTIVE\n } else if (\n timer._state === ACTIVE &&\n fastNow >= timer._idleStart + timer._idleTimeout\n ) {\n timer._state = TO_BE_CLEARED\n timer._idleStart = -1\n timer._onTimeout(timer._timerArg)\n }\n\n if (timer._state === TO_BE_CLEARED) {\n timer._state = NOT_IN_LIST\n\n // Move the last element to the current index and decrement len if it is\n // not the only element in the array.\n if (--len !== 0) {\n fastTimers[idx] = fastTimers[len]\n }\n } else {\n ++idx\n }\n }\n\n // Set the length of the fastTimers array to the new length and thus\n // removing the excess FastTimers elements from the array.\n fastTimers.length = len\n\n // If there are still active FastTimers in the array, refresh the Timer.\n // If there are no active FastTimers, the timer will be refreshed again\n // when a new FastTimer is instantiated.\n if (fastTimers.length !== 0) {\n refreshTimeout()\n }\n}\n\nfunction refreshTimeout () {\n // If the fastNowTimeout is already set, refresh it.\n if (fastNowTimeout) {\n fastNowTimeout.refresh()\n // fastNowTimeout is not instantiated yet, create a new Timer.\n } else {\n clearTimeout(fastNowTimeout)\n fastNowTimeout = setTimeout(onTick, TICK_MS)\n\n // If the Timer has an unref method, call it to allow the process to exit if\n // there are no other active handles.\n if (fastNowTimeout.unref) {\n fastNowTimeout.unref()\n }\n }\n}\n\n/**\n * The `FastTimer` class is a data structure designed to store and manage\n * timer information.\n */\nclass FastTimer {\n [kFastTimer] = true\n\n /**\n * The state of the timer, which can be one of the following:\n * - NOT_IN_LIST (-2)\n * - TO_BE_CLEARED (-1)\n * - PENDING (0)\n * - ACTIVE (1)\n *\n * @type {-2|-1|0|1}\n * @private\n */\n _state = NOT_IN_LIST\n\n /**\n * The number of milliseconds to wait before calling the callback.\n *\n * @type {number}\n * @private\n */\n _idleTimeout = -1\n\n /**\n * The time in milliseconds when the timer was started. This value is used to\n * calculate when the timer should expire.\n *\n * @type {number}\n * @default -1\n * @private\n */\n _idleStart = -1\n\n /**\n * The function to be executed when the timer expires.\n * @type {Function}\n * @private\n */\n _onTimeout\n\n /**\n * The argument to be passed to the callback when the timer expires.\n *\n * @type {*}\n * @private\n */\n _timerArg\n\n /**\n * @constructor\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should wait\n * before the specified function or code is executed.\n * @param {*} arg\n */\n constructor (callback, delay, arg) {\n this._onTimeout = callback\n this._idleTimeout = delay\n this._timerArg = arg\n\n this.refresh()\n }\n\n /**\n * Sets the timer's start time to the current time, and reschedules the timer\n * to call its callback at the previously specified duration adjusted to the\n * current time.\n * Using this on a timer that has already called its callback will reactivate\n * the timer.\n *\n * @returns {void}\n */\n refresh () {\n // In the special case that the timer is not in the list of active timers,\n // add it back to the array to be processed in the next tick by the onTick\n // function.\n if (this._state === NOT_IN_LIST) {\n fastTimers.push(this)\n }\n\n // If the timer is the only active timer, refresh the fastNowTimeout for\n // better resolution.\n if (!fastNowTimeout || fastTimers.length === 1) {\n refreshTimeout()\n }\n\n // Setting the state to PENDING will cause the timer to be reset in the\n // next tick by the onTick function.\n this._state = PENDING\n }\n\n /**\n * The `clear` method cancels the timer, preventing it from executing.\n *\n * @returns {void}\n * @private\n */\n clear () {\n // Set the state to TO_BE_CLEARED to mark the timer for removal in the next\n // tick by the onTick function.\n this._state = TO_BE_CLEARED\n\n // Reset the _idleStart value to -1 to indicate that the timer is no longer\n // active.\n this._idleStart = -1\n }\n}\n\n/**\n * This module exports a setTimeout and clearTimeout function that can be\n * used as a drop-in replacement for the native functions.\n */\nmodule.exports = {\n /**\n * The setTimeout() method sets a timer which executes a function once the\n * timer expires.\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should\n * wait before the specified function or code is executed.\n * @param {*} [arg] An optional argument to be passed to the callback function\n * when the timer expires.\n * @returns {NodeJS.Timeout|FastTimer}\n */\n setTimeout (callback, delay, arg) {\n // If the delay is less than or equal to the RESOLUTION_MS value return a\n // native Node.js Timer instance.\n return delay <= RESOLUTION_MS\n ? setTimeout(callback, delay, arg)\n : new FastTimer(callback, delay, arg)\n },\n /**\n * The clearTimeout method cancels an instantiated Timer previously created\n * by calling setTimeout.\n *\n * @param {NodeJS.Timeout|FastTimer} timeout\n */\n clearTimeout (timeout) {\n // If the timeout is a FastTimer, call its own clear method.\n if (timeout[kFastTimer]) {\n /**\n * @type {FastTimer}\n */\n timeout.clear()\n // Otherwise it is an instance of a native NodeJS.Timeout, so call the\n // Node.js native clearTimeout function.\n } else {\n clearTimeout(timeout)\n }\n },\n /**\n * The setFastTimeout() method sets a fastTimer which executes a function once\n * the timer expires.\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should\n * wait before the specified function or code is executed.\n * @param {*} [arg] An optional argument to be passed to the callback function\n * when the timer expires.\n * @returns {FastTimer}\n */\n setFastTimeout (callback, delay, arg) {\n return new FastTimer(callback, delay, arg)\n },\n /**\n * The clearTimeout method cancels an instantiated FastTimer previously\n * created by calling setFastTimeout.\n *\n * @param {FastTimer} timeout\n */\n clearFastTimeout (timeout) {\n timeout.clear()\n },\n /**\n * The now method returns the value of the internal fast timer clock.\n *\n * @returns {number}\n */\n now () {\n return fastNow\n },\n /**\n * Trigger the onTick function to process the fastTimers array.\n * Exported for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n * @param {number} [delay=0] The delay in milliseconds to add to the now value.\n */\n tick (delay = 0) {\n fastNow += delay - RESOLUTION_MS + 1\n onTick()\n onTick()\n },\n /**\n * Reset FastTimers.\n * Exported for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n */\n reset () {\n fastNow = 0\n fastTimers.length = 0\n clearTimeout(fastNowTimeout)\n fastNowTimeout = null\n },\n /**\n * Exporting for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n */\n kFastTimer\n}\n"],"names":[],"mappings":";;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAA,IAAI,OAAO,GAAG;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,MAAM,aAAa,GAAG;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,MAAM,OAAO,GAAG,CAAC,aAAa,IAAI,CAAC,IAAI;;AAEvC;AACA;AACA;AACA;AACA;AACA;CACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA,CAAA,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY;;AAEtC;AACA;AACA;AACA;AACA;AACA,CAAA,MAAM,UAAU,GAAG;;AAEnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AACA;GACE,GAAG,CAAC,GAAG;AACT,KAAI,OAAO;GACX,CAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAE,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE;AACnB,KAAI,OAAO,IAAI,KAAK,GAAG,aAAa,GAAG;AACvC,KAAI,MAAM;AACV,KAAI,MAAM;GACV,CAAG;AACH;AACA;AACA;AACA;AACA;AACA;GACE,KAAK,CAAC,GAAG;AACX,KAAI,OAAO,GAAG;KACV,UAAU,CAAC,MAAM,GAAG;KACpB,YAAY,CAAC,cAAc;AAC/B,KAAI,cAAc,GAAG;GACrB,CAAG;AACH;AACA;AACA;AACA;AACA;GACE;AACF;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.js","sources":["../../../../../../../../../node_modules/undici/lib/web/cache/cache.js"],"sourcesContent":["'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { urlEquals, getFieldValues } = require('./util')\nconst { kEnumerableProperty, isDisturbed } = require('../../core/util')\nconst { webidl } = require('../fetch/webidl')\nconst { Response, cloneResponse, fromInnerResponse } = require('../fetch/response')\nconst { Request, fromInnerRequest } = require('../fetch/request')\nconst { kState } = require('../fetch/symbols')\nconst { fetching } = require('../fetch/index')\nconst { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require('../fetch/util')\nconst assert = require('node:assert')\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation\n * @typedef {Object} CacheBatchOperation\n * @property {'delete' | 'put'} type\n * @property {any} request\n * @property {any} response\n * @property {import('../../types/cache').CacheQueryOptions} options\n */\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list\n * @typedef {[any, any][]} requestResponseList\n */\n\nclass Cache {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list\n * @type {requestResponseList}\n */\n #relevantRequestResponseList\n\n constructor () {\n if (arguments[0] !== kConstruct) {\n webidl.illegalConstructor()\n }\n\n webidl.util.markAsUncloneable(this)\n this.#relevantRequestResponseList = arguments[1]\n }\n\n async match (request, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.match'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n const p = this.#internalMatchAll(request, options, 1)\n\n if (p.length === 0) {\n return\n }\n\n return p[0]\n }\n\n async matchAll (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.matchAll'\n if (request !== undefined) request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n return this.#internalMatchAll(request, options)\n }\n\n async add (request) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.add'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n\n // 1.\n const requests = [request]\n\n // 2.\n const responseArrayPromise = this.addAll(requests)\n\n // 3.\n return await responseArrayPromise\n }\n\n async addAll (requests) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.addAll'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n // 1.\n const responsePromises = []\n\n // 2.\n const requestList = []\n\n // 3.\n for (let request of requests) {\n if (request === undefined) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: 'Argument 1',\n types: ['undefined is not allowed']\n })\n }\n\n request = webidl.converters.RequestInfo(request)\n\n if (typeof request === 'string') {\n continue\n }\n\n // 3.1\n const r = request[kState]\n\n // 3.2\n if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected http/s scheme when method is not GET.'\n })\n }\n }\n\n // 4.\n /** @type {ReturnType<typeof fetching>[]} */\n const fetchControllers = []\n\n // 5.\n for (const request of requests) {\n // 5.1\n const r = new Request(request)[kState]\n\n // 5.2\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected http/s scheme.'\n })\n }\n\n // 5.4\n r.initiator = 'fetch'\n r.destination = 'subresource'\n\n // 5.5\n requestList.push(r)\n\n // 5.6\n const responsePromise = createDeferredPromise()\n\n // 5.7\n fetchControllers.push(fetching({\n request: r,\n processResponse (response) {\n // 1.\n if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'Received an invalid status code or the request failed.'\n }))\n } else if (response.headersList.contains('vary')) { // 2.\n // 2.1\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n // 2.2\n for (const fieldValue of fieldValues) {\n // 2.2.1\n if (fieldValue === '*') {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'invalid vary field value'\n }))\n\n for (const controller of fetchControllers) {\n controller.abort()\n }\n\n return\n }\n }\n }\n },\n processResponseEndOfBody (response) {\n // 1.\n if (response.aborted) {\n responsePromise.reject(new DOMException('aborted', 'AbortError'))\n return\n }\n\n // 2.\n responsePromise.resolve(response)\n }\n }))\n\n // 5.8\n responsePromises.push(responsePromise.promise)\n }\n\n // 6.\n const p = Promise.all(responsePromises)\n\n // 7.\n const responses = await p\n\n // 7.1\n const operations = []\n\n // 7.2\n let index = 0\n\n // 7.3\n for (const response of responses) {\n // 7.3.1\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 7.3.2\n request: requestList[index], // 7.3.3\n response // 7.3.4\n }\n\n operations.push(operation) // 7.3.5\n\n index++ // 7.3.6\n }\n\n // 7.5\n const cacheJobPromise = createDeferredPromise()\n\n // 7.6.1\n let errorData = null\n\n // 7.6.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 7.6.3\n queueMicrotask(() => {\n // 7.6.3.1\n if (errorData === null) {\n cacheJobPromise.resolve(undefined)\n } else {\n // 7.6.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n // 7.7\n return cacheJobPromise.promise\n }\n\n async put (request, response) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.put'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n response = webidl.converters.Response(response, prefix, 'response')\n\n // 1.\n let innerRequest = null\n\n // 2.\n if (request instanceof Request) {\n innerRequest = request[kState]\n } else { // 3.\n innerRequest = new Request(request)[kState]\n }\n\n // 4.\n if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected an http/s scheme when method is not GET'\n })\n }\n\n // 5.\n const innerResponse = response[kState]\n\n // 6.\n if (innerResponse.status === 206) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Got 206 status'\n })\n }\n\n // 7.\n if (innerResponse.headersList.contains('vary')) {\n // 7.1.\n const fieldValues = getFieldValues(innerResponse.headersList.get('vary'))\n\n // 7.2.\n for (const fieldValue of fieldValues) {\n // 7.2.1\n if (fieldValue === '*') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Got * vary field value'\n })\n }\n }\n }\n\n // 8.\n if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Response body is locked or disturbed'\n })\n }\n\n // 9.\n const clonedResponse = cloneResponse(innerResponse)\n\n // 10.\n const bodyReadPromise = createDeferredPromise()\n\n // 11.\n if (innerResponse.body != null) {\n // 11.1\n const stream = innerResponse.body.stream\n\n // 11.2\n const reader = stream.getReader()\n\n // 11.3\n readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject)\n } else {\n bodyReadPromise.resolve(undefined)\n }\n\n // 12.\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n // 13.\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 14.\n request: innerRequest, // 15.\n response: clonedResponse // 16.\n }\n\n // 17.\n operations.push(operation)\n\n // 19.\n const bytes = await bodyReadPromise.promise\n\n if (clonedResponse.body != null) {\n clonedResponse.body.source = bytes\n }\n\n // 19.1\n const cacheJobPromise = createDeferredPromise()\n\n // 19.2.1\n let errorData = null\n\n // 19.2.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 19.2.3\n queueMicrotask(() => {\n // 19.2.3.1\n if (errorData === null) {\n cacheJobPromise.resolve()\n } else { // 19.2.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n async delete (request, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n /**\n * @type {Request}\n */\n let r = null\n\n if (request instanceof Request) {\n r = request[kState]\n\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return false\n }\n } else {\n assert(typeof request === 'string')\n\n r = new Request(request)[kState]\n }\n\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'delete',\n request: r,\n options\n }\n\n operations.push(operation)\n\n const cacheJobPromise = createDeferredPromise()\n\n let errorData = null\n let requestResponses\n\n try {\n requestResponses = this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n queueMicrotask(() => {\n if (errorData === null) {\n cacheJobPromise.resolve(!!requestResponses?.length)\n } else {\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys\n * @param {any} request\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @returns {Promise<readonly Request[]>}\n */\n async keys (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.keys'\n\n if (request !== undefined) request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n // 2.1\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') { // 2.2\n r = new Request(request)[kState]\n }\n }\n\n // 4.\n const promise = createDeferredPromise()\n\n // 5.\n // 5.1\n const requests = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n // 5.2.1.1\n requests.push(requestResponse[0])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n // 5.3.2.1\n requests.push(requestResponse[0])\n }\n }\n\n // 5.4\n queueMicrotask(() => {\n // 5.4.1\n const requestList = []\n\n // 5.4.2\n for (const request of requests) {\n const requestObject = fromInnerRequest(\n request,\n new AbortController().signal,\n 'immutable'\n )\n // 5.4.2.1\n requestList.push(requestObject)\n }\n\n // 5.4.3\n promise.resolve(Object.freeze(requestList))\n })\n\n return promise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm\n * @param {CacheBatchOperation[]} operations\n * @returns {requestResponseList}\n */\n #batchCacheOperations (operations) {\n // 1.\n const cache = this.#relevantRequestResponseList\n\n // 2.\n const backupCache = [...cache]\n\n // 3.\n const addedItems = []\n\n // 4.1\n const resultList = []\n\n try {\n // 4.2\n for (const operation of operations) {\n // 4.2.1\n if (operation.type !== 'delete' && operation.type !== 'put') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'operation type does not match \"delete\" or \"put\"'\n })\n }\n\n // 4.2.2\n if (operation.type === 'delete' && operation.response != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'delete operation should not have an associated response'\n })\n }\n\n // 4.2.3\n if (this.#queryCache(operation.request, operation.options, addedItems).length) {\n throw new DOMException('???', 'InvalidStateError')\n }\n\n // 4.2.4\n let requestResponses\n\n // 4.2.5\n if (operation.type === 'delete') {\n // 4.2.5.1\n requestResponses = this.#queryCache(operation.request, operation.options)\n\n // TODO: the spec is wrong, this is needed to pass WPTs\n if (requestResponses.length === 0) {\n return []\n }\n\n // 4.2.5.2\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.5.2.1\n cache.splice(idx, 1)\n }\n } else if (operation.type === 'put') { // 4.2.6\n // 4.2.6.1\n if (operation.response == null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'put operation should have an associated response'\n })\n }\n\n // 4.2.6.2\n const r = operation.request\n\n // 4.2.6.3\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'expected http or https scheme'\n })\n }\n\n // 4.2.6.4\n if (r.method !== 'GET') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'not get method'\n })\n }\n\n // 4.2.6.5\n if (operation.options != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'options must not be defined'\n })\n }\n\n // 4.2.6.6\n requestResponses = this.#queryCache(operation.request)\n\n // 4.2.6.7\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.6.7.1\n cache.splice(idx, 1)\n }\n\n // 4.2.6.8\n cache.push([operation.request, operation.response])\n\n // 4.2.6.10\n addedItems.push([operation.request, operation.response])\n }\n\n // 4.2.7\n resultList.push([operation.request, operation.response])\n }\n\n // 4.3\n return resultList\n } catch (e) { // 5.\n // 5.1\n this.#relevantRequestResponseList.length = 0\n\n // 5.2\n this.#relevantRequestResponseList = backupCache\n\n // 5.3\n throw e\n }\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#query-cache\n * @param {any} requestQuery\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @param {requestResponseList} targetStorage\n * @returns {requestResponseList}\n */\n #queryCache (requestQuery, options, targetStorage) {\n /** @type {requestResponseList} */\n const resultList = []\n\n const storage = targetStorage ?? this.#relevantRequestResponseList\n\n for (const requestResponse of storage) {\n const [cachedRequest, cachedResponse] = requestResponse\n if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {\n resultList.push(requestResponse)\n }\n }\n\n return resultList\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm\n * @param {any} requestQuery\n * @param {any} request\n * @param {any | null} response\n * @param {import('../../types/cache').CacheQueryOptions | undefined} options\n * @returns {boolean}\n */\n #requestMatchesCachedItem (requestQuery, request, response = null, options) {\n // if (options?.ignoreMethod === false && request.method === 'GET') {\n // return false\n // }\n\n const queryURL = new URL(requestQuery.url)\n\n const cachedURL = new URL(request.url)\n\n if (options?.ignoreSearch) {\n cachedURL.search = ''\n\n queryURL.search = ''\n }\n\n if (!urlEquals(queryURL, cachedURL, true)) {\n return false\n }\n\n if (\n response == null ||\n options?.ignoreVary ||\n !response.headersList.contains('vary')\n ) {\n return true\n }\n\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n for (const fieldValue of fieldValues) {\n if (fieldValue === '*') {\n return false\n }\n\n const requestValue = request.headersList.get(fieldValue)\n const queryValue = requestQuery.headersList.get(fieldValue)\n\n // If one has the header and the other doesn't, or one has\n // a different value than the other, return false\n if (requestValue !== queryValue) {\n return false\n }\n }\n\n return true\n }\n\n #internalMatchAll (request, options, maxResponses = Infinity) {\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') {\n // 2.2.1\n r = new Request(request)[kState]\n }\n }\n\n // 5.\n // 5.1\n const responses = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n responses.push(requestResponse[1])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n responses.push(requestResponse[1])\n }\n }\n\n // 5.4\n // We don't implement CORs so we don't need to loop over the responses, yay!\n\n // 5.5.1\n const responseList = []\n\n // 5.5.2\n for (const response of responses) {\n // 5.5.2.1\n const responseObject = fromInnerResponse(response, 'immutable')\n\n responseList.push(responseObject.clone())\n\n if (responseList.length >= maxResponses) {\n break\n }\n }\n\n // 6.\n return Object.freeze(responseList)\n }\n}\n\nObject.defineProperties(Cache.prototype, {\n [Symbol.toStringTag]: {\n value: 'Cache',\n configurable: true\n },\n match: kEnumerableProperty,\n matchAll: kEnumerableProperty,\n add: kEnumerableProperty,\n addAll: kEnumerableProperty,\n put: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nconst cacheQueryOptionConverters = [\n {\n key: 'ignoreSearch',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'ignoreMethod',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'ignoreVary',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n }\n]\n\nwebidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters)\n\nwebidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([\n ...cacheQueryOptionConverters,\n {\n key: 'cacheName',\n converter: webidl.converters.DOMString\n }\n])\n\nwebidl.converters.Response = webidl.interfaceConverter(Response)\n\nwebidl.converters['sequence<RequestInfo>'] = webidl.sequenceConverter(\n webidl.converters.RequestInfo\n)\n\nmodule.exports = {\n Cache\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9"],"mappings":";;;;;;;;;;;;;;;;;;CAEA,MAAM,EAAE,UA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.js","sources":["../../../../../../../../../node_modules/undici/lib/web/cache/cachestorage.js"],"sourcesContent":["'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { Cache } = require('./cache')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../../core/util')\n\nclass CacheStorage {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map\n * @type {Map<string, import('./cache').requestResponseList}\n */\n #caches = new Map()\n\n constructor () {\n if (arguments[0] !== kConstruct) {\n webidl.illegalConstructor()\n }\n\n webidl.util.markAsUncloneable(this)\n }\n\n async match (request, options = {}) {\n webidl.brandCheck(this, CacheStorage)\n webidl.argumentLengthCheck(arguments, 1, 'CacheStorage.match')\n\n request = webidl.converters.RequestInfo(request)\n options = webidl.converters.MultiCacheQueryOptions(options)\n\n // 1.\n if (options.cacheName != null) {\n // 1.1.1.1\n if (this.#caches.has(options.cacheName)) {\n // 1.1.1.1.1\n const cacheList = this.#caches.get(options.cacheName)\n const cache = new Cache(kConstruct, cacheList)\n\n return await cache.match(request, options)\n }\n } else { // 2.\n // 2.2\n for (const cacheList of this.#caches.values()) {\n const cache = new Cache(kConstruct, cacheList)\n\n // 2.2.1.2\n const response = await cache.match(request, options)\n\n if (response !== undefined) {\n return response\n }\n }\n }\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-has\n * @param {string} cacheName\n * @returns {Promise<boolean>}\n */\n async has (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.has'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n // 2.1.1\n // 2.2\n return this.#caches.has(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open\n * @param {string} cacheName\n * @returns {Promise<Cache>}\n */\n async open (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.open'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n // 2.1\n if (this.#caches.has(cacheName)) {\n // await caches.open('v1') !== await caches.open('v1')\n\n // 2.1.1\n const cache = this.#caches.get(cacheName)\n\n // 2.1.1.1\n return new Cache(kConstruct, cache)\n }\n\n // 2.2\n const cache = []\n\n // 2.3\n this.#caches.set(cacheName, cache)\n\n // 2.4\n return new Cache(kConstruct, cache)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete\n * @param {string} cacheName\n * @returns {Promise<boolean>}\n */\n async delete (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n return this.#caches.delete(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys\n * @returns {Promise<string[]>}\n */\n async keys () {\n webidl.brandCheck(this, CacheStorage)\n\n // 2.1\n const keys = this.#caches.keys()\n\n // 2.2\n return [...keys]\n }\n}\n\nObject.defineProperties(CacheStorage.prototype, {\n [Symbol.toStringTag]: {\n value: 'CacheStorage',\n configurable: true\n },\n match: kEnumerableProperty,\n has: kEnumerableProperty,\n open: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nmodule.exports = {\n CacheStorage\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;CAEA,MAAM,EAAE,UAAU,EAAE,GAAGA,cAAA;CACvB,MAAM,EAAE,KAAK,EAAE,GAAGC,YAAA;CAClB,MAAM,EAAE,MAAM,EAAE,GAAGC,aAAA;CACnB,MAAM,EAAE,mBAAmB,EAAE,GAAGC,WAAA;;AAEhC,CAAA,MAAM,YAAY,CAAC;AACnB;AACA;AACA;AACA;GACE,OAAO,GAAG,IAAI,GAAG;;GAEjB,WAAW,CAAC,GAAG;AACjB,K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,CAAC,SAAS,EAAE,CAAC,EAAE,MAAM;;AAEnD,KAAI,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW;;AAE1E,KAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS;AACxC,GAAA;;AAEA;AACA;AACA;AACA;GACE,MAAM,IAAI,CAAC,GAAG;AAChB,KAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,YAAY;;AAExC;AACA,KAAI,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI;;AAElC;KACI,OAAO,CAAC,GAAG,IAAI;AACnB,GAAA;AACA;;AAEA,CAAA,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,SAAS,EAAE;AAChD,GAAE,CAAC,MAAM,CAAC,WAAW,GAAG;KACpB,KAAK,EAAE,cAAc;AACzB,KAAI,YAAY,EAAE;IACf;GACD,KAAK,EAAE,mBAAmB;GAC1B,GAAG,EAAE,mBAAmB;GACxB,IAAI,EAAE,mBAAmB;GACzB,MAAM,EAAE,mBAAmB;AAC7B,GAAE,IAAI,EAAE;EACP;;AAED,CAAA,YAAc,GAAG;GACf;AACF;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbols.js","sources":["../../../../../../../../../node_modules/undici/lib/web/cache/symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports = {\n kConstruct: require('../../core/symbols').kConstruct\n}\n"],"names":["require$$0"],"mappings":";;;;;;;;;AAEA,CAAA,OAAc,GAAG;GACf,UAAU,EAAEA,gBAAA,EAA6B,CAAC;AAC5C;;;;;;","x_google_ignoreList":[0]}
|