@relative-ci/core 5.2.2-beta.0 → 5.3.0-alpha.0
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/github/__/@octokit/auth-token/dist-bundle/index.js +57 -0
- package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js +144 -0
- package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js +6 -0
- package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js +349 -0
- package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js +125 -0
- package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js +417 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +128 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2295 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +24 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +6 -0
- package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js +199 -0
- package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js +43 -0
- package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/index.js +41 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js +51 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js +32 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js +24 -0
- package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +1 -0
- package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js +18 -0
- package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +1 -0
- package/lib/cjs/__/@actions/github/lib/context.js +76 -0
- package/lib/cjs/__/@actions/github/lib/context.js.map +1 -0
- package/lib/cjs/__/@actions/github/lib/github.js +66 -0
- package/lib/cjs/__/@actions/github/lib/github.js.map +1 -0
- package/lib/cjs/__/@actions/github/lib/internal/utils.js +94 -0
- package/lib/cjs/__/@actions/github/lib/internal/utils.js.map +1 -0
- package/lib/cjs/__/@actions/github/lib/utils.js +89 -0
- package/lib/cjs/__/@actions/github/lib/utils.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/lib/index.js +760 -0
- package/lib/cjs/__/@actions/http-client/lib/index.js.map +1 -0
- package/lib/cjs/__/@actions/http-client/lib/proxy.js +107 -0
- package/lib/cjs/__/@actions/http-client/lib/proxy.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js +236 -0
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +122 -0
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js +33 -0
- package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js +248 -0
- package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/main.js +109 -0
- package/lib/cjs/__/@fastify/busboy/lib/main.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js +331 -0
- package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js +206 -0
- package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js +66 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js +26 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js +126 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js +28 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js.map +1 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js +211 -0
- package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js.map +1 -0
- package/lib/cjs/__/cross-spawn/index.js +1 -1
- package/lib/cjs/__/env-ci/__/execa/index.js +3 -3
- package/lib/cjs/__/env-ci/__/execa/index.js.map +1 -1
- package/lib/cjs/__/env-ci/__/execa/lib/stream.js +1 -1
- package/lib/cjs/__/env-ci/__/execa/lib/verbose.js +2 -2
- package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +1 -1
- package/lib/cjs/__/env-ci/__/npm-run-path/index.js +3 -3
- package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +1 -1
- package/lib/cjs/__/fast-content-type-parse/index.js +182 -0
- package/lib/cjs/__/fast-content-type-parse/index.js.map +1 -0
- package/lib/cjs/__/java-properties/dist-node/index.js +1 -1
- package/lib/cjs/__/path-key/index.js +1 -1
- package/lib/cjs/__/tunnel/index.js +16 -0
- package/lib/cjs/__/tunnel/index.js.map +1 -0
- package/lib/cjs/__/tunnel/lib/tunnel.js +289 -0
- package/lib/cjs/__/tunnel/lib/tunnel.js.map +1 -0
- package/lib/cjs/__/undici/index.js +212 -0
- package/lib/cjs/__/undici/index.js.map +1 -0
- package/lib/cjs/__/undici/lib/agent.js +169 -0
- package/lib/cjs/__/undici/lib/agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/abort-signal.js +70 -0
- package/lib/cjs/__/undici/lib/api/abort-signal.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/api-connect.js +125 -0
- package/lib/cjs/__/undici/lib/api/api-connect.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/api-pipeline.js +274 -0
- package/lib/cjs/__/undici/lib/api/api-pipeline.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/api-request.js +203 -0
- package/lib/cjs/__/undici/lib/api/api-request.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/api-stream.js +244 -0
- package/lib/cjs/__/undici/lib/api/api-stream.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/api-upgrade.js +128 -0
- package/lib/cjs/__/undici/lib/api/api-upgrade.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/index.js +25 -0
- package/lib/cjs/__/undici/lib/api/index.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/readable.js +342 -0
- package/lib/cjs/__/undici/lib/api/readable.js.map +1 -0
- package/lib/cjs/__/undici/lib/api/util.js +67 -0
- package/lib/cjs/__/undici/lib/api/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/balanced-pool.js +208 -0
- package/lib/cjs/__/undici/lib/balanced-pool.js.map +1 -0
- package/lib/cjs/__/undici/lib/cache/cache.js +867 -0
- package/lib/cjs/__/undici/lib/cache/cache.js.map +1 -0
- package/lib/cjs/__/undici/lib/cache/cachestorage.js +161 -0
- package/lib/cjs/__/undici/lib/cache/cachestorage.js.map +1 -0
- package/lib/cjs/__/undici/lib/cache/symbols.js +19 -0
- package/lib/cjs/__/undici/lib/cache/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/cache/util.js +69 -0
- package/lib/cjs/__/undici/lib/cache/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/client.js +2314 -0
- package/lib/cjs/__/undici/lib/client.js.map +1 -0
- package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js +63 -0
- package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js.map +1 -0
- package/lib/cjs/__/undici/lib/cookies/constants.js +24 -0
- package/lib/cjs/__/undici/lib/cookies/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/cookies/index.js +200 -0
- package/lib/cjs/__/undici/lib/cookies/index.js.map +1 -0
- package/lib/cjs/__/undici/lib/cookies/parse.js +338 -0
- package/lib/cjs/__/undici/lib/cookies/parse.js.map +1 -0
- package/lib/cjs/__/undici/lib/cookies/util.js +286 -0
- package/lib/cjs/__/undici/lib/cookies/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/connect.js +214 -0
- package/lib/cjs/__/undici/lib/core/connect.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/constants.js +130 -0
- package/lib/cjs/__/undici/lib/core/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/errors.js +242 -0
- package/lib/cjs/__/undici/lib/core/errors.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/request.js +521 -0
- package/lib/cjs/__/undici/lib/core/request.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/symbols.js +76 -0
- package/lib/cjs/__/undici/lib/core/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/core/util.js +557 -0
- package/lib/cjs/__/undici/lib/core/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher-base.js +208 -0
- package/lib/cjs/__/undici/lib/dispatcher-base.js.map +1 -0
- package/lib/cjs/__/undici/lib/dispatcher.js +37 -0
- package/lib/cjs/__/undici/lib/dispatcher.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/body.js +647 -0
- package/lib/cjs/__/undici/lib/fetch/body.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/constants.js +169 -0
- package/lib/cjs/__/undici/lib/fetch/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/dataURL.js +649 -0
- package/lib/cjs/__/undici/lib/fetch/dataURL.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/file.js +369 -0
- package/lib/cjs/__/undici/lib/fetch/file.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/formdata.js +287 -0
- package/lib/cjs/__/undici/lib/fetch/formdata.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/global.js +52 -0
- package/lib/cjs/__/undici/lib/fetch/global.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/headers.js +609 -0
- package/lib/cjs/__/undici/lib/fetch/headers.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/index.js +2114 -0
- package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/request.js +979 -0
- package/lib/cjs/__/undici/lib/fetch/request.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/response.js +604 -0
- package/lib/cjs/__/undici/lib/fetch/response.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/symbols.js +22 -0
- package/lib/cjs/__/undici/lib/fetch/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/util.js +1170 -0
- package/lib/cjs/__/undici/lib/fetch/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/fetch/webidl.js +665 -0
- package/lib/cjs/__/undici/lib/fetch/webidl.js.map +1 -0
- package/lib/cjs/__/undici/lib/fileapi/encoding.js +302 -0
- package/lib/cjs/__/undici/lib/fileapi/encoding.js.map +1 -0
- package/lib/cjs/__/undici/lib/fileapi/filereader.js +361 -0
- package/lib/cjs/__/undici/lib/fileapi/filereader.js.map +1 -0
- package/lib/cjs/__/undici/lib/fileapi/progressevent.js +92 -0
- package/lib/cjs/__/undici/lib/fileapi/progressevent.js.map +1 -0
- package/lib/cjs/__/undici/lib/fileapi/symbols.js +22 -0
- package/lib/cjs/__/undici/lib/fileapi/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/fileapi/util.js +419 -0
- package/lib/cjs/__/undici/lib/fileapi/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/global.js +47 -0
- package/lib/cjs/__/undici/lib/global.js.map +1 -0
- package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js +47 -0
- package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js.map +1 -0
- package/lib/cjs/__/undici/lib/handler/RedirectHandler.js +226 -0
- package/lib/cjs/__/undici/lib/handler/RedirectHandler.js.map +1 -0
- package/lib/cjs/__/undici/lib/handler/RetryHandler.js +358 -0
- package/lib/cjs/__/undici/lib/handler/RetryHandler.js.map +1 -0
- package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js +35 -0
- package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js.map +1 -0
- package/lib/cjs/__/undici/lib/llhttp/constants.js +288 -0
- package/lib/cjs/__/undici/lib/llhttp/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js +14 -0
- package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
- package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js +14 -0
- package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
- package/lib/cjs/__/undici/lib/llhttp/utils.js +28 -0
- package/lib/cjs/__/undici/lib/llhttp/utils.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-agent.js +194 -0
- package/lib/cjs/__/undici/lib/mock/mock-agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-client.js +83 -0
- package/lib/cjs/__/undici/lib/mock/mock-client.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-errors.js +31 -0
- package/lib/cjs/__/undici/lib/mock/mock-errors.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-interceptor.js +223 -0
- package/lib/cjs/__/undici/lib/mock/mock-interceptor.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-pool.js +83 -0
- package/lib/cjs/__/undici/lib/mock/mock-pool.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-symbols.js +35 -0
- package/lib/cjs/__/undici/lib/mock/mock-symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/mock-utils.js +374 -0
- package/lib/cjs/__/undici/lib/mock/mock-utils.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js +60 -0
- package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
- package/lib/cjs/__/undici/lib/mock/pluralizer.js +41 -0
- package/lib/cjs/__/undici/lib/mock/pluralizer.js.map +1 -0
- package/lib/cjs/__/undici/lib/node/fixed-queue.js +129 -0
- package/lib/cjs/__/undici/lib/node/fixed-queue.js.map +1 -0
- package/lib/cjs/__/undici/lib/pool-base.js +211 -0
- package/lib/cjs/__/undici/lib/pool-base.js.map +1 -0
- package/lib/cjs/__/undici/lib/pool-stats.js +49 -0
- package/lib/cjs/__/undici/lib/pool-stats.js.map +1 -0
- package/lib/cjs/__/undici/lib/pool.js +127 -0
- package/lib/cjs/__/undici/lib/pool.js.map +1 -0
- package/lib/cjs/__/undici/lib/proxy-agent.js +213 -0
- package/lib/cjs/__/undici/lib/proxy-agent.js.map +1 -0
- package/lib/cjs/__/undici/lib/timers.js +109 -0
- package/lib/cjs/__/undici/lib/timers.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/connection.js +318 -0
- package/lib/cjs/__/undici/lib/websocket/connection.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/constants.js +63 -0
- package/lib/cjs/__/undici/lib/websocket/constants.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/events.js +323 -0
- package/lib/cjs/__/undici/lib/websocket/events.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/frame.js +87 -0
- package/lib/cjs/__/undici/lib/websocket/frame.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/receiver.js +368 -0
- package/lib/cjs/__/undici/lib/websocket/receiver.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/symbols.js +24 -0
- package/lib/cjs/__/undici/lib/websocket/symbols.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/util.js +216 -0
- package/lib/cjs/__/undici/lib/websocket/util.js.map +1 -0
- package/lib/cjs/__/undici/lib/websocket/websocket.js +668 -0
- package/lib/cjs/__/undici/lib/websocket/websocket.js.map +1 -0
- package/lib/cjs/_virtual/_commonjsHelpers.js +30 -0
- package/lib/cjs/_virtual/_commonjsHelpers.js.map +1 -1
- package/lib/cjs/_virtual/api-request.js +6 -0
- package/lib/cjs/_virtual/api-request.js.map +1 -0
- package/lib/cjs/_virtual/constants.js +6 -0
- package/lib/cjs/_virtual/constants.js.map +1 -0
- package/lib/cjs/_virtual/context.js +6 -0
- package/lib/cjs/_virtual/context.js.map +1 -0
- package/lib/cjs/_virtual/github.js +8 -0
- package/lib/cjs/_virtual/github.js.map +1 -0
- package/lib/cjs/_virtual/github2.js +6 -0
- package/lib/cjs/_virtual/github2.js.map +1 -0
- package/lib/cjs/_virtual/index10.js +6 -0
- package/lib/cjs/_virtual/index10.js.map +1 -0
- package/lib/cjs/_virtual/index11.js +6 -0
- package/lib/cjs/_virtual/index11.js.map +1 -0
- package/lib/cjs/_virtual/index12.js +6 -0
- package/lib/cjs/_virtual/index12.js.map +1 -0
- package/lib/cjs/_virtual/index13.js +6 -0
- package/lib/cjs/_virtual/index13.js.map +1 -0
- package/lib/cjs/_virtual/index14.js +6 -0
- package/lib/cjs/_virtual/index14.js.map +1 -0
- package/lib/cjs/_virtual/index2.js +5 -2
- package/lib/cjs/_virtual/index2.js.map +1 -1
- package/lib/cjs/_virtual/index3.js +3 -4
- package/lib/cjs/_virtual/index3.js.map +1 -1
- package/lib/cjs/_virtual/index4.js +5 -2
- package/lib/cjs/_virtual/index4.js.map +1 -1
- package/lib/cjs/_virtual/index5.js +2 -2
- package/lib/cjs/_virtual/index6.js +6 -2
- package/lib/cjs/_virtual/index6.js.map +1 -1
- package/lib/cjs/_virtual/index7.js +6 -0
- package/lib/cjs/_virtual/index7.js.map +1 -0
- package/lib/cjs/_virtual/index8.js +6 -0
- package/lib/cjs/_virtual/index8.js.map +1 -0
- package/lib/cjs/_virtual/index9.js +8 -0
- package/lib/cjs/_virtual/index9.js.map +1 -0
- package/lib/cjs/_virtual/main.js +6 -0
- package/lib/cjs/_virtual/main.js.map +1 -0
- package/lib/cjs/_virtual/mock-interceptor.js +6 -0
- package/lib/cjs/_virtual/mock-interceptor.js.map +1 -0
- package/lib/cjs/_virtual/proxy.js +6 -0
- package/lib/cjs/_virtual/proxy.js.map +1 -0
- package/lib/cjs/_virtual/tunnel.js +6 -0
- package/lib/cjs/_virtual/tunnel.js.map +1 -0
- package/lib/cjs/_virtual/utils.js +6 -0
- package/lib/cjs/_virtual/utils.js.map +1 -0
- package/lib/cjs/_virtual/utils2.js +6 -0
- package/lib/cjs/_virtual/utils2.js.map +1 -0
- package/lib/cjs/_virtual/utils3.js +6 -0
- package/lib/cjs/_virtual/utils3.js.map +1 -0
- package/lib/cjs/artifacts/filter-artifacts.js.map +1 -1
- package/lib/cjs/env/ci-env.js +6 -1
- package/lib/cjs/env/ci-env.js.map +1 -1
- package/lib/cjs/env/load.js +1 -1
- package/lib/cjs/env/load.js.map +1 -1
- package/lib/cjs/env/service/github.js +3 -22
- package/lib/cjs/env/service/github.js.map +1 -1
- package/lib/cjs/ingest/ingest.js +4 -4
- package/lib/cjs/ingest/ingest.js.map +1 -1
- package/lib/cjs/locales/en.js.map +1 -1
- package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js +55 -0
- package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js +142 -0
- package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js +4 -0
- package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js +347 -0
- package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js +122 -0
- package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js +412 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +126 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2293 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +21 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +4 -0
- package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js +197 -0
- package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js +41 -0
- package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/index.js +39 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +1 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js +49 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +1 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js +30 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +1 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js +22 -0
- package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +1 -0
- package/lib/esm/__/@actions/github/__/universal-user-agent/index.js +16 -0
- package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +1 -0
- package/lib/esm/__/@actions/github/lib/context.js +69 -0
- package/lib/esm/__/@actions/github/lib/context.js.map +1 -0
- package/lib/esm/__/@actions/github/lib/github.js +64 -0
- package/lib/esm/__/@actions/github/lib/github.js.map +1 -0
- package/lib/esm/__/@actions/github/lib/internal/utils.js +92 -0
- package/lib/esm/__/@actions/github/lib/internal/utils.js.map +1 -0
- package/lib/esm/__/@actions/github/lib/utils.js +87 -0
- package/lib/esm/__/@actions/github/lib/utils.js.map +1 -0
- package/lib/esm/__/@actions/http-client/lib/index.js +753 -0
- package/lib/esm/__/@actions/http-client/lib/index.js.map +1 -0
- package/lib/esm/__/@actions/http-client/lib/proxy.js +105 -0
- package/lib/esm/__/@actions/http-client/lib/proxy.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js +229 -0
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +115 -0
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js +26 -0
- package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js +241 -0
- package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/main.js +102 -0
- package/lib/esm/__/@fastify/busboy/lib/main.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/types/multipart.js +324 -0
- package/lib/esm/__/@fastify/busboy/lib/types/multipart.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js +204 -0
- package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js +64 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/basename.js +24 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/basename.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js +124 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js +26 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js.map +1 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js +209 -0
- package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js.map +1 -0
- package/lib/esm/__/cross-spawn/index.js +1 -1
- package/lib/esm/__/env-ci/__/execa/index.js +1 -1
- package/lib/esm/__/env-ci/__/execa/lib/stream.js +1 -1
- package/lib/esm/__/fast-content-type-parse/index.js +180 -0
- package/lib/esm/__/fast-content-type-parse/index.js.map +1 -0
- package/lib/esm/__/java-properties/dist-node/index.js +1 -1
- package/lib/esm/__/path-key/index.js +1 -1
- package/lib/esm/__/tunnel/index.js +14 -0
- package/lib/esm/__/tunnel/index.js.map +1 -0
- package/lib/esm/__/tunnel/lib/tunnel.js +279 -0
- package/lib/esm/__/tunnel/lib/tunnel.js.map +1 -0
- package/lib/esm/__/undici/index.js +210 -0
- package/lib/esm/__/undici/index.js.map +1 -0
- package/lib/esm/__/undici/lib/agent.js +167 -0
- package/lib/esm/__/undici/lib/agent.js.map +1 -0
- package/lib/esm/__/undici/lib/api/abort-signal.js +68 -0
- package/lib/esm/__/undici/lib/api/abort-signal.js.map +1 -0
- package/lib/esm/__/undici/lib/api/api-connect.js +119 -0
- package/lib/esm/__/undici/lib/api/api-connect.js.map +1 -0
- package/lib/esm/__/undici/lib/api/api-pipeline.js +266 -0
- package/lib/esm/__/undici/lib/api/api-pipeline.js.map +1 -0
- package/lib/esm/__/undici/lib/api/api-request.js +197 -0
- package/lib/esm/__/undici/lib/api/api-request.js.map +1 -0
- package/lib/esm/__/undici/lib/api/api-stream.js +237 -0
- package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -0
- package/lib/esm/__/undici/lib/api/api-upgrade.js +121 -0
- package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -0
- package/lib/esm/__/undici/lib/api/index.js +23 -0
- package/lib/esm/__/undici/lib/api/index.js.map +1 -0
- package/lib/esm/__/undici/lib/api/readable.js +335 -0
- package/lib/esm/__/undici/lib/api/readable.js.map +1 -0
- package/lib/esm/__/undici/lib/api/util.js +61 -0
- package/lib/esm/__/undici/lib/api/util.js.map +1 -0
- package/lib/esm/__/undici/lib/balanced-pool.js +206 -0
- package/lib/esm/__/undici/lib/balanced-pool.js.map +1 -0
- package/lib/esm/__/undici/lib/cache/cache.js +861 -0
- package/lib/esm/__/undici/lib/cache/cache.js.map +1 -0
- package/lib/esm/__/undici/lib/cache/cachestorage.js +159 -0
- package/lib/esm/__/undici/lib/cache/cachestorage.js.map +1 -0
- package/lib/esm/__/undici/lib/cache/symbols.js +17 -0
- package/lib/esm/__/undici/lib/cache/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/cache/util.js +63 -0
- package/lib/esm/__/undici/lib/cache/util.js.map +1 -0
- package/lib/esm/__/undici/lib/client.js +2305 -0
- package/lib/esm/__/undici/lib/client.js.map +1 -0
- package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js +61 -0
- package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js.map +1 -0
- package/lib/esm/__/undici/lib/cookies/constants.js +22 -0
- package/lib/esm/__/undici/lib/cookies/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/cookies/index.js +198 -0
- package/lib/esm/__/undici/lib/cookies/index.js.map +1 -0
- package/lib/esm/__/undici/lib/cookies/parse.js +332 -0
- package/lib/esm/__/undici/lib/cookies/parse.js.map +1 -0
- package/lib/esm/__/undici/lib/cookies/util.js +284 -0
- package/lib/esm/__/undici/lib/cookies/util.js.map +1 -0
- package/lib/esm/__/undici/lib/core/connect.js +206 -0
- package/lib/esm/__/undici/lib/core/connect.js.map +1 -0
- package/lib/esm/__/undici/lib/core/constants.js +128 -0
- package/lib/esm/__/undici/lib/core/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/core/errors.js +240 -0
- package/lib/esm/__/undici/lib/core/errors.js.map +1 -0
- package/lib/esm/__/undici/lib/core/request.js +515 -0
- package/lib/esm/__/undici/lib/core/request.js.map +1 -0
- package/lib/esm/__/undici/lib/core/symbols.js +74 -0
- package/lib/esm/__/undici/lib/core/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/core/util.js +544 -0
- package/lib/esm/__/undici/lib/core/util.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher-base.js +206 -0
- package/lib/esm/__/undici/lib/dispatcher-base.js.map +1 -0
- package/lib/esm/__/undici/lib/dispatcher.js +31 -0
- package/lib/esm/__/undici/lib/dispatcher.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/body.js +638 -0
- package/lib/esm/__/undici/lib/fetch/body.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/constants.js +163 -0
- package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/dataURL.js +642 -0
- package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/file.js +362 -0
- package/lib/esm/__/undici/lib/fetch/file.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/formdata.js +281 -0
- package/lib/esm/__/undici/lib/fetch/formdata.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/global.js +50 -0
- package/lib/esm/__/undici/lib/fetch/global.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/headers.js +602 -0
- package/lib/esm/__/undici/lib/fetch/headers.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/index.js +2102 -0
- package/lib/esm/__/undici/lib/fetch/index.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/request.js +971 -0
- package/lib/esm/__/undici/lib/fetch/request.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/response.js +596 -0
- package/lib/esm/__/undici/lib/fetch/response.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/symbols.js +20 -0
- package/lib/esm/__/undici/lib/fetch/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/util.js +1161 -0
- package/lib/esm/__/undici/lib/fetch/util.js.map +1 -0
- package/lib/esm/__/undici/lib/fetch/webidl.js +659 -0
- package/lib/esm/__/undici/lib/fetch/webidl.js.map +1 -0
- package/lib/esm/__/undici/lib/fileapi/encoding.js +300 -0
- package/lib/esm/__/undici/lib/fileapi/encoding.js.map +1 -0
- package/lib/esm/__/undici/lib/fileapi/filereader.js +359 -0
- package/lib/esm/__/undici/lib/fileapi/filereader.js.map +1 -0
- package/lib/esm/__/undici/lib/fileapi/progressevent.js +90 -0
- package/lib/esm/__/undici/lib/fileapi/progressevent.js.map +1 -0
- package/lib/esm/__/undici/lib/fileapi/symbols.js +20 -0
- package/lib/esm/__/undici/lib/fileapi/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/fileapi/util.js +411 -0
- package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -0
- package/lib/esm/__/undici/lib/global.js +45 -0
- package/lib/esm/__/undici/lib/global.js.map +1 -0
- package/lib/esm/__/undici/lib/handler/DecoratorHandler.js +45 -0
- package/lib/esm/__/undici/lib/handler/DecoratorHandler.js.map +1 -0
- package/lib/esm/__/undici/lib/handler/RedirectHandler.js +219 -0
- package/lib/esm/__/undici/lib/handler/RedirectHandler.js.map +1 -0
- package/lib/esm/__/undici/lib/handler/RetryHandler.js +352 -0
- package/lib/esm/__/undici/lib/handler/RetryHandler.js.map +1 -0
- package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js +33 -0
- package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js.map +1 -0
- package/lib/esm/__/undici/lib/llhttp/constants.js +286 -0
- package/lib/esm/__/undici/lib/llhttp/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js +12 -0
- package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
- package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js +12 -0
- package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
- package/lib/esm/__/undici/lib/llhttp/utils.js +26 -0
- package/lib/esm/__/undici/lib/llhttp/utils.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-agent.js +192 -0
- package/lib/esm/__/undici/lib/mock/mock-agent.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-client.js +77 -0
- package/lib/esm/__/undici/lib/mock/mock-client.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-errors.js +29 -0
- package/lib/esm/__/undici/lib/mock/mock-errors.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-interceptor.js +221 -0
- package/lib/esm/__/undici/lib/mock/mock-interceptor.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-pool.js +77 -0
- package/lib/esm/__/undici/lib/mock/mock-pool.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-symbols.js +33 -0
- package/lib/esm/__/undici/lib/mock/mock-symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/mock-utils.js +367 -0
- package/lib/esm/__/undici/lib/mock/mock-utils.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js +53 -0
- package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
- package/lib/esm/__/undici/lib/mock/pluralizer.js +39 -0
- package/lib/esm/__/undici/lib/mock/pluralizer.js.map +1 -0
- package/lib/esm/__/undici/lib/node/fixed-queue.js +127 -0
- package/lib/esm/__/undici/lib/node/fixed-queue.js.map +1 -0
- package/lib/esm/__/undici/lib/pool-base.js +209 -0
- package/lib/esm/__/undici/lib/pool-base.js.map +1 -0
- package/lib/esm/__/undici/lib/pool-stats.js +47 -0
- package/lib/esm/__/undici/lib/pool-stats.js.map +1 -0
- package/lib/esm/__/undici/lib/pool.js +125 -0
- package/lib/esm/__/undici/lib/pool.js.map +1 -0
- package/lib/esm/__/undici/lib/proxy-agent.js +207 -0
- package/lib/esm/__/undici/lib/proxy-agent.js.map +1 -0
- package/lib/esm/__/undici/lib/timers.js +107 -0
- package/lib/esm/__/undici/lib/timers.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/connection.js +312 -0
- package/lib/esm/__/undici/lib/websocket/connection.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/constants.js +61 -0
- package/lib/esm/__/undici/lib/websocket/constants.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/events.js +317 -0
- package/lib/esm/__/undici/lib/websocket/events.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/frame.js +85 -0
- package/lib/esm/__/undici/lib/websocket/frame.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/receiver.js +361 -0
- package/lib/esm/__/undici/lib/websocket/receiver.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/symbols.js +22 -0
- package/lib/esm/__/undici/lib/websocket/symbols.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/util.js +214 -0
- package/lib/esm/__/undici/lib/websocket/util.js.map +1 -0
- package/lib/esm/__/undici/lib/websocket/websocket.js +662 -0
- package/lib/esm/__/undici/lib/websocket/websocket.js.map +1 -0
- package/lib/esm/_virtual/_commonjsHelpers.js +30 -1
- package/lib/esm/_virtual/_commonjsHelpers.js.map +1 -1
- package/lib/esm/_virtual/api-request.js +4 -0
- package/lib/esm/_virtual/api-request.js.map +1 -0
- package/lib/esm/_virtual/constants.js +4 -0
- package/lib/esm/_virtual/constants.js.map +1 -0
- package/lib/esm/_virtual/context.js +4 -0
- package/lib/esm/_virtual/context.js.map +1 -0
- package/lib/esm/_virtual/github.js +6 -0
- package/lib/esm/_virtual/github.js.map +1 -0
- package/lib/esm/_virtual/github2.js +4 -0
- package/lib/esm/_virtual/github2.js.map +1 -0
- package/lib/esm/_virtual/index10.js +4 -0
- package/lib/esm/_virtual/index10.js.map +1 -0
- package/lib/esm/_virtual/index11.js +4 -0
- package/lib/esm/_virtual/index11.js.map +1 -0
- package/lib/esm/_virtual/index12.js +4 -0
- package/lib/esm/_virtual/index12.js.map +1 -0
- package/lib/esm/_virtual/index13.js +4 -0
- package/lib/esm/_virtual/index13.js.map +1 -0
- package/lib/esm/_virtual/index14.js +4 -0
- package/lib/esm/_virtual/index14.js.map +1 -0
- package/lib/esm/_virtual/index2.js +4 -5
- package/lib/esm/_virtual/index2.js.map +1 -1
- package/lib/esm/_virtual/index3.js +5 -2
- package/lib/esm/_virtual/index3.js.map +1 -1
- package/lib/esm/_virtual/index4.js +5 -2
- package/lib/esm/_virtual/index4.js.map +1 -1
- package/lib/esm/_virtual/index5.js +2 -2
- package/lib/esm/_virtual/index6.js +6 -2
- package/lib/esm/_virtual/index6.js.map +1 -1
- package/lib/esm/_virtual/index7.js +4 -0
- package/lib/esm/_virtual/index7.js.map +1 -0
- package/lib/esm/_virtual/index8.js +6 -0
- package/lib/esm/_virtual/index8.js.map +1 -0
- package/lib/esm/_virtual/index9.js +4 -0
- package/lib/esm/_virtual/index9.js.map +1 -0
- package/lib/esm/_virtual/main.js +4 -0
- package/lib/esm/_virtual/main.js.map +1 -0
- package/lib/esm/_virtual/mock-interceptor.js +4 -0
- package/lib/esm/_virtual/mock-interceptor.js.map +1 -0
- package/lib/esm/_virtual/proxy.js +4 -0
- package/lib/esm/_virtual/proxy.js.map +1 -0
- package/lib/esm/_virtual/tunnel.js +4 -0
- package/lib/esm/_virtual/tunnel.js.map +1 -0
- package/lib/esm/_virtual/utils.js +4 -0
- package/lib/esm/_virtual/utils.js.map +1 -0
- package/lib/esm/_virtual/utils2.js +4 -0
- package/lib/esm/_virtual/utils2.js.map +1 -0
- package/lib/esm/_virtual/utils3.js +4 -0
- package/lib/esm/_virtual/utils3.js.map +1 -0
- package/lib/esm/artifacts/filter-artifacts.js.map +1 -1
- package/lib/esm/env/ci-env.js +6 -1
- package/lib/esm/env/ci-env.js.map +1 -1
- package/lib/esm/env/load.js +1 -1
- package/lib/esm/env/load.js.map +1 -1
- package/lib/esm/env/service/github.js +3 -3
- package/lib/esm/env/service/github.js.map +1 -1
- package/lib/esm/ingest/ingest.js +1 -1
- package/lib/esm/ingest/ingest.js.map +1 -1
- package/lib/esm/locales/en.js.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,867 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var symbols = require('./symbols.js');
|
|
4
|
+
var util = require('./util.js');
|
|
5
|
+
var util$1 = require('../core/util.js');
|
|
6
|
+
var symbols$1 = require('../core/symbols.js');
|
|
7
|
+
var webidl = require('../fetch/webidl.js');
|
|
8
|
+
var response = require('../fetch/response.js');
|
|
9
|
+
var request = require('../fetch/request.js');
|
|
10
|
+
var symbols$2 = require('../fetch/symbols.js');
|
|
11
|
+
var index = require('../fetch/index.js');
|
|
12
|
+
var util$2 = require('../fetch/util.js');
|
|
13
|
+
var require$$0 = require('node:assert');
|
|
14
|
+
var global = require('../global.js');
|
|
15
|
+
|
|
16
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
|
|
18
|
+
var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
19
|
+
|
|
20
|
+
var cache;
|
|
21
|
+
var hasRequiredCache;
|
|
22
|
+
|
|
23
|
+
function requireCache () {
|
|
24
|
+
if (hasRequiredCache) return cache;
|
|
25
|
+
hasRequiredCache = 1;
|
|
26
|
+
|
|
27
|
+
const { kConstruct } = symbols.__require();
|
|
28
|
+
const { urlEquals, fieldValues: getFieldValues } = util.__require();
|
|
29
|
+
const { kEnumerableProperty, isDisturbed } = util$1.__require();
|
|
30
|
+
const { kHeadersList } = symbols$1.__require();
|
|
31
|
+
const { webidl: webidl$1 } = webidl.__require();
|
|
32
|
+
const { Response, cloneResponse } = response.__require();
|
|
33
|
+
const { Request } = request.__require();
|
|
34
|
+
const { kState, kHeaders, kGuard, kRealm } = symbols$2.__require();
|
|
35
|
+
const { fetching } = index.__require();
|
|
36
|
+
const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = util$2.__require();
|
|
37
|
+
const assert = require$$0__default.default;
|
|
38
|
+
const { getGlobalDispatcher } = global.__require();
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation
|
|
42
|
+
* @typedef {Object} CacheBatchOperation
|
|
43
|
+
* @property {'delete' | 'put'} type
|
|
44
|
+
* @property {any} request
|
|
45
|
+
* @property {any} response
|
|
46
|
+
* @property {import('../../types/cache').CacheQueryOptions} options
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list
|
|
51
|
+
* @typedef {[any, any][]} requestResponseList
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
class Cache {
|
|
55
|
+
/**
|
|
56
|
+
* @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
|
|
57
|
+
* @type {requestResponseList}
|
|
58
|
+
*/
|
|
59
|
+
#relevantRequestResponseList
|
|
60
|
+
|
|
61
|
+
constructor () {
|
|
62
|
+
if (arguments[0] !== kConstruct) {
|
|
63
|
+
webidl$1.illegalConstructor();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
this.#relevantRequestResponseList = arguments[1];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async match (request, options = {}) {
|
|
70
|
+
webidl$1.brandCheck(this, Cache);
|
|
71
|
+
webidl$1.argumentLengthCheck(arguments, 1, { header: 'Cache.match' });
|
|
72
|
+
|
|
73
|
+
request = webidl$1.converters.RequestInfo(request);
|
|
74
|
+
options = webidl$1.converters.CacheQueryOptions(options);
|
|
75
|
+
|
|
76
|
+
const p = await this.matchAll(request, options);
|
|
77
|
+
|
|
78
|
+
if (p.length === 0) {
|
|
79
|
+
return
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return p[0]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async matchAll (request = undefined, options = {}) {
|
|
86
|
+
webidl$1.brandCheck(this, Cache);
|
|
87
|
+
|
|
88
|
+
if (request !== undefined) request = webidl$1.converters.RequestInfo(request);
|
|
89
|
+
options = webidl$1.converters.CacheQueryOptions(options);
|
|
90
|
+
|
|
91
|
+
// 1.
|
|
92
|
+
let r = null;
|
|
93
|
+
|
|
94
|
+
// 2.
|
|
95
|
+
if (request !== undefined) {
|
|
96
|
+
if (request instanceof Request) {
|
|
97
|
+
// 2.1.1
|
|
98
|
+
r = request[kState];
|
|
99
|
+
|
|
100
|
+
// 2.1.2
|
|
101
|
+
if (r.method !== 'GET' && !options.ignoreMethod) {
|
|
102
|
+
return []
|
|
103
|
+
}
|
|
104
|
+
} else if (typeof request === 'string') {
|
|
105
|
+
// 2.2.1
|
|
106
|
+
r = new Request(request)[kState];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 5.
|
|
111
|
+
// 5.1
|
|
112
|
+
const responses = [];
|
|
113
|
+
|
|
114
|
+
// 5.2
|
|
115
|
+
if (request === undefined) {
|
|
116
|
+
// 5.2.1
|
|
117
|
+
for (const requestResponse of this.#relevantRequestResponseList) {
|
|
118
|
+
responses.push(requestResponse[1]);
|
|
119
|
+
}
|
|
120
|
+
} else { // 5.3
|
|
121
|
+
// 5.3.1
|
|
122
|
+
const requestResponses = this.#queryCache(r, options);
|
|
123
|
+
|
|
124
|
+
// 5.3.2
|
|
125
|
+
for (const requestResponse of requestResponses) {
|
|
126
|
+
responses.push(requestResponse[1]);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// 5.4
|
|
131
|
+
// We don't implement CORs so we don't need to loop over the responses, yay!
|
|
132
|
+
|
|
133
|
+
// 5.5.1
|
|
134
|
+
const responseList = [];
|
|
135
|
+
|
|
136
|
+
// 5.5.2
|
|
137
|
+
for (const response of responses) {
|
|
138
|
+
// 5.5.2.1
|
|
139
|
+
const responseObject = new Response(response.body?.source ?? null);
|
|
140
|
+
const body = responseObject[kState].body;
|
|
141
|
+
responseObject[kState] = response;
|
|
142
|
+
responseObject[kState].body = body;
|
|
143
|
+
responseObject[kHeaders][kHeadersList] = response.headersList;
|
|
144
|
+
responseObject[kHeaders][kGuard] = 'immutable';
|
|
145
|
+
|
|
146
|
+
responseList.push(responseObject);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// 6.
|
|
150
|
+
return Object.freeze(responseList)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
async add (request) {
|
|
154
|
+
webidl$1.brandCheck(this, Cache);
|
|
155
|
+
webidl$1.argumentLengthCheck(arguments, 1, { header: 'Cache.add' });
|
|
156
|
+
|
|
157
|
+
request = webidl$1.converters.RequestInfo(request);
|
|
158
|
+
|
|
159
|
+
// 1.
|
|
160
|
+
const requests = [request];
|
|
161
|
+
|
|
162
|
+
// 2.
|
|
163
|
+
const responseArrayPromise = this.addAll(requests);
|
|
164
|
+
|
|
165
|
+
// 3.
|
|
166
|
+
return await responseArrayPromise
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
async addAll (requests) {
|
|
170
|
+
webidl$1.brandCheck(this, Cache);
|
|
171
|
+
webidl$1.argumentLengthCheck(arguments, 1, { header: 'Cache.addAll' });
|
|
172
|
+
|
|
173
|
+
requests = webidl$1.converters['sequence<RequestInfo>'](requests);
|
|
174
|
+
|
|
175
|
+
// 1.
|
|
176
|
+
const responsePromises = [];
|
|
177
|
+
|
|
178
|
+
// 2.
|
|
179
|
+
const requestList = [];
|
|
180
|
+
|
|
181
|
+
// 3.
|
|
182
|
+
for (const request of requests) {
|
|
183
|
+
if (typeof request === 'string') {
|
|
184
|
+
continue
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// 3.1
|
|
188
|
+
const r = request[kState];
|
|
189
|
+
|
|
190
|
+
// 3.2
|
|
191
|
+
if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {
|
|
192
|
+
throw webidl$1.errors.exception({
|
|
193
|
+
header: 'Cache.addAll',
|
|
194
|
+
message: 'Expected http/s scheme when method is not GET.'
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// 4.
|
|
200
|
+
/** @type {ReturnType<typeof fetching>[]} */
|
|
201
|
+
const fetchControllers = [];
|
|
202
|
+
|
|
203
|
+
// 5.
|
|
204
|
+
for (const request of requests) {
|
|
205
|
+
// 5.1
|
|
206
|
+
const r = new Request(request)[kState];
|
|
207
|
+
|
|
208
|
+
// 5.2
|
|
209
|
+
if (!urlIsHttpHttpsScheme(r.url)) {
|
|
210
|
+
throw webidl$1.errors.exception({
|
|
211
|
+
header: 'Cache.addAll',
|
|
212
|
+
message: 'Expected http/s scheme.'
|
|
213
|
+
})
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// 5.4
|
|
217
|
+
r.initiator = 'fetch';
|
|
218
|
+
r.destination = 'subresource';
|
|
219
|
+
|
|
220
|
+
// 5.5
|
|
221
|
+
requestList.push(r);
|
|
222
|
+
|
|
223
|
+
// 5.6
|
|
224
|
+
const responsePromise = createDeferredPromise();
|
|
225
|
+
|
|
226
|
+
// 5.7
|
|
227
|
+
fetchControllers.push(fetching({
|
|
228
|
+
request: r,
|
|
229
|
+
dispatcher: getGlobalDispatcher(),
|
|
230
|
+
processResponse (response) {
|
|
231
|
+
// 1.
|
|
232
|
+
if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {
|
|
233
|
+
responsePromise.reject(webidl$1.errors.exception({
|
|
234
|
+
header: 'Cache.addAll',
|
|
235
|
+
message: 'Received an invalid status code or the request failed.'
|
|
236
|
+
}));
|
|
237
|
+
} else if (response.headersList.contains('vary')) { // 2.
|
|
238
|
+
// 2.1
|
|
239
|
+
const fieldValues = getFieldValues(response.headersList.get('vary'));
|
|
240
|
+
|
|
241
|
+
// 2.2
|
|
242
|
+
for (const fieldValue of fieldValues) {
|
|
243
|
+
// 2.2.1
|
|
244
|
+
if (fieldValue === '*') {
|
|
245
|
+
responsePromise.reject(webidl$1.errors.exception({
|
|
246
|
+
header: 'Cache.addAll',
|
|
247
|
+
message: 'invalid vary field value'
|
|
248
|
+
}));
|
|
249
|
+
|
|
250
|
+
for (const controller of fetchControllers) {
|
|
251
|
+
controller.abort();
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
processResponseEndOfBody (response) {
|
|
260
|
+
// 1.
|
|
261
|
+
if (response.aborted) {
|
|
262
|
+
responsePromise.reject(new DOMException('aborted', 'AbortError'));
|
|
263
|
+
return
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// 2.
|
|
267
|
+
responsePromise.resolve(response);
|
|
268
|
+
}
|
|
269
|
+
}));
|
|
270
|
+
|
|
271
|
+
// 5.8
|
|
272
|
+
responsePromises.push(responsePromise.promise);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// 6.
|
|
276
|
+
const p = Promise.all(responsePromises);
|
|
277
|
+
|
|
278
|
+
// 7.
|
|
279
|
+
const responses = await p;
|
|
280
|
+
|
|
281
|
+
// 7.1
|
|
282
|
+
const operations = [];
|
|
283
|
+
|
|
284
|
+
// 7.2
|
|
285
|
+
let index = 0;
|
|
286
|
+
|
|
287
|
+
// 7.3
|
|
288
|
+
for (const response of responses) {
|
|
289
|
+
// 7.3.1
|
|
290
|
+
/** @type {CacheBatchOperation} */
|
|
291
|
+
const operation = {
|
|
292
|
+
type: 'put', // 7.3.2
|
|
293
|
+
request: requestList[index], // 7.3.3
|
|
294
|
+
response // 7.3.4
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
operations.push(operation); // 7.3.5
|
|
298
|
+
|
|
299
|
+
index++; // 7.3.6
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// 7.5
|
|
303
|
+
const cacheJobPromise = createDeferredPromise();
|
|
304
|
+
|
|
305
|
+
// 7.6.1
|
|
306
|
+
let errorData = null;
|
|
307
|
+
|
|
308
|
+
// 7.6.2
|
|
309
|
+
try {
|
|
310
|
+
this.#batchCacheOperations(operations);
|
|
311
|
+
} catch (e) {
|
|
312
|
+
errorData = e;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// 7.6.3
|
|
316
|
+
queueMicrotask(() => {
|
|
317
|
+
// 7.6.3.1
|
|
318
|
+
if (errorData === null) {
|
|
319
|
+
cacheJobPromise.resolve(undefined);
|
|
320
|
+
} else {
|
|
321
|
+
// 7.6.3.2
|
|
322
|
+
cacheJobPromise.reject(errorData);
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
// 7.7
|
|
327
|
+
return cacheJobPromise.promise
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
async put (request, response) {
|
|
331
|
+
webidl$1.brandCheck(this, Cache);
|
|
332
|
+
webidl$1.argumentLengthCheck(arguments, 2, { header: 'Cache.put' });
|
|
333
|
+
|
|
334
|
+
request = webidl$1.converters.RequestInfo(request);
|
|
335
|
+
response = webidl$1.converters.Response(response);
|
|
336
|
+
|
|
337
|
+
// 1.
|
|
338
|
+
let innerRequest = null;
|
|
339
|
+
|
|
340
|
+
// 2.
|
|
341
|
+
if (request instanceof Request) {
|
|
342
|
+
innerRequest = request[kState];
|
|
343
|
+
} else { // 3.
|
|
344
|
+
innerRequest = new Request(request)[kState];
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// 4.
|
|
348
|
+
if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {
|
|
349
|
+
throw webidl$1.errors.exception({
|
|
350
|
+
header: 'Cache.put',
|
|
351
|
+
message: 'Expected an http/s scheme when method is not GET'
|
|
352
|
+
})
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// 5.
|
|
356
|
+
const innerResponse = response[kState];
|
|
357
|
+
|
|
358
|
+
// 6.
|
|
359
|
+
if (innerResponse.status === 206) {
|
|
360
|
+
throw webidl$1.errors.exception({
|
|
361
|
+
header: 'Cache.put',
|
|
362
|
+
message: 'Got 206 status'
|
|
363
|
+
})
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// 7.
|
|
367
|
+
if (innerResponse.headersList.contains('vary')) {
|
|
368
|
+
// 7.1.
|
|
369
|
+
const fieldValues = getFieldValues(innerResponse.headersList.get('vary'));
|
|
370
|
+
|
|
371
|
+
// 7.2.
|
|
372
|
+
for (const fieldValue of fieldValues) {
|
|
373
|
+
// 7.2.1
|
|
374
|
+
if (fieldValue === '*') {
|
|
375
|
+
throw webidl$1.errors.exception({
|
|
376
|
+
header: 'Cache.put',
|
|
377
|
+
message: 'Got * vary field value'
|
|
378
|
+
})
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// 8.
|
|
384
|
+
if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {
|
|
385
|
+
throw webidl$1.errors.exception({
|
|
386
|
+
header: 'Cache.put',
|
|
387
|
+
message: 'Response body is locked or disturbed'
|
|
388
|
+
})
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// 9.
|
|
392
|
+
const clonedResponse = cloneResponse(innerResponse);
|
|
393
|
+
|
|
394
|
+
// 10.
|
|
395
|
+
const bodyReadPromise = createDeferredPromise();
|
|
396
|
+
|
|
397
|
+
// 11.
|
|
398
|
+
if (innerResponse.body != null) {
|
|
399
|
+
// 11.1
|
|
400
|
+
const stream = innerResponse.body.stream;
|
|
401
|
+
|
|
402
|
+
// 11.2
|
|
403
|
+
const reader = stream.getReader();
|
|
404
|
+
|
|
405
|
+
// 11.3
|
|
406
|
+
readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject);
|
|
407
|
+
} else {
|
|
408
|
+
bodyReadPromise.resolve(undefined);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// 12.
|
|
412
|
+
/** @type {CacheBatchOperation[]} */
|
|
413
|
+
const operations = [];
|
|
414
|
+
|
|
415
|
+
// 13.
|
|
416
|
+
/** @type {CacheBatchOperation} */
|
|
417
|
+
const operation = {
|
|
418
|
+
type: 'put', // 14.
|
|
419
|
+
request: innerRequest, // 15.
|
|
420
|
+
response: clonedResponse // 16.
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
// 17.
|
|
424
|
+
operations.push(operation);
|
|
425
|
+
|
|
426
|
+
// 19.
|
|
427
|
+
const bytes = await bodyReadPromise.promise;
|
|
428
|
+
|
|
429
|
+
if (clonedResponse.body != null) {
|
|
430
|
+
clonedResponse.body.source = bytes;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// 19.1
|
|
434
|
+
const cacheJobPromise = createDeferredPromise();
|
|
435
|
+
|
|
436
|
+
// 19.2.1
|
|
437
|
+
let errorData = null;
|
|
438
|
+
|
|
439
|
+
// 19.2.2
|
|
440
|
+
try {
|
|
441
|
+
this.#batchCacheOperations(operations);
|
|
442
|
+
} catch (e) {
|
|
443
|
+
errorData = e;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// 19.2.3
|
|
447
|
+
queueMicrotask(() => {
|
|
448
|
+
// 19.2.3.1
|
|
449
|
+
if (errorData === null) {
|
|
450
|
+
cacheJobPromise.resolve();
|
|
451
|
+
} else { // 19.2.3.2
|
|
452
|
+
cacheJobPromise.reject(errorData);
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
return cacheJobPromise.promise
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
async delete (request, options = {}) {
|
|
460
|
+
webidl$1.brandCheck(this, Cache);
|
|
461
|
+
webidl$1.argumentLengthCheck(arguments, 1, { header: 'Cache.delete' });
|
|
462
|
+
|
|
463
|
+
request = webidl$1.converters.RequestInfo(request);
|
|
464
|
+
options = webidl$1.converters.CacheQueryOptions(options);
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* @type {Request}
|
|
468
|
+
*/
|
|
469
|
+
let r = null;
|
|
470
|
+
|
|
471
|
+
if (request instanceof Request) {
|
|
472
|
+
r = request[kState];
|
|
473
|
+
|
|
474
|
+
if (r.method !== 'GET' && !options.ignoreMethod) {
|
|
475
|
+
return false
|
|
476
|
+
}
|
|
477
|
+
} else {
|
|
478
|
+
assert(typeof request === 'string');
|
|
479
|
+
|
|
480
|
+
r = new Request(request)[kState];
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/** @type {CacheBatchOperation[]} */
|
|
484
|
+
const operations = [];
|
|
485
|
+
|
|
486
|
+
/** @type {CacheBatchOperation} */
|
|
487
|
+
const operation = {
|
|
488
|
+
type: 'delete',
|
|
489
|
+
request: r,
|
|
490
|
+
options
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
operations.push(operation);
|
|
494
|
+
|
|
495
|
+
const cacheJobPromise = createDeferredPromise();
|
|
496
|
+
|
|
497
|
+
let errorData = null;
|
|
498
|
+
let requestResponses;
|
|
499
|
+
|
|
500
|
+
try {
|
|
501
|
+
requestResponses = this.#batchCacheOperations(operations);
|
|
502
|
+
} catch (e) {
|
|
503
|
+
errorData = e;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
queueMicrotask(() => {
|
|
507
|
+
if (errorData === null) {
|
|
508
|
+
cacheJobPromise.resolve(!!requestResponses?.length);
|
|
509
|
+
} else {
|
|
510
|
+
cacheJobPromise.reject(errorData);
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
return cacheJobPromise.promise
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @see https://w3c.github.io/ServiceWorker/#dom-cache-keys
|
|
519
|
+
* @param {any} request
|
|
520
|
+
* @param {import('../../types/cache').CacheQueryOptions} options
|
|
521
|
+
* @returns {readonly Request[]}
|
|
522
|
+
*/
|
|
523
|
+
async keys (request = undefined, options = {}) {
|
|
524
|
+
webidl$1.brandCheck(this, Cache);
|
|
525
|
+
|
|
526
|
+
if (request !== undefined) request = webidl$1.converters.RequestInfo(request);
|
|
527
|
+
options = webidl$1.converters.CacheQueryOptions(options);
|
|
528
|
+
|
|
529
|
+
// 1.
|
|
530
|
+
let r = null;
|
|
531
|
+
|
|
532
|
+
// 2.
|
|
533
|
+
if (request !== undefined) {
|
|
534
|
+
// 2.1
|
|
535
|
+
if (request instanceof Request) {
|
|
536
|
+
// 2.1.1
|
|
537
|
+
r = request[kState];
|
|
538
|
+
|
|
539
|
+
// 2.1.2
|
|
540
|
+
if (r.method !== 'GET' && !options.ignoreMethod) {
|
|
541
|
+
return []
|
|
542
|
+
}
|
|
543
|
+
} else if (typeof request === 'string') { // 2.2
|
|
544
|
+
r = new Request(request)[kState];
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// 4.
|
|
549
|
+
const promise = createDeferredPromise();
|
|
550
|
+
|
|
551
|
+
// 5.
|
|
552
|
+
// 5.1
|
|
553
|
+
const requests = [];
|
|
554
|
+
|
|
555
|
+
// 5.2
|
|
556
|
+
if (request === undefined) {
|
|
557
|
+
// 5.2.1
|
|
558
|
+
for (const requestResponse of this.#relevantRequestResponseList) {
|
|
559
|
+
// 5.2.1.1
|
|
560
|
+
requests.push(requestResponse[0]);
|
|
561
|
+
}
|
|
562
|
+
} else { // 5.3
|
|
563
|
+
// 5.3.1
|
|
564
|
+
const requestResponses = this.#queryCache(r, options);
|
|
565
|
+
|
|
566
|
+
// 5.3.2
|
|
567
|
+
for (const requestResponse of requestResponses) {
|
|
568
|
+
// 5.3.2.1
|
|
569
|
+
requests.push(requestResponse[0]);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// 5.4
|
|
574
|
+
queueMicrotask(() => {
|
|
575
|
+
// 5.4.1
|
|
576
|
+
const requestList = [];
|
|
577
|
+
|
|
578
|
+
// 5.4.2
|
|
579
|
+
for (const request of requests) {
|
|
580
|
+
const requestObject = new Request('https://a');
|
|
581
|
+
requestObject[kState] = request;
|
|
582
|
+
requestObject[kHeaders][kHeadersList] = request.headersList;
|
|
583
|
+
requestObject[kHeaders][kGuard] = 'immutable';
|
|
584
|
+
requestObject[kRealm] = request.client;
|
|
585
|
+
|
|
586
|
+
// 5.4.2.1
|
|
587
|
+
requestList.push(requestObject);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// 5.4.3
|
|
591
|
+
promise.resolve(Object.freeze(requestList));
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
return promise.promise
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm
|
|
599
|
+
* @param {CacheBatchOperation[]} operations
|
|
600
|
+
* @returns {requestResponseList}
|
|
601
|
+
*/
|
|
602
|
+
#batchCacheOperations (operations) {
|
|
603
|
+
// 1.
|
|
604
|
+
const cache = this.#relevantRequestResponseList;
|
|
605
|
+
|
|
606
|
+
// 2.
|
|
607
|
+
const backupCache = [...cache];
|
|
608
|
+
|
|
609
|
+
// 3.
|
|
610
|
+
const addedItems = [];
|
|
611
|
+
|
|
612
|
+
// 4.1
|
|
613
|
+
const resultList = [];
|
|
614
|
+
|
|
615
|
+
try {
|
|
616
|
+
// 4.2
|
|
617
|
+
for (const operation of operations) {
|
|
618
|
+
// 4.2.1
|
|
619
|
+
if (operation.type !== 'delete' && operation.type !== 'put') {
|
|
620
|
+
throw webidl$1.errors.exception({
|
|
621
|
+
header: 'Cache.#batchCacheOperations',
|
|
622
|
+
message: 'operation type does not match "delete" or "put"'
|
|
623
|
+
})
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// 4.2.2
|
|
627
|
+
if (operation.type === 'delete' && operation.response != null) {
|
|
628
|
+
throw webidl$1.errors.exception({
|
|
629
|
+
header: 'Cache.#batchCacheOperations',
|
|
630
|
+
message: 'delete operation should not have an associated response'
|
|
631
|
+
})
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
// 4.2.3
|
|
635
|
+
if (this.#queryCache(operation.request, operation.options, addedItems).length) {
|
|
636
|
+
throw new DOMException('???', 'InvalidStateError')
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// 4.2.4
|
|
640
|
+
let requestResponses;
|
|
641
|
+
|
|
642
|
+
// 4.2.5
|
|
643
|
+
if (operation.type === 'delete') {
|
|
644
|
+
// 4.2.5.1
|
|
645
|
+
requestResponses = this.#queryCache(operation.request, operation.options);
|
|
646
|
+
|
|
647
|
+
// TODO: the spec is wrong, this is needed to pass WPTs
|
|
648
|
+
if (requestResponses.length === 0) {
|
|
649
|
+
return []
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// 4.2.5.2
|
|
653
|
+
for (const requestResponse of requestResponses) {
|
|
654
|
+
const idx = cache.indexOf(requestResponse);
|
|
655
|
+
assert(idx !== -1);
|
|
656
|
+
|
|
657
|
+
// 4.2.5.2.1
|
|
658
|
+
cache.splice(idx, 1);
|
|
659
|
+
}
|
|
660
|
+
} else if (operation.type === 'put') { // 4.2.6
|
|
661
|
+
// 4.2.6.1
|
|
662
|
+
if (operation.response == null) {
|
|
663
|
+
throw webidl$1.errors.exception({
|
|
664
|
+
header: 'Cache.#batchCacheOperations',
|
|
665
|
+
message: 'put operation should have an associated response'
|
|
666
|
+
})
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// 4.2.6.2
|
|
670
|
+
const r = operation.request;
|
|
671
|
+
|
|
672
|
+
// 4.2.6.3
|
|
673
|
+
if (!urlIsHttpHttpsScheme(r.url)) {
|
|
674
|
+
throw webidl$1.errors.exception({
|
|
675
|
+
header: 'Cache.#batchCacheOperations',
|
|
676
|
+
message: 'expected http or https scheme'
|
|
677
|
+
})
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
// 4.2.6.4
|
|
681
|
+
if (r.method !== 'GET') {
|
|
682
|
+
throw webidl$1.errors.exception({
|
|
683
|
+
header: 'Cache.#batchCacheOperations',
|
|
684
|
+
message: 'not get method'
|
|
685
|
+
})
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
// 4.2.6.5
|
|
689
|
+
if (operation.options != null) {
|
|
690
|
+
throw webidl$1.errors.exception({
|
|
691
|
+
header: 'Cache.#batchCacheOperations',
|
|
692
|
+
message: 'options must not be defined'
|
|
693
|
+
})
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// 4.2.6.6
|
|
697
|
+
requestResponses = this.#queryCache(operation.request);
|
|
698
|
+
|
|
699
|
+
// 4.2.6.7
|
|
700
|
+
for (const requestResponse of requestResponses) {
|
|
701
|
+
const idx = cache.indexOf(requestResponse);
|
|
702
|
+
assert(idx !== -1);
|
|
703
|
+
|
|
704
|
+
// 4.2.6.7.1
|
|
705
|
+
cache.splice(idx, 1);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// 4.2.6.8
|
|
709
|
+
cache.push([operation.request, operation.response]);
|
|
710
|
+
|
|
711
|
+
// 4.2.6.10
|
|
712
|
+
addedItems.push([operation.request, operation.response]);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// 4.2.7
|
|
716
|
+
resultList.push([operation.request, operation.response]);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// 4.3
|
|
720
|
+
return resultList
|
|
721
|
+
} catch (e) { // 5.
|
|
722
|
+
// 5.1
|
|
723
|
+
this.#relevantRequestResponseList.length = 0;
|
|
724
|
+
|
|
725
|
+
// 5.2
|
|
726
|
+
this.#relevantRequestResponseList = backupCache;
|
|
727
|
+
|
|
728
|
+
// 5.3
|
|
729
|
+
throw e
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @see https://w3c.github.io/ServiceWorker/#query-cache
|
|
735
|
+
* @param {any} requestQuery
|
|
736
|
+
* @param {import('../../types/cache').CacheQueryOptions} options
|
|
737
|
+
* @param {requestResponseList} targetStorage
|
|
738
|
+
* @returns {requestResponseList}
|
|
739
|
+
*/
|
|
740
|
+
#queryCache (requestQuery, options, targetStorage) {
|
|
741
|
+
/** @type {requestResponseList} */
|
|
742
|
+
const resultList = [];
|
|
743
|
+
|
|
744
|
+
const storage = targetStorage ?? this.#relevantRequestResponseList;
|
|
745
|
+
|
|
746
|
+
for (const requestResponse of storage) {
|
|
747
|
+
const [cachedRequest, cachedResponse] = requestResponse;
|
|
748
|
+
if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {
|
|
749
|
+
resultList.push(requestResponse);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
return resultList
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm
|
|
758
|
+
* @param {any} requestQuery
|
|
759
|
+
* @param {any} request
|
|
760
|
+
* @param {any | null} response
|
|
761
|
+
* @param {import('../../types/cache').CacheQueryOptions | undefined} options
|
|
762
|
+
* @returns {boolean}
|
|
763
|
+
*/
|
|
764
|
+
#requestMatchesCachedItem (requestQuery, request, response = null, options) {
|
|
765
|
+
// if (options?.ignoreMethod === false && request.method === 'GET') {
|
|
766
|
+
// return false
|
|
767
|
+
// }
|
|
768
|
+
|
|
769
|
+
const queryURL = new URL(requestQuery.url);
|
|
770
|
+
|
|
771
|
+
const cachedURL = new URL(request.url);
|
|
772
|
+
|
|
773
|
+
if (options?.ignoreSearch) {
|
|
774
|
+
cachedURL.search = '';
|
|
775
|
+
|
|
776
|
+
queryURL.search = '';
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
if (!urlEquals(queryURL, cachedURL, true)) {
|
|
780
|
+
return false
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
if (
|
|
784
|
+
response == null ||
|
|
785
|
+
options?.ignoreVary ||
|
|
786
|
+
!response.headersList.contains('vary')
|
|
787
|
+
) {
|
|
788
|
+
return true
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
const fieldValues = getFieldValues(response.headersList.get('vary'));
|
|
792
|
+
|
|
793
|
+
for (const fieldValue of fieldValues) {
|
|
794
|
+
if (fieldValue === '*') {
|
|
795
|
+
return false
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
const requestValue = request.headersList.get(fieldValue);
|
|
799
|
+
const queryValue = requestQuery.headersList.get(fieldValue);
|
|
800
|
+
|
|
801
|
+
// If one has the header and the other doesn't, or one has
|
|
802
|
+
// a different value than the other, return false
|
|
803
|
+
if (requestValue !== queryValue) {
|
|
804
|
+
return false
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
return true
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
Object.defineProperties(Cache.prototype, {
|
|
813
|
+
[Symbol.toStringTag]: {
|
|
814
|
+
value: 'Cache',
|
|
815
|
+
configurable: true
|
|
816
|
+
},
|
|
817
|
+
match: kEnumerableProperty,
|
|
818
|
+
matchAll: kEnumerableProperty,
|
|
819
|
+
add: kEnumerableProperty,
|
|
820
|
+
addAll: kEnumerableProperty,
|
|
821
|
+
put: kEnumerableProperty,
|
|
822
|
+
delete: kEnumerableProperty,
|
|
823
|
+
keys: kEnumerableProperty
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
const cacheQueryOptionConverters = [
|
|
827
|
+
{
|
|
828
|
+
key: 'ignoreSearch',
|
|
829
|
+
converter: webidl$1.converters.boolean,
|
|
830
|
+
defaultValue: false
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
key: 'ignoreMethod',
|
|
834
|
+
converter: webidl$1.converters.boolean,
|
|
835
|
+
defaultValue: false
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
key: 'ignoreVary',
|
|
839
|
+
converter: webidl$1.converters.boolean,
|
|
840
|
+
defaultValue: false
|
|
841
|
+
}
|
|
842
|
+
];
|
|
843
|
+
|
|
844
|
+
webidl$1.converters.CacheQueryOptions = webidl$1.dictionaryConverter(cacheQueryOptionConverters);
|
|
845
|
+
|
|
846
|
+
webidl$1.converters.MultiCacheQueryOptions = webidl$1.dictionaryConverter([
|
|
847
|
+
...cacheQueryOptionConverters,
|
|
848
|
+
{
|
|
849
|
+
key: 'cacheName',
|
|
850
|
+
converter: webidl$1.converters.DOMString
|
|
851
|
+
}
|
|
852
|
+
]);
|
|
853
|
+
|
|
854
|
+
webidl$1.converters.Response = webidl$1.interfaceConverter(Response);
|
|
855
|
+
|
|
856
|
+
webidl$1.converters['sequence<RequestInfo>'] = webidl$1.sequenceConverter(
|
|
857
|
+
webidl$1.converters.RequestInfo
|
|
858
|
+
);
|
|
859
|
+
|
|
860
|
+
cache = {
|
|
861
|
+
Cache
|
|
862
|
+
};
|
|
863
|
+
return cache;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
exports.__require = requireCache;
|
|
867
|
+
//# sourceMappingURL=cache.js.map
|