@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,659 @@
|
|
|
1
|
+
import require$$1 from 'node:util';
|
|
2
|
+
import { __require as requireUtil } from './util.js';
|
|
3
|
+
|
|
4
|
+
var webidl_1;
|
|
5
|
+
var hasRequiredWebidl;
|
|
6
|
+
|
|
7
|
+
function requireWebidl () {
|
|
8
|
+
if (hasRequiredWebidl) return webidl_1;
|
|
9
|
+
hasRequiredWebidl = 1;
|
|
10
|
+
|
|
11
|
+
const { types } = require$$1;
|
|
12
|
+
const { hasOwn, toUSVString } = requireUtil();
|
|
13
|
+
|
|
14
|
+
/** @type {import('../../types/webidl').Webidl} */
|
|
15
|
+
const webidl = {};
|
|
16
|
+
webidl.converters = {};
|
|
17
|
+
webidl.util = {};
|
|
18
|
+
webidl.errors = {};
|
|
19
|
+
|
|
20
|
+
webidl.errors.exception = function (message) {
|
|
21
|
+
return new TypeError(`${message.header}: ${message.message}`)
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
webidl.errors.conversionFailed = function (context) {
|
|
25
|
+
const plural = context.types.length === 1 ? '' : ' one of';
|
|
26
|
+
const message =
|
|
27
|
+
`${context.argument} could not be converted to` +
|
|
28
|
+
`${plural}: ${context.types.join(', ')}.`;
|
|
29
|
+
|
|
30
|
+
return webidl.errors.exception({
|
|
31
|
+
header: context.prefix,
|
|
32
|
+
message
|
|
33
|
+
})
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
webidl.errors.invalidArgument = function (context) {
|
|
37
|
+
return webidl.errors.exception({
|
|
38
|
+
header: context.prefix,
|
|
39
|
+
message: `"${context.value}" is an invalid ${context.type}.`
|
|
40
|
+
})
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// https://webidl.spec.whatwg.org/#implements
|
|
44
|
+
webidl.brandCheck = function (V, I, opts = undefined) {
|
|
45
|
+
if (opts?.strict !== false && !(V instanceof I)) {
|
|
46
|
+
throw new TypeError('Illegal invocation')
|
|
47
|
+
} else {
|
|
48
|
+
return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag]
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
webidl.argumentLengthCheck = function ({ length }, min, ctx) {
|
|
53
|
+
if (length < min) {
|
|
54
|
+
throw webidl.errors.exception({
|
|
55
|
+
message: `${min} argument${min !== 1 ? 's' : ''} required, ` +
|
|
56
|
+
`but${length ? ' only' : ''} ${length} found.`,
|
|
57
|
+
...ctx
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
webidl.illegalConstructor = function () {
|
|
63
|
+
throw webidl.errors.exception({
|
|
64
|
+
header: 'TypeError',
|
|
65
|
+
message: 'Illegal constructor'
|
|
66
|
+
})
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
|
70
|
+
webidl.util.Type = function (V) {
|
|
71
|
+
switch (typeof V) {
|
|
72
|
+
case 'undefined': return 'Undefined'
|
|
73
|
+
case 'boolean': return 'Boolean'
|
|
74
|
+
case 'string': return 'String'
|
|
75
|
+
case 'symbol': return 'Symbol'
|
|
76
|
+
case 'number': return 'Number'
|
|
77
|
+
case 'bigint': return 'BigInt'
|
|
78
|
+
case 'function':
|
|
79
|
+
case 'object': {
|
|
80
|
+
if (V === null) {
|
|
81
|
+
return 'Null'
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return 'Object'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
90
|
+
webidl.util.ConvertToInt = function (V, bitLength, signedness, opts = {}) {
|
|
91
|
+
let upperBound;
|
|
92
|
+
let lowerBound;
|
|
93
|
+
|
|
94
|
+
// 1. If bitLength is 64, then:
|
|
95
|
+
if (bitLength === 64) {
|
|
96
|
+
// 1. Let upperBound be 2^53 − 1.
|
|
97
|
+
upperBound = Math.pow(2, 53) - 1;
|
|
98
|
+
|
|
99
|
+
// 2. If signedness is "unsigned", then let lowerBound be 0.
|
|
100
|
+
if (signedness === 'unsigned') {
|
|
101
|
+
lowerBound = 0;
|
|
102
|
+
} else {
|
|
103
|
+
// 3. Otherwise let lowerBound be −2^53 + 1.
|
|
104
|
+
lowerBound = Math.pow(-2, 53) + 1;
|
|
105
|
+
}
|
|
106
|
+
} else if (signedness === 'unsigned') {
|
|
107
|
+
// 2. Otherwise, if signedness is "unsigned", then:
|
|
108
|
+
|
|
109
|
+
// 1. Let lowerBound be 0.
|
|
110
|
+
lowerBound = 0;
|
|
111
|
+
|
|
112
|
+
// 2. Let upperBound be 2^bitLength − 1.
|
|
113
|
+
upperBound = Math.pow(2, bitLength) - 1;
|
|
114
|
+
} else {
|
|
115
|
+
// 3. Otherwise:
|
|
116
|
+
|
|
117
|
+
// 1. Let lowerBound be -2^bitLength − 1.
|
|
118
|
+
lowerBound = Math.pow(-2, bitLength) - 1;
|
|
119
|
+
|
|
120
|
+
// 2. Let upperBound be 2^bitLength − 1 − 1.
|
|
121
|
+
upperBound = Math.pow(2, bitLength - 1) - 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// 4. Let x be ? ToNumber(V).
|
|
125
|
+
let x = Number(V);
|
|
126
|
+
|
|
127
|
+
// 5. If x is −0, then set x to +0.
|
|
128
|
+
if (x === 0) {
|
|
129
|
+
x = 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// 6. If the conversion is to an IDL type associated
|
|
133
|
+
// with the [EnforceRange] extended attribute, then:
|
|
134
|
+
if (opts.enforceRange === true) {
|
|
135
|
+
// 1. If x is NaN, +∞, or −∞, then throw a TypeError.
|
|
136
|
+
if (
|
|
137
|
+
Number.isNaN(x) ||
|
|
138
|
+
x === Number.POSITIVE_INFINITY ||
|
|
139
|
+
x === Number.NEGATIVE_INFINITY
|
|
140
|
+
) {
|
|
141
|
+
throw webidl.errors.exception({
|
|
142
|
+
header: 'Integer conversion',
|
|
143
|
+
message: `Could not convert ${V} to an integer.`
|
|
144
|
+
})
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// 2. Set x to IntegerPart(x).
|
|
148
|
+
x = webidl.util.IntegerPart(x);
|
|
149
|
+
|
|
150
|
+
// 3. If x < lowerBound or x > upperBound, then
|
|
151
|
+
// throw a TypeError.
|
|
152
|
+
if (x < lowerBound || x > upperBound) {
|
|
153
|
+
throw webidl.errors.exception({
|
|
154
|
+
header: 'Integer conversion',
|
|
155
|
+
message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`
|
|
156
|
+
})
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// 4. Return x.
|
|
160
|
+
return x
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// 7. If x is not NaN and the conversion is to an IDL
|
|
164
|
+
// type associated with the [Clamp] extended
|
|
165
|
+
// attribute, then:
|
|
166
|
+
if (!Number.isNaN(x) && opts.clamp === true) {
|
|
167
|
+
// 1. Set x to min(max(x, lowerBound), upperBound).
|
|
168
|
+
x = Math.min(Math.max(x, lowerBound), upperBound);
|
|
169
|
+
|
|
170
|
+
// 2. Round x to the nearest integer, choosing the
|
|
171
|
+
// even integer if it lies halfway between two,
|
|
172
|
+
// and choosing +0 rather than −0.
|
|
173
|
+
if (Math.floor(x) % 2 === 0) {
|
|
174
|
+
x = Math.floor(x);
|
|
175
|
+
} else {
|
|
176
|
+
x = Math.ceil(x);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// 3. Return x.
|
|
180
|
+
return x
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// 8. If x is NaN, +0, +∞, or −∞, then return +0.
|
|
184
|
+
if (
|
|
185
|
+
Number.isNaN(x) ||
|
|
186
|
+
(x === 0 && Object.is(0, x)) ||
|
|
187
|
+
x === Number.POSITIVE_INFINITY ||
|
|
188
|
+
x === Number.NEGATIVE_INFINITY
|
|
189
|
+
) {
|
|
190
|
+
return 0
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// 9. Set x to IntegerPart(x).
|
|
194
|
+
x = webidl.util.IntegerPart(x);
|
|
195
|
+
|
|
196
|
+
// 10. Set x to x modulo 2^bitLength.
|
|
197
|
+
x = x % Math.pow(2, bitLength);
|
|
198
|
+
|
|
199
|
+
// 11. If signedness is "signed" and x ≥ 2^bitLength − 1,
|
|
200
|
+
// then return x − 2^bitLength.
|
|
201
|
+
if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {
|
|
202
|
+
return x - Math.pow(2, bitLength)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// 12. Otherwise, return x.
|
|
206
|
+
return x
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
// https://webidl.spec.whatwg.org/#abstract-opdef-integerpart
|
|
210
|
+
webidl.util.IntegerPart = function (n) {
|
|
211
|
+
// 1. Let r be floor(abs(n)).
|
|
212
|
+
const r = Math.floor(Math.abs(n));
|
|
213
|
+
|
|
214
|
+
// 2. If n < 0, then return -1 × r.
|
|
215
|
+
if (n < 0) {
|
|
216
|
+
return -1 * r
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// 3. Otherwise, return r.
|
|
220
|
+
return r
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// https://webidl.spec.whatwg.org/#es-sequence
|
|
224
|
+
webidl.sequenceConverter = function (converter) {
|
|
225
|
+
return (V) => {
|
|
226
|
+
// 1. If Type(V) is not Object, throw a TypeError.
|
|
227
|
+
if (webidl.util.Type(V) !== 'Object') {
|
|
228
|
+
throw webidl.errors.exception({
|
|
229
|
+
header: 'Sequence',
|
|
230
|
+
message: `Value of type ${webidl.util.Type(V)} is not an Object.`
|
|
231
|
+
})
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// 2. Let method be ? GetMethod(V, @@iterator).
|
|
235
|
+
/** @type {Generator} */
|
|
236
|
+
const method = V?.[Symbol.iterator]?.();
|
|
237
|
+
const seq = [];
|
|
238
|
+
|
|
239
|
+
// 3. If method is undefined, throw a TypeError.
|
|
240
|
+
if (
|
|
241
|
+
method === undefined ||
|
|
242
|
+
typeof method.next !== 'function'
|
|
243
|
+
) {
|
|
244
|
+
throw webidl.errors.exception({
|
|
245
|
+
header: 'Sequence',
|
|
246
|
+
message: 'Object is not an iterator.'
|
|
247
|
+
})
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// https://webidl.spec.whatwg.org/#create-sequence-from-iterable
|
|
251
|
+
while (true) {
|
|
252
|
+
const { done, value } = method.next();
|
|
253
|
+
|
|
254
|
+
if (done) {
|
|
255
|
+
break
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
seq.push(converter(value));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
return seq
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
// https://webidl.spec.whatwg.org/#es-to-record
|
|
266
|
+
webidl.recordConverter = function (keyConverter, valueConverter) {
|
|
267
|
+
return (O) => {
|
|
268
|
+
// 1. If Type(O) is not Object, throw a TypeError.
|
|
269
|
+
if (webidl.util.Type(O) !== 'Object') {
|
|
270
|
+
throw webidl.errors.exception({
|
|
271
|
+
header: 'Record',
|
|
272
|
+
message: `Value of type ${webidl.util.Type(O)} is not an Object.`
|
|
273
|
+
})
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// 2. Let result be a new empty instance of record<K, V>.
|
|
277
|
+
const result = {};
|
|
278
|
+
|
|
279
|
+
if (!types.isProxy(O)) {
|
|
280
|
+
// Object.keys only returns enumerable properties
|
|
281
|
+
const keys = Object.keys(O);
|
|
282
|
+
|
|
283
|
+
for (const key of keys) {
|
|
284
|
+
// 1. Let typedKey be key converted to an IDL value of type K.
|
|
285
|
+
const typedKey = keyConverter(key);
|
|
286
|
+
|
|
287
|
+
// 2. Let value be ? Get(O, key).
|
|
288
|
+
// 3. Let typedValue be value converted to an IDL value of type V.
|
|
289
|
+
const typedValue = valueConverter(O[key]);
|
|
290
|
+
|
|
291
|
+
// 4. Set result[typedKey] to typedValue.
|
|
292
|
+
result[typedKey] = typedValue;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// 5. Return result.
|
|
296
|
+
return result
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// 3. Let keys be ? O.[[OwnPropertyKeys]]().
|
|
300
|
+
const keys = Reflect.ownKeys(O);
|
|
301
|
+
|
|
302
|
+
// 4. For each key of keys.
|
|
303
|
+
for (const key of keys) {
|
|
304
|
+
// 1. Let desc be ? O.[[GetOwnProperty]](key).
|
|
305
|
+
const desc = Reflect.getOwnPropertyDescriptor(O, key);
|
|
306
|
+
|
|
307
|
+
// 2. If desc is not undefined and desc.[[Enumerable]] is true:
|
|
308
|
+
if (desc?.enumerable) {
|
|
309
|
+
// 1. Let typedKey be key converted to an IDL value of type K.
|
|
310
|
+
const typedKey = keyConverter(key);
|
|
311
|
+
|
|
312
|
+
// 2. Let value be ? Get(O, key).
|
|
313
|
+
// 3. Let typedValue be value converted to an IDL value of type V.
|
|
314
|
+
const typedValue = valueConverter(O[key]);
|
|
315
|
+
|
|
316
|
+
// 4. Set result[typedKey] to typedValue.
|
|
317
|
+
result[typedKey] = typedValue;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// 5. Return result.
|
|
322
|
+
return result
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
webidl.interfaceConverter = function (i) {
|
|
327
|
+
return (V, opts = {}) => {
|
|
328
|
+
if (opts.strict !== false && !(V instanceof i)) {
|
|
329
|
+
throw webidl.errors.exception({
|
|
330
|
+
header: i.name,
|
|
331
|
+
message: `Expected ${V} to be an instance of ${i.name}.`
|
|
332
|
+
})
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
return V
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
webidl.dictionaryConverter = function (converters) {
|
|
340
|
+
return (dictionary) => {
|
|
341
|
+
const type = webidl.util.Type(dictionary);
|
|
342
|
+
const dict = {};
|
|
343
|
+
|
|
344
|
+
if (type === 'Null' || type === 'Undefined') {
|
|
345
|
+
return dict
|
|
346
|
+
} else if (type !== 'Object') {
|
|
347
|
+
throw webidl.errors.exception({
|
|
348
|
+
header: 'Dictionary',
|
|
349
|
+
message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`
|
|
350
|
+
})
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
for (const options of converters) {
|
|
354
|
+
const { key, defaultValue, required, converter } = options;
|
|
355
|
+
|
|
356
|
+
if (required === true) {
|
|
357
|
+
if (!hasOwn(dictionary, key)) {
|
|
358
|
+
throw webidl.errors.exception({
|
|
359
|
+
header: 'Dictionary',
|
|
360
|
+
message: `Missing required key "${key}".`
|
|
361
|
+
})
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
let value = dictionary[key];
|
|
366
|
+
const hasDefault = hasOwn(options, 'defaultValue');
|
|
367
|
+
|
|
368
|
+
// Only use defaultValue if value is undefined and
|
|
369
|
+
// a defaultValue options was provided.
|
|
370
|
+
if (hasDefault && value !== null) {
|
|
371
|
+
value = value ?? defaultValue;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// A key can be optional and have no default value.
|
|
375
|
+
// When this happens, do not perform a conversion,
|
|
376
|
+
// and do not assign the key a value.
|
|
377
|
+
if (required || hasDefault || value !== undefined) {
|
|
378
|
+
value = converter(value);
|
|
379
|
+
|
|
380
|
+
if (
|
|
381
|
+
options.allowedValues &&
|
|
382
|
+
!options.allowedValues.includes(value)
|
|
383
|
+
) {
|
|
384
|
+
throw webidl.errors.exception({
|
|
385
|
+
header: 'Dictionary',
|
|
386
|
+
message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`
|
|
387
|
+
})
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
dict[key] = value;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
return dict
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
webidl.nullableConverter = function (converter) {
|
|
399
|
+
return (V) => {
|
|
400
|
+
if (V === null) {
|
|
401
|
+
return V
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return converter(V)
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
// https://webidl.spec.whatwg.org/#es-DOMString
|
|
409
|
+
webidl.converters.DOMString = function (V, opts = {}) {
|
|
410
|
+
// 1. If V is null and the conversion is to an IDL type
|
|
411
|
+
// associated with the [LegacyNullToEmptyString]
|
|
412
|
+
// extended attribute, then return the DOMString value
|
|
413
|
+
// that represents the empty string.
|
|
414
|
+
if (V === null && opts.legacyNullToEmptyString) {
|
|
415
|
+
return ''
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// 2. Let x be ? ToString(V).
|
|
419
|
+
if (typeof V === 'symbol') {
|
|
420
|
+
throw new TypeError('Could not convert argument of type symbol to string.')
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// 3. Return the IDL DOMString value that represents the
|
|
424
|
+
// same sequence of code units as the one the
|
|
425
|
+
// ECMAScript String value x represents.
|
|
426
|
+
return String(V)
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
// https://webidl.spec.whatwg.org/#es-ByteString
|
|
430
|
+
webidl.converters.ByteString = function (V) {
|
|
431
|
+
// 1. Let x be ? ToString(V).
|
|
432
|
+
// Note: DOMString converter perform ? ToString(V)
|
|
433
|
+
const x = webidl.converters.DOMString(V);
|
|
434
|
+
|
|
435
|
+
// 2. If the value of any element of x is greater than
|
|
436
|
+
// 255, then throw a TypeError.
|
|
437
|
+
for (let index = 0; index < x.length; index++) {
|
|
438
|
+
if (x.charCodeAt(index) > 255) {
|
|
439
|
+
throw new TypeError(
|
|
440
|
+
'Cannot convert argument to a ByteString because the character at ' +
|
|
441
|
+
`index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`
|
|
442
|
+
)
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// 3. Return an IDL ByteString value whose length is the
|
|
447
|
+
// length of x, and where the value of each element is
|
|
448
|
+
// the value of the corresponding element of x.
|
|
449
|
+
return x
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
// https://webidl.spec.whatwg.org/#es-USVString
|
|
453
|
+
webidl.converters.USVString = toUSVString;
|
|
454
|
+
|
|
455
|
+
// https://webidl.spec.whatwg.org/#es-boolean
|
|
456
|
+
webidl.converters.boolean = function (V) {
|
|
457
|
+
// 1. Let x be the result of computing ToBoolean(V).
|
|
458
|
+
const x = Boolean(V);
|
|
459
|
+
|
|
460
|
+
// 2. Return the IDL boolean value that is the one that represents
|
|
461
|
+
// the same truth value as the ECMAScript Boolean value x.
|
|
462
|
+
return x
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
// https://webidl.spec.whatwg.org/#es-any
|
|
466
|
+
webidl.converters.any = function (V) {
|
|
467
|
+
return V
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
// https://webidl.spec.whatwg.org/#es-long-long
|
|
471
|
+
webidl.converters['long long'] = function (V) {
|
|
472
|
+
// 1. Let x be ? ConvertToInt(V, 64, "signed").
|
|
473
|
+
const x = webidl.util.ConvertToInt(V, 64, 'signed');
|
|
474
|
+
|
|
475
|
+
// 2. Return the IDL long long value that represents
|
|
476
|
+
// the same numeric value as x.
|
|
477
|
+
return x
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
// https://webidl.spec.whatwg.org/#es-unsigned-long-long
|
|
481
|
+
webidl.converters['unsigned long long'] = function (V) {
|
|
482
|
+
// 1. Let x be ? ConvertToInt(V, 64, "unsigned").
|
|
483
|
+
const x = webidl.util.ConvertToInt(V, 64, 'unsigned');
|
|
484
|
+
|
|
485
|
+
// 2. Return the IDL unsigned long long value that
|
|
486
|
+
// represents the same numeric value as x.
|
|
487
|
+
return x
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
// https://webidl.spec.whatwg.org/#es-unsigned-long
|
|
491
|
+
webidl.converters['unsigned long'] = function (V) {
|
|
492
|
+
// 1. Let x be ? ConvertToInt(V, 32, "unsigned").
|
|
493
|
+
const x = webidl.util.ConvertToInt(V, 32, 'unsigned');
|
|
494
|
+
|
|
495
|
+
// 2. Return the IDL unsigned long value that
|
|
496
|
+
// represents the same numeric value as x.
|
|
497
|
+
return x
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
// https://webidl.spec.whatwg.org/#es-unsigned-short
|
|
501
|
+
webidl.converters['unsigned short'] = function (V, opts) {
|
|
502
|
+
// 1. Let x be ? ConvertToInt(V, 16, "unsigned").
|
|
503
|
+
const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts);
|
|
504
|
+
|
|
505
|
+
// 2. Return the IDL unsigned short value that represents
|
|
506
|
+
// the same numeric value as x.
|
|
507
|
+
return x
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
// https://webidl.spec.whatwg.org/#idl-ArrayBuffer
|
|
511
|
+
webidl.converters.ArrayBuffer = function (V, opts = {}) {
|
|
512
|
+
// 1. If Type(V) is not Object, or V does not have an
|
|
513
|
+
// [[ArrayBufferData]] internal slot, then throw a
|
|
514
|
+
// TypeError.
|
|
515
|
+
// see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances
|
|
516
|
+
// see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances
|
|
517
|
+
if (
|
|
518
|
+
webidl.util.Type(V) !== 'Object' ||
|
|
519
|
+
!types.isAnyArrayBuffer(V)
|
|
520
|
+
) {
|
|
521
|
+
throw webidl.errors.conversionFailed({
|
|
522
|
+
prefix: `${V}`,
|
|
523
|
+
argument: `${V}`,
|
|
524
|
+
types: ['ArrayBuffer']
|
|
525
|
+
})
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// 2. If the conversion is not to an IDL type associated
|
|
529
|
+
// with the [AllowShared] extended attribute, and
|
|
530
|
+
// IsSharedArrayBuffer(V) is true, then throw a
|
|
531
|
+
// TypeError.
|
|
532
|
+
if (opts.allowShared === false && types.isSharedArrayBuffer(V)) {
|
|
533
|
+
throw webidl.errors.exception({
|
|
534
|
+
header: 'ArrayBuffer',
|
|
535
|
+
message: 'SharedArrayBuffer is not allowed.'
|
|
536
|
+
})
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// 3. If the conversion is not to an IDL type associated
|
|
540
|
+
// with the [AllowResizable] extended attribute, and
|
|
541
|
+
// IsResizableArrayBuffer(V) is true, then throw a
|
|
542
|
+
// TypeError.
|
|
543
|
+
// Note: resizable ArrayBuffers are currently a proposal.
|
|
544
|
+
|
|
545
|
+
// 4. Return the IDL ArrayBuffer value that is a
|
|
546
|
+
// reference to the same object as V.
|
|
547
|
+
return V
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
webidl.converters.TypedArray = function (V, T, opts = {}) {
|
|
551
|
+
// 1. Let T be the IDL type V is being converted to.
|
|
552
|
+
|
|
553
|
+
// 2. If Type(V) is not Object, or V does not have a
|
|
554
|
+
// [[TypedArrayName]] internal slot with a value
|
|
555
|
+
// equal to T’s name, then throw a TypeError.
|
|
556
|
+
if (
|
|
557
|
+
webidl.util.Type(V) !== 'Object' ||
|
|
558
|
+
!types.isTypedArray(V) ||
|
|
559
|
+
V.constructor.name !== T.name
|
|
560
|
+
) {
|
|
561
|
+
throw webidl.errors.conversionFailed({
|
|
562
|
+
prefix: `${T.name}`,
|
|
563
|
+
argument: `${V}`,
|
|
564
|
+
types: [T.name]
|
|
565
|
+
})
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// 3. If the conversion is not to an IDL type associated
|
|
569
|
+
// with the [AllowShared] extended attribute, and
|
|
570
|
+
// IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is
|
|
571
|
+
// true, then throw a TypeError.
|
|
572
|
+
if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {
|
|
573
|
+
throw webidl.errors.exception({
|
|
574
|
+
header: 'ArrayBuffer',
|
|
575
|
+
message: 'SharedArrayBuffer is not allowed.'
|
|
576
|
+
})
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// 4. If the conversion is not to an IDL type associated
|
|
580
|
+
// with the [AllowResizable] extended attribute, and
|
|
581
|
+
// IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
|
|
582
|
+
// true, then throw a TypeError.
|
|
583
|
+
// Note: resizable array buffers are currently a proposal
|
|
584
|
+
|
|
585
|
+
// 5. Return the IDL value of type T that is a reference
|
|
586
|
+
// to the same object as V.
|
|
587
|
+
return V
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
webidl.converters.DataView = function (V, opts = {}) {
|
|
591
|
+
// 1. If Type(V) is not Object, or V does not have a
|
|
592
|
+
// [[DataView]] internal slot, then throw a TypeError.
|
|
593
|
+
if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {
|
|
594
|
+
throw webidl.errors.exception({
|
|
595
|
+
header: 'DataView',
|
|
596
|
+
message: 'Object is not a DataView.'
|
|
597
|
+
})
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
// 2. If the conversion is not to an IDL type associated
|
|
601
|
+
// with the [AllowShared] extended attribute, and
|
|
602
|
+
// IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,
|
|
603
|
+
// then throw a TypeError.
|
|
604
|
+
if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {
|
|
605
|
+
throw webidl.errors.exception({
|
|
606
|
+
header: 'ArrayBuffer',
|
|
607
|
+
message: 'SharedArrayBuffer is not allowed.'
|
|
608
|
+
})
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// 3. If the conversion is not to an IDL type associated
|
|
612
|
+
// with the [AllowResizable] extended attribute, and
|
|
613
|
+
// IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is
|
|
614
|
+
// true, then throw a TypeError.
|
|
615
|
+
// Note: resizable ArrayBuffers are currently a proposal
|
|
616
|
+
|
|
617
|
+
// 4. Return the IDL DataView value that is a reference
|
|
618
|
+
// to the same object as V.
|
|
619
|
+
return V
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
// https://webidl.spec.whatwg.org/#BufferSource
|
|
623
|
+
webidl.converters.BufferSource = function (V, opts = {}) {
|
|
624
|
+
if (types.isAnyArrayBuffer(V)) {
|
|
625
|
+
return webidl.converters.ArrayBuffer(V, opts)
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (types.isTypedArray(V)) {
|
|
629
|
+
return webidl.converters.TypedArray(V, V.constructor)
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
if (types.isDataView(V)) {
|
|
633
|
+
return webidl.converters.DataView(V, opts)
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
throw new TypeError(`Could not convert ${V} to a BufferSource.`)
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
webidl.converters['sequence<ByteString>'] = webidl.sequenceConverter(
|
|
640
|
+
webidl.converters.ByteString
|
|
641
|
+
);
|
|
642
|
+
|
|
643
|
+
webidl.converters['sequence<sequence<ByteString>>'] = webidl.sequenceConverter(
|
|
644
|
+
webidl.converters['sequence<ByteString>']
|
|
645
|
+
);
|
|
646
|
+
|
|
647
|
+
webidl.converters['record<ByteString, ByteString>'] = webidl.recordConverter(
|
|
648
|
+
webidl.converters.ByteString,
|
|
649
|
+
webidl.converters.ByteString
|
|
650
|
+
);
|
|
651
|
+
|
|
652
|
+
webidl_1 = {
|
|
653
|
+
webidl
|
|
654
|
+
};
|
|
655
|
+
return webidl_1;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export { requireWebidl as __require };
|
|
659
|
+
//# sourceMappingURL=webidl.js.map
|