@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,762 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var require$$0 = require('node:assert');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
8
|
+
|
|
9
|
+
var dataUrl;
|
|
10
|
+
var hasRequiredDataUrl;
|
|
11
|
+
|
|
12
|
+
function requireDataUrl () {
|
|
13
|
+
if (hasRequiredDataUrl) return dataUrl;
|
|
14
|
+
hasRequiredDataUrl = 1;
|
|
15
|
+
|
|
16
|
+
const assert = require$$0__default.default;
|
|
17
|
+
|
|
18
|
+
const encoder = new TextEncoder();
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @see https://mimesniff.spec.whatwg.org/#http-token-code-point
|
|
22
|
+
*/
|
|
23
|
+
const HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;
|
|
24
|
+
const HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/; // eslint-disable-line
|
|
25
|
+
const ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g; // eslint-disable-line
|
|
26
|
+
/**
|
|
27
|
+
* @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point
|
|
28
|
+
*/
|
|
29
|
+
const HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/; // eslint-disable-line
|
|
30
|
+
|
|
31
|
+
// https://fetch.spec.whatwg.org/#data-url-processor
|
|
32
|
+
/** @param {URL} dataURL */
|
|
33
|
+
function dataURLProcessor (dataURL) {
|
|
34
|
+
// 1. Assert: dataURL’s scheme is "data".
|
|
35
|
+
assert(dataURL.protocol === 'data:');
|
|
36
|
+
|
|
37
|
+
// 2. Let input be the result of running the URL
|
|
38
|
+
// serializer on dataURL with exclude fragment
|
|
39
|
+
// set to true.
|
|
40
|
+
let input = URLSerializer(dataURL, true);
|
|
41
|
+
|
|
42
|
+
// 3. Remove the leading "data:" string from input.
|
|
43
|
+
input = input.slice(5);
|
|
44
|
+
|
|
45
|
+
// 4. Let position point at the start of input.
|
|
46
|
+
const position = { position: 0 };
|
|
47
|
+
|
|
48
|
+
// 5. Let mimeType be the result of collecting a
|
|
49
|
+
// sequence of code points that are not equal
|
|
50
|
+
// to U+002C (,), given position.
|
|
51
|
+
let mimeType = collectASequenceOfCodePointsFast(
|
|
52
|
+
',',
|
|
53
|
+
input,
|
|
54
|
+
position
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
// 6. Strip leading and trailing ASCII whitespace
|
|
58
|
+
// from mimeType.
|
|
59
|
+
// Undici implementation note: we need to store the
|
|
60
|
+
// length because if the mimetype has spaces removed,
|
|
61
|
+
// the wrong amount will be sliced from the input in
|
|
62
|
+
// step #9
|
|
63
|
+
const mimeTypeLength = mimeType.length;
|
|
64
|
+
mimeType = removeASCIIWhitespace(mimeType, true, true);
|
|
65
|
+
|
|
66
|
+
// 7. If position is past the end of input, then
|
|
67
|
+
// return failure
|
|
68
|
+
if (position.position >= input.length) {
|
|
69
|
+
return 'failure'
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 8. Advance position by 1.
|
|
73
|
+
position.position++;
|
|
74
|
+
|
|
75
|
+
// 9. Let encodedBody be the remainder of input.
|
|
76
|
+
const encodedBody = input.slice(mimeTypeLength + 1);
|
|
77
|
+
|
|
78
|
+
// 10. Let body be the percent-decoding of encodedBody.
|
|
79
|
+
let body = stringPercentDecode(encodedBody);
|
|
80
|
+
|
|
81
|
+
// 11. If mimeType ends with U+003B (;), followed by
|
|
82
|
+
// zero or more U+0020 SPACE, followed by an ASCII
|
|
83
|
+
// case-insensitive match for "base64", then:
|
|
84
|
+
if (/;(\u0020){0,}base64$/i.test(mimeType)) {
|
|
85
|
+
// 1. Let stringBody be the isomorphic decode of body.
|
|
86
|
+
const stringBody = isomorphicDecode(body);
|
|
87
|
+
|
|
88
|
+
// 2. Set body to the forgiving-base64 decode of
|
|
89
|
+
// stringBody.
|
|
90
|
+
body = forgivingBase64(stringBody);
|
|
91
|
+
|
|
92
|
+
// 3. If body is failure, then return failure.
|
|
93
|
+
if (body === 'failure') {
|
|
94
|
+
return 'failure'
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 4. Remove the last 6 code points from mimeType.
|
|
98
|
+
mimeType = mimeType.slice(0, -6);
|
|
99
|
+
|
|
100
|
+
// 5. Remove trailing U+0020 SPACE code points from mimeType,
|
|
101
|
+
// if any.
|
|
102
|
+
mimeType = mimeType.replace(/(\u0020)+$/, '');
|
|
103
|
+
|
|
104
|
+
// 6. Remove the last U+003B (;) code point from mimeType.
|
|
105
|
+
mimeType = mimeType.slice(0, -1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// 12. If mimeType starts with U+003B (;), then prepend
|
|
109
|
+
// "text/plain" to mimeType.
|
|
110
|
+
if (mimeType.startsWith(';')) {
|
|
111
|
+
mimeType = 'text/plain' + mimeType;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 13. Let mimeTypeRecord be the result of parsing
|
|
115
|
+
// mimeType.
|
|
116
|
+
let mimeTypeRecord = parseMIMEType(mimeType);
|
|
117
|
+
|
|
118
|
+
// 14. If mimeTypeRecord is failure, then set
|
|
119
|
+
// mimeTypeRecord to text/plain;charset=US-ASCII.
|
|
120
|
+
if (mimeTypeRecord === 'failure') {
|
|
121
|
+
mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII');
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// 15. Return a new data: URL struct whose MIME
|
|
125
|
+
// type is mimeTypeRecord and body is body.
|
|
126
|
+
// https://fetch.spec.whatwg.org/#data-url-struct
|
|
127
|
+
return { mimeType: mimeTypeRecord, body }
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// https://url.spec.whatwg.org/#concept-url-serializer
|
|
131
|
+
/**
|
|
132
|
+
* @param {URL} url
|
|
133
|
+
* @param {boolean} excludeFragment
|
|
134
|
+
*/
|
|
135
|
+
function URLSerializer (url, excludeFragment = false) {
|
|
136
|
+
if (!excludeFragment) {
|
|
137
|
+
return url.href
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const href = url.href;
|
|
141
|
+
const hashLength = url.hash.length;
|
|
142
|
+
|
|
143
|
+
const serialized = hashLength === 0 ? href : href.substring(0, href.length - hashLength);
|
|
144
|
+
|
|
145
|
+
if (!hashLength && href.endsWith('#')) {
|
|
146
|
+
return serialized.slice(0, -1)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return serialized
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points
|
|
153
|
+
/**
|
|
154
|
+
* @param {(char: string) => boolean} condition
|
|
155
|
+
* @param {string} input
|
|
156
|
+
* @param {{ position: number }} position
|
|
157
|
+
*/
|
|
158
|
+
function collectASequenceOfCodePoints (condition, input, position) {
|
|
159
|
+
// 1. Let result be the empty string.
|
|
160
|
+
let result = '';
|
|
161
|
+
|
|
162
|
+
// 2. While position doesn’t point past the end of input and the
|
|
163
|
+
// code point at position within input meets the condition condition:
|
|
164
|
+
while (position.position < input.length && condition(input[position.position])) {
|
|
165
|
+
// 1. Append that code point to the end of result.
|
|
166
|
+
result += input[position.position];
|
|
167
|
+
|
|
168
|
+
// 2. Advance position by 1.
|
|
169
|
+
position.position++;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// 3. Return result.
|
|
173
|
+
return result
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* A faster collectASequenceOfCodePoints that only works when comparing a single character.
|
|
178
|
+
* @param {string} char
|
|
179
|
+
* @param {string} input
|
|
180
|
+
* @param {{ position: number }} position
|
|
181
|
+
*/
|
|
182
|
+
function collectASequenceOfCodePointsFast (char, input, position) {
|
|
183
|
+
const idx = input.indexOf(char, position.position);
|
|
184
|
+
const start = position.position;
|
|
185
|
+
|
|
186
|
+
if (idx === -1) {
|
|
187
|
+
position.position = input.length;
|
|
188
|
+
return input.slice(start)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
position.position = idx;
|
|
192
|
+
return input.slice(start, position.position)
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// https://url.spec.whatwg.org/#string-percent-decode
|
|
196
|
+
/** @param {string} input */
|
|
197
|
+
function stringPercentDecode (input) {
|
|
198
|
+
// 1. Let bytes be the UTF-8 encoding of input.
|
|
199
|
+
const bytes = encoder.encode(input);
|
|
200
|
+
|
|
201
|
+
// 2. Return the percent-decoding of bytes.
|
|
202
|
+
return percentDecode(bytes)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @param {number} byte
|
|
207
|
+
*/
|
|
208
|
+
function isHexCharByte (byte) {
|
|
209
|
+
// 0-9 A-F a-f
|
|
210
|
+
return (byte >= 0x30 && byte <= 0x39) || (byte >= 0x41 && byte <= 0x46) || (byte >= 0x61 && byte <= 0x66)
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {number} byte
|
|
215
|
+
*/
|
|
216
|
+
function hexByteToNumber (byte) {
|
|
217
|
+
return (
|
|
218
|
+
// 0-9
|
|
219
|
+
byte >= 0x30 && byte <= 0x39
|
|
220
|
+
? (byte - 48)
|
|
221
|
+
// Convert to uppercase
|
|
222
|
+
// ((byte & 0xDF) - 65) + 10
|
|
223
|
+
: ((byte & 0xDF) - 55)
|
|
224
|
+
)
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// https://url.spec.whatwg.org/#percent-decode
|
|
228
|
+
/** @param {Uint8Array} input */
|
|
229
|
+
function percentDecode (input) {
|
|
230
|
+
const length = input.length;
|
|
231
|
+
// 1. Let output be an empty byte sequence.
|
|
232
|
+
/** @type {Uint8Array} */
|
|
233
|
+
const output = new Uint8Array(length);
|
|
234
|
+
let j = 0;
|
|
235
|
+
// 2. For each byte byte in input:
|
|
236
|
+
for (let i = 0; i < length; ++i) {
|
|
237
|
+
const byte = input[i];
|
|
238
|
+
|
|
239
|
+
// 1. If byte is not 0x25 (%), then append byte to output.
|
|
240
|
+
if (byte !== 0x25) {
|
|
241
|
+
output[j++] = byte;
|
|
242
|
+
|
|
243
|
+
// 2. Otherwise, if byte is 0x25 (%) and the next two bytes
|
|
244
|
+
// after byte in input are not in the ranges
|
|
245
|
+
// 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F),
|
|
246
|
+
// and 0x61 (a) to 0x66 (f), all inclusive, append byte
|
|
247
|
+
// to output.
|
|
248
|
+
} else if (
|
|
249
|
+
byte === 0x25 &&
|
|
250
|
+
!(isHexCharByte(input[i + 1]) && isHexCharByte(input[i + 2]))
|
|
251
|
+
) {
|
|
252
|
+
output[j++] = 0x25;
|
|
253
|
+
|
|
254
|
+
// 3. Otherwise:
|
|
255
|
+
} else {
|
|
256
|
+
// 1. Let bytePoint be the two bytes after byte in input,
|
|
257
|
+
// decoded, and then interpreted as hexadecimal number.
|
|
258
|
+
// 2. Append a byte whose value is bytePoint to output.
|
|
259
|
+
output[j++] = (hexByteToNumber(input[i + 1]) << 4) | hexByteToNumber(input[i + 2]);
|
|
260
|
+
|
|
261
|
+
// 3. Skip the next two bytes in input.
|
|
262
|
+
i += 2;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// 3. Return output.
|
|
267
|
+
return length === j ? output : output.subarray(0, j)
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// https://mimesniff.spec.whatwg.org/#parse-a-mime-type
|
|
271
|
+
/** @param {string} input */
|
|
272
|
+
function parseMIMEType (input) {
|
|
273
|
+
// 1. Remove any leading and trailing HTTP whitespace
|
|
274
|
+
// from input.
|
|
275
|
+
input = removeHTTPWhitespace(input, true, true);
|
|
276
|
+
|
|
277
|
+
// 2. Let position be a position variable for input,
|
|
278
|
+
// initially pointing at the start of input.
|
|
279
|
+
const position = { position: 0 };
|
|
280
|
+
|
|
281
|
+
// 3. Let type be the result of collecting a sequence
|
|
282
|
+
// of code points that are not U+002F (/) from
|
|
283
|
+
// input, given position.
|
|
284
|
+
const type = collectASequenceOfCodePointsFast(
|
|
285
|
+
'/',
|
|
286
|
+
input,
|
|
287
|
+
position
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
// 4. If type is the empty string or does not solely
|
|
291
|
+
// contain HTTP token code points, then return failure.
|
|
292
|
+
// https://mimesniff.spec.whatwg.org/#http-token-code-point
|
|
293
|
+
if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) {
|
|
294
|
+
return 'failure'
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// 5. If position is past the end of input, then return
|
|
298
|
+
// failure
|
|
299
|
+
if (position.position > input.length) {
|
|
300
|
+
return 'failure'
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// 6. Advance position by 1. (This skips past U+002F (/).)
|
|
304
|
+
position.position++;
|
|
305
|
+
|
|
306
|
+
// 7. Let subtype be the result of collecting a sequence of
|
|
307
|
+
// code points that are not U+003B (;) from input, given
|
|
308
|
+
// position.
|
|
309
|
+
let subtype = collectASequenceOfCodePointsFast(
|
|
310
|
+
';',
|
|
311
|
+
input,
|
|
312
|
+
position
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
// 8. Remove any trailing HTTP whitespace from subtype.
|
|
316
|
+
subtype = removeHTTPWhitespace(subtype, false, true);
|
|
317
|
+
|
|
318
|
+
// 9. If subtype is the empty string or does not solely
|
|
319
|
+
// contain HTTP token code points, then return failure.
|
|
320
|
+
if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {
|
|
321
|
+
return 'failure'
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const typeLowercase = type.toLowerCase();
|
|
325
|
+
const subtypeLowercase = subtype.toLowerCase();
|
|
326
|
+
|
|
327
|
+
// 10. Let mimeType be a new MIME type record whose type
|
|
328
|
+
// is type, in ASCII lowercase, and subtype is subtype,
|
|
329
|
+
// in ASCII lowercase.
|
|
330
|
+
// https://mimesniff.spec.whatwg.org/#mime-type
|
|
331
|
+
const mimeType = {
|
|
332
|
+
type: typeLowercase,
|
|
333
|
+
subtype: subtypeLowercase,
|
|
334
|
+
/** @type {Map<string, string>} */
|
|
335
|
+
parameters: new Map(),
|
|
336
|
+
// https://mimesniff.spec.whatwg.org/#mime-type-essence
|
|
337
|
+
essence: `${typeLowercase}/${subtypeLowercase}`
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
// 11. While position is not past the end of input:
|
|
341
|
+
while (position.position < input.length) {
|
|
342
|
+
// 1. Advance position by 1. (This skips past U+003B (;).)
|
|
343
|
+
position.position++;
|
|
344
|
+
|
|
345
|
+
// 2. Collect a sequence of code points that are HTTP
|
|
346
|
+
// whitespace from input given position.
|
|
347
|
+
collectASequenceOfCodePoints(
|
|
348
|
+
// https://fetch.spec.whatwg.org/#http-whitespace
|
|
349
|
+
char => HTTP_WHITESPACE_REGEX.test(char),
|
|
350
|
+
input,
|
|
351
|
+
position
|
|
352
|
+
);
|
|
353
|
+
|
|
354
|
+
// 3. Let parameterName be the result of collecting a
|
|
355
|
+
// sequence of code points that are not U+003B (;)
|
|
356
|
+
// or U+003D (=) from input, given position.
|
|
357
|
+
let parameterName = collectASequenceOfCodePoints(
|
|
358
|
+
(char) => char !== ';' && char !== '=',
|
|
359
|
+
input,
|
|
360
|
+
position
|
|
361
|
+
);
|
|
362
|
+
|
|
363
|
+
// 4. Set parameterName to parameterName, in ASCII
|
|
364
|
+
// lowercase.
|
|
365
|
+
parameterName = parameterName.toLowerCase();
|
|
366
|
+
|
|
367
|
+
// 5. If position is not past the end of input, then:
|
|
368
|
+
if (position.position < input.length) {
|
|
369
|
+
// 1. If the code point at position within input is
|
|
370
|
+
// U+003B (;), then continue.
|
|
371
|
+
if (input[position.position] === ';') {
|
|
372
|
+
continue
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// 2. Advance position by 1. (This skips past U+003D (=).)
|
|
376
|
+
position.position++;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// 6. If position is past the end of input, then break.
|
|
380
|
+
if (position.position > input.length) {
|
|
381
|
+
break
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// 7. Let parameterValue be null.
|
|
385
|
+
let parameterValue = null;
|
|
386
|
+
|
|
387
|
+
// 8. If the code point at position within input is
|
|
388
|
+
// U+0022 ("), then:
|
|
389
|
+
if (input[position.position] === '"') {
|
|
390
|
+
// 1. Set parameterValue to the result of collecting
|
|
391
|
+
// an HTTP quoted string from input, given position
|
|
392
|
+
// and the extract-value flag.
|
|
393
|
+
parameterValue = collectAnHTTPQuotedString(input, position, true);
|
|
394
|
+
|
|
395
|
+
// 2. Collect a sequence of code points that are not
|
|
396
|
+
// U+003B (;) from input, given position.
|
|
397
|
+
collectASequenceOfCodePointsFast(
|
|
398
|
+
';',
|
|
399
|
+
input,
|
|
400
|
+
position
|
|
401
|
+
);
|
|
402
|
+
|
|
403
|
+
// 9. Otherwise:
|
|
404
|
+
} else {
|
|
405
|
+
// 1. Set parameterValue to the result of collecting
|
|
406
|
+
// a sequence of code points that are not U+003B (;)
|
|
407
|
+
// from input, given position.
|
|
408
|
+
parameterValue = collectASequenceOfCodePointsFast(
|
|
409
|
+
';',
|
|
410
|
+
input,
|
|
411
|
+
position
|
|
412
|
+
);
|
|
413
|
+
|
|
414
|
+
// 2. Remove any trailing HTTP whitespace from parameterValue.
|
|
415
|
+
parameterValue = removeHTTPWhitespace(parameterValue, false, true);
|
|
416
|
+
|
|
417
|
+
// 3. If parameterValue is the empty string, then continue.
|
|
418
|
+
if (parameterValue.length === 0) {
|
|
419
|
+
continue
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// 10. If all of the following are true
|
|
424
|
+
// - parameterName is not the empty string
|
|
425
|
+
// - parameterName solely contains HTTP token code points
|
|
426
|
+
// - parameterValue solely contains HTTP quoted-string token code points
|
|
427
|
+
// - mimeType’s parameters[parameterName] does not exist
|
|
428
|
+
// then set mimeType’s parameters[parameterName] to parameterValue.
|
|
429
|
+
if (
|
|
430
|
+
parameterName.length !== 0 &&
|
|
431
|
+
HTTP_TOKEN_CODEPOINTS.test(parameterName) &&
|
|
432
|
+
(parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) &&
|
|
433
|
+
!mimeType.parameters.has(parameterName)
|
|
434
|
+
) {
|
|
435
|
+
mimeType.parameters.set(parameterName, parameterValue);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// 12. Return mimeType.
|
|
440
|
+
return mimeType
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// https://infra.spec.whatwg.org/#forgiving-base64-decode
|
|
444
|
+
/** @param {string} data */
|
|
445
|
+
function forgivingBase64 (data) {
|
|
446
|
+
// 1. Remove all ASCII whitespace from data.
|
|
447
|
+
data = data.replace(ASCII_WHITESPACE_REPLACE_REGEX, ''); // eslint-disable-line
|
|
448
|
+
|
|
449
|
+
let dataLength = data.length;
|
|
450
|
+
// 2. If data’s code point length divides by 4 leaving
|
|
451
|
+
// no remainder, then:
|
|
452
|
+
if (dataLength % 4 === 0) {
|
|
453
|
+
// 1. If data ends with one or two U+003D (=) code points,
|
|
454
|
+
// then remove them from data.
|
|
455
|
+
if (data.charCodeAt(dataLength - 1) === 0x003D) {
|
|
456
|
+
--dataLength;
|
|
457
|
+
if (data.charCodeAt(dataLength - 1) === 0x003D) {
|
|
458
|
+
--dataLength;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
// 3. If data’s code point length divides by 4 leaving
|
|
464
|
+
// a remainder of 1, then return failure.
|
|
465
|
+
if (dataLength % 4 === 1) {
|
|
466
|
+
return 'failure'
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// 4. If data contains a code point that is not one of
|
|
470
|
+
// U+002B (+)
|
|
471
|
+
// U+002F (/)
|
|
472
|
+
// ASCII alphanumeric
|
|
473
|
+
// then return failure.
|
|
474
|
+
if (/[^+/0-9A-Za-z]/.test(data.length === dataLength ? data : data.substring(0, dataLength))) {
|
|
475
|
+
return 'failure'
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
const buffer = Buffer.from(data, 'base64');
|
|
479
|
+
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength)
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// https://fetch.spec.whatwg.org/#collect-an-http-quoted-string
|
|
483
|
+
// tests: https://fetch.spec.whatwg.org/#example-http-quoted-string
|
|
484
|
+
/**
|
|
485
|
+
* @param {string} input
|
|
486
|
+
* @param {{ position: number }} position
|
|
487
|
+
* @param {boolean?} extractValue
|
|
488
|
+
*/
|
|
489
|
+
function collectAnHTTPQuotedString (input, position, extractValue) {
|
|
490
|
+
// 1. Let positionStart be position.
|
|
491
|
+
const positionStart = position.position;
|
|
492
|
+
|
|
493
|
+
// 2. Let value be the empty string.
|
|
494
|
+
let value = '';
|
|
495
|
+
|
|
496
|
+
// 3. Assert: the code point at position within input
|
|
497
|
+
// is U+0022 (").
|
|
498
|
+
assert(input[position.position] === '"');
|
|
499
|
+
|
|
500
|
+
// 4. Advance position by 1.
|
|
501
|
+
position.position++;
|
|
502
|
+
|
|
503
|
+
// 5. While true:
|
|
504
|
+
while (true) {
|
|
505
|
+
// 1. Append the result of collecting a sequence of code points
|
|
506
|
+
// that are not U+0022 (") or U+005C (\) from input, given
|
|
507
|
+
// position, to value.
|
|
508
|
+
value += collectASequenceOfCodePoints(
|
|
509
|
+
(char) => char !== '"' && char !== '\\',
|
|
510
|
+
input,
|
|
511
|
+
position
|
|
512
|
+
);
|
|
513
|
+
|
|
514
|
+
// 2. If position is past the end of input, then break.
|
|
515
|
+
if (position.position >= input.length) {
|
|
516
|
+
break
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// 3. Let quoteOrBackslash be the code point at position within
|
|
520
|
+
// input.
|
|
521
|
+
const quoteOrBackslash = input[position.position];
|
|
522
|
+
|
|
523
|
+
// 4. Advance position by 1.
|
|
524
|
+
position.position++;
|
|
525
|
+
|
|
526
|
+
// 5. If quoteOrBackslash is U+005C (\), then:
|
|
527
|
+
if (quoteOrBackslash === '\\') {
|
|
528
|
+
// 1. If position is past the end of input, then append
|
|
529
|
+
// U+005C (\) to value and break.
|
|
530
|
+
if (position.position >= input.length) {
|
|
531
|
+
value += '\\';
|
|
532
|
+
break
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// 2. Append the code point at position within input to value.
|
|
536
|
+
value += input[position.position];
|
|
537
|
+
|
|
538
|
+
// 3. Advance position by 1.
|
|
539
|
+
position.position++;
|
|
540
|
+
|
|
541
|
+
// 6. Otherwise:
|
|
542
|
+
} else {
|
|
543
|
+
// 1. Assert: quoteOrBackslash is U+0022 (").
|
|
544
|
+
assert(quoteOrBackslash === '"');
|
|
545
|
+
|
|
546
|
+
// 2. Break.
|
|
547
|
+
break
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// 6. If the extract-value flag is set, then return value.
|
|
552
|
+
if (extractValue) {
|
|
553
|
+
return value
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// 7. Return the code points from positionStart to position,
|
|
557
|
+
// inclusive, within input.
|
|
558
|
+
return input.slice(positionStart, position.position)
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
|
|
563
|
+
*/
|
|
564
|
+
function serializeAMimeType (mimeType) {
|
|
565
|
+
assert(mimeType !== 'failure');
|
|
566
|
+
const { parameters, essence } = mimeType;
|
|
567
|
+
|
|
568
|
+
// 1. Let serialization be the concatenation of mimeType’s
|
|
569
|
+
// type, U+002F (/), and mimeType’s subtype.
|
|
570
|
+
let serialization = essence;
|
|
571
|
+
|
|
572
|
+
// 2. For each name → value of mimeType’s parameters:
|
|
573
|
+
for (let [name, value] of parameters.entries()) {
|
|
574
|
+
// 1. Append U+003B (;) to serialization.
|
|
575
|
+
serialization += ';';
|
|
576
|
+
|
|
577
|
+
// 2. Append name to serialization.
|
|
578
|
+
serialization += name;
|
|
579
|
+
|
|
580
|
+
// 3. Append U+003D (=) to serialization.
|
|
581
|
+
serialization += '=';
|
|
582
|
+
|
|
583
|
+
// 4. If value does not solely contain HTTP token code
|
|
584
|
+
// points or value is the empty string, then:
|
|
585
|
+
if (!HTTP_TOKEN_CODEPOINTS.test(value)) {
|
|
586
|
+
// 1. Precede each occurrence of U+0022 (") or
|
|
587
|
+
// U+005C (\) in value with U+005C (\).
|
|
588
|
+
value = value.replace(/(\\|")/g, '\\$1');
|
|
589
|
+
|
|
590
|
+
// 2. Prepend U+0022 (") to value.
|
|
591
|
+
value = '"' + value;
|
|
592
|
+
|
|
593
|
+
// 3. Append U+0022 (") to value.
|
|
594
|
+
value += '"';
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
// 5. Append value to serialization.
|
|
598
|
+
serialization += value;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// 3. Return serialization.
|
|
602
|
+
return serialization
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @see https://fetch.spec.whatwg.org/#http-whitespace
|
|
607
|
+
* @param {number} char
|
|
608
|
+
*/
|
|
609
|
+
function isHTTPWhiteSpace (char) {
|
|
610
|
+
// "\r\n\t "
|
|
611
|
+
return char === 0x00d || char === 0x00a || char === 0x009 || char === 0x020
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @see https://fetch.spec.whatwg.org/#http-whitespace
|
|
616
|
+
* @param {string} str
|
|
617
|
+
* @param {boolean} [leading=true]
|
|
618
|
+
* @param {boolean} [trailing=true]
|
|
619
|
+
*/
|
|
620
|
+
function removeHTTPWhitespace (str, leading = true, trailing = true) {
|
|
621
|
+
return removeChars(str, leading, trailing, isHTTPWhiteSpace)
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @see https://infra.spec.whatwg.org/#ascii-whitespace
|
|
626
|
+
* @param {number} char
|
|
627
|
+
*/
|
|
628
|
+
function isASCIIWhitespace (char) {
|
|
629
|
+
// "\r\n\t\f "
|
|
630
|
+
return char === 0x00d || char === 0x00a || char === 0x009 || char === 0x00c || char === 0x020
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace
|
|
635
|
+
* @param {string} str
|
|
636
|
+
* @param {boolean} [leading=true]
|
|
637
|
+
* @param {boolean} [trailing=true]
|
|
638
|
+
*/
|
|
639
|
+
function removeASCIIWhitespace (str, leading = true, trailing = true) {
|
|
640
|
+
return removeChars(str, leading, trailing, isASCIIWhitespace)
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @param {string} str
|
|
645
|
+
* @param {boolean} leading
|
|
646
|
+
* @param {boolean} trailing
|
|
647
|
+
* @param {(charCode: number) => boolean} predicate
|
|
648
|
+
* @returns
|
|
649
|
+
*/
|
|
650
|
+
function removeChars (str, leading, trailing, predicate) {
|
|
651
|
+
let lead = 0;
|
|
652
|
+
let trail = str.length - 1;
|
|
653
|
+
|
|
654
|
+
if (leading) {
|
|
655
|
+
while (lead < str.length && predicate(str.charCodeAt(lead))) lead++;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
if (trailing) {
|
|
659
|
+
while (trail > 0 && predicate(str.charCodeAt(trail))) trail--;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
return lead === 0 && trail === str.length - 1 ? str : str.slice(lead, trail + 1)
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* @see https://infra.spec.whatwg.org/#isomorphic-decode
|
|
667
|
+
* @param {Uint8Array} input
|
|
668
|
+
* @returns {string}
|
|
669
|
+
*/
|
|
670
|
+
function isomorphicDecode (input) {
|
|
671
|
+
// 1. To isomorphic decode a byte sequence input, return a string whose code point
|
|
672
|
+
// length is equal to input’s length and whose code points have the same values
|
|
673
|
+
// as the values of input’s bytes, in the same order.
|
|
674
|
+
const length = input.length;
|
|
675
|
+
if ((2 << 15) - 1 > length) {
|
|
676
|
+
return String.fromCharCode.apply(null, input)
|
|
677
|
+
}
|
|
678
|
+
let result = ''; let i = 0;
|
|
679
|
+
let addition = (2 << 15) - 1;
|
|
680
|
+
while (i < length) {
|
|
681
|
+
if (i + addition > length) {
|
|
682
|
+
addition = length - i;
|
|
683
|
+
}
|
|
684
|
+
result += String.fromCharCode.apply(null, input.subarray(i, i += addition));
|
|
685
|
+
}
|
|
686
|
+
return result
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* @see https://mimesniff.spec.whatwg.org/#minimize-a-supported-mime-type
|
|
691
|
+
* @param {Exclude<ReturnType<typeof parseMIMEType>, 'failure'>} mimeType
|
|
692
|
+
*/
|
|
693
|
+
function minimizeSupportedMimeType (mimeType) {
|
|
694
|
+
switch (mimeType.essence) {
|
|
695
|
+
case 'application/ecmascript':
|
|
696
|
+
case 'application/javascript':
|
|
697
|
+
case 'application/x-ecmascript':
|
|
698
|
+
case 'application/x-javascript':
|
|
699
|
+
case 'text/ecmascript':
|
|
700
|
+
case 'text/javascript':
|
|
701
|
+
case 'text/javascript1.0':
|
|
702
|
+
case 'text/javascript1.1':
|
|
703
|
+
case 'text/javascript1.2':
|
|
704
|
+
case 'text/javascript1.3':
|
|
705
|
+
case 'text/javascript1.4':
|
|
706
|
+
case 'text/javascript1.5':
|
|
707
|
+
case 'text/jscript':
|
|
708
|
+
case 'text/livescript':
|
|
709
|
+
case 'text/x-ecmascript':
|
|
710
|
+
case 'text/x-javascript':
|
|
711
|
+
// 1. If mimeType is a JavaScript MIME type, then return "text/javascript".
|
|
712
|
+
return 'text/javascript'
|
|
713
|
+
case 'application/json':
|
|
714
|
+
case 'text/json':
|
|
715
|
+
// 2. If mimeType is a JSON MIME type, then return "application/json".
|
|
716
|
+
return 'application/json'
|
|
717
|
+
case 'image/svg+xml':
|
|
718
|
+
// 3. If mimeType’s essence is "image/svg+xml", then return "image/svg+xml".
|
|
719
|
+
return 'image/svg+xml'
|
|
720
|
+
case 'text/xml':
|
|
721
|
+
case 'application/xml':
|
|
722
|
+
// 4. If mimeType is an XML MIME type, then return "application/xml".
|
|
723
|
+
return 'application/xml'
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// 2. If mimeType is a JSON MIME type, then return "application/json".
|
|
727
|
+
if (mimeType.subtype.endsWith('+json')) {
|
|
728
|
+
return 'application/json'
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
// 4. If mimeType is an XML MIME type, then return "application/xml".
|
|
732
|
+
if (mimeType.subtype.endsWith('+xml')) {
|
|
733
|
+
return 'application/xml'
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// 5. If mimeType is supported by the user agent, then return mimeType’s essence.
|
|
737
|
+
// Technically, node doesn't support any mimetypes.
|
|
738
|
+
|
|
739
|
+
// 6. Return the empty string.
|
|
740
|
+
return ''
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
dataUrl = {
|
|
744
|
+
dataURLProcessor,
|
|
745
|
+
URLSerializer,
|
|
746
|
+
collectASequenceOfCodePoints,
|
|
747
|
+
collectASequenceOfCodePointsFast,
|
|
748
|
+
stringPercentDecode,
|
|
749
|
+
parseMIMEType,
|
|
750
|
+
collectAnHTTPQuotedString,
|
|
751
|
+
serializeAMimeType,
|
|
752
|
+
removeChars,
|
|
753
|
+
removeHTTPWhitespace,
|
|
754
|
+
minimizeSupportedMimeType,
|
|
755
|
+
HTTP_TOKEN_CODEPOINTS,
|
|
756
|
+
isomorphicDecode
|
|
757
|
+
};
|
|
758
|
+
return dataUrl;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
exports.__require = requireDataUrl;
|
|
762
|
+
//# sourceMappingURL=data-url.js.map
|