@relative-ci/core 5.0.0-alpha.2
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/__/cross-spawn/index.js +59 -0
- package/lib/cjs/__/cross-spawn/index.js.map +1 -0
- package/lib/cjs/__/cross-spawn/lib/enoent.js +71 -0
- package/lib/cjs/__/cross-spawn/lib/enoent.js.map +1 -0
- package/lib/cjs/__/cross-spawn/lib/parse.js +112 -0
- package/lib/cjs/__/cross-spawn/lib/parse.js.map +1 -0
- package/lib/cjs/__/cross-spawn/lib/util/escape.js +60 -0
- package/lib/cjs/__/cross-spawn/lib/util/escape.js.map +1 -0
- package/lib/cjs/__/cross-spawn/lib/util/readShebang.js +42 -0
- package/lib/cjs/__/cross-spawn/lib/util/readShebang.js.map +1 -0
- package/lib/cjs/__/cross-spawn/lib/util/resolveCommand.js +72 -0
- package/lib/cjs/__/cross-spawn/lib/util/resolveCommand.js.map +1 -0
- package/lib/cjs/__/env-ci/index.js +81 -0
- package/lib/cjs/__/env-ci/index.js.map +1 -0
- package/lib/cjs/__/env-ci/lib/git.js +71 -0
- package/lib/cjs/__/env-ci/lib/git.js.map +1 -0
- package/lib/cjs/__/env-ci/lib/utils.js +15 -0
- package/lib/cjs/__/env-ci/lib/utils.js.map +1 -0
- package/lib/cjs/__/env-ci/services/appveyor.js +33 -0
- package/lib/cjs/__/env-ci/services/appveyor.js.map +1 -0
- package/lib/cjs/__/env-ci/services/azure-pipelines.js +35 -0
- package/lib/cjs/__/env-ci/services/azure-pipelines.js.map +1 -0
- package/lib/cjs/__/env-ci/services/bamboo.js +24 -0
- package/lib/cjs/__/env-ci/services/bamboo.js.map +1 -0
- package/lib/cjs/__/env-ci/services/bitbucket.js +25 -0
- package/lib/cjs/__/env-ci/services/bitbucket.js.map +1 -0
- package/lib/cjs/__/env-ci/services/bitrise.js +33 -0
- package/lib/cjs/__/env-ci/services/bitrise.js.map +1 -0
- package/lib/cjs/__/env-ci/services/buddy.js +34 -0
- package/lib/cjs/__/env-ci/services/buddy.js.map +1 -0
- package/lib/cjs/__/env-ci/services/buildkite.js +38 -0
- package/lib/cjs/__/env-ci/services/buildkite.js.map +1 -0
- package/lib/cjs/__/env-ci/services/circleci.js +36 -0
- package/lib/cjs/__/env-ci/services/circleci.js.map +1 -0
- package/lib/cjs/__/env-ci/services/cirrus.js +35 -0
- package/lib/cjs/__/env-ci/services/cirrus.js.map +1 -0
- package/lib/cjs/__/env-ci/services/cloudflare-pages.js +21 -0
- package/lib/cjs/__/env-ci/services/cloudflare-pages.js.map +1 -0
- package/lib/cjs/__/env-ci/services/codebuild.js +25 -0
- package/lib/cjs/__/env-ci/services/codebuild.js.map +1 -0
- package/lib/cjs/__/env-ci/services/codefresh.js +30 -0
- package/lib/cjs/__/env-ci/services/codefresh.js.map +1 -0
- package/lib/cjs/__/env-ci/services/codeship.js +23 -0
- package/lib/cjs/__/env-ci/services/codeship.js.map +1 -0
- package/lib/cjs/__/env-ci/services/drone.js +32 -0
- package/lib/cjs/__/env-ci/services/drone.js.map +1 -0
- package/lib/cjs/__/env-ci/services/git.js +12 -0
- package/lib/cjs/__/env-ci/services/git.js.map +1 -0
- package/lib/cjs/__/env-ci/services/github.js +65 -0
- package/lib/cjs/__/env-ci/services/github.js.map +1 -0
- package/lib/cjs/__/env-ci/services/gitlab.js +35 -0
- package/lib/cjs/__/env-ci/services/gitlab.js.map +1 -0
- package/lib/cjs/__/env-ci/services/jenkins.js +40 -0
- package/lib/cjs/__/env-ci/services/jenkins.js.map +1 -0
- package/lib/cjs/__/env-ci/services/jetbrains-space.js +29 -0
- package/lib/cjs/__/env-ci/services/jetbrains-space.js.map +1 -0
- package/lib/cjs/__/env-ci/services/netlify.js +29 -0
- package/lib/cjs/__/env-ci/services/netlify.js.map +1 -0
- package/lib/cjs/__/env-ci/services/puppet.js +23 -0
- package/lib/cjs/__/env-ci/services/puppet.js.map +1 -0
- package/lib/cjs/__/env-ci/services/sail.js +27 -0
- package/lib/cjs/__/env-ci/services/sail.js.map +1 -0
- package/lib/cjs/__/env-ci/services/screwdriver.js +31 -0
- package/lib/cjs/__/env-ci/services/screwdriver.js.map +1 -0
- package/lib/cjs/__/env-ci/services/scrutinizer.js +27 -0
- package/lib/cjs/__/env-ci/services/scrutinizer.js.map +1 -0
- package/lib/cjs/__/env-ci/services/semaphore.js +34 -0
- package/lib/cjs/__/env-ci/services/semaphore.js.map +1 -0
- package/lib/cjs/__/env-ci/services/shippable.js +32 -0
- package/lib/cjs/__/env-ci/services/shippable.js.map +1 -0
- package/lib/cjs/__/env-ci/services/teamcity.js +64 -0
- package/lib/cjs/__/env-ci/services/teamcity.js.map +1 -0
- package/lib/cjs/__/env-ci/services/travis.js +34 -0
- package/lib/cjs/__/env-ci/services/travis.js.map +1 -0
- package/lib/cjs/__/env-ci/services/vela.js +32 -0
- package/lib/cjs/__/env-ci/services/vela.js.map +1 -0
- package/lib/cjs/__/env-ci/services/vercel.js +34 -0
- package/lib/cjs/__/env-ci/services/vercel.js.map +1 -0
- package/lib/cjs/__/env-ci/services/wercker.js +24 -0
- package/lib/cjs/__/env-ci/services/wercker.js.map +1 -0
- package/lib/cjs/__/env-ci/services/woodpecker.js +32 -0
- package/lib/cjs/__/env-ci/services/woodpecker.js.map +1 -0
- package/lib/cjs/__/execa/index.js +149 -0
- package/lib/cjs/__/execa/index.js.map +1 -0
- package/lib/cjs/__/execa/lib/command.js +27 -0
- package/lib/cjs/__/execa/lib/command.js.map +1 -0
- package/lib/cjs/__/execa/lib/error.js +92 -0
- package/lib/cjs/__/execa/lib/error.js.map +1 -0
- package/lib/cjs/__/execa/lib/promise.js +10 -0
- package/lib/cjs/__/execa/lib/promise.js.map +1 -0
- package/lib/cjs/__/execa/lib/stdio.js +35 -0
- package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
- package/lib/cjs/__/execa/lib/stream.js +35 -0
- package/lib/cjs/__/execa/lib/stream.js.map +1 -0
- package/lib/cjs/__/execa/lib/verbose.js +29 -0
- package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
- package/lib/cjs/__/get-stream/source/array-buffer.js +4 -0
- package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/core.js +276 -0
- package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/main.js +72 -0
- package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/realtime.js +21 -0
- package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
- package/lib/cjs/__/human-signals/build/src/signals.js +36 -0
- package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
- package/lib/cjs/__/is-stream/index.js +10 -0
- package/lib/cjs/__/is-stream/index.js.map +1 -0
- package/lib/cjs/__/isexe/index.js +73 -0
- package/lib/cjs/__/isexe/index.js.map +1 -0
- package/lib/cjs/__/isexe/mode.js +60 -0
- package/lib/cjs/__/isexe/mode.js.map +1 -0
- package/lib/cjs/__/isexe/windows.js +61 -0
- package/lib/cjs/__/isexe/windows.js.map +1 -0
- package/lib/cjs/__/java-properties/dist-node/index.js +234 -0
- package/lib/cjs/__/java-properties/dist-node/index.js.map +1 -0
- package/lib/cjs/__/merge-stream/index.js +59 -0
- package/lib/cjs/__/merge-stream/index.js.map +1 -0
- package/lib/cjs/__/npm-run-path/__/path-key/index.js +17 -0
- package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
- package/lib/cjs/__/npm-run-path/index.js +63 -0
- package/lib/cjs/__/npm-run-path/index.js.map +1 -0
- package/lib/cjs/__/path-key/index.js +29 -0
- package/lib/cjs/__/path-key/index.js.map +1 -0
- package/lib/cjs/__/shebang-command/index.js +33 -0
- package/lib/cjs/__/shebang-command/index.js.map +1 -0
- package/lib/cjs/__/shebang-regex/index.js +14 -0
- package/lib/cjs/__/shebang-regex/index.js.map +1 -0
- package/lib/cjs/__/signal-exit/dist/mjs/index.js +253 -0
- package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
- package/lib/cjs/__/signal-exit/dist/mjs/signals.js +43 -0
- package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
- package/lib/cjs/__/strip-final-newline/index.js +19 -0
- package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
- package/lib/cjs/__/which/which.js +145 -0
- package/lib/cjs/__/which/which.js.map +1 -0
- package/lib/cjs/_virtual/_commonjsHelpers.js +11 -0
- package/lib/cjs/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/cjs/_virtual/escape.js +6 -0
- package/lib/cjs/_virtual/escape.js.map +1 -0
- package/lib/cjs/_virtual/index.js +10 -0
- package/lib/cjs/_virtual/index.js.map +1 -0
- package/lib/cjs/_virtual/index2.js +6 -0
- package/lib/cjs/_virtual/index2.js.map +1 -0
- package/lib/cjs/_virtual/index3.js +10 -0
- package/lib/cjs/_virtual/index3.js.map +1 -0
- package/lib/cjs/_virtual/index4.js +6 -0
- package/lib/cjs/_virtual/index4.js.map +1 -0
- package/lib/cjs/_virtual/index5.js +6 -0
- package/lib/cjs/_virtual/index5.js.map +1 -0
- package/lib/cjs/_virtual/index6.js +6 -0
- package/lib/cjs/_virtual/index6.js.map +1 -0
- package/lib/cjs/artifacts/filter-artifacts.js +27 -0
- package/lib/cjs/artifacts/filter-artifacts.js.map +1 -0
- package/lib/cjs/artifacts/validate-webpack-stats.js +18 -0
- package/lib/cjs/artifacts/validate-webpack-stats.js.map +1 -0
- package/lib/cjs/artifacts.js +10 -0
- package/lib/cjs/artifacts.js.map +1 -0
- package/lib/cjs/constants.js +10 -0
- package/lib/cjs/constants.js.map +1 -0
- package/lib/cjs/index.js +33 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/ingest/ingest.js +85 -0
- package/lib/cjs/ingest/ingest.js.map +1 -0
- package/lib/cjs/ingest.js +8 -0
- package/lib/cjs/ingest.js.map +1 -0
- package/lib/cjs/locales/en.js +27 -0
- package/lib/cjs/locales/en.js.map +1 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/utils/debug.js +13 -0
- package/lib/cjs/utils/debug.js.map +1 -0
- package/lib/cjs/utils/get-commit-message.js +21 -0
- package/lib/cjs/utils/get-commit-message.js.map +1 -0
- package/lib/cjs/utils/get-env-vars.js +56 -0
- package/lib/cjs/utils/get-env-vars.js.map +1 -0
- package/lib/cjs/utils/get-slug.js +44 -0
- package/lib/cjs/utils/get-slug.js.map +1 -0
- package/lib/cjs/utils/log-response.js +19 -0
- package/lib/cjs/utils/log-response.js.map +1 -0
- package/lib/cjs/utils/logger.js +16 -0
- package/lib/cjs/utils/logger.js.map +1 -0
- package/lib/cjs/utils/mask-object-property.js +27 -0
- package/lib/cjs/utils/mask-object-property.js.map +1 -0
- package/lib/cjs/utils/normalize-params.js +62 -0
- package/lib/cjs/utils/normalize-params.js.map +1 -0
- package/lib/cjs/utils.js +23 -0
- package/lib/cjs/utils.js.map +1 -0
- package/lib/esm/__/cross-spawn/index.js +53 -0
- package/lib/esm/__/cross-spawn/index.js.map +1 -0
- package/lib/esm/__/cross-spawn/lib/enoent.js +69 -0
- package/lib/esm/__/cross-spawn/lib/enoent.js.map +1 -0
- package/lib/esm/__/cross-spawn/lib/parse.js +106 -0
- package/lib/esm/__/cross-spawn/lib/parse.js.map +1 -0
- package/lib/esm/__/cross-spawn/lib/util/escape.js +58 -0
- package/lib/esm/__/cross-spawn/lib/util/escape.js.map +1 -0
- package/lib/esm/__/cross-spawn/lib/util/readShebang.js +36 -0
- package/lib/esm/__/cross-spawn/lib/util/readShebang.js.map +1 -0
- package/lib/esm/__/cross-spawn/lib/util/resolveCommand.js +66 -0
- package/lib/esm/__/cross-spawn/lib/util/resolveCommand.js.map +1 -0
- package/lib/esm/__/env-ci/index.js +79 -0
- package/lib/esm/__/env-ci/index.js.map +1 -0
- package/lib/esm/__/env-ci/lib/git.js +67 -0
- package/lib/esm/__/env-ci/lib/git.js.map +1 -0
- package/lib/esm/__/env-ci/lib/utils.js +12 -0
- package/lib/esm/__/env-ci/lib/utils.js.map +1 -0
- package/lib/esm/__/env-ci/services/appveyor.js +31 -0
- package/lib/esm/__/env-ci/services/appveyor.js.map +1 -0
- package/lib/esm/__/env-ci/services/azure-pipelines.js +33 -0
- package/lib/esm/__/env-ci/services/azure-pipelines.js.map +1 -0
- package/lib/esm/__/env-ci/services/bamboo.js +22 -0
- package/lib/esm/__/env-ci/services/bamboo.js.map +1 -0
- package/lib/esm/__/env-ci/services/bitbucket.js +23 -0
- package/lib/esm/__/env-ci/services/bitbucket.js.map +1 -0
- package/lib/esm/__/env-ci/services/bitrise.js +31 -0
- package/lib/esm/__/env-ci/services/bitrise.js.map +1 -0
- package/lib/esm/__/env-ci/services/buddy.js +32 -0
- package/lib/esm/__/env-ci/services/buddy.js.map +1 -0
- package/lib/esm/__/env-ci/services/buildkite.js +36 -0
- package/lib/esm/__/env-ci/services/buildkite.js.map +1 -0
- package/lib/esm/__/env-ci/services/circleci.js +34 -0
- package/lib/esm/__/env-ci/services/circleci.js.map +1 -0
- package/lib/esm/__/env-ci/services/cirrus.js +33 -0
- package/lib/esm/__/env-ci/services/cirrus.js.map +1 -0
- package/lib/esm/__/env-ci/services/cloudflare-pages.js +19 -0
- package/lib/esm/__/env-ci/services/cloudflare-pages.js.map +1 -0
- package/lib/esm/__/env-ci/services/codebuild.js +23 -0
- package/lib/esm/__/env-ci/services/codebuild.js.map +1 -0
- package/lib/esm/__/env-ci/services/codefresh.js +28 -0
- package/lib/esm/__/env-ci/services/codefresh.js.map +1 -0
- package/lib/esm/__/env-ci/services/codeship.js +21 -0
- package/lib/esm/__/env-ci/services/codeship.js.map +1 -0
- package/lib/esm/__/env-ci/services/drone.js +30 -0
- package/lib/esm/__/env-ci/services/drone.js.map +1 -0
- package/lib/esm/__/env-ci/services/git.js +10 -0
- package/lib/esm/__/env-ci/services/git.js.map +1 -0
- package/lib/esm/__/env-ci/services/github.js +63 -0
- package/lib/esm/__/env-ci/services/github.js.map +1 -0
- package/lib/esm/__/env-ci/services/gitlab.js +33 -0
- package/lib/esm/__/env-ci/services/gitlab.js.map +1 -0
- package/lib/esm/__/env-ci/services/jenkins.js +38 -0
- package/lib/esm/__/env-ci/services/jenkins.js.map +1 -0
- package/lib/esm/__/env-ci/services/jetbrains-space.js +27 -0
- package/lib/esm/__/env-ci/services/jetbrains-space.js.map +1 -0
- package/lib/esm/__/env-ci/services/netlify.js +27 -0
- package/lib/esm/__/env-ci/services/netlify.js.map +1 -0
- package/lib/esm/__/env-ci/services/puppet.js +21 -0
- package/lib/esm/__/env-ci/services/puppet.js.map +1 -0
- package/lib/esm/__/env-ci/services/sail.js +25 -0
- package/lib/esm/__/env-ci/services/sail.js.map +1 -0
- package/lib/esm/__/env-ci/services/screwdriver.js +29 -0
- package/lib/esm/__/env-ci/services/screwdriver.js.map +1 -0
- package/lib/esm/__/env-ci/services/scrutinizer.js +25 -0
- package/lib/esm/__/env-ci/services/scrutinizer.js.map +1 -0
- package/lib/esm/__/env-ci/services/semaphore.js +32 -0
- package/lib/esm/__/env-ci/services/semaphore.js.map +1 -0
- package/lib/esm/__/env-ci/services/shippable.js +30 -0
- package/lib/esm/__/env-ci/services/shippable.js.map +1 -0
- package/lib/esm/__/env-ci/services/teamcity.js +62 -0
- package/lib/esm/__/env-ci/services/teamcity.js.map +1 -0
- package/lib/esm/__/env-ci/services/travis.js +32 -0
- package/lib/esm/__/env-ci/services/travis.js.map +1 -0
- package/lib/esm/__/env-ci/services/vela.js +30 -0
- package/lib/esm/__/env-ci/services/vela.js.map +1 -0
- package/lib/esm/__/env-ci/services/vercel.js +32 -0
- package/lib/esm/__/env-ci/services/vercel.js.map +1 -0
- package/lib/esm/__/env-ci/services/wercker.js +22 -0
- package/lib/esm/__/env-ci/services/wercker.js.map +1 -0
- package/lib/esm/__/env-ci/services/woodpecker.js +30 -0
- package/lib/esm/__/env-ci/services/woodpecker.js.map +1 -0
- package/lib/esm/__/execa/index.js +141 -0
- package/lib/esm/__/execa/index.js.map +1 -0
- package/lib/esm/__/execa/lib/command.js +24 -0
- package/lib/esm/__/execa/lib/command.js.map +1 -0
- package/lib/esm/__/execa/lib/error.js +86 -0
- package/lib/esm/__/execa/lib/error.js.map +1 -0
- package/lib/esm/__/execa/lib/promise.js +8 -0
- package/lib/esm/__/execa/lib/promise.js.map +1 -0
- package/lib/esm/__/execa/lib/stdio.js +33 -0
- package/lib/esm/__/execa/lib/stdio.js.map +1 -0
- package/lib/esm/__/execa/lib/stream.js +33 -0
- package/lib/esm/__/execa/lib/stream.js.map +1 -0
- package/lib/esm/__/execa/lib/verbose.js +22 -0
- package/lib/esm/__/execa/lib/verbose.js.map +1 -0
- package/lib/esm/__/get-stream/source/array-buffer.js +2 -0
- package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/core.js +274 -0
- package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/main.js +70 -0
- package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/realtime.js +18 -0
- package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
- package/lib/esm/__/human-signals/build/src/signals.js +34 -0
- package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
- package/lib/esm/__/is-stream/index.js +8 -0
- package/lib/esm/__/is-stream/index.js.map +1 -0
- package/lib/esm/__/isexe/index.js +71 -0
- package/lib/esm/__/isexe/index.js.map +1 -0
- package/lib/esm/__/isexe/mode.js +54 -0
- package/lib/esm/__/isexe/mode.js.map +1 -0
- package/lib/esm/__/isexe/windows.js +55 -0
- package/lib/esm/__/isexe/windows.js.map +1 -0
- package/lib/esm/__/java-properties/dist-node/index.js +228 -0
- package/lib/esm/__/java-properties/dist-node/index.js.map +1 -0
- package/lib/esm/__/merge-stream/index.js +53 -0
- package/lib/esm/__/merge-stream/index.js.map +1 -0
- package/lib/esm/__/npm-run-path/__/path-key/index.js +15 -0
- package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
- package/lib/esm/__/npm-run-path/index.js +55 -0
- package/lib/esm/__/npm-run-path/index.js.map +1 -0
- package/lib/esm/__/path-key/index.js +27 -0
- package/lib/esm/__/path-key/index.js.map +1 -0
- package/lib/esm/__/shebang-command/index.js +31 -0
- package/lib/esm/__/shebang-command/index.js.map +1 -0
- package/lib/esm/__/shebang-regex/index.js +12 -0
- package/lib/esm/__/shebang-regex/index.js.map +1 -0
- package/lib/esm/__/signal-exit/dist/mjs/index.js +251 -0
- package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
- package/lib/esm/__/signal-exit/dist/mjs/signals.js +41 -0
- package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
- package/lib/esm/__/strip-final-newline/index.js +17 -0
- package/lib/esm/__/strip-final-newline/index.js.map +1 -0
- package/lib/esm/__/which/which.js +139 -0
- package/lib/esm/__/which/which.js.map +1 -0
- package/lib/esm/_virtual/_commonjsHelpers.js +8 -0
- package/lib/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/esm/_virtual/escape.js +4 -0
- package/lib/esm/_virtual/escape.js.map +1 -0
- package/lib/esm/_virtual/index.js +8 -0
- package/lib/esm/_virtual/index.js.map +1 -0
- package/lib/esm/_virtual/index2.js +4 -0
- package/lib/esm/_virtual/index2.js.map +1 -0
- package/lib/esm/_virtual/index3.js +8 -0
- package/lib/esm/_virtual/index3.js.map +1 -0
- package/lib/esm/_virtual/index4.js +4 -0
- package/lib/esm/_virtual/index4.js.map +1 -0
- package/lib/esm/_virtual/index5.js +4 -0
- package/lib/esm/_virtual/index5.js.map +1 -0
- package/lib/esm/_virtual/index6.js +4 -0
- package/lib/esm/_virtual/index6.js.map +1 -0
- package/lib/esm/artifacts/filter-artifacts.js +20 -0
- package/lib/esm/artifacts/filter-artifacts.js.map +1 -0
- package/lib/esm/artifacts/validate-webpack-stats.js +12 -0
- package/lib/esm/artifacts/validate-webpack-stats.js.map +1 -0
- package/lib/esm/artifacts.js +3 -0
- package/lib/esm/artifacts.js.map +1 -0
- package/lib/esm/constants.js +6 -0
- package/lib/esm/constants.js.map +1 -0
- package/lib/esm/index.js +13 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/ingest/ingest.js +78 -0
- package/lib/esm/ingest/ingest.js.map +1 -0
- package/lib/esm/ingest.js +6 -0
- package/lib/esm/ingest.js.map +1 -0
- package/lib/esm/locales/en.js +15 -0
- package/lib/esm/locales/en.js.map +1 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/utils/debug.js +7 -0
- package/lib/esm/utils/debug.js.map +1 -0
- package/lib/esm/utils/get-commit-message.js +15 -0
- package/lib/esm/utils/get-commit-message.js.map +1 -0
- package/lib/esm/utils/get-env-vars.js +54 -0
- package/lib/esm/utils/get-env-vars.js.map +1 -0
- package/lib/esm/utils/get-slug.js +41 -0
- package/lib/esm/utils/get-slug.js.map +1 -0
- package/lib/esm/utils/log-response.js +17 -0
- package/lib/esm/utils/log-response.js.map +1 -0
- package/lib/esm/utils/logger.js +14 -0
- package/lib/esm/utils/logger.js.map +1 -0
- package/lib/esm/utils/mask-object-property.js +21 -0
- package/lib/esm/utils/mask-object-property.js.map +1 -0
- package/lib/esm/utils/normalize-params.js +60 -0
- package/lib/esm/utils/normalize-params.js.map +1 -0
- package/lib/esm/utils.js +9 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/types/artifacts/filter-artifacts.d.ts +10 -0
- package/lib/types/artifacts/index.d.ts +2 -0
- package/lib/types/artifacts/validate-webpack-stats.d.ts +1 -0
- package/lib/types/constants.d.ts +111 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/ingest/index.d.ts +2 -0
- package/lib/types/ingest/ingest.d.ts +3 -0
- package/lib/types/ingest/ingest.test.d.ts +1 -0
- package/lib/types/locales/en.d.ts +11 -0
- package/lib/types/utils/debug.d.ts +2 -0
- package/lib/types/utils/get-commit-message.d.ts +1 -0
- package/lib/types/utils/get-env-vars.d.ts +5 -0
- package/lib/types/utils/get-slug.d.ts +9 -0
- package/lib/types/utils/get-slug.test.d.ts +1 -0
- package/lib/types/utils/index.d.ts +8 -0
- package/lib/types/utils/log-response.d.ts +8 -0
- package/lib/types/utils/logger.d.ts +12 -0
- package/lib/types/utils/mask-object-property.d.ts +1 -0
- package/lib/types/utils/normalize-params.d.ts +8 -0
- package/package.json +91 -0
- package/typings.d.ts +5 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../../_virtual/index5.js');
|
|
4
|
+
var childProcess = require('node:child_process');
|
|
5
|
+
var parse = require('./lib/parse.js');
|
|
6
|
+
var enoent = require('./lib/enoent.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var childProcess__default = /*#__PURE__*/_interopDefault(childProcess);
|
|
11
|
+
|
|
12
|
+
var hasRequiredCrossSpawn;
|
|
13
|
+
|
|
14
|
+
function requireCrossSpawn () {
|
|
15
|
+
if (hasRequiredCrossSpawn) return index.__module.exports;
|
|
16
|
+
hasRequiredCrossSpawn = 1;
|
|
17
|
+
|
|
18
|
+
const cp = childProcess__default.default;
|
|
19
|
+
const parse$1 = parse.__require();
|
|
20
|
+
const enoent$1 = enoent.__require();
|
|
21
|
+
|
|
22
|
+
function spawn(command, args, options) {
|
|
23
|
+
// Parse the arguments
|
|
24
|
+
const parsed = parse$1(command, args, options);
|
|
25
|
+
|
|
26
|
+
// Spawn the child process
|
|
27
|
+
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
28
|
+
|
|
29
|
+
// Hook into child process "exit" event to emit an error if the command
|
|
30
|
+
// does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
31
|
+
enoent$1.hookChildProcess(spawned, parsed);
|
|
32
|
+
|
|
33
|
+
return spawned;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function spawnSync(command, args, options) {
|
|
37
|
+
// Parse the arguments
|
|
38
|
+
const parsed = parse$1(command, args, options);
|
|
39
|
+
|
|
40
|
+
// Spawn the child process
|
|
41
|
+
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
42
|
+
|
|
43
|
+
// Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
44
|
+
result.error = result.error || enoent$1.verifyENOENTSync(result.status, parsed);
|
|
45
|
+
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
index.__module.exports = spawn;
|
|
50
|
+
index.__module.exports.spawn = spawn;
|
|
51
|
+
index.__module.exports.sync = spawnSync;
|
|
52
|
+
|
|
53
|
+
index.__module.exports._parse = parse$1;
|
|
54
|
+
index.__module.exports._enoent = enoent$1;
|
|
55
|
+
return index.__module.exports;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
exports.__require = requireCrossSpawn;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/cross-spawn/index.js"],"sourcesContent":["'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n"],"names":["require$$0","parse","require$$1","enoent","require$$2","crossSpawnModule"],"mappings":";;;;;;;;;;;;;;;;;CAEA,MAAM,EAAE,GAAGA,6BAAwB;CACnC,MAAMC,OAAK,GAAGC,eAAsB,EAAA;CACpC,MAAMC,QAAM,GAAGC,gBAAuB,EAAA;;AAEtC,CAAA,SAAS,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;AACvC;KACI,MAAM,MAAM,GAAGH,OAAK,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;;AAEhD;AACA,KAAI,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC;;AAEzE;AACA;AACA,KAAIE,QAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC;;AAE5C,KAAI,OAAO,OAAO;AAClB;;AAEA,CAAA,SAAS,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;AAC3C;KACI,MAAM,MAAM,GAAGF,OAAK,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;;AAEhD;AACA,KAAI,MAAM,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC;;AAE5E;AACA,KAAI,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAIE,QAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;AAEjF,KAAI,OAAO,MAAM;AACjB;;AAEA,CAAAE,cAAA,CAAA,OAAc,GAAG,KAAK;AACtB,CAAAA,cAAA,CAAA,OAAA,CAAA,KAAoB,GAAG,KAAK;AAC5B,CAAAA,cAAA,CAAA,OAAA,CAAA,IAAmB,GAAG,SAAS;;AAE/B,CAAAA,cAAA,CAAA,OAAA,CAAA,MAAqB,GAAGJ,OAAK;AAC7B,CAAAI,cAAA,CAAA,OAAA,CAAA,OAAsB,GAAGF,QAAM;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var enoent;
|
|
4
|
+
var hasRequiredEnoent;
|
|
5
|
+
|
|
6
|
+
function requireEnoent () {
|
|
7
|
+
if (hasRequiredEnoent) return enoent;
|
|
8
|
+
hasRequiredEnoent = 1;
|
|
9
|
+
|
|
10
|
+
const isWin = process.platform === 'win32';
|
|
11
|
+
|
|
12
|
+
function notFoundError(original, syscall) {
|
|
13
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
14
|
+
code: 'ENOENT',
|
|
15
|
+
errno: 'ENOENT',
|
|
16
|
+
syscall: `${syscall} ${original.command}`,
|
|
17
|
+
path: original.command,
|
|
18
|
+
spawnargs: original.args,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function hookChildProcess(cp, parsed) {
|
|
23
|
+
if (!isWin) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const originalEmit = cp.emit;
|
|
28
|
+
|
|
29
|
+
cp.emit = function (name, arg1) {
|
|
30
|
+
// If emitting "exit" event and exit code is 1, we need to check if
|
|
31
|
+
// the command exists and emit an "error" instead
|
|
32
|
+
// See https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
33
|
+
if (name === 'exit') {
|
|
34
|
+
const err = verifyENOENT(arg1, parsed);
|
|
35
|
+
|
|
36
|
+
if (err) {
|
|
37
|
+
return originalEmit.call(cp, 'error', err);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function verifyENOENT(status, parsed) {
|
|
46
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
47
|
+
return notFoundError(parsed.original, 'spawn');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function verifyENOENTSync(status, parsed) {
|
|
54
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
55
|
+
return notFoundError(parsed.original, 'spawnSync');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
enoent = {
|
|
62
|
+
hookChildProcess,
|
|
63
|
+
verifyENOENT,
|
|
64
|
+
verifyENOENTSync,
|
|
65
|
+
notFoundError,
|
|
66
|
+
};
|
|
67
|
+
return enoent;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
exports.__require = requireEnoent;
|
|
71
|
+
//# sourceMappingURL=enoent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enoent.js","sources":["../../../../../../../node_modules/cross-spawn/lib/enoent.js"],"sourcesContent":["'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed);\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n"],"names":[],"mappings":";;;;;;;;;AAEA,CAAA,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO;;AAE1C,CAAA,SAAS,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE;KACtC,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE;SACrE,IAAI,EAAE,QAAQ;SACd,KAAK,EAAE,QAAQ;AACvB,SAAQ,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjD,SAAQ,IAAI,EAAE,QAAQ,CAAC,OAAO;AAC9B,SAAQ,SAAS,EAAE,QAAQ,CAAC,IAAI;AAChC,MAAK,CAAC;AACN;;AAEA,CAAA,SAAS,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE;KAClC,IAAI,CAAC,KAAK,EAAE;SACR;AACR;;AAEA,KAAI,MAAM,YAAY,GAAG,EAAE,CAAC,IAAI;;KAE5B,EAAE,CAAC,IAAI,GAAG,UAAU,IAAI,EAAE,IAAI,EAAE;AACpC;AACA;AACA;AACA,SAAQ,IAAI,IAAI,KAAK,MAAM,EAAE;aACjB,MAAM,GAAG,GAAG,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC;;aAEtC,IAAI,GAAG,EAAE;iBACL,OAAO,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC;AAC1D;AACA;;SAEQ,OAAO,YAAY,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;MAC5C;AACL;;AAEA,CAAA,SAAS,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE;KAClC,IAAI,KAAK,IAAI,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;SACvC,OAAO,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC;AACtD;;AAEA,KAAI,OAAO,IAAI;AACf;;AAEA,CAAA,SAAS,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE;KACtC,IAAI,KAAK,IAAI,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;SACvC,OAAO,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC;AAC1D;;AAEA,KAAI,OAAO,IAAI;AACf;;AAEA,CAAA,MAAc,GAAG;AACjB,KAAI,gBAAgB;AACpB,KAAI,YAAY;AAChB,KAAI,gBAAgB;AACpB,KAAI,aAAa;EAChB;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('node:path');
|
|
4
|
+
var resolveCommand = require('./util/resolveCommand.js');
|
|
5
|
+
var escape = require('./util/escape.js');
|
|
6
|
+
var readShebang = require('./util/readShebang.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
11
|
+
|
|
12
|
+
var parse_1;
|
|
13
|
+
var hasRequiredParse;
|
|
14
|
+
|
|
15
|
+
function requireParse () {
|
|
16
|
+
if (hasRequiredParse) return parse_1;
|
|
17
|
+
hasRequiredParse = 1;
|
|
18
|
+
|
|
19
|
+
const path = path__default.default;
|
|
20
|
+
const resolveCommand$1 = resolveCommand.__require();
|
|
21
|
+
const escape$1 = escape.__require();
|
|
22
|
+
const readShebang$1 = readShebang.__require();
|
|
23
|
+
|
|
24
|
+
const isWin = process.platform === 'win32';
|
|
25
|
+
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
26
|
+
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
27
|
+
|
|
28
|
+
function detectShebang(parsed) {
|
|
29
|
+
parsed.file = resolveCommand$1(parsed);
|
|
30
|
+
|
|
31
|
+
const shebang = parsed.file && readShebang$1(parsed.file);
|
|
32
|
+
|
|
33
|
+
if (shebang) {
|
|
34
|
+
parsed.args.unshift(parsed.file);
|
|
35
|
+
parsed.command = shebang;
|
|
36
|
+
|
|
37
|
+
return resolveCommand$1(parsed);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return parsed.file;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function parseNonShell(parsed) {
|
|
44
|
+
if (!isWin) {
|
|
45
|
+
return parsed;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Detect & add support for shebangs
|
|
49
|
+
const commandFile = detectShebang(parsed);
|
|
50
|
+
|
|
51
|
+
// We don't need a shell if the command filename is an executable
|
|
52
|
+
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
53
|
+
|
|
54
|
+
// If a shell is required, use cmd.exe and take care of escaping everything correctly
|
|
55
|
+
// Note that `forceShell` is an hidden option used only in tests
|
|
56
|
+
if (parsed.options.forceShell || needsShell) {
|
|
57
|
+
// Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
|
|
58
|
+
// The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
|
|
59
|
+
// Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
|
|
60
|
+
// we need to double escape them
|
|
61
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
62
|
+
|
|
63
|
+
// Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
|
|
64
|
+
// This is necessary otherwise it will always fail with ENOENT in those cases
|
|
65
|
+
parsed.command = path.normalize(parsed.command);
|
|
66
|
+
|
|
67
|
+
// Escape command & arguments
|
|
68
|
+
parsed.command = escape$1.command(parsed.command);
|
|
69
|
+
parsed.args = parsed.args.map((arg) => escape$1.argument(arg, needsDoubleEscapeMetaChars));
|
|
70
|
+
|
|
71
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
|
72
|
+
|
|
73
|
+
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
|
74
|
+
parsed.command = process.env.comspec || 'cmd.exe';
|
|
75
|
+
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return parsed;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function parse(command, args, options) {
|
|
82
|
+
// Normalize arguments, similar to nodejs
|
|
83
|
+
if (args && !Array.isArray(args)) {
|
|
84
|
+
options = args;
|
|
85
|
+
args = null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
args = args ? args.slice(0) : []; // Clone array to avoid changing the original
|
|
89
|
+
options = Object.assign({}, options); // Clone object to avoid changing the original
|
|
90
|
+
|
|
91
|
+
// Build our parsed object
|
|
92
|
+
const parsed = {
|
|
93
|
+
command,
|
|
94
|
+
args,
|
|
95
|
+
options,
|
|
96
|
+
file: undefined,
|
|
97
|
+
original: {
|
|
98
|
+
command,
|
|
99
|
+
args,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// Delegate further parsing to shell or non-shell
|
|
104
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
parse_1 = parse;
|
|
108
|
+
return parse_1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
exports.__require = requireParse;
|
|
112
|
+
//# sourceMappingURL=parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.js","sources":["../../../../../../../node_modules/cross-spawn/lib/parse.js"],"sourcesContent":["'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n"],"names":["require$$0","resolveCommand","require$$1","escape","require$$2","readShebang","require$$3"],"mappings":";;;;;;;;;;;;;;;;;;CAEA,MAAM,IAAI,GAAGA,qBAAe;CAC5B,MAAMC,gBAAc,GAAGC,wBAAgC,EAAA;CACvD,MAAMC,QAAM,GAAGC,gBAAwB,EAAA;CACvC,MAAMC,aAAW,GAAGC,qBAA6B,EAAA;;AAEjD,CAAA,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO;CAC1C,MAAM,kBAAkB,GAAG,iBAAiB;CAC5C,MAAM,eAAe,GAAG,0CAA0C;;CAElE,SAAS,aAAa,CAAC,MAAM,EAAE;AAC/B,KAAI,MAAM,CAAC,IAAI,GAAGL,gBAAc,CAAC,MAAM,CAAC;;AAExC,KAAI,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,IAAII,aAAW,CAAC,MAAM,CAAC,IAAI,CAAC;;KAEvD,IAAI,OAAO,EAAE;SACT,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;AACxC,SAAQ,MAAM,CAAC,OAAO,GAAG,OAAO;;AAEhC,SAAQ,OAAOJ,gBAAc,CAAC,MAAM,CAAC;AACrC;;KAEI,OAAO,MAAM,CAAC,IAAI;AACtB;;CAEA,SAAS,aAAa,CAAC,MAAM,EAAE;KAC3B,IAAI,CAAC,KAAK,EAAE;AAChB,SAAQ,OAAO,MAAM;AACrB;;AAEA;AACA,KAAI,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC;;AAE7C;KACI,MAAM,UAAU,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;;AAE5D;AACA;KACI,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,IAAI,UAAU,EAAE;AACjD;AACA;AACA;AACA;SACQ,MAAM,0BAA0B,GAAG,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC;;AAE5E;AACA;SACQ,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;;AAEvD;SACQ,MAAM,CAAC,OAAO,GAAGE,QAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;SAC/C,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAKA,QAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,0BAA0B,CAAC,CAAC;;AAEhG,SAAQ,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;;AAE3E,SAAQ,MAAM,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;SACrD,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,SAAS;AACzD,SAAQ,MAAM,CAAC,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC;AACvD;;AAEA,KAAI,OAAO,MAAM;AACjB;;AAEA,CAAA,SAAS,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;AACvC;KACI,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;SAC9B,OAAO,GAAG,IAAI;SACd,IAAI,GAAG,IAAI;AACnB;;AAEA,KAAI,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KACjC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;;AAEzC;KACI,MAAM,MAAM,GAAG;AACnB,SAAQ,OAAO;AACf,SAAQ,IAAI;AACZ,SAAQ,OAAO;SACP,IAAI,EAAE,SAAS;AACvB,SAAQ,QAAQ,EAAE;AAClB,aAAY,OAAO;AACnB,aAAY,IAAI;UACP;MACJ;;AAEL;KACI,OAAO,OAAO,CAAC,KAAK,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;AACzD;;AAEA,CAAA,OAAc,GAAG,KAAK;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var escape = require('../../../../_virtual/escape.js');
|
|
4
|
+
|
|
5
|
+
var hasRequired_escape;
|
|
6
|
+
|
|
7
|
+
function require_escape () {
|
|
8
|
+
if (hasRequired_escape) return escape.__exports;
|
|
9
|
+
hasRequired_escape = 1;
|
|
10
|
+
|
|
11
|
+
// See http://www.robvanderwoude.com/escapechars.php
|
|
12
|
+
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
13
|
+
|
|
14
|
+
function escapeCommand(arg) {
|
|
15
|
+
// Escape meta chars
|
|
16
|
+
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
17
|
+
|
|
18
|
+
return arg;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
22
|
+
// Convert to string
|
|
23
|
+
arg = `${arg}`;
|
|
24
|
+
|
|
25
|
+
// Algorithm below is based on https://qntm.org/cmd
|
|
26
|
+
// It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input
|
|
27
|
+
// Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information
|
|
28
|
+
|
|
29
|
+
// Sequence of backslashes followed by a double quote:
|
|
30
|
+
// double up all the backslashes and escape the double quote
|
|
31
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
32
|
+
|
|
33
|
+
// Sequence of backslashes followed by the end of the string
|
|
34
|
+
// (which will become a double quote later):
|
|
35
|
+
// double up all the backslashes
|
|
36
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
|
|
37
|
+
|
|
38
|
+
// All other backslashes occur literally
|
|
39
|
+
|
|
40
|
+
// Quote the whole thing:
|
|
41
|
+
arg = `"${arg}"`;
|
|
42
|
+
|
|
43
|
+
// Escape meta chars
|
|
44
|
+
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
45
|
+
|
|
46
|
+
// Double escape meta chars if necessary
|
|
47
|
+
if (doubleEscapeMetaChars) {
|
|
48
|
+
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return arg;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
escape.__exports.command = escapeCommand;
|
|
55
|
+
escape.__exports.argument = escapeArgument;
|
|
56
|
+
return escape.__exports;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.__require = require_escape;
|
|
60
|
+
//# sourceMappingURL=escape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.js","sources":["../../../../../../../../node_modules/cross-spawn/lib/util/escape.js"],"sourcesContent":["'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input\n // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(?=(\\\\+?)?)\\1\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(?=(\\\\+?)?)\\1$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n"],"names":["_escape"],"mappings":";;;;;;;;;;AAEA;CACA,MAAM,eAAe,GAAG,0BAA0B;;CAElD,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B;KACI,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC;;AAE7C,KAAI,OAAO,GAAG;AACd;;AAEA,CAAA,SAAS,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;AACpD;AACA,KAAI,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;;AAElB;AACA;AACA;;AAEA;AACA;KACI,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,SAAS,CAAC;;AAEnD;AACA;AACA;KACI,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC;;AAE/C;;AAEA;KACI,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;;AAEpB;KACI,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC;;AAE7C;KACI,IAAI,qBAAqB,EAAE;SACvB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC;AACjD;;AAEA,KAAI,OAAO,GAAG;AACd;;AAEA,CAAAA,gBAAA,CAAA,OAAsB,GAAG,aAAa;AACtC,CAAAA,gBAAA,CAAA,QAAuB,GAAG,cAAc;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var require$$0 = require('node:fs');
|
|
4
|
+
var index = require('../../../shebang-command/index.js');
|
|
5
|
+
|
|
6
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
9
|
+
|
|
10
|
+
var readShebang_1;
|
|
11
|
+
var hasRequiredReadShebang;
|
|
12
|
+
|
|
13
|
+
function requireReadShebang () {
|
|
14
|
+
if (hasRequiredReadShebang) return readShebang_1;
|
|
15
|
+
hasRequiredReadShebang = 1;
|
|
16
|
+
|
|
17
|
+
const fs = require$$0__default.default;
|
|
18
|
+
const shebangCommand = index.__require();
|
|
19
|
+
|
|
20
|
+
function readShebang(command) {
|
|
21
|
+
// Read the first 150 bytes from the file
|
|
22
|
+
const size = 150;
|
|
23
|
+
const buffer = Buffer.alloc(size);
|
|
24
|
+
|
|
25
|
+
let fd;
|
|
26
|
+
|
|
27
|
+
try {
|
|
28
|
+
fd = fs.openSync(command, 'r');
|
|
29
|
+
fs.readSync(fd, buffer, 0, size, 0);
|
|
30
|
+
fs.closeSync(fd);
|
|
31
|
+
} catch (e) { /* Empty */ }
|
|
32
|
+
|
|
33
|
+
// Attempt to extract shebang (null is returned if not a shebang)
|
|
34
|
+
return shebangCommand(buffer.toString());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
readShebang_1 = readShebang;
|
|
38
|
+
return readShebang_1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.__require = requireReadShebang;
|
|
42
|
+
//# sourceMappingURL=readShebang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readShebang.js","sources":["../../../../../../../../node_modules/cross-spawn/lib/util/readShebang.js"],"sourcesContent":["'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;;;;CAEA,MAAM,EAAE,GAAGA,2BAAa;CACxB,MAAM,cAAc,GAAGC,eAA0B,EAAA;;CAEjD,SAAS,WAAW,CAAC,OAAO,EAAE;AAC9B;KACI,MAAM,IAAI,GAAG,GAAG;KAChB,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;;AAErC,KAAI,IAAI,EAAE;;AAEV,KAAI,IAAI;SACA,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;AACtC,SAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3C,SAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;MACnB,CAAC,OAAO,CAAC,EAAE;;AAEhB;AACA,KAAI,OAAO,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC5C;;AAEA,CAAA,aAAc,GAAG,WAAW;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('node:path');
|
|
4
|
+
var which = require('../../../which/which.js');
|
|
5
|
+
var index = require('../../../path-key/index.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
10
|
+
|
|
11
|
+
var resolveCommand_1;
|
|
12
|
+
var hasRequiredResolveCommand;
|
|
13
|
+
|
|
14
|
+
function requireResolveCommand () {
|
|
15
|
+
if (hasRequiredResolveCommand) return resolveCommand_1;
|
|
16
|
+
hasRequiredResolveCommand = 1;
|
|
17
|
+
|
|
18
|
+
const path = path__default.default;
|
|
19
|
+
const which$1 = which.__require();
|
|
20
|
+
const getPathKey = index.__require();
|
|
21
|
+
|
|
22
|
+
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
23
|
+
const env = parsed.options.env || process.env;
|
|
24
|
+
const cwd = process.cwd();
|
|
25
|
+
const hasCustomCwd = parsed.options.cwd != null;
|
|
26
|
+
// Worker threads do not have process.chdir()
|
|
27
|
+
const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
|
|
28
|
+
|
|
29
|
+
// If a custom `cwd` was specified, we need to change the process cwd
|
|
30
|
+
// because `which` will do stat calls but does not support a custom cwd
|
|
31
|
+
if (shouldSwitchCwd) {
|
|
32
|
+
try {
|
|
33
|
+
process.chdir(parsed.options.cwd);
|
|
34
|
+
} catch (err) {
|
|
35
|
+
/* Empty */
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let resolved;
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
resolved = which$1.sync(parsed.command, {
|
|
43
|
+
path: env[getPathKey({ env })],
|
|
44
|
+
pathExt: withoutPathExt ? path.delimiter : undefined,
|
|
45
|
+
});
|
|
46
|
+
} catch (e) {
|
|
47
|
+
/* Empty */
|
|
48
|
+
} finally {
|
|
49
|
+
if (shouldSwitchCwd) {
|
|
50
|
+
process.chdir(cwd);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// If we successfully resolved, ensure that an absolute path is returned
|
|
55
|
+
// Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
|
|
56
|
+
if (resolved) {
|
|
57
|
+
resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return resolved;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function resolveCommand(parsed) {
|
|
64
|
+
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
resolveCommand_1 = resolveCommand;
|
|
68
|
+
return resolveCommand_1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
exports.__require = requireResolveCommand;
|
|
72
|
+
//# sourceMappingURL=resolveCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveCommand.js","sources":["../../../../../../../../node_modules/cross-spawn/lib/util/resolveCommand.js"],"sourcesContent":["'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n"],"names":["require$$0","which","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;;CAEA,MAAM,IAAI,GAAGA,qBAAe;CAC5B,MAAMC,OAAK,GAAGC,eAAgB,EAAA;CAC9B,MAAM,UAAU,GAAGC,eAAmB,EAAA;;AAEtC,CAAA,SAAS,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE;KACnD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG;AACjD,KAAI,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;KACzB,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,IAAI;AACnD;AACA,KAAI,MAAM,eAAe,GAAG,YAAY,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ;;AAElG;AACA;KACI,IAAI,eAAe,EAAE;AACzB,SAAQ,IAAI;aACA,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;UACpC,CAAC,OAAO,GAAG,EAAE;AACtB;AACA;AACA;;AAEA,KAAI,IAAI,QAAQ;;AAEhB,KAAI,IAAI;SACA,QAAQ,GAAGF,OAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;aAClC,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;aAC9B,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS;AAChE,UAAS,CAAC;MACL,CAAC,OAAO,CAAC,EAAE;AAChB;AACA,MAAK,SAAS;SACN,IAAI,eAAe,EAAE;AAC7B,aAAY,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;AAC9B;AACA;;AAEA;AACA;KACI,IAAI,QAAQ,EAAE;AAClB,SAAQ,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,EAAE,EAAE,QAAQ,CAAC;AACjF;;AAEA,KAAI,OAAO,QAAQ;AACnB;;CAEA,SAAS,cAAc,CAAC,MAAM,EAAE;KAC5B,OAAO,qBAAqB,CAAC,MAAM,CAAC,IAAI,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC;AAC/E;;AAEA,CAAA,gBAAc,GAAG,cAAc;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var appveyor = require('./services/appveyor.js');
|
|
4
|
+
var azurePipelines = require('./services/azure-pipelines.js');
|
|
5
|
+
var bamboo = require('./services/bamboo.js');
|
|
6
|
+
var bitbucket = require('./services/bitbucket.js');
|
|
7
|
+
var bitrise = require('./services/bitrise.js');
|
|
8
|
+
var buddy = require('./services/buddy.js');
|
|
9
|
+
var buildkite = require('./services/buildkite.js');
|
|
10
|
+
var circleci = require('./services/circleci.js');
|
|
11
|
+
var cirrus = require('./services/cirrus.js');
|
|
12
|
+
var cloudflarePages = require('./services/cloudflare-pages.js');
|
|
13
|
+
var codebuild = require('./services/codebuild.js');
|
|
14
|
+
var codefresh = require('./services/codefresh.js');
|
|
15
|
+
var codeship = require('./services/codeship.js');
|
|
16
|
+
var drone = require('./services/drone.js');
|
|
17
|
+
var git = require('./services/git.js');
|
|
18
|
+
var github = require('./services/github.js');
|
|
19
|
+
var gitlab = require('./services/gitlab.js');
|
|
20
|
+
var jenkins = require('./services/jenkins.js');
|
|
21
|
+
var netlify = require('./services/netlify.js');
|
|
22
|
+
var puppet = require('./services/puppet.js');
|
|
23
|
+
var sail = require('./services/sail.js');
|
|
24
|
+
var screwdriver = require('./services/screwdriver.js');
|
|
25
|
+
var scrutinizer = require('./services/scrutinizer.js');
|
|
26
|
+
var semaphore = require('./services/semaphore.js');
|
|
27
|
+
var shippable = require('./services/shippable.js');
|
|
28
|
+
var teamcity = require('./services/teamcity.js');
|
|
29
|
+
var travis = require('./services/travis.js');
|
|
30
|
+
var vela = require('./services/vela.js');
|
|
31
|
+
var vercel = require('./services/vercel.js');
|
|
32
|
+
var wercker = require('./services/wercker.js');
|
|
33
|
+
var woodpecker = require('./services/woodpecker.js');
|
|
34
|
+
var jetbrainsSpace = require('./services/jetbrains-space.js');
|
|
35
|
+
|
|
36
|
+
const services = {
|
|
37
|
+
appveyor,
|
|
38
|
+
azurePipelines,
|
|
39
|
+
bamboo,
|
|
40
|
+
bitbucket,
|
|
41
|
+
bitrise,
|
|
42
|
+
buddy,
|
|
43
|
+
buildkite,
|
|
44
|
+
circleci,
|
|
45
|
+
cirrus,
|
|
46
|
+
cloudflarePages,
|
|
47
|
+
codebuild,
|
|
48
|
+
codefresh,
|
|
49
|
+
codeship,
|
|
50
|
+
drone,
|
|
51
|
+
github,
|
|
52
|
+
gitlab,
|
|
53
|
+
jenkins,
|
|
54
|
+
netlify,
|
|
55
|
+
puppet,
|
|
56
|
+
sail,
|
|
57
|
+
screwdriver,
|
|
58
|
+
scrutinizer,
|
|
59
|
+
semaphore,
|
|
60
|
+
shippable,
|
|
61
|
+
teamcity,
|
|
62
|
+
travis,
|
|
63
|
+
vela,
|
|
64
|
+
vercel,
|
|
65
|
+
wercker,
|
|
66
|
+
woodpecker,
|
|
67
|
+
jetbrainsSpace,
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var envCi = ({ env = process.env, cwd = process.cwd() } = {}) => {
|
|
71
|
+
for (const name of Object.keys(services)) {
|
|
72
|
+
if (services[name].detect({ env, cwd })) {
|
|
73
|
+
return { isCi: true, ...services[name].configuration({ env, cwd }) };
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return { isCi: Boolean(env.CI), ...git.configuration({ env, cwd }) };
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
module.exports = envCi;
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/env-ci/index.js"],"sourcesContent":["import appveyor from \"./services/appveyor.js\";\nimport azurePipelines from \"./services/azure-pipelines.js\";\nimport bamboo from \"./services/bamboo.js\";\nimport bitbucket from \"./services/bitbucket.js\";\nimport bitrise from \"./services/bitrise.js\";\nimport buddy from \"./services/buddy.js\";\nimport buildkite from \"./services/buildkite.js\";\nimport circleci from \"./services/circleci.js\";\nimport cirrus from \"./services/cirrus.js\";\nimport cloudflarePages from \"./services/cloudflare-pages.js\";\nimport codebuild from \"./services/codebuild.js\";\nimport codefresh from \"./services/codefresh.js\";\nimport codeship from \"./services/codeship.js\";\nimport drone from \"./services/drone.js\";\nimport git from \"./services/git.js\";\nimport github from \"./services/github.js\";\nimport gitlab from \"./services/gitlab.js\";\nimport jenkins from \"./services/jenkins.js\";\nimport netlify from \"./services/netlify.js\";\nimport puppet from \"./services/puppet.js\";\nimport sail from \"./services/sail.js\";\nimport screwdriver from \"./services/screwdriver.js\";\nimport scrutinizer from \"./services/scrutinizer.js\";\nimport semaphore from \"./services/semaphore.js\";\nimport shippable from \"./services/shippable.js\";\nimport teamcity from \"./services/teamcity.js\";\nimport travis from \"./services/travis.js\";\nimport vela from \"./services/vela.js\";\nimport vercel from \"./services/vercel.js\";\nimport wercker from \"./services/wercker.js\";\nimport woodpecker from \"./services/woodpecker.js\";\nimport jetbrainsSpace from \"./services/jetbrains-space.js\";\n\nconst services = {\n appveyor,\n azurePipelines,\n bamboo,\n bitbucket,\n bitrise,\n buddy,\n buildkite,\n circleci,\n cirrus,\n cloudflarePages,\n codebuild,\n codefresh,\n codeship,\n drone,\n github,\n gitlab,\n jenkins,\n netlify,\n puppet,\n sail,\n screwdriver,\n scrutinizer,\n semaphore,\n shippable,\n teamcity,\n travis,\n vela,\n vercel,\n wercker,\n woodpecker,\n jetbrainsSpace,\n};\n\nexport default ({ env = process.env, cwd = process.cwd() } = {}) => {\n for (const name of Object.keys(services)) {\n if (services[name].detect({ env, cwd })) {\n return { isCi: true, ...services[name].configuration({ env, cwd }) };\n }\n }\n\n return { isCi: Boolean(env.CI), ...git.configuration({ env, cwd }) };\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MAAM,QAAQ,GAAG;AACjB,EAAE,QAAQ;AACV,EAAE,cAAc;AAChB,EAAE,MAAM;AACR,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE,KAAK;AACP,EAAE,SAAS;AACX,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,eAAe;AACjB,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,QAAQ;AACV,EAAE,KAAK;AACP,EAAE,MAAM;AACR,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,OAAO;AACT,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,WAAW;AACb,EAAE,WAAW;AACb,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,UAAU;AACZ,EAAE,cAAc;AAChB,CAAC;;AAED,YAAe,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK;AACpE,EAAE,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AAC5C,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE;AAC7C,MAAM,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE;AAC1E;AACA;;AAEA,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE;AACtE,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../../execa/index.js');
|
|
4
|
+
|
|
5
|
+
function head(options) {
|
|
6
|
+
try {
|
|
7
|
+
return index.execaSync("git", ["rev-parse", "HEAD"], options).stdout;
|
|
8
|
+
} catch {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function branch(options) {
|
|
14
|
+
try {
|
|
15
|
+
const headRef = index.execaSync(
|
|
16
|
+
"git",
|
|
17
|
+
["rev-parse", "--abbrev-ref", "HEAD"],
|
|
18
|
+
options,
|
|
19
|
+
).stdout;
|
|
20
|
+
|
|
21
|
+
if (headRef === "HEAD") {
|
|
22
|
+
const branch = index.execaSync(
|
|
23
|
+
"git",
|
|
24
|
+
["show", "-s", "--pretty=%d", "HEAD"],
|
|
25
|
+
options,
|
|
26
|
+
)
|
|
27
|
+
.stdout.replace(/^\(|\)$/g, "")
|
|
28
|
+
.split(", ")
|
|
29
|
+
.find((branch) => branch.startsWith("origin/"));
|
|
30
|
+
return branch ? branch.match(/^origin\/(?<branch>.+)/)[1] : undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return headRef;
|
|
34
|
+
} catch {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Match slug on SSH URLs (ex: `USER@HOST:PORT/ORG/REPO.git`)
|
|
40
|
+
const GIT_SSH_URL_SLUG_PATTERN = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/;
|
|
41
|
+
|
|
42
|
+
// Match slug on HTTP(S) URLs `https://github.com/semantic-release/env-ci.git`
|
|
43
|
+
const GIT_PATHNAME_SLUG_PATTERN = /^\/(.*)\.git$/;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Extract repository slug(owner/repo) from a repository URL
|
|
47
|
+
*
|
|
48
|
+
* @param {String} repositoryURL
|
|
49
|
+
* @returns {String | undefined}
|
|
50
|
+
*/
|
|
51
|
+
function getSlugFromGitURL(repositoryURL) {
|
|
52
|
+
if (!repositoryURL) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (repositoryURL.match(GIT_SSH_URL_SLUG_PATTERN)) {
|
|
57
|
+
return repositoryURL.replace(GIT_SSH_URL_SLUG_PATTERN, "$1");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
const url = new URL(repositoryURL);
|
|
62
|
+
return url.pathname.replace(GIT_PATHNAME_SLUG_PATTERN, "$1");
|
|
63
|
+
} catch {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
exports.branch = branch;
|
|
69
|
+
exports.getSlugFromGitURL = getSlugFromGitURL;
|
|
70
|
+
exports.head = head;
|
|
71
|
+
//# sourceMappingURL=git.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.js","sources":["../../../../../../../node_modules/env-ci/lib/git.js"],"sourcesContent":["import { execaSync } from \"execa\";\n\nexport function head(options) {\n try {\n return execaSync(\"git\", [\"rev-parse\", \"HEAD\"], options).stdout;\n } catch {\n return undefined;\n }\n}\n\nexport function branch(options) {\n try {\n const headRef = execaSync(\n \"git\",\n [\"rev-parse\", \"--abbrev-ref\", \"HEAD\"],\n options,\n ).stdout;\n\n if (headRef === \"HEAD\") {\n const branch = execaSync(\n \"git\",\n [\"show\", \"-s\", \"--pretty=%d\", \"HEAD\"],\n options,\n )\n .stdout.replace(/^\\(|\\)$/g, \"\")\n .split(\", \")\n .find((branch) => branch.startsWith(\"origin/\"));\n return branch ? branch.match(/^origin\\/(?<branch>.+)/)[1] : undefined;\n }\n\n return headRef;\n } catch {\n return undefined;\n }\n}\n\n// Match slug on SSH URLs (ex: `USER@HOST:PORT/ORG/REPO.git`)\nconst GIT_SSH_URL_SLUG_PATTERN = /^(?:.*)@(?:.*):(?:\\d+\\/)?(.*)\\.git$/;\n\n// Match slug on HTTP(S) URLs `https://github.com/semantic-release/env-ci.git`\nconst GIT_PATHNAME_SLUG_PATTERN = /^\\/(.*)\\.git$/;\n\n/**\n * Extract repository slug(owner/repo) from a repository URL\n *\n * @param {String} repositoryURL\n * @returns {String | undefined}\n */\nexport function getSlugFromGitURL(repositoryURL) {\n if (!repositoryURL) {\n return undefined;\n }\n\n if (repositoryURL.match(GIT_SSH_URL_SLUG_PATTERN)) {\n return repositoryURL.replace(GIT_SSH_URL_SLUG_PATTERN, \"$1\");\n }\n\n try {\n const url = new URL(repositoryURL);\n return url.pathname.replace(GIT_PATHNAME_SLUG_PATTERN, \"$1\");\n } catch {\n return undefined;\n }\n}\n"],"names":["execaSync"],"mappings":";;;;AAEO,SAAS,IAAI,CAAC,OAAO,EAAE;AAC9B,EAAE,IAAI;AACN,IAAI,OAAOA,eAAS,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,MAAM;AAClE,GAAG,CAAC,MAAM;AACV,IAAI,OAAO,SAAS;AACpB;AACA;;AAEO,SAAS,MAAM,CAAC,OAAO,EAAE;AAChC,EAAE,IAAI;AACN,IAAI,MAAM,OAAO,GAAGA,eAAS;AAC7B,MAAM,KAAK;AACX,MAAM,CAAC,WAAW,EAAE,cAAc,EAAE,MAAM,CAAC;AAC3C,MAAM,OAAO;AACb,KAAK,CAAC,MAAM;;AAEZ,IAAI,IAAI,OAAO,KAAK,MAAM,EAAE;AAC5B,MAAM,MAAM,MAAM,GAAGA,eAAS;AAC9B,QAAQ,KAAK;AACb,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,CAAC;AAC7C,QAAQ,OAAO;AACf;AACA,SAAS,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE;AACtC,SAAS,KAAK,CAAC,IAAI;AACnB,SAAS,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACvD,MAAM,OAAO,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;AAC3E;;AAEA,IAAI,OAAO,OAAO;AAClB,GAAG,CAAC,MAAM;AACV,IAAI,OAAO,SAAS;AACpB;AACA;;AAEA;AACA,MAAM,wBAAwB,GAAG,qCAAqC;;AAEtE;AACA,MAAM,yBAAyB,GAAG,eAAe;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,aAAa,EAAE;AACjD,EAAE,IAAI,CAAC,aAAa,EAAE;AACtB,IAAI,OAAO,SAAS;AACpB;;AAEA,EAAE,IAAI,aAAa,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAAE;AACrD,IAAI,OAAO,aAAa,CAAC,OAAO,CAAC,wBAAwB,EAAE,IAAI,CAAC;AAChE;;AAEA,EAAE,IAAI;AACN,IAAI,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC;AACtC,IAAI,OAAO,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,yBAAyB,EAAE,IAAI,CAAC;AAChE,GAAG,CAAC,MAAM;AACV,IAAI,OAAO,SAAS;AACpB;AACA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function prNumber(pr) {
|
|
4
|
+
return (/\d+(?!.*\d+)/.exec(pr) || [])[0];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function parseBranch(branch) {
|
|
8
|
+
return branch
|
|
9
|
+
? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(branch)[1]
|
|
10
|
+
: undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.parseBranch = parseBranch;
|
|
14
|
+
exports.prNumber = prNumber;
|
|
15
|
+
//# sourceMappingURL=utils.js.map
|