@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,33 @@
|
|
|
1
|
+
var mockSymbols;
|
|
2
|
+
var hasRequiredMockSymbols;
|
|
3
|
+
|
|
4
|
+
function requireMockSymbols () {
|
|
5
|
+
if (hasRequiredMockSymbols) return mockSymbols;
|
|
6
|
+
hasRequiredMockSymbols = 1;
|
|
7
|
+
|
|
8
|
+
mockSymbols = {
|
|
9
|
+
kAgent: Symbol('agent'),
|
|
10
|
+
kOptions: Symbol('options'),
|
|
11
|
+
kFactory: Symbol('factory'),
|
|
12
|
+
kDispatches: Symbol('dispatches'),
|
|
13
|
+
kDispatchKey: Symbol('dispatch key'),
|
|
14
|
+
kDefaultHeaders: Symbol('default headers'),
|
|
15
|
+
kDefaultTrailers: Symbol('default trailers'),
|
|
16
|
+
kContentLength: Symbol('content length'),
|
|
17
|
+
kMockAgent: Symbol('mock agent'),
|
|
18
|
+
kMockAgentSet: Symbol('mock agent set'),
|
|
19
|
+
kMockAgentGet: Symbol('mock agent get'),
|
|
20
|
+
kMockDispatch: Symbol('mock dispatch'),
|
|
21
|
+
kClose: Symbol('close'),
|
|
22
|
+
kOriginalClose: Symbol('original agent close'),
|
|
23
|
+
kOrigin: Symbol('origin'),
|
|
24
|
+
kIsMockActive: Symbol('is mock active'),
|
|
25
|
+
kNetConnect: Symbol('net connect'),
|
|
26
|
+
kGetNetConnect: Symbol('get net connect'),
|
|
27
|
+
kConnected: Symbol('connected')
|
|
28
|
+
};
|
|
29
|
+
return mockSymbols;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { requireMockSymbols as __require };
|
|
33
|
+
//# sourceMappingURL=mock-symbols.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-symbols.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports = {\n kAgent: Symbol('agent'),\n kOptions: Symbol('options'),\n kFactory: Symbol('factory'),\n kDispatches: Symbol('dispatches'),\n kDispatchKey: Symbol('dispatch key'),\n kDefaultHeaders: Symbol('default headers'),\n kDefaultTrailers: Symbol('default trailers'),\n kContentLength: Symbol('content length'),\n kMockAgent: Symbol('mock agent'),\n kMockAgentSet: Symbol('mock agent set'),\n kMockAgentGet: Symbol('mock agent get'),\n kMockDispatch: Symbol('mock dispatch'),\n kClose: Symbol('close'),\n kOriginalClose: Symbol('original agent close'),\n kOrigin: Symbol('origin'),\n kIsMockActive: Symbol('is mock active'),\n kNetConnect: Symbol('net connect'),\n kGetNetConnect: Symbol('get net connect'),\n kConnected: Symbol('connected')\n}\n"],"names":[],"mappings":";;;;;;;AAEA,CAAA,WAAc,GAAG;AACjB,GAAE,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;AACzB,GAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC;AAC7B,GAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC;AAC7B,GAAE,WAAW,EAAE,MAAM,CAAC,YAAY,CAAC;AACnC,GAAE,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;AACtC,GAAE,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC5C,GAAE,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC;AAC9C,GAAE,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC1C,GAAE,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC;AAClC,GAAE,aAAa,EAAE,MAAM,CAAC,gBAAgB,CAAC;AACzC,GAAE,aAAa,EAAE,MAAM,CAAC,gBAAgB,CAAC;AACzC,GAAE,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC;AACxC,GAAE,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;AACzB,GAAE,cAAc,EAAE,MAAM,CAAC,sBAAsB,CAAC;AAChD,GAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;AAC3B,GAAE,aAAa,EAAE,MAAM,CAAC,gBAAgB,CAAC;AACzC,GAAE,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;AACpC,GAAE,cAAc,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC3C,GAAE,UAAU,EAAE,MAAM,CAAC,WAAW;AAChC;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { __require as requireMockErrors } from './mock-errors.js';
|
|
2
|
+
import { __require as requireMockSymbols } from './mock-symbols.js';
|
|
3
|
+
import { __require as requireUtil } from '../core/util.js';
|
|
4
|
+
import require$$2 from 'node:http';
|
|
5
|
+
import require$$1 from 'node:util';
|
|
6
|
+
|
|
7
|
+
var mockUtils;
|
|
8
|
+
var hasRequiredMockUtils;
|
|
9
|
+
|
|
10
|
+
function requireMockUtils () {
|
|
11
|
+
if (hasRequiredMockUtils) return mockUtils;
|
|
12
|
+
hasRequiredMockUtils = 1;
|
|
13
|
+
|
|
14
|
+
const { MockNotMatchedError } = requireMockErrors();
|
|
15
|
+
const {
|
|
16
|
+
kDispatches,
|
|
17
|
+
kMockAgent,
|
|
18
|
+
kOriginalDispatch,
|
|
19
|
+
kOrigin,
|
|
20
|
+
kGetNetConnect
|
|
21
|
+
} = requireMockSymbols();
|
|
22
|
+
const { buildURL, nop } = requireUtil();
|
|
23
|
+
const { STATUS_CODES } = require$$2;
|
|
24
|
+
const {
|
|
25
|
+
types: {
|
|
26
|
+
isPromise
|
|
27
|
+
}
|
|
28
|
+
} = require$$1;
|
|
29
|
+
|
|
30
|
+
function matchValue (match, value) {
|
|
31
|
+
if (typeof match === 'string') {
|
|
32
|
+
return match === value
|
|
33
|
+
}
|
|
34
|
+
if (match instanceof RegExp) {
|
|
35
|
+
return match.test(value)
|
|
36
|
+
}
|
|
37
|
+
if (typeof match === 'function') {
|
|
38
|
+
return match(value) === true
|
|
39
|
+
}
|
|
40
|
+
return false
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function lowerCaseEntries (headers) {
|
|
44
|
+
return Object.fromEntries(
|
|
45
|
+
Object.entries(headers).map(([headerName, headerValue]) => {
|
|
46
|
+
return [headerName.toLocaleLowerCase(), headerValue]
|
|
47
|
+
})
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {import('../../index').Headers|string[]|Record<string, string>} headers
|
|
53
|
+
* @param {string} key
|
|
54
|
+
*/
|
|
55
|
+
function getHeaderByName (headers, key) {
|
|
56
|
+
if (Array.isArray(headers)) {
|
|
57
|
+
for (let i = 0; i < headers.length; i += 2) {
|
|
58
|
+
if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {
|
|
59
|
+
return headers[i + 1]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return undefined
|
|
64
|
+
} else if (typeof headers.get === 'function') {
|
|
65
|
+
return headers.get(key)
|
|
66
|
+
} else {
|
|
67
|
+
return lowerCaseEntries(headers)[key.toLocaleLowerCase()]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @param {string[]} headers */
|
|
72
|
+
function buildHeadersFromArray (headers) { // fetch HeadersList
|
|
73
|
+
const clone = headers.slice();
|
|
74
|
+
const entries = [];
|
|
75
|
+
for (let index = 0; index < clone.length; index += 2) {
|
|
76
|
+
entries.push([clone[index], clone[index + 1]]);
|
|
77
|
+
}
|
|
78
|
+
return Object.fromEntries(entries)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function matchHeaders (mockDispatch, headers) {
|
|
82
|
+
if (typeof mockDispatch.headers === 'function') {
|
|
83
|
+
if (Array.isArray(headers)) { // fetch HeadersList
|
|
84
|
+
headers = buildHeadersFromArray(headers);
|
|
85
|
+
}
|
|
86
|
+
return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})
|
|
87
|
+
}
|
|
88
|
+
if (typeof mockDispatch.headers === 'undefined') {
|
|
89
|
+
return true
|
|
90
|
+
}
|
|
91
|
+
if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {
|
|
92
|
+
return false
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {
|
|
96
|
+
const headerValue = getHeaderByName(headers, matchHeaderName);
|
|
97
|
+
|
|
98
|
+
if (!matchValue(matchHeaderValue, headerValue)) {
|
|
99
|
+
return false
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return true
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function safeUrl (path) {
|
|
106
|
+
if (typeof path !== 'string') {
|
|
107
|
+
return path
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const pathSegments = path.split('?');
|
|
111
|
+
|
|
112
|
+
if (pathSegments.length !== 2) {
|
|
113
|
+
return path
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const qp = new URLSearchParams(pathSegments.pop());
|
|
117
|
+
qp.sort();
|
|
118
|
+
return [...pathSegments, qp.toString()].join('?')
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function matchKey (mockDispatch, { path, method, body, headers }) {
|
|
122
|
+
const pathMatch = matchValue(mockDispatch.path, path);
|
|
123
|
+
const methodMatch = matchValue(mockDispatch.method, method);
|
|
124
|
+
const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true;
|
|
125
|
+
const headersMatch = matchHeaders(mockDispatch, headers);
|
|
126
|
+
return pathMatch && methodMatch && bodyMatch && headersMatch
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function getResponseData (data) {
|
|
130
|
+
if (Buffer.isBuffer(data)) {
|
|
131
|
+
return data
|
|
132
|
+
} else if (typeof data === 'object') {
|
|
133
|
+
return JSON.stringify(data)
|
|
134
|
+
} else {
|
|
135
|
+
return data.toString()
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function getMockDispatch (mockDispatches, key) {
|
|
140
|
+
const basePath = key.query ? buildURL(key.path, key.query) : key.path;
|
|
141
|
+
const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath;
|
|
142
|
+
|
|
143
|
+
// Match path
|
|
144
|
+
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath));
|
|
145
|
+
if (matchedMockDispatches.length === 0) {
|
|
146
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Match method
|
|
150
|
+
matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method));
|
|
151
|
+
if (matchedMockDispatches.length === 0) {
|
|
152
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// Match body
|
|
156
|
+
matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true);
|
|
157
|
+
if (matchedMockDispatches.length === 0) {
|
|
158
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Match headers
|
|
162
|
+
matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers));
|
|
163
|
+
if (matchedMockDispatches.length === 0) {
|
|
164
|
+
throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return matchedMockDispatches[0]
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function addMockDispatch (mockDispatches, key, data) {
|
|
171
|
+
const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false };
|
|
172
|
+
const replyData = typeof data === 'function' ? { callback: data } : { ...data };
|
|
173
|
+
const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } };
|
|
174
|
+
mockDispatches.push(newMockDispatch);
|
|
175
|
+
return newMockDispatch
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function deleteMockDispatch (mockDispatches, key) {
|
|
179
|
+
const index = mockDispatches.findIndex(dispatch => {
|
|
180
|
+
if (!dispatch.consumed) {
|
|
181
|
+
return false
|
|
182
|
+
}
|
|
183
|
+
return matchKey(dispatch, key)
|
|
184
|
+
});
|
|
185
|
+
if (index !== -1) {
|
|
186
|
+
mockDispatches.splice(index, 1);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function buildKey (opts) {
|
|
191
|
+
const { path, method, body, headers, query } = opts;
|
|
192
|
+
return {
|
|
193
|
+
path,
|
|
194
|
+
method,
|
|
195
|
+
body,
|
|
196
|
+
headers,
|
|
197
|
+
query
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function generateKeyValues (data) {
|
|
202
|
+
return Object.entries(data).reduce((keyValuePairs, [key, value]) => [
|
|
203
|
+
...keyValuePairs,
|
|
204
|
+
Buffer.from(`${key}`),
|
|
205
|
+
Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`)
|
|
206
|
+
], [])
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
|
|
211
|
+
* @param {number} statusCode
|
|
212
|
+
*/
|
|
213
|
+
function getStatusText (statusCode) {
|
|
214
|
+
return STATUS_CODES[statusCode] || 'unknown'
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
async function getResponse (body) {
|
|
218
|
+
const buffers = [];
|
|
219
|
+
for await (const data of body) {
|
|
220
|
+
buffers.push(data);
|
|
221
|
+
}
|
|
222
|
+
return Buffer.concat(buffers).toString('utf8')
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Mock dispatch function used to simulate undici dispatches
|
|
227
|
+
*/
|
|
228
|
+
function mockDispatch (opts, handler) {
|
|
229
|
+
// Get mock dispatch from built key
|
|
230
|
+
const key = buildKey(opts);
|
|
231
|
+
const mockDispatch = getMockDispatch(this[kDispatches], key);
|
|
232
|
+
|
|
233
|
+
mockDispatch.timesInvoked++;
|
|
234
|
+
|
|
235
|
+
// Here's where we resolve a callback if a callback is present for the dispatch data.
|
|
236
|
+
if (mockDispatch.data.callback) {
|
|
237
|
+
mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Parse mockDispatch data
|
|
241
|
+
const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch;
|
|
242
|
+
const { timesInvoked, times } = mockDispatch;
|
|
243
|
+
|
|
244
|
+
// If it's used up and not persistent, mark as consumed
|
|
245
|
+
mockDispatch.consumed = !persist && timesInvoked >= times;
|
|
246
|
+
mockDispatch.pending = timesInvoked < times;
|
|
247
|
+
|
|
248
|
+
// If specified, trigger dispatch error
|
|
249
|
+
if (error !== null) {
|
|
250
|
+
deleteMockDispatch(this[kDispatches], key);
|
|
251
|
+
handler.onError(error);
|
|
252
|
+
return true
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Handle the request with a delay if necessary
|
|
256
|
+
if (typeof delay === 'number' && delay > 0) {
|
|
257
|
+
setTimeout(() => {
|
|
258
|
+
handleReply(this[kDispatches]);
|
|
259
|
+
}, delay);
|
|
260
|
+
} else {
|
|
261
|
+
handleReply(this[kDispatches]);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function handleReply (mockDispatches, _data = data) {
|
|
265
|
+
// fetch's HeadersList is a 1D string array
|
|
266
|
+
const optsHeaders = Array.isArray(opts.headers)
|
|
267
|
+
? buildHeadersFromArray(opts.headers)
|
|
268
|
+
: opts.headers;
|
|
269
|
+
const body = typeof _data === 'function'
|
|
270
|
+
? _data({ ...opts, headers: optsHeaders })
|
|
271
|
+
: _data;
|
|
272
|
+
|
|
273
|
+
// util.types.isPromise is likely needed for jest.
|
|
274
|
+
if (isPromise(body)) {
|
|
275
|
+
// If handleReply is asynchronous, throwing an error
|
|
276
|
+
// in the callback will reject the promise, rather than
|
|
277
|
+
// synchronously throw the error, which breaks some tests.
|
|
278
|
+
// Rather, we wait for the callback to resolve if it is a
|
|
279
|
+
// promise, and then re-run handleReply with the new body.
|
|
280
|
+
body.then((newData) => handleReply(mockDispatches, newData));
|
|
281
|
+
return
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const responseData = getResponseData(body);
|
|
285
|
+
const responseHeaders = generateKeyValues(headers);
|
|
286
|
+
const responseTrailers = generateKeyValues(trailers);
|
|
287
|
+
|
|
288
|
+
handler.abort = nop;
|
|
289
|
+
handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode));
|
|
290
|
+
handler.onData(Buffer.from(responseData));
|
|
291
|
+
handler.onComplete(responseTrailers);
|
|
292
|
+
deleteMockDispatch(mockDispatches, key);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function resume () {}
|
|
296
|
+
|
|
297
|
+
return true
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function buildMockDispatch () {
|
|
301
|
+
const agent = this[kMockAgent];
|
|
302
|
+
const origin = this[kOrigin];
|
|
303
|
+
const originalDispatch = this[kOriginalDispatch];
|
|
304
|
+
|
|
305
|
+
return function dispatch (opts, handler) {
|
|
306
|
+
if (agent.isMockActive) {
|
|
307
|
+
try {
|
|
308
|
+
mockDispatch.call(this, opts, handler);
|
|
309
|
+
} catch (error) {
|
|
310
|
+
if (error instanceof MockNotMatchedError) {
|
|
311
|
+
const netConnect = agent[kGetNetConnect]();
|
|
312
|
+
if (netConnect === false) {
|
|
313
|
+
throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)
|
|
314
|
+
}
|
|
315
|
+
if (checkNetConnect(netConnect, origin)) {
|
|
316
|
+
originalDispatch.call(this, opts, handler);
|
|
317
|
+
} else {
|
|
318
|
+
throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)
|
|
319
|
+
}
|
|
320
|
+
} else {
|
|
321
|
+
throw error
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
} else {
|
|
325
|
+
originalDispatch.call(this, opts, handler);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function checkNetConnect (netConnect, origin) {
|
|
331
|
+
const url = new URL(origin);
|
|
332
|
+
if (netConnect === true) {
|
|
333
|
+
return true
|
|
334
|
+
} else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {
|
|
335
|
+
return true
|
|
336
|
+
}
|
|
337
|
+
return false
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function buildMockOptions (opts) {
|
|
341
|
+
if (opts) {
|
|
342
|
+
const { agent, ...mockOptions } = opts;
|
|
343
|
+
return mockOptions
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
mockUtils = {
|
|
348
|
+
getResponseData,
|
|
349
|
+
getMockDispatch,
|
|
350
|
+
addMockDispatch,
|
|
351
|
+
deleteMockDispatch,
|
|
352
|
+
buildKey,
|
|
353
|
+
generateKeyValues,
|
|
354
|
+
matchValue,
|
|
355
|
+
getResponse,
|
|
356
|
+
getStatusText,
|
|
357
|
+
mockDispatch,
|
|
358
|
+
buildMockDispatch,
|
|
359
|
+
checkNetConnect,
|
|
360
|
+
buildMockOptions,
|
|
361
|
+
getHeaderByName
|
|
362
|
+
};
|
|
363
|
+
return mockUtils;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export { requireMockUtils as __require };
|
|
367
|
+
//# sourceMappingURL=mock-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-utils.js","sources":["../../../../../../../../node_modules/undici/lib/mock/mock-utils.js"],"sourcesContent":["'use strict'\n\nconst { MockNotMatchedError } = require('./mock-errors')\nconst {\n kDispatches,\n kMockAgent,\n kOriginalDispatch,\n kOrigin,\n kGetNetConnect\n} = require('./mock-symbols')\nconst { buildURL, nop } = require('../core/util')\nconst { STATUS_CODES } = require('http')\nconst {\n types: {\n isPromise\n }\n} = require('util')\n\nfunction matchValue (match, value) {\n if (typeof match === 'string') {\n return match === value\n }\n if (match instanceof RegExp) {\n return match.test(value)\n }\n if (typeof match === 'function') {\n return match(value) === true\n }\n return false\n}\n\nfunction lowerCaseEntries (headers) {\n return Object.fromEntries(\n Object.entries(headers).map(([headerName, headerValue]) => {\n return [headerName.toLocaleLowerCase(), headerValue]\n })\n )\n}\n\n/**\n * @param {import('../../index').Headers|string[]|Record<string, string>} headers\n * @param {string} key\n */\nfunction getHeaderByName (headers, key) {\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {\n return headers[i + 1]\n }\n }\n\n return undefined\n } else if (typeof headers.get === 'function') {\n return headers.get(key)\n } else {\n return lowerCaseEntries(headers)[key.toLocaleLowerCase()]\n }\n}\n\n/** @param {string[]} headers */\nfunction buildHeadersFromArray (headers) { // fetch HeadersList\n const clone = headers.slice()\n const entries = []\n for (let index = 0; index < clone.length; index += 2) {\n entries.push([clone[index], clone[index + 1]])\n }\n return Object.fromEntries(entries)\n}\n\nfunction matchHeaders (mockDispatch, headers) {\n if (typeof mockDispatch.headers === 'function') {\n if (Array.isArray(headers)) { // fetch HeadersList\n headers = buildHeadersFromArray(headers)\n }\n return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})\n }\n if (typeof mockDispatch.headers === 'undefined') {\n return true\n }\n if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {\n return false\n }\n\n for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {\n const headerValue = getHeaderByName(headers, matchHeaderName)\n\n if (!matchValue(matchHeaderValue, headerValue)) {\n return false\n }\n }\n return true\n}\n\nfunction safeUrl (path) {\n if (typeof path !== 'string') {\n return path\n }\n\n const pathSegments = path.split('?')\n\n if (pathSegments.length !== 2) {\n return path\n }\n\n const qp = new URLSearchParams(pathSegments.pop())\n qp.sort()\n return [...pathSegments, qp.toString()].join('?')\n}\n\nfunction matchKey (mockDispatch, { path, method, body, headers }) {\n const pathMatch = matchValue(mockDispatch.path, path)\n const methodMatch = matchValue(mockDispatch.method, method)\n const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true\n const headersMatch = matchHeaders(mockDispatch, headers)\n return pathMatch && methodMatch && bodyMatch && headersMatch\n}\n\nfunction getResponseData (data) {\n if (Buffer.isBuffer(data)) {\n return data\n } else if (typeof data === 'object') {\n return JSON.stringify(data)\n } else {\n return data.toString()\n }\n}\n\nfunction getMockDispatch (mockDispatches, key) {\n const basePath = key.query ? buildURL(key.path, key.query) : key.path\n const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath\n\n // Match path\n let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)\n }\n\n // Match method\n matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)\n }\n\n // Match body\n matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)\n }\n\n // Match headers\n matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`)\n }\n\n return matchedMockDispatches[0]\n}\n\nfunction addMockDispatch (mockDispatches, key, data) {\n const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }\n const replyData = typeof data === 'function' ? { callback: data } : { ...data }\n const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }\n mockDispatches.push(newMockDispatch)\n return newMockDispatch\n}\n\nfunction deleteMockDispatch (mockDispatches, key) {\n const index = mockDispatches.findIndex(dispatch => {\n if (!dispatch.consumed) {\n return false\n }\n return matchKey(dispatch, key)\n })\n if (index !== -1) {\n mockDispatches.splice(index, 1)\n }\n}\n\nfunction buildKey (opts) {\n const { path, method, body, headers, query } = opts\n return {\n path,\n method,\n body,\n headers,\n query\n }\n}\n\nfunction generateKeyValues (data) {\n return Object.entries(data).reduce((keyValuePairs, [key, value]) => [\n ...keyValuePairs,\n Buffer.from(`${key}`),\n Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`)\n ], [])\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\n * @param {number} statusCode\n */\nfunction getStatusText (statusCode) {\n return STATUS_CODES[statusCode] || 'unknown'\n}\n\nasync function getResponse (body) {\n const buffers = []\n for await (const data of body) {\n buffers.push(data)\n }\n return Buffer.concat(buffers).toString('utf8')\n}\n\n/**\n * Mock dispatch function used to simulate undici dispatches\n */\nfunction mockDispatch (opts, handler) {\n // Get mock dispatch from built key\n const key = buildKey(opts)\n const mockDispatch = getMockDispatch(this[kDispatches], key)\n\n mockDispatch.timesInvoked++\n\n // Here's where we resolve a callback if a callback is present for the dispatch data.\n if (mockDispatch.data.callback) {\n mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }\n }\n\n // Parse mockDispatch data\n const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch\n const { timesInvoked, times } = mockDispatch\n\n // If it's used up and not persistent, mark as consumed\n mockDispatch.consumed = !persist && timesInvoked >= times\n mockDispatch.pending = timesInvoked < times\n\n // If specified, trigger dispatch error\n if (error !== null) {\n deleteMockDispatch(this[kDispatches], key)\n handler.onError(error)\n return true\n }\n\n // Handle the request with a delay if necessary\n if (typeof delay === 'number' && delay > 0) {\n setTimeout(() => {\n handleReply(this[kDispatches])\n }, delay)\n } else {\n handleReply(this[kDispatches])\n }\n\n function handleReply (mockDispatches, _data = data) {\n // fetch's HeadersList is a 1D string array\n const optsHeaders = Array.isArray(opts.headers)\n ? buildHeadersFromArray(opts.headers)\n : opts.headers\n const body = typeof _data === 'function'\n ? _data({ ...opts, headers: optsHeaders })\n : _data\n\n // util.types.isPromise is likely needed for jest.\n if (isPromise(body)) {\n // If handleReply is asynchronous, throwing an error\n // in the callback will reject the promise, rather than\n // synchronously throw the error, which breaks some tests.\n // Rather, we wait for the callback to resolve if it is a\n // promise, and then re-run handleReply with the new body.\n body.then((newData) => handleReply(mockDispatches, newData))\n return\n }\n\n const responseData = getResponseData(body)\n const responseHeaders = generateKeyValues(headers)\n const responseTrailers = generateKeyValues(trailers)\n\n handler.abort = nop\n handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode))\n handler.onData(Buffer.from(responseData))\n handler.onComplete(responseTrailers)\n deleteMockDispatch(mockDispatches, key)\n }\n\n function resume () {}\n\n return true\n}\n\nfunction buildMockDispatch () {\n const agent = this[kMockAgent]\n const origin = this[kOrigin]\n const originalDispatch = this[kOriginalDispatch]\n\n return function dispatch (opts, handler) {\n if (agent.isMockActive) {\n try {\n mockDispatch.call(this, opts, handler)\n } catch (error) {\n if (error instanceof MockNotMatchedError) {\n const netConnect = agent[kGetNetConnect]()\n if (netConnect === false) {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)\n }\n if (checkNetConnect(netConnect, origin)) {\n originalDispatch.call(this, opts, handler)\n } else {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)\n }\n } else {\n throw error\n }\n }\n } else {\n originalDispatch.call(this, opts, handler)\n }\n }\n}\n\nfunction checkNetConnect (netConnect, origin) {\n const url = new URL(origin)\n if (netConnect === true) {\n return true\n } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {\n return true\n }\n return false\n}\n\nfunction buildMockOptions (opts) {\n if (opts) {\n const { agent, ...mockOptions } = opts\n return mockOptions\n }\n}\n\nmodule.exports = {\n getResponseData,\n getMockDispatch,\n addMockDispatch,\n deleteMockDispatch,\n buildKey,\n generateKeyValues,\n matchValue,\n getResponse,\n getStatusText,\n mockDispatch,\n buildMockDispatch,\n checkNetConnect,\n buildMockOptions,\n getHeaderByName\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;CAEA,MAAM,EAAE,mBAAmB,EAAE,GAAGA,iBAAA;CAChC,MAAM;AACN,GAAE,WAAW;AACb,GAAE,UAAU;AACZ,GAAE,iBAAiB;AACnB,GAAE,OAAO;GACP;AACF,EAAC,GAAGC,kBAAA;AACJ,CAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAGC,WAAA;CAC1B,MAAM,EAAE,YAAY,EAAE,GAAGC;CACzB,MAAM;AACN,GAAE,KAAK,EAAE;KACL;AACJ;AACA,EAAC,GAAGC;;AAEJ,CAAA,SAAS,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;AACnC,GAAE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;KAC7B,OAAO,KAAK,KAAK;AACrB,GAAA;AACA,GAAE,IAAI,KAAK,YAAY,MAAM,EAAE;AAC/B,KAAI,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK;AAC3B,GAAA;AACA,GAAE,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;AACnC,KAAI,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK;AAC5B,GAAA;AACA,GAAE,OAAO;AACT,CAAA;;CAEA,SAAS,gBAAgB,EAAE,OAAO,EAAE;GAClC,OAAO,MAAM,CAAC,WAAW;AAC3B,KAAI,MAAM,CA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,GAAE,eAAe;AACjB,GAAE,kBAAkB;AACpB,GAAE,QAAQ;AACV,GAAE,iBAAiB;AACnB,GAAE,UAAU;AACZ,GAAE,WAAW;AACb,GAAE,aAAa;AACf,GAAE,YAAY;AACd,GAAE,iBAAiB;AACnB,GAAE,eAAe;AACjB,GAAE,gBAAgB;GAChB;AACF;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import require$$0 from 'node:stream';
|
|
2
|
+
import require$$1 from 'node:console';
|
|
3
|
+
|
|
4
|
+
var pendingInterceptorsFormatter;
|
|
5
|
+
var hasRequiredPendingInterceptorsFormatter;
|
|
6
|
+
|
|
7
|
+
function requirePendingInterceptorsFormatter () {
|
|
8
|
+
if (hasRequiredPendingInterceptorsFormatter) return pendingInterceptorsFormatter;
|
|
9
|
+
hasRequiredPendingInterceptorsFormatter = 1;
|
|
10
|
+
|
|
11
|
+
const { Transform } = require$$0;
|
|
12
|
+
const { Console } = require$$1;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Gets the output of `console.table(…)` as a string.
|
|
16
|
+
*/
|
|
17
|
+
pendingInterceptorsFormatter = class PendingInterceptorsFormatter {
|
|
18
|
+
constructor ({ disableColors } = {}) {
|
|
19
|
+
this.transform = new Transform({
|
|
20
|
+
transform (chunk, _enc, cb) {
|
|
21
|
+
cb(null, chunk);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
this.logger = new Console({
|
|
26
|
+
stdout: this.transform,
|
|
27
|
+
inspectOptions: {
|
|
28
|
+
colors: !disableColors && !process.env.CI
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
format (pendingInterceptors) {
|
|
34
|
+
const withPrettyHeaders = pendingInterceptors.map(
|
|
35
|
+
({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
|
|
36
|
+
Method: method,
|
|
37
|
+
Origin: origin,
|
|
38
|
+
Path: path,
|
|
39
|
+
'Status code': statusCode,
|
|
40
|
+
Persistent: persist ? '✅' : '❌',
|
|
41
|
+
Invocations: timesInvoked,
|
|
42
|
+
Remaining: persist ? Infinity : times - timesInvoked
|
|
43
|
+
}));
|
|
44
|
+
|
|
45
|
+
this.logger.table(withPrettyHeaders);
|
|
46
|
+
return this.transform.read().toString()
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return pendingInterceptorsFormatter;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { requirePendingInterceptorsFormatter as __require };
|
|
53
|
+
//# sourceMappingURL=pending-interceptors-formatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending-interceptors-formatter.js","sources":["../../../../../../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js"],"sourcesContent":["'use strict'\n\nconst { Transform } = require('stream')\nconst { Console } = require('console')\n\n/**\n * Gets the output of `console.table(…)` as a string.\n */\nmodule.exports = class PendingInterceptorsFormatter {\n constructor ({ disableColors } = {}) {\n this.transform = new Transform({\n transform (chunk, _enc, cb) {\n cb(null, chunk)\n }\n })\n\n this.logger = new Console({\n stdout: this.transform,\n inspectOptions: {\n colors: !disableColors && !process.env.CI\n }\n })\n }\n\n format (pendingInterceptors) {\n const withPrettyHeaders = pendingInterceptors.map(\n ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({\n Method: method,\n Origin: origin,\n Path: path,\n 'Status code': statusCode,\n Persistent: persist ? '✅' : '❌',\n Invocations: timesInvoked,\n Remaining: persist ? Infinity : times - timesInvoked\n }))\n\n this.logger.table(withPrettyHeaders)\n return this.transform.read().toString()\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;CAEA,MAAM,EAAE,SAAS,EAAE,GAAG;CACtB,MAAM,EAAE,OAAO,EAAE,GAAG;;AAEpB;AACA;AACA;AACA,CAAA,4BAAc,GAAG,MAAM,4BAA4B,CAAC;GAClD,WAAW,CAAC,CAAC,EAAE,aAAa,E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ralizer = 1;
|
|
7
|
+
|
|
8
|
+
const singulars = {
|
|
9
|
+
pronoun: 'it',
|
|
10
|
+
is: 'is',
|
|
11
|
+
was: 'was',
|
|
12
|
+
this: 'this'
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const plurals = {
|
|
16
|
+
pronoun: 'they',
|
|
17
|
+
is: 'are',
|
|
18
|
+
was: 'were',
|
|
19
|
+
this: 'these'
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
pluralizer = class Pluralizer {
|
|
23
|
+
constructor (singular, plural) {
|
|
24
|
+
this.singular = singular;
|
|
25
|
+
this.plural = plural;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
pluralize (count) {
|
|
29
|
+
const one = count === 1;
|
|
30
|
+
const keys = one ? singulars : plurals;
|
|
31
|
+
const noun = one ? this.singular : this.plural;
|
|
32
|
+
return { ...keys, count, noun }
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return pluralizer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { requirePluralizer as __require };
|
|
39
|
+
//# sourceMappingURL=pluralizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluralizer.js","sources":["../../../../../../../../node_modules/undici/lib/mock/pluralizer.js"],"sourcesContent":["'use strict'\n\nconst singulars = {\n pronoun: 'it',\n is: 'is',\n was: 'was',\n this: 'this'\n}\n\nconst plurals = {\n pronoun: 'they',\n is: 'are',\n was: 'were',\n this: 'these'\n}\n\nmodule.exports = class Pluralizer {\n constructor (singular, plural) {\n this.singular = singular\n this.plural = plural\n }\n\n pluralize (count) {\n const one = count === 1\n const keys = one ? singulars : plurals\n const noun = one ? this.singular : this.plural\n return { ...keys, count, noun }\n }\n}\n"],"names":[],"mappings":";;;;;;;AAEA,CAAA,MAAM,SAAS,GAAG;GAChB,OAAO,EAAE,IAAI;GACb,EAAE,EAAE,IAAI;GACR,GAAG,EAAE,KAAK;AACZ,GAAE,IAAI,EAAE;AACR;;AAEA,CAAA,MAAM,OAAO,GAAG;GACd,OAAO,EAAE,MAAM;GACf,EAAE,EAAE,KAAK;GACT,GAAG,EAAE,MAAM;AACb,GAAE,IAAI,EAAE;AACR;;AAEA,CAAA,UAAc,GAAG,MAAM,UAAU,CAAC;AAClC,GAAE,WAAW,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE;KAC7B,IAAI,CAAC,QAAQ,GAAG;KAChB,IAAI,CAAC,MAAM,GAAG;AAClB,GAAA;;AAEA,GAAE,SAAS,CAAC,CAAC,KAAK,EAAE;AACpB,KAAI,MAAM,GAAG,GAAG,KAAK,KAAK;AAC1B,KAAI,MAAM,IAAI,GAAG,GAAG,GAAG,SAAS,GAAG;KAC/B,MAAM,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC5C,KAAI,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI;AACjC,GAAA;AACA;;;;;;","x_google_ignoreList":[0]}
|