@relative-ci/core 5.3.0-beta.1 → 5.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/__/@actions/http-client/__/undici/index.js +226 -0
- package/lib/cjs/__/@actions/http-client/__/undici/index.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js +73 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js +131 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +276 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js +238 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js +246 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +131 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js +25 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js +405 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js +114 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js +266 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js +130 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js +222 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js +418 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js +417 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js +80 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js +166 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js +755 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +149 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +227 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1397 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +768 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js +650 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +206 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +83 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +177 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +129 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +211 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +49 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +126 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +299 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +50 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js +47 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +56 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +237 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +395 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js +397 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js +139 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +35 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +38 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js +33 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js +288 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +23 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +23 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js +28 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +183 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js +83 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +42 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +224 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +83 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +35 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +390 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +63 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +41 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js +435 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js +886 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +169 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +19 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js +65 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +24 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js +201 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +338 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js +294 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +417 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +508 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +49 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js +560 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +136 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +762 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +60 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js +146 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +499 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +275 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js +52 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +709 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2235 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1069 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js +640 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +21 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1662 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +716 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +302 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +361 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +92 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +22 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +417 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +391 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +78 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js +350 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +110 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +89 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +451 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +120 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +24 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js +336 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +618 -0
- package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
- 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/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
- 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/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
- 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/__/{env-ci/__/execa → execa}/index.js +3 -3
- 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/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
- package/lib/cjs/__/execa/lib/stream.js.map +1 -0
- package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
- 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 +151 -0
- package/lib/cjs/__/json-with-bigint/json-with-bigint.js.map +1 -0
- package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
- package/lib/cjs/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
- 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/__/undici/index.js +1 -1
- package/lib/cjs/__/undici/lib/api/api-connect.js +3 -3
- package/lib/cjs/__/undici/lib/api/api-pipeline.js +3 -3
- package/lib/cjs/__/undici/lib/api/api-request.js +3 -3
- package/lib/cjs/__/undici/lib/api/api-stream.js +3 -3
- package/lib/cjs/__/undici/lib/api/api-upgrade.js +3 -3
- package/lib/cjs/__/undici/lib/core/util.js +14 -14
- package/lib/cjs/__/undici/lib/fetch/body.js +8 -8
- package/lib/cjs/__/undici/lib/fetch/constants.js +3 -3
- package/lib/cjs/__/undici/lib/fetch/dataURL.js +5 -5
- package/lib/cjs/__/undici/lib/fetch/file.js +3 -3
- package/lib/cjs/__/undici/lib/fetch/formdata.js +3 -3
- package/lib/cjs/__/undici/lib/fetch/index.js +3 -3
- package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -1
- package/lib/cjs/__/undici/lib/fetch/util.js +6 -6
- package/lib/cjs/__/undici/lib/fileapi/util.js +6 -6
- package/lib/cjs/__/undici/lib/websocket/events.js +3 -3
- package/lib/cjs/__/universal-user-agent/index.js.map +1 -0
- package/lib/cjs/_virtual/api-request2.js +6 -0
- package/lib/cjs/_virtual/api-request2.js.map +1 -0
- package/lib/cjs/_virtual/constants2.js +6 -0
- package/lib/cjs/_virtual/constants2.js.map +1 -0
- package/lib/cjs/_virtual/index10.js +2 -2
- package/lib/cjs/_virtual/index11.js +2 -2
- package/lib/cjs/_virtual/index14.js +2 -2
- package/lib/cjs/_virtual/index15.js +6 -0
- package/lib/cjs/_virtual/index15.js.map +1 -0
- package/lib/cjs/_virtual/index16.js +6 -0
- package/lib/cjs/_virtual/index16.js.map +1 -0
- 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 +2 -2
- package/lib/cjs/_virtual/mock-interceptor2.js +6 -0
- package/lib/cjs/_virtual/mock-interceptor2.js.map +1 -0
- package/lib/cjs/_virtual/utils4.js +6 -0
- package/lib/cjs/_virtual/utils4.js.map +1 -0
- package/lib/cjs/env/load.js +1 -1
- package/lib/cjs/env/load.js.map +1 -1
- package/lib/esm/__/@actions/http-client/__/undici/index.js +220 -0
- package/lib/esm/__/@actions/http-client/__/undici/index.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js +71 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js +124 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +268 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js +231 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js +238 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +124 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js +23 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js +398 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js +108 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js +258 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js +128 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js +215 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js +416 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js +411 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js +78 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js +164 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js +742 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +147 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +225 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1391 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +761 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js +642 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +204 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +77 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +175 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +127 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +209 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +47 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +124 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +293 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +48 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/global.js +45 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +54 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +230 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +389 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js +390 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js +137 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +33 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +36 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js +31 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js +286 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +17 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +17 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js +26 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +181 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js +77 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +40 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +222 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +77 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +33 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +383 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +56 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +39 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js +433 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js +880 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +167 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +17 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js +59 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +22 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js +199 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +332 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js +292 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +411 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +502 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +47 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js +551 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +134 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +756 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +58 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js +140 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +492 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +268 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js +50 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +702 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2224 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1061 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js +633 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +19 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1652 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +709 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +300 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +359 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +90 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +20 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +409 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +389 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +76 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js +344 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +108 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +83 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +444 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +118 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +22 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js +330 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +612 -0
- package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
- 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/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
- 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/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
- 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/__/{env-ci/__/execa → execa}/index.js +1 -1
- 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/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
- package/lib/esm/__/execa/lib/stream.js.map +1 -0
- package/lib/esm/__/execa/lib/verbose.js.map +1 -0
- 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/__/java-properties/dist-node/index.js +1 -1
- package/lib/esm/__/json-with-bigint/json-with-bigint.js +148 -0
- package/lib/esm/__/json-with-bigint/json-with-bigint.js.map +1 -0
- package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
- package/lib/esm/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
- 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/__/undici/index.js +1 -1
- package/lib/esm/__/undici/lib/api/api-connect.js +2 -2
- package/lib/esm/__/undici/lib/api/api-pipeline.js +2 -2
- package/lib/esm/__/undici/lib/api/api-request.js +2 -2
- package/lib/esm/__/undici/lib/api/api-request.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-stream.js +2 -2
- package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -1
- package/lib/esm/__/undici/lib/api/api-upgrade.js +2 -2
- package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -1
- package/lib/esm/__/undici/lib/core/util.js +10 -10
- package/lib/esm/__/undici/lib/core/util.js.map +1 -1
- package/lib/esm/__/undici/lib/fetch/body.js +6 -6
- package/lib/esm/__/undici/lib/fetch/body.js.map +1 -1
- package/lib/esm/__/undici/lib/fetch/constants.js +2 -2
- package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -1
- package/lib/esm/__/undici/lib/fetch/dataURL.js +4 -4
- package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -1
- package/lib/esm/__/undici/lib/fetch/file.js +2 -2
- package/lib/esm/__/undici/lib/fetch/file.js.map +1 -1
- package/lib/esm/__/undici/lib/fetch/formdata.js +2 -2
- package/lib/esm/__/undici/lib/fetch/index.js +2 -2
- package/lib/esm/__/undici/lib/fetch/index.js.map +1 -1
- package/lib/esm/__/undici/lib/fetch/util.js +4 -4
- package/lib/esm/__/undici/lib/fetch/util.js.map +1 -1
- package/lib/esm/__/undici/lib/fileapi/util.js +4 -4
- package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -1
- package/lib/esm/__/undici/lib/websocket/events.js +2 -2
- package/lib/esm/__/universal-user-agent/index.js.map +1 -0
- package/lib/esm/_virtual/api-request2.js +4 -0
- package/lib/esm/_virtual/api-request2.js.map +1 -0
- package/lib/esm/_virtual/constants2.js +4 -0
- package/lib/esm/_virtual/constants2.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/index14.js +2 -2
- package/lib/esm/_virtual/index15.js +4 -0
- package/lib/esm/_virtual/index15.js.map +1 -0
- package/lib/esm/_virtual/index16.js +4 -0
- package/lib/esm/_virtual/index16.js.map +1 -0
- 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/index5.js +2 -6
- package/lib/esm/_virtual/index5.js.map +1 -1
- package/lib/esm/_virtual/index6.js +6 -2
- package/lib/esm/_virtual/index6.js.map +1 -1
- package/lib/esm/_virtual/index8.js +2 -4
- package/lib/esm/_virtual/index8.js.map +1 -1
- package/lib/esm/_virtual/index9.js +2 -2
- package/lib/esm/_virtual/mock-interceptor2.js +4 -0
- package/lib/esm/_virtual/mock-interceptor2.js.map +1 -0
- package/lib/esm/_virtual/utils4.js +4 -0
- package/lib/esm/_virtual/utils4.js.map +1 -0
- package/lib/esm/env/load.js +1 -1
- package/lib/esm/env/load.js.map +1 -1
- package/lib/types/env/load.d.ts +5 -5
- package/lib/types/utils/log-response.d.ts +5 -5
- package/lib/types/utils/logger.d.ts +5 -5
- package/package.json +9 -9
- 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.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/__/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.map +0 -1
- 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.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/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.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/__/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.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.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/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}/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/__/execa → execa}/lib/verbose.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/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}/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/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
import require$$0$1 from 'node:assert';
|
|
2
|
+
import require$$0 from 'node:stream';
|
|
3
|
+
import { __require as requireUtil } from '../core/util.js';
|
|
4
|
+
import { __require as requireErrors } from '../core/errors.js';
|
|
5
|
+
import { __require as requireSymbols } from '../core/symbols.js';
|
|
6
|
+
import { __require as requireBody } from '../web/fetch/body.js';
|
|
7
|
+
|
|
8
|
+
var clientH2;
|
|
9
|
+
var hasRequiredClientH2;
|
|
10
|
+
|
|
11
|
+
function requireClientH2 () {
|
|
12
|
+
if (hasRequiredClientH2) return clientH2;
|
|
13
|
+
hasRequiredClientH2 = 1;
|
|
14
|
+
|
|
15
|
+
const assert = require$$0$1;
|
|
16
|
+
const { pipeline } = require$$0;
|
|
17
|
+
const util = requireUtil();
|
|
18
|
+
const {
|
|
19
|
+
RequestContentLengthMismatchError,
|
|
20
|
+
RequestAbortedError,
|
|
21
|
+
SocketError,
|
|
22
|
+
InformationalError
|
|
23
|
+
} = requireErrors();
|
|
24
|
+
const {
|
|
25
|
+
kUrl,
|
|
26
|
+
kReset,
|
|
27
|
+
kClient,
|
|
28
|
+
kRunning,
|
|
29
|
+
kPending,
|
|
30
|
+
kQueue,
|
|
31
|
+
kPendingIdx,
|
|
32
|
+
kRunningIdx,
|
|
33
|
+
kError,
|
|
34
|
+
kSocket,
|
|
35
|
+
kStrictContentLength,
|
|
36
|
+
kOnError,
|
|
37
|
+
kMaxConcurrentStreams,
|
|
38
|
+
kHTTP2Session,
|
|
39
|
+
kResume,
|
|
40
|
+
kSize,
|
|
41
|
+
kHTTPContext
|
|
42
|
+
} = requireSymbols();
|
|
43
|
+
|
|
44
|
+
const kOpenStreams = Symbol('open streams');
|
|
45
|
+
|
|
46
|
+
let extractBody;
|
|
47
|
+
|
|
48
|
+
// Experimental
|
|
49
|
+
let h2ExperimentalWarned = false;
|
|
50
|
+
|
|
51
|
+
/** @type {import('http2')} */
|
|
52
|
+
let http2;
|
|
53
|
+
try {
|
|
54
|
+
http2 = require('node:http2');
|
|
55
|
+
} catch {
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
http2 = { constants: {} };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const {
|
|
61
|
+
constants: {
|
|
62
|
+
HTTP2_HEADER_AUTHORITY,
|
|
63
|
+
HTTP2_HEADER_METHOD,
|
|
64
|
+
HTTP2_HEADER_PATH,
|
|
65
|
+
HTTP2_HEADER_SCHEME,
|
|
66
|
+
HTTP2_HEADER_CONTENT_LENGTH,
|
|
67
|
+
HTTP2_HEADER_EXPECT,
|
|
68
|
+
HTTP2_HEADER_STATUS
|
|
69
|
+
}
|
|
70
|
+
} = http2;
|
|
71
|
+
|
|
72
|
+
function parseH2Headers (headers) {
|
|
73
|
+
const result = [];
|
|
74
|
+
|
|
75
|
+
for (const [name, value] of Object.entries(headers)) {
|
|
76
|
+
// h2 may concat the header value by array
|
|
77
|
+
// e.g. Set-Cookie
|
|
78
|
+
if (Array.isArray(value)) {
|
|
79
|
+
for (const subvalue of value) {
|
|
80
|
+
// we need to provide each header value of header name
|
|
81
|
+
// because the headers handler expect name-value pair
|
|
82
|
+
result.push(Buffer.from(name), Buffer.from(subvalue));
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
result.push(Buffer.from(name), Buffer.from(value));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return result
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async function connectH2 (client, socket) {
|
|
93
|
+
client[kSocket] = socket;
|
|
94
|
+
|
|
95
|
+
if (!h2ExperimentalWarned) {
|
|
96
|
+
h2ExperimentalWarned = true;
|
|
97
|
+
process.emitWarning('H2 support is experimental, expect them to change at any time.', {
|
|
98
|
+
code: 'UNDICI-H2'
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const session = http2.connect(client[kUrl], {
|
|
103
|
+
createConnection: () => socket,
|
|
104
|
+
peerMaxConcurrentStreams: client[kMaxConcurrentStreams]
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
session[kOpenStreams] = 0;
|
|
108
|
+
session[kClient] = client;
|
|
109
|
+
session[kSocket] = socket;
|
|
110
|
+
|
|
111
|
+
util.addListener(session, 'error', onHttp2SessionError);
|
|
112
|
+
util.addListener(session, 'frameError', onHttp2FrameError);
|
|
113
|
+
util.addListener(session, 'end', onHttp2SessionEnd);
|
|
114
|
+
util.addListener(session, 'goaway', onHTTP2GoAway);
|
|
115
|
+
util.addListener(session, 'close', function () {
|
|
116
|
+
const { [kClient]: client } = this;
|
|
117
|
+
const { [kSocket]: socket } = client;
|
|
118
|
+
|
|
119
|
+
const err = this[kSocket][kError] || this[kError] || new SocketError('closed', util.getSocketInfo(socket));
|
|
120
|
+
|
|
121
|
+
client[kHTTP2Session] = null;
|
|
122
|
+
|
|
123
|
+
if (client.destroyed) {
|
|
124
|
+
assert(client[kPending] === 0);
|
|
125
|
+
|
|
126
|
+
// Fail entire queue.
|
|
127
|
+
const requests = client[kQueue].splice(client[kRunningIdx]);
|
|
128
|
+
for (let i = 0; i < requests.length; i++) {
|
|
129
|
+
const request = requests[i];
|
|
130
|
+
util.errorRequest(client, request, err);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
session.unref();
|
|
136
|
+
|
|
137
|
+
client[kHTTP2Session] = session;
|
|
138
|
+
socket[kHTTP2Session] = session;
|
|
139
|
+
|
|
140
|
+
util.addListener(socket, 'error', function (err) {
|
|
141
|
+
assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID');
|
|
142
|
+
|
|
143
|
+
this[kError] = err;
|
|
144
|
+
|
|
145
|
+
this[kClient][kOnError](err);
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
util.addListener(socket, 'end', function () {
|
|
149
|
+
util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)));
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
util.addListener(socket, 'close', function () {
|
|
153
|
+
const err = this[kError] || new SocketError('closed', util.getSocketInfo(this));
|
|
154
|
+
|
|
155
|
+
client[kSocket] = null;
|
|
156
|
+
|
|
157
|
+
if (this[kHTTP2Session] != null) {
|
|
158
|
+
this[kHTTP2Session].destroy(err);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
client[kPendingIdx] = client[kRunningIdx];
|
|
162
|
+
|
|
163
|
+
assert(client[kRunning] === 0);
|
|
164
|
+
|
|
165
|
+
client.emit('disconnect', client[kUrl], [client], err);
|
|
166
|
+
|
|
167
|
+
client[kResume]();
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
let closed = false;
|
|
171
|
+
socket.on('close', () => {
|
|
172
|
+
closed = true;
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
version: 'h2',
|
|
177
|
+
defaultPipelining: Infinity,
|
|
178
|
+
write (...args) {
|
|
179
|
+
return writeH2(client, ...args)
|
|
180
|
+
},
|
|
181
|
+
resume () {
|
|
182
|
+
resumeH2(client);
|
|
183
|
+
},
|
|
184
|
+
destroy (err, callback) {
|
|
185
|
+
if (closed) {
|
|
186
|
+
queueMicrotask(callback);
|
|
187
|
+
} else {
|
|
188
|
+
// Destroying the socket will trigger the session close
|
|
189
|
+
socket.destroy(err).on('close', callback);
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
get destroyed () {
|
|
193
|
+
return socket.destroyed
|
|
194
|
+
},
|
|
195
|
+
busy () {
|
|
196
|
+
return false
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function resumeH2 (client) {
|
|
202
|
+
const socket = client[kSocket];
|
|
203
|
+
|
|
204
|
+
if (socket?.destroyed === false) {
|
|
205
|
+
if (client[kSize] === 0 && client[kMaxConcurrentStreams] === 0) {
|
|
206
|
+
socket.unref();
|
|
207
|
+
client[kHTTP2Session].unref();
|
|
208
|
+
} else {
|
|
209
|
+
socket.ref();
|
|
210
|
+
client[kHTTP2Session].ref();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function onHttp2SessionError (err) {
|
|
216
|
+
assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID');
|
|
217
|
+
|
|
218
|
+
this[kSocket][kError] = err;
|
|
219
|
+
this[kClient][kOnError](err);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function onHttp2FrameError (type, code, id) {
|
|
223
|
+
if (id === 0) {
|
|
224
|
+
const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`);
|
|
225
|
+
this[kSocket][kError] = err;
|
|
226
|
+
this[kClient][kOnError](err);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function onHttp2SessionEnd () {
|
|
231
|
+
const err = new SocketError('other side closed', util.getSocketInfo(this[kSocket]));
|
|
232
|
+
this.destroy(err);
|
|
233
|
+
util.destroy(this[kSocket], err);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* This is the root cause of #3011
|
|
238
|
+
* We need to handle GOAWAY frames properly, and trigger the session close
|
|
239
|
+
* along with the socket right away
|
|
240
|
+
*/
|
|
241
|
+
function onHTTP2GoAway (code) {
|
|
242
|
+
// We cannot recover, so best to close the session and the socket
|
|
243
|
+
const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${code}`, util.getSocketInfo(this));
|
|
244
|
+
const client = this[kClient];
|
|
245
|
+
|
|
246
|
+
client[kSocket] = null;
|
|
247
|
+
client[kHTTPContext] = null;
|
|
248
|
+
|
|
249
|
+
if (this[kHTTP2Session] != null) {
|
|
250
|
+
this[kHTTP2Session].destroy(err);
|
|
251
|
+
this[kHTTP2Session] = null;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
util.destroy(this[kSocket], err);
|
|
255
|
+
|
|
256
|
+
// Fail head of pipeline.
|
|
257
|
+
if (client[kRunningIdx] < client[kQueue].length) {
|
|
258
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
259
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
260
|
+
util.errorRequest(client, request, err);
|
|
261
|
+
client[kPendingIdx] = client[kRunningIdx];
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
assert(client[kRunning] === 0);
|
|
265
|
+
|
|
266
|
+
client.emit('disconnect', client[kUrl], [client], err);
|
|
267
|
+
|
|
268
|
+
client[kResume]();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2
|
|
272
|
+
function shouldSendContentLength (method) {
|
|
273
|
+
return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function writeH2 (client, request) {
|
|
277
|
+
const session = client[kHTTP2Session];
|
|
278
|
+
const { method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request;
|
|
279
|
+
let { body } = request;
|
|
280
|
+
|
|
281
|
+
if (upgrade) {
|
|
282
|
+
util.errorRequest(client, request, new Error('Upgrade not supported for H2'));
|
|
283
|
+
return false
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
const headers = {};
|
|
287
|
+
for (let n = 0; n < reqHeaders.length; n += 2) {
|
|
288
|
+
const key = reqHeaders[n + 0];
|
|
289
|
+
const val = reqHeaders[n + 1];
|
|
290
|
+
|
|
291
|
+
if (Array.isArray(val)) {
|
|
292
|
+
for (let i = 0; i < val.length; i++) {
|
|
293
|
+
if (headers[key]) {
|
|
294
|
+
headers[key] += `,${val[i]}`;
|
|
295
|
+
} else {
|
|
296
|
+
headers[key] = val[i];
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
headers[key] = val;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/** @type {import('node:http2').ClientHttp2Stream} */
|
|
305
|
+
let stream;
|
|
306
|
+
|
|
307
|
+
const { hostname, port } = client[kUrl];
|
|
308
|
+
|
|
309
|
+
headers[HTTP2_HEADER_AUTHORITY] = host || `${hostname}${port ? `:${port}` : ''}`;
|
|
310
|
+
headers[HTTP2_HEADER_METHOD] = method;
|
|
311
|
+
|
|
312
|
+
const abort = (err) => {
|
|
313
|
+
if (request.aborted || request.completed) {
|
|
314
|
+
return
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
err = err || new RequestAbortedError();
|
|
318
|
+
|
|
319
|
+
util.errorRequest(client, request, err);
|
|
320
|
+
|
|
321
|
+
if (stream != null) {
|
|
322
|
+
util.destroy(stream, err);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// We do not destroy the socket as we can continue using the session
|
|
326
|
+
// the stream get's destroyed and the session remains to create new streams
|
|
327
|
+
util.destroy(body, err);
|
|
328
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
329
|
+
client[kResume]();
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
try {
|
|
333
|
+
// We are already connected, streams are pending.
|
|
334
|
+
// We can call on connect, and wait for abort
|
|
335
|
+
request.onConnect(abort);
|
|
336
|
+
} catch (err) {
|
|
337
|
+
util.errorRequest(client, request, err);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (request.aborted) {
|
|
341
|
+
return false
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (method === 'CONNECT') {
|
|
345
|
+
session.ref();
|
|
346
|
+
// We are already connected, streams are pending, first request
|
|
347
|
+
// will create a new stream. We trigger a request to create the stream and wait until
|
|
348
|
+
// `ready` event is triggered
|
|
349
|
+
// We disabled endStream to allow the user to write to the stream
|
|
350
|
+
stream = session.request(headers, { endStream: false, signal });
|
|
351
|
+
|
|
352
|
+
if (stream.id && !stream.pending) {
|
|
353
|
+
request.onUpgrade(null, null, stream);
|
|
354
|
+
++session[kOpenStreams];
|
|
355
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
356
|
+
} else {
|
|
357
|
+
stream.once('ready', () => {
|
|
358
|
+
request.onUpgrade(null, null, stream);
|
|
359
|
+
++session[kOpenStreams];
|
|
360
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
stream.once('close', () => {
|
|
365
|
+
session[kOpenStreams] -= 1;
|
|
366
|
+
if (session[kOpenStreams] === 0) session.unref();
|
|
367
|
+
});
|
|
368
|
+
|
|
369
|
+
return true
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// https://tools.ietf.org/html/rfc7540#section-8.3
|
|
373
|
+
// :path and :scheme headers must be omitted when sending CONNECT
|
|
374
|
+
|
|
375
|
+
headers[HTTP2_HEADER_PATH] = path;
|
|
376
|
+
headers[HTTP2_HEADER_SCHEME] = 'https';
|
|
377
|
+
|
|
378
|
+
// https://tools.ietf.org/html/rfc7231#section-4.3.1
|
|
379
|
+
// https://tools.ietf.org/html/rfc7231#section-4.3.2
|
|
380
|
+
// https://tools.ietf.org/html/rfc7231#section-4.3.5
|
|
381
|
+
|
|
382
|
+
// Sending a payload body on a request that does not
|
|
383
|
+
// expect it can cause undefined behavior on some
|
|
384
|
+
// servers and corrupt connection state. Do not
|
|
385
|
+
// re-use the connection for further requests.
|
|
386
|
+
|
|
387
|
+
const expectsPayload = (
|
|
388
|
+
method === 'PUT' ||
|
|
389
|
+
method === 'POST' ||
|
|
390
|
+
method === 'PATCH'
|
|
391
|
+
);
|
|
392
|
+
|
|
393
|
+
if (body && typeof body.read === 'function') {
|
|
394
|
+
// Try to read EOF in order to get length.
|
|
395
|
+
body.read(0);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
let contentLength = util.bodyLength(body);
|
|
399
|
+
|
|
400
|
+
if (util.isFormDataLike(body)) {
|
|
401
|
+
extractBody ??= requireBody().extractBody;
|
|
402
|
+
|
|
403
|
+
const [bodyStream, contentType] = extractBody(body);
|
|
404
|
+
headers['content-type'] = contentType;
|
|
405
|
+
|
|
406
|
+
body = bodyStream.stream;
|
|
407
|
+
contentLength = bodyStream.length;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (contentLength == null) {
|
|
411
|
+
contentLength = request.contentLength;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if (contentLength === 0 || !expectsPayload) {
|
|
415
|
+
// https://tools.ietf.org/html/rfc7230#section-3.3.2
|
|
416
|
+
// A user agent SHOULD NOT send a Content-Length header field when
|
|
417
|
+
// the request message does not contain a payload body and the method
|
|
418
|
+
// semantics do not anticipate such a body.
|
|
419
|
+
|
|
420
|
+
contentLength = null;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// https://github.com/nodejs/undici/issues/2046
|
|
424
|
+
// A user agent may send a Content-Length header with 0 value, this should be allowed.
|
|
425
|
+
if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) {
|
|
426
|
+
if (client[kStrictContentLength]) {
|
|
427
|
+
util.errorRequest(client, request, new RequestContentLengthMismatchError());
|
|
428
|
+
return false
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
process.emitWarning(new RequestContentLengthMismatchError());
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
if (contentLength != null) {
|
|
435
|
+
assert(body, 'no body must not have content length');
|
|
436
|
+
headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
session.ref();
|
|
440
|
+
|
|
441
|
+
const shouldEndStream = method === 'GET' || method === 'HEAD' || body === null;
|
|
442
|
+
if (expectContinue) {
|
|
443
|
+
headers[HTTP2_HEADER_EXPECT] = '100-continue';
|
|
444
|
+
stream = session.request(headers, { endStream: shouldEndStream, signal });
|
|
445
|
+
|
|
446
|
+
stream.once('continue', writeBodyH2);
|
|
447
|
+
} else {
|
|
448
|
+
stream = session.request(headers, {
|
|
449
|
+
endStream: shouldEndStream,
|
|
450
|
+
signal
|
|
451
|
+
});
|
|
452
|
+
writeBodyH2();
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// Increment counter as we have new streams open
|
|
456
|
+
++session[kOpenStreams];
|
|
457
|
+
|
|
458
|
+
stream.once('response', headers => {
|
|
459
|
+
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers;
|
|
460
|
+
request.onResponseStarted();
|
|
461
|
+
|
|
462
|
+
// Due to the stream nature, it is possible we face a race condition
|
|
463
|
+
// where the stream has been assigned, but the request has been aborted
|
|
464
|
+
// the request remains in-flight and headers hasn't been received yet
|
|
465
|
+
// for those scenarios, best effort is to destroy the stream immediately
|
|
466
|
+
// as there's no value to keep it open.
|
|
467
|
+
if (request.aborted) {
|
|
468
|
+
const err = new RequestAbortedError();
|
|
469
|
+
util.errorRequest(client, request, err);
|
|
470
|
+
util.destroy(stream, err);
|
|
471
|
+
return
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
if (request.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream.resume.bind(stream), '') === false) {
|
|
475
|
+
stream.pause();
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
stream.on('data', (chunk) => {
|
|
479
|
+
if (request.onData(chunk) === false) {
|
|
480
|
+
stream.pause();
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
stream.once('end', () => {
|
|
486
|
+
// When state is null, it means we haven't consumed body and the stream still do not have
|
|
487
|
+
// a state.
|
|
488
|
+
// Present specially when using pipeline or stream
|
|
489
|
+
if (stream.state?.state == null || stream.state.state < 6) {
|
|
490
|
+
request.onComplete([]);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
if (session[kOpenStreams] === 0) {
|
|
494
|
+
// Stream is closed or half-closed-remote (6), decrement counter and cleanup
|
|
495
|
+
// It does not have sense to continue working with the stream as we do not
|
|
496
|
+
// have yet RST_STREAM support on client-side
|
|
497
|
+
|
|
498
|
+
session.unref();
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
abort(new InformationalError('HTTP/2: stream half-closed (remote)'));
|
|
502
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
503
|
+
client[kPendingIdx] = client[kRunningIdx];
|
|
504
|
+
client[kResume]();
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
stream.once('close', () => {
|
|
508
|
+
session[kOpenStreams] -= 1;
|
|
509
|
+
if (session[kOpenStreams] === 0) {
|
|
510
|
+
session.unref();
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
stream.once('error', function (err) {
|
|
515
|
+
abort(err);
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
stream.once('frameError', (type, code) => {
|
|
519
|
+
abort(new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`));
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
// stream.on('aborted', () => {
|
|
523
|
+
// // TODO(HTTP/2): Support aborted
|
|
524
|
+
// })
|
|
525
|
+
|
|
526
|
+
// stream.on('timeout', () => {
|
|
527
|
+
// // TODO(HTTP/2): Support timeout
|
|
528
|
+
// })
|
|
529
|
+
|
|
530
|
+
// stream.on('push', headers => {
|
|
531
|
+
// // TODO(HTTP/2): Support push
|
|
532
|
+
// })
|
|
533
|
+
|
|
534
|
+
// stream.on('trailers', headers => {
|
|
535
|
+
// // TODO(HTTP/2): Support trailers
|
|
536
|
+
// })
|
|
537
|
+
|
|
538
|
+
return true
|
|
539
|
+
|
|
540
|
+
function writeBodyH2 () {
|
|
541
|
+
/* istanbul ignore else: assertion */
|
|
542
|
+
if (!body || contentLength === 0) {
|
|
543
|
+
writeBuffer(
|
|
544
|
+
abort,
|
|
545
|
+
stream,
|
|
546
|
+
null,
|
|
547
|
+
client,
|
|
548
|
+
request,
|
|
549
|
+
client[kSocket],
|
|
550
|
+
contentLength,
|
|
551
|
+
expectsPayload
|
|
552
|
+
);
|
|
553
|
+
} else if (util.isBuffer(body)) {
|
|
554
|
+
writeBuffer(
|
|
555
|
+
abort,
|
|
556
|
+
stream,
|
|
557
|
+
body,
|
|
558
|
+
client,
|
|
559
|
+
request,
|
|
560
|
+
client[kSocket],
|
|
561
|
+
contentLength,
|
|
562
|
+
expectsPayload
|
|
563
|
+
);
|
|
564
|
+
} else if (util.isBlobLike(body)) {
|
|
565
|
+
if (typeof body.stream === 'function') {
|
|
566
|
+
writeIterable(
|
|
567
|
+
abort,
|
|
568
|
+
stream,
|
|
569
|
+
body.stream(),
|
|
570
|
+
client,
|
|
571
|
+
request,
|
|
572
|
+
client[kSocket],
|
|
573
|
+
contentLength,
|
|
574
|
+
expectsPayload
|
|
575
|
+
);
|
|
576
|
+
} else {
|
|
577
|
+
writeBlob(
|
|
578
|
+
abort,
|
|
579
|
+
stream,
|
|
580
|
+
body,
|
|
581
|
+
client,
|
|
582
|
+
request,
|
|
583
|
+
client[kSocket],
|
|
584
|
+
contentLength,
|
|
585
|
+
expectsPayload
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
} else if (util.isStream(body)) {
|
|
589
|
+
writeStream(
|
|
590
|
+
abort,
|
|
591
|
+
client[kSocket],
|
|
592
|
+
expectsPayload,
|
|
593
|
+
stream,
|
|
594
|
+
body,
|
|
595
|
+
client,
|
|
596
|
+
request,
|
|
597
|
+
contentLength
|
|
598
|
+
);
|
|
599
|
+
} else if (util.isIterable(body)) {
|
|
600
|
+
writeIterable(
|
|
601
|
+
abort,
|
|
602
|
+
stream,
|
|
603
|
+
body,
|
|
604
|
+
client,
|
|
605
|
+
request,
|
|
606
|
+
client[kSocket],
|
|
607
|
+
contentLength,
|
|
608
|
+
expectsPayload
|
|
609
|
+
);
|
|
610
|
+
} else {
|
|
611
|
+
assert(false);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
function writeBuffer (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {
|
|
617
|
+
try {
|
|
618
|
+
if (body != null && util.isBuffer(body)) {
|
|
619
|
+
assert(contentLength === body.byteLength, 'buffer body must have content length');
|
|
620
|
+
h2stream.cork();
|
|
621
|
+
h2stream.write(body);
|
|
622
|
+
h2stream.uncork();
|
|
623
|
+
h2stream.end();
|
|
624
|
+
|
|
625
|
+
request.onBodySent(body);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (!expectsPayload) {
|
|
629
|
+
socket[kReset] = true;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
request.onRequestSent();
|
|
633
|
+
client[kResume]();
|
|
634
|
+
} catch (error) {
|
|
635
|
+
abort(error);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
function writeStream (abort, socket, expectsPayload, h2stream, body, client, request, contentLength) {
|
|
640
|
+
assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined');
|
|
641
|
+
|
|
642
|
+
// For HTTP/2, is enough to pipe the stream
|
|
643
|
+
const pipe = pipeline(
|
|
644
|
+
body,
|
|
645
|
+
h2stream,
|
|
646
|
+
(err) => {
|
|
647
|
+
if (err) {
|
|
648
|
+
util.destroy(pipe, err);
|
|
649
|
+
abort(err);
|
|
650
|
+
} else {
|
|
651
|
+
util.removeAllListeners(pipe);
|
|
652
|
+
request.onRequestSent();
|
|
653
|
+
|
|
654
|
+
if (!expectsPayload) {
|
|
655
|
+
socket[kReset] = true;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
client[kResume]();
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
|
|
663
|
+
util.addListener(pipe, 'data', onPipeData);
|
|
664
|
+
|
|
665
|
+
function onPipeData (chunk) {
|
|
666
|
+
request.onBodySent(chunk);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
async function writeBlob (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {
|
|
671
|
+
assert(contentLength === body.size, 'blob body must have content length');
|
|
672
|
+
|
|
673
|
+
try {
|
|
674
|
+
if (contentLength != null && contentLength !== body.size) {
|
|
675
|
+
throw new RequestContentLengthMismatchError()
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
const buffer = Buffer.from(await body.arrayBuffer());
|
|
679
|
+
|
|
680
|
+
h2stream.cork();
|
|
681
|
+
h2stream.write(buffer);
|
|
682
|
+
h2stream.uncork();
|
|
683
|
+
h2stream.end();
|
|
684
|
+
|
|
685
|
+
request.onBodySent(buffer);
|
|
686
|
+
request.onRequestSent();
|
|
687
|
+
|
|
688
|
+
if (!expectsPayload) {
|
|
689
|
+
socket[kReset] = true;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
client[kResume]();
|
|
693
|
+
} catch (err) {
|
|
694
|
+
abort(err);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
async function writeIterable (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {
|
|
699
|
+
assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined');
|
|
700
|
+
|
|
701
|
+
let callback = null;
|
|
702
|
+
function onDrain () {
|
|
703
|
+
if (callback) {
|
|
704
|
+
const cb = callback;
|
|
705
|
+
callback = null;
|
|
706
|
+
cb();
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
const waitForDrain = () => new Promise((resolve, reject) => {
|
|
711
|
+
assert(callback === null);
|
|
712
|
+
|
|
713
|
+
if (socket[kError]) {
|
|
714
|
+
reject(socket[kError]);
|
|
715
|
+
} else {
|
|
716
|
+
callback = resolve;
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
h2stream
|
|
721
|
+
.on('close', onDrain)
|
|
722
|
+
.on('drain', onDrain);
|
|
723
|
+
|
|
724
|
+
try {
|
|
725
|
+
// It's up to the user to somehow abort the async iterable.
|
|
726
|
+
for await (const chunk of body) {
|
|
727
|
+
if (socket[kError]) {
|
|
728
|
+
throw socket[kError]
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
const res = h2stream.write(chunk);
|
|
732
|
+
request.onBodySent(chunk);
|
|
733
|
+
if (!res) {
|
|
734
|
+
await waitForDrain();
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
h2stream.end();
|
|
739
|
+
|
|
740
|
+
request.onRequestSent();
|
|
741
|
+
|
|
742
|
+
if (!expectsPayload) {
|
|
743
|
+
socket[kReset] = true;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
client[kResume]();
|
|
747
|
+
} catch (err) {
|
|
748
|
+
abort(err);
|
|
749
|
+
} finally {
|
|
750
|
+
h2stream
|
|
751
|
+
.off('close', onDrain)
|
|
752
|
+
.off('drain', onDrain);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
clientH2 = connectH2;
|
|
757
|
+
return clientH2;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export { requireClientH2 as __require };
|
|
761
|
+
//# sourceMappingURL=client-h2.js.map
|