@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.
Files changed (395) hide show
  1. package/lib/cjs/__/cross-spawn/index.js +59 -0
  2. package/lib/cjs/__/cross-spawn/index.js.map +1 -0
  3. package/lib/cjs/__/cross-spawn/lib/enoent.js +71 -0
  4. package/lib/cjs/__/cross-spawn/lib/enoent.js.map +1 -0
  5. package/lib/cjs/__/cross-spawn/lib/parse.js +112 -0
  6. package/lib/cjs/__/cross-spawn/lib/parse.js.map +1 -0
  7. package/lib/cjs/__/cross-spawn/lib/util/escape.js +60 -0
  8. package/lib/cjs/__/cross-spawn/lib/util/escape.js.map +1 -0
  9. package/lib/cjs/__/cross-spawn/lib/util/readShebang.js +42 -0
  10. package/lib/cjs/__/cross-spawn/lib/util/readShebang.js.map +1 -0
  11. package/lib/cjs/__/cross-spawn/lib/util/resolveCommand.js +72 -0
  12. package/lib/cjs/__/cross-spawn/lib/util/resolveCommand.js.map +1 -0
  13. package/lib/cjs/__/env-ci/index.js +81 -0
  14. package/lib/cjs/__/env-ci/index.js.map +1 -0
  15. package/lib/cjs/__/env-ci/lib/git.js +71 -0
  16. package/lib/cjs/__/env-ci/lib/git.js.map +1 -0
  17. package/lib/cjs/__/env-ci/lib/utils.js +15 -0
  18. package/lib/cjs/__/env-ci/lib/utils.js.map +1 -0
  19. package/lib/cjs/__/env-ci/services/appveyor.js +33 -0
  20. package/lib/cjs/__/env-ci/services/appveyor.js.map +1 -0
  21. package/lib/cjs/__/env-ci/services/azure-pipelines.js +35 -0
  22. package/lib/cjs/__/env-ci/services/azure-pipelines.js.map +1 -0
  23. package/lib/cjs/__/env-ci/services/bamboo.js +24 -0
  24. package/lib/cjs/__/env-ci/services/bamboo.js.map +1 -0
  25. package/lib/cjs/__/env-ci/services/bitbucket.js +25 -0
  26. package/lib/cjs/__/env-ci/services/bitbucket.js.map +1 -0
  27. package/lib/cjs/__/env-ci/services/bitrise.js +33 -0
  28. package/lib/cjs/__/env-ci/services/bitrise.js.map +1 -0
  29. package/lib/cjs/__/env-ci/services/buddy.js +34 -0
  30. package/lib/cjs/__/env-ci/services/buddy.js.map +1 -0
  31. package/lib/cjs/__/env-ci/services/buildkite.js +38 -0
  32. package/lib/cjs/__/env-ci/services/buildkite.js.map +1 -0
  33. package/lib/cjs/__/env-ci/services/circleci.js +36 -0
  34. package/lib/cjs/__/env-ci/services/circleci.js.map +1 -0
  35. package/lib/cjs/__/env-ci/services/cirrus.js +35 -0
  36. package/lib/cjs/__/env-ci/services/cirrus.js.map +1 -0
  37. package/lib/cjs/__/env-ci/services/cloudflare-pages.js +21 -0
  38. package/lib/cjs/__/env-ci/services/cloudflare-pages.js.map +1 -0
  39. package/lib/cjs/__/env-ci/services/codebuild.js +25 -0
  40. package/lib/cjs/__/env-ci/services/codebuild.js.map +1 -0
  41. package/lib/cjs/__/env-ci/services/codefresh.js +30 -0
  42. package/lib/cjs/__/env-ci/services/codefresh.js.map +1 -0
  43. package/lib/cjs/__/env-ci/services/codeship.js +23 -0
  44. package/lib/cjs/__/env-ci/services/codeship.js.map +1 -0
  45. package/lib/cjs/__/env-ci/services/drone.js +32 -0
  46. package/lib/cjs/__/env-ci/services/drone.js.map +1 -0
  47. package/lib/cjs/__/env-ci/services/git.js +12 -0
  48. package/lib/cjs/__/env-ci/services/git.js.map +1 -0
  49. package/lib/cjs/__/env-ci/services/github.js +65 -0
  50. package/lib/cjs/__/env-ci/services/github.js.map +1 -0
  51. package/lib/cjs/__/env-ci/services/gitlab.js +35 -0
  52. package/lib/cjs/__/env-ci/services/gitlab.js.map +1 -0
  53. package/lib/cjs/__/env-ci/services/jenkins.js +40 -0
  54. package/lib/cjs/__/env-ci/services/jenkins.js.map +1 -0
  55. package/lib/cjs/__/env-ci/services/jetbrains-space.js +29 -0
  56. package/lib/cjs/__/env-ci/services/jetbrains-space.js.map +1 -0
  57. package/lib/cjs/__/env-ci/services/netlify.js +29 -0
  58. package/lib/cjs/__/env-ci/services/netlify.js.map +1 -0
  59. package/lib/cjs/__/env-ci/services/puppet.js +23 -0
  60. package/lib/cjs/__/env-ci/services/puppet.js.map +1 -0
  61. package/lib/cjs/__/env-ci/services/sail.js +27 -0
  62. package/lib/cjs/__/env-ci/services/sail.js.map +1 -0
  63. package/lib/cjs/__/env-ci/services/screwdriver.js +31 -0
  64. package/lib/cjs/__/env-ci/services/screwdriver.js.map +1 -0
  65. package/lib/cjs/__/env-ci/services/scrutinizer.js +27 -0
  66. package/lib/cjs/__/env-ci/services/scrutinizer.js.map +1 -0
  67. package/lib/cjs/__/env-ci/services/semaphore.js +34 -0
  68. package/lib/cjs/__/env-ci/services/semaphore.js.map +1 -0
  69. package/lib/cjs/__/env-ci/services/shippable.js +32 -0
  70. package/lib/cjs/__/env-ci/services/shippable.js.map +1 -0
  71. package/lib/cjs/__/env-ci/services/teamcity.js +64 -0
  72. package/lib/cjs/__/env-ci/services/teamcity.js.map +1 -0
  73. package/lib/cjs/__/env-ci/services/travis.js +34 -0
  74. package/lib/cjs/__/env-ci/services/travis.js.map +1 -0
  75. package/lib/cjs/__/env-ci/services/vela.js +32 -0
  76. package/lib/cjs/__/env-ci/services/vela.js.map +1 -0
  77. package/lib/cjs/__/env-ci/services/vercel.js +34 -0
  78. package/lib/cjs/__/env-ci/services/vercel.js.map +1 -0
  79. package/lib/cjs/__/env-ci/services/wercker.js +24 -0
  80. package/lib/cjs/__/env-ci/services/wercker.js.map +1 -0
  81. package/lib/cjs/__/env-ci/services/woodpecker.js +32 -0
  82. package/lib/cjs/__/env-ci/services/woodpecker.js.map +1 -0
  83. package/lib/cjs/__/execa/index.js +149 -0
  84. package/lib/cjs/__/execa/index.js.map +1 -0
  85. package/lib/cjs/__/execa/lib/command.js +27 -0
  86. package/lib/cjs/__/execa/lib/command.js.map +1 -0
  87. package/lib/cjs/__/execa/lib/error.js +92 -0
  88. package/lib/cjs/__/execa/lib/error.js.map +1 -0
  89. package/lib/cjs/__/execa/lib/promise.js +10 -0
  90. package/lib/cjs/__/execa/lib/promise.js.map +1 -0
  91. package/lib/cjs/__/execa/lib/stdio.js +35 -0
  92. package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
  93. package/lib/cjs/__/execa/lib/stream.js +35 -0
  94. package/lib/cjs/__/execa/lib/stream.js.map +1 -0
  95. package/lib/cjs/__/execa/lib/verbose.js +29 -0
  96. package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
  97. package/lib/cjs/__/get-stream/source/array-buffer.js +4 -0
  98. package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
  99. package/lib/cjs/__/human-signals/build/src/core.js +276 -0
  100. package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
  101. package/lib/cjs/__/human-signals/build/src/main.js +72 -0
  102. package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
  103. package/lib/cjs/__/human-signals/build/src/realtime.js +21 -0
  104. package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
  105. package/lib/cjs/__/human-signals/build/src/signals.js +36 -0
  106. package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
  107. package/lib/cjs/__/is-stream/index.js +10 -0
  108. package/lib/cjs/__/is-stream/index.js.map +1 -0
  109. package/lib/cjs/__/isexe/index.js +73 -0
  110. package/lib/cjs/__/isexe/index.js.map +1 -0
  111. package/lib/cjs/__/isexe/mode.js +60 -0
  112. package/lib/cjs/__/isexe/mode.js.map +1 -0
  113. package/lib/cjs/__/isexe/windows.js +61 -0
  114. package/lib/cjs/__/isexe/windows.js.map +1 -0
  115. package/lib/cjs/__/java-properties/dist-node/index.js +234 -0
  116. package/lib/cjs/__/java-properties/dist-node/index.js.map +1 -0
  117. package/lib/cjs/__/merge-stream/index.js +59 -0
  118. package/lib/cjs/__/merge-stream/index.js.map +1 -0
  119. package/lib/cjs/__/npm-run-path/__/path-key/index.js +17 -0
  120. package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
  121. package/lib/cjs/__/npm-run-path/index.js +63 -0
  122. package/lib/cjs/__/npm-run-path/index.js.map +1 -0
  123. package/lib/cjs/__/path-key/index.js +29 -0
  124. package/lib/cjs/__/path-key/index.js.map +1 -0
  125. package/lib/cjs/__/shebang-command/index.js +33 -0
  126. package/lib/cjs/__/shebang-command/index.js.map +1 -0
  127. package/lib/cjs/__/shebang-regex/index.js +14 -0
  128. package/lib/cjs/__/shebang-regex/index.js.map +1 -0
  129. package/lib/cjs/__/signal-exit/dist/mjs/index.js +253 -0
  130. package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
  131. package/lib/cjs/__/signal-exit/dist/mjs/signals.js +43 -0
  132. package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
  133. package/lib/cjs/__/strip-final-newline/index.js +19 -0
  134. package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
  135. package/lib/cjs/__/which/which.js +145 -0
  136. package/lib/cjs/__/which/which.js.map +1 -0
  137. package/lib/cjs/_virtual/_commonjsHelpers.js +11 -0
  138. package/lib/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  139. package/lib/cjs/_virtual/escape.js +6 -0
  140. package/lib/cjs/_virtual/escape.js.map +1 -0
  141. package/lib/cjs/_virtual/index.js +10 -0
  142. package/lib/cjs/_virtual/index.js.map +1 -0
  143. package/lib/cjs/_virtual/index2.js +6 -0
  144. package/lib/cjs/_virtual/index2.js.map +1 -0
  145. package/lib/cjs/_virtual/index3.js +10 -0
  146. package/lib/cjs/_virtual/index3.js.map +1 -0
  147. package/lib/cjs/_virtual/index4.js +6 -0
  148. package/lib/cjs/_virtual/index4.js.map +1 -0
  149. package/lib/cjs/_virtual/index5.js +6 -0
  150. package/lib/cjs/_virtual/index5.js.map +1 -0
  151. package/lib/cjs/_virtual/index6.js +6 -0
  152. package/lib/cjs/_virtual/index6.js.map +1 -0
  153. package/lib/cjs/artifacts/filter-artifacts.js +27 -0
  154. package/lib/cjs/artifacts/filter-artifacts.js.map +1 -0
  155. package/lib/cjs/artifacts/validate-webpack-stats.js +18 -0
  156. package/lib/cjs/artifacts/validate-webpack-stats.js.map +1 -0
  157. package/lib/cjs/artifacts.js +10 -0
  158. package/lib/cjs/artifacts.js.map +1 -0
  159. package/lib/cjs/constants.js +10 -0
  160. package/lib/cjs/constants.js.map +1 -0
  161. package/lib/cjs/index.js +33 -0
  162. package/lib/cjs/index.js.map +1 -0
  163. package/lib/cjs/ingest/ingest.js +85 -0
  164. package/lib/cjs/ingest/ingest.js.map +1 -0
  165. package/lib/cjs/ingest.js +8 -0
  166. package/lib/cjs/ingest.js.map +1 -0
  167. package/lib/cjs/locales/en.js +27 -0
  168. package/lib/cjs/locales/en.js.map +1 -0
  169. package/lib/cjs/package.json +1 -0
  170. package/lib/cjs/utils/debug.js +13 -0
  171. package/lib/cjs/utils/debug.js.map +1 -0
  172. package/lib/cjs/utils/get-commit-message.js +21 -0
  173. package/lib/cjs/utils/get-commit-message.js.map +1 -0
  174. package/lib/cjs/utils/get-env-vars.js +56 -0
  175. package/lib/cjs/utils/get-env-vars.js.map +1 -0
  176. package/lib/cjs/utils/get-slug.js +44 -0
  177. package/lib/cjs/utils/get-slug.js.map +1 -0
  178. package/lib/cjs/utils/log-response.js +19 -0
  179. package/lib/cjs/utils/log-response.js.map +1 -0
  180. package/lib/cjs/utils/logger.js +16 -0
  181. package/lib/cjs/utils/logger.js.map +1 -0
  182. package/lib/cjs/utils/mask-object-property.js +27 -0
  183. package/lib/cjs/utils/mask-object-property.js.map +1 -0
  184. package/lib/cjs/utils/normalize-params.js +62 -0
  185. package/lib/cjs/utils/normalize-params.js.map +1 -0
  186. package/lib/cjs/utils.js +23 -0
  187. package/lib/cjs/utils.js.map +1 -0
  188. package/lib/esm/__/cross-spawn/index.js +53 -0
  189. package/lib/esm/__/cross-spawn/index.js.map +1 -0
  190. package/lib/esm/__/cross-spawn/lib/enoent.js +69 -0
  191. package/lib/esm/__/cross-spawn/lib/enoent.js.map +1 -0
  192. package/lib/esm/__/cross-spawn/lib/parse.js +106 -0
  193. package/lib/esm/__/cross-spawn/lib/parse.js.map +1 -0
  194. package/lib/esm/__/cross-spawn/lib/util/escape.js +58 -0
  195. package/lib/esm/__/cross-spawn/lib/util/escape.js.map +1 -0
  196. package/lib/esm/__/cross-spawn/lib/util/readShebang.js +36 -0
  197. package/lib/esm/__/cross-spawn/lib/util/readShebang.js.map +1 -0
  198. package/lib/esm/__/cross-spawn/lib/util/resolveCommand.js +66 -0
  199. package/lib/esm/__/cross-spawn/lib/util/resolveCommand.js.map +1 -0
  200. package/lib/esm/__/env-ci/index.js +79 -0
  201. package/lib/esm/__/env-ci/index.js.map +1 -0
  202. package/lib/esm/__/env-ci/lib/git.js +67 -0
  203. package/lib/esm/__/env-ci/lib/git.js.map +1 -0
  204. package/lib/esm/__/env-ci/lib/utils.js +12 -0
  205. package/lib/esm/__/env-ci/lib/utils.js.map +1 -0
  206. package/lib/esm/__/env-ci/services/appveyor.js +31 -0
  207. package/lib/esm/__/env-ci/services/appveyor.js.map +1 -0
  208. package/lib/esm/__/env-ci/services/azure-pipelines.js +33 -0
  209. package/lib/esm/__/env-ci/services/azure-pipelines.js.map +1 -0
  210. package/lib/esm/__/env-ci/services/bamboo.js +22 -0
  211. package/lib/esm/__/env-ci/services/bamboo.js.map +1 -0
  212. package/lib/esm/__/env-ci/services/bitbucket.js +23 -0
  213. package/lib/esm/__/env-ci/services/bitbucket.js.map +1 -0
  214. package/lib/esm/__/env-ci/services/bitrise.js +31 -0
  215. package/lib/esm/__/env-ci/services/bitrise.js.map +1 -0
  216. package/lib/esm/__/env-ci/services/buddy.js +32 -0
  217. package/lib/esm/__/env-ci/services/buddy.js.map +1 -0
  218. package/lib/esm/__/env-ci/services/buildkite.js +36 -0
  219. package/lib/esm/__/env-ci/services/buildkite.js.map +1 -0
  220. package/lib/esm/__/env-ci/services/circleci.js +34 -0
  221. package/lib/esm/__/env-ci/services/circleci.js.map +1 -0
  222. package/lib/esm/__/env-ci/services/cirrus.js +33 -0
  223. package/lib/esm/__/env-ci/services/cirrus.js.map +1 -0
  224. package/lib/esm/__/env-ci/services/cloudflare-pages.js +19 -0
  225. package/lib/esm/__/env-ci/services/cloudflare-pages.js.map +1 -0
  226. package/lib/esm/__/env-ci/services/codebuild.js +23 -0
  227. package/lib/esm/__/env-ci/services/codebuild.js.map +1 -0
  228. package/lib/esm/__/env-ci/services/codefresh.js +28 -0
  229. package/lib/esm/__/env-ci/services/codefresh.js.map +1 -0
  230. package/lib/esm/__/env-ci/services/codeship.js +21 -0
  231. package/lib/esm/__/env-ci/services/codeship.js.map +1 -0
  232. package/lib/esm/__/env-ci/services/drone.js +30 -0
  233. package/lib/esm/__/env-ci/services/drone.js.map +1 -0
  234. package/lib/esm/__/env-ci/services/git.js +10 -0
  235. package/lib/esm/__/env-ci/services/git.js.map +1 -0
  236. package/lib/esm/__/env-ci/services/github.js +63 -0
  237. package/lib/esm/__/env-ci/services/github.js.map +1 -0
  238. package/lib/esm/__/env-ci/services/gitlab.js +33 -0
  239. package/lib/esm/__/env-ci/services/gitlab.js.map +1 -0
  240. package/lib/esm/__/env-ci/services/jenkins.js +38 -0
  241. package/lib/esm/__/env-ci/services/jenkins.js.map +1 -0
  242. package/lib/esm/__/env-ci/services/jetbrains-space.js +27 -0
  243. package/lib/esm/__/env-ci/services/jetbrains-space.js.map +1 -0
  244. package/lib/esm/__/env-ci/services/netlify.js +27 -0
  245. package/lib/esm/__/env-ci/services/netlify.js.map +1 -0
  246. package/lib/esm/__/env-ci/services/puppet.js +21 -0
  247. package/lib/esm/__/env-ci/services/puppet.js.map +1 -0
  248. package/lib/esm/__/env-ci/services/sail.js +25 -0
  249. package/lib/esm/__/env-ci/services/sail.js.map +1 -0
  250. package/lib/esm/__/env-ci/services/screwdriver.js +29 -0
  251. package/lib/esm/__/env-ci/services/screwdriver.js.map +1 -0
  252. package/lib/esm/__/env-ci/services/scrutinizer.js +25 -0
  253. package/lib/esm/__/env-ci/services/scrutinizer.js.map +1 -0
  254. package/lib/esm/__/env-ci/services/semaphore.js +32 -0
  255. package/lib/esm/__/env-ci/services/semaphore.js.map +1 -0
  256. package/lib/esm/__/env-ci/services/shippable.js +30 -0
  257. package/lib/esm/__/env-ci/services/shippable.js.map +1 -0
  258. package/lib/esm/__/env-ci/services/teamcity.js +62 -0
  259. package/lib/esm/__/env-ci/services/teamcity.js.map +1 -0
  260. package/lib/esm/__/env-ci/services/travis.js +32 -0
  261. package/lib/esm/__/env-ci/services/travis.js.map +1 -0
  262. package/lib/esm/__/env-ci/services/vela.js +30 -0
  263. package/lib/esm/__/env-ci/services/vela.js.map +1 -0
  264. package/lib/esm/__/env-ci/services/vercel.js +32 -0
  265. package/lib/esm/__/env-ci/services/vercel.js.map +1 -0
  266. package/lib/esm/__/env-ci/services/wercker.js +22 -0
  267. package/lib/esm/__/env-ci/services/wercker.js.map +1 -0
  268. package/lib/esm/__/env-ci/services/woodpecker.js +30 -0
  269. package/lib/esm/__/env-ci/services/woodpecker.js.map +1 -0
  270. package/lib/esm/__/execa/index.js +141 -0
  271. package/lib/esm/__/execa/index.js.map +1 -0
  272. package/lib/esm/__/execa/lib/command.js +24 -0
  273. package/lib/esm/__/execa/lib/command.js.map +1 -0
  274. package/lib/esm/__/execa/lib/error.js +86 -0
  275. package/lib/esm/__/execa/lib/error.js.map +1 -0
  276. package/lib/esm/__/execa/lib/promise.js +8 -0
  277. package/lib/esm/__/execa/lib/promise.js.map +1 -0
  278. package/lib/esm/__/execa/lib/stdio.js +33 -0
  279. package/lib/esm/__/execa/lib/stdio.js.map +1 -0
  280. package/lib/esm/__/execa/lib/stream.js +33 -0
  281. package/lib/esm/__/execa/lib/stream.js.map +1 -0
  282. package/lib/esm/__/execa/lib/verbose.js +22 -0
  283. package/lib/esm/__/execa/lib/verbose.js.map +1 -0
  284. package/lib/esm/__/get-stream/source/array-buffer.js +2 -0
  285. package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
  286. package/lib/esm/__/human-signals/build/src/core.js +274 -0
  287. package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
  288. package/lib/esm/__/human-signals/build/src/main.js +70 -0
  289. package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
  290. package/lib/esm/__/human-signals/build/src/realtime.js +18 -0
  291. package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
  292. package/lib/esm/__/human-signals/build/src/signals.js +34 -0
  293. package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
  294. package/lib/esm/__/is-stream/index.js +8 -0
  295. package/lib/esm/__/is-stream/index.js.map +1 -0
  296. package/lib/esm/__/isexe/index.js +71 -0
  297. package/lib/esm/__/isexe/index.js.map +1 -0
  298. package/lib/esm/__/isexe/mode.js +54 -0
  299. package/lib/esm/__/isexe/mode.js.map +1 -0
  300. package/lib/esm/__/isexe/windows.js +55 -0
  301. package/lib/esm/__/isexe/windows.js.map +1 -0
  302. package/lib/esm/__/java-properties/dist-node/index.js +228 -0
  303. package/lib/esm/__/java-properties/dist-node/index.js.map +1 -0
  304. package/lib/esm/__/merge-stream/index.js +53 -0
  305. package/lib/esm/__/merge-stream/index.js.map +1 -0
  306. package/lib/esm/__/npm-run-path/__/path-key/index.js +15 -0
  307. package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
  308. package/lib/esm/__/npm-run-path/index.js +55 -0
  309. package/lib/esm/__/npm-run-path/index.js.map +1 -0
  310. package/lib/esm/__/path-key/index.js +27 -0
  311. package/lib/esm/__/path-key/index.js.map +1 -0
  312. package/lib/esm/__/shebang-command/index.js +31 -0
  313. package/lib/esm/__/shebang-command/index.js.map +1 -0
  314. package/lib/esm/__/shebang-regex/index.js +12 -0
  315. package/lib/esm/__/shebang-regex/index.js.map +1 -0
  316. package/lib/esm/__/signal-exit/dist/mjs/index.js +251 -0
  317. package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
  318. package/lib/esm/__/signal-exit/dist/mjs/signals.js +41 -0
  319. package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
  320. package/lib/esm/__/strip-final-newline/index.js +17 -0
  321. package/lib/esm/__/strip-final-newline/index.js.map +1 -0
  322. package/lib/esm/__/which/which.js +139 -0
  323. package/lib/esm/__/which/which.js.map +1 -0
  324. package/lib/esm/_virtual/_commonjsHelpers.js +8 -0
  325. package/lib/esm/_virtual/_commonjsHelpers.js.map +1 -0
  326. package/lib/esm/_virtual/escape.js +4 -0
  327. package/lib/esm/_virtual/escape.js.map +1 -0
  328. package/lib/esm/_virtual/index.js +8 -0
  329. package/lib/esm/_virtual/index.js.map +1 -0
  330. package/lib/esm/_virtual/index2.js +4 -0
  331. package/lib/esm/_virtual/index2.js.map +1 -0
  332. package/lib/esm/_virtual/index3.js +8 -0
  333. package/lib/esm/_virtual/index3.js.map +1 -0
  334. package/lib/esm/_virtual/index4.js +4 -0
  335. package/lib/esm/_virtual/index4.js.map +1 -0
  336. package/lib/esm/_virtual/index5.js +4 -0
  337. package/lib/esm/_virtual/index5.js.map +1 -0
  338. package/lib/esm/_virtual/index6.js +4 -0
  339. package/lib/esm/_virtual/index6.js.map +1 -0
  340. package/lib/esm/artifacts/filter-artifacts.js +20 -0
  341. package/lib/esm/artifacts/filter-artifacts.js.map +1 -0
  342. package/lib/esm/artifacts/validate-webpack-stats.js +12 -0
  343. package/lib/esm/artifacts/validate-webpack-stats.js.map +1 -0
  344. package/lib/esm/artifacts.js +3 -0
  345. package/lib/esm/artifacts.js.map +1 -0
  346. package/lib/esm/constants.js +6 -0
  347. package/lib/esm/constants.js.map +1 -0
  348. package/lib/esm/index.js +13 -0
  349. package/lib/esm/index.js.map +1 -0
  350. package/lib/esm/ingest/ingest.js +78 -0
  351. package/lib/esm/ingest/ingest.js.map +1 -0
  352. package/lib/esm/ingest.js +6 -0
  353. package/lib/esm/ingest.js.map +1 -0
  354. package/lib/esm/locales/en.js +15 -0
  355. package/lib/esm/locales/en.js.map +1 -0
  356. package/lib/esm/package.json +1 -0
  357. package/lib/esm/utils/debug.js +7 -0
  358. package/lib/esm/utils/debug.js.map +1 -0
  359. package/lib/esm/utils/get-commit-message.js +15 -0
  360. package/lib/esm/utils/get-commit-message.js.map +1 -0
  361. package/lib/esm/utils/get-env-vars.js +54 -0
  362. package/lib/esm/utils/get-env-vars.js.map +1 -0
  363. package/lib/esm/utils/get-slug.js +41 -0
  364. package/lib/esm/utils/get-slug.js.map +1 -0
  365. package/lib/esm/utils/log-response.js +17 -0
  366. package/lib/esm/utils/log-response.js.map +1 -0
  367. package/lib/esm/utils/logger.js +14 -0
  368. package/lib/esm/utils/logger.js.map +1 -0
  369. package/lib/esm/utils/mask-object-property.js +21 -0
  370. package/lib/esm/utils/mask-object-property.js.map +1 -0
  371. package/lib/esm/utils/normalize-params.js +60 -0
  372. package/lib/esm/utils/normalize-params.js.map +1 -0
  373. package/lib/esm/utils.js +9 -0
  374. package/lib/esm/utils.js.map +1 -0
  375. package/lib/types/artifacts/filter-artifacts.d.ts +10 -0
  376. package/lib/types/artifacts/index.d.ts +2 -0
  377. package/lib/types/artifacts/validate-webpack-stats.d.ts +1 -0
  378. package/lib/types/constants.d.ts +111 -0
  379. package/lib/types/index.d.ts +4 -0
  380. package/lib/types/ingest/index.d.ts +2 -0
  381. package/lib/types/ingest/ingest.d.ts +3 -0
  382. package/lib/types/ingest/ingest.test.d.ts +1 -0
  383. package/lib/types/locales/en.d.ts +11 -0
  384. package/lib/types/utils/debug.d.ts +2 -0
  385. package/lib/types/utils/get-commit-message.d.ts +1 -0
  386. package/lib/types/utils/get-env-vars.d.ts +5 -0
  387. package/lib/types/utils/get-slug.d.ts +9 -0
  388. package/lib/types/utils/get-slug.test.d.ts +1 -0
  389. package/lib/types/utils/index.d.ts +8 -0
  390. package/lib/types/utils/log-response.d.ts +8 -0
  391. package/lib/types/utils/logger.d.ts +12 -0
  392. package/lib/types/utils/mask-object-property.d.ts +1 -0
  393. package/lib/types/utils/normalize-params.d.ts +8 -0
  394. package/package.json +91 -0
  395. package/typings.d.ts +5 -0
@@ -0,0 +1,69 @@
1
+ var enoent;
2
+ var hasRequiredEnoent;
3
+
4
+ function requireEnoent () {
5
+ if (hasRequiredEnoent) return enoent;
6
+ hasRequiredEnoent = 1;
7
+
8
+ const isWin = process.platform === 'win32';
9
+
10
+ function notFoundError(original, syscall) {
11
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
12
+ code: 'ENOENT',
13
+ errno: 'ENOENT',
14
+ syscall: `${syscall} ${original.command}`,
15
+ path: original.command,
16
+ spawnargs: original.args,
17
+ });
18
+ }
19
+
20
+ function hookChildProcess(cp, parsed) {
21
+ if (!isWin) {
22
+ return;
23
+ }
24
+
25
+ const originalEmit = cp.emit;
26
+
27
+ cp.emit = function (name, arg1) {
28
+ // If emitting "exit" event and exit code is 1, we need to check if
29
+ // the command exists and emit an "error" instead
30
+ // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
31
+ if (name === 'exit') {
32
+ const err = verifyENOENT(arg1, parsed);
33
+
34
+ if (err) {
35
+ return originalEmit.call(cp, 'error', err);
36
+ }
37
+ }
38
+
39
+ return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
40
+ };
41
+ }
42
+
43
+ function verifyENOENT(status, parsed) {
44
+ if (isWin && status === 1 && !parsed.file) {
45
+ return notFoundError(parsed.original, 'spawn');
46
+ }
47
+
48
+ return null;
49
+ }
50
+
51
+ function verifyENOENTSync(status, parsed) {
52
+ if (isWin && status === 1 && !parsed.file) {
53
+ return notFoundError(parsed.original, 'spawnSync');
54
+ }
55
+
56
+ return null;
57
+ }
58
+
59
+ enoent = {
60
+ hookChildProcess,
61
+ verifyENOENT,
62
+ verifyENOENTSync,
63
+ notFoundError,
64
+ };
65
+ return enoent;
66
+ }
67
+
68
+ export { requireEnoent as __require };
69
+ //# 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,106 @@
1
+ import path from 'node:path';
2
+ import { __require as requireResolveCommand } from './util/resolveCommand.js';
3
+ import { __require as require_escape } from './util/escape.js';
4
+ import { __require as requireReadShebang } from './util/readShebang.js';
5
+
6
+ var parse_1;
7
+ var hasRequiredParse;
8
+
9
+ function requireParse () {
10
+ if (hasRequiredParse) return parse_1;
11
+ hasRequiredParse = 1;
12
+
13
+ const path$1 = path;
14
+ const resolveCommand = requireResolveCommand();
15
+ const escape = require_escape();
16
+ const readShebang = requireReadShebang();
17
+
18
+ const isWin = process.platform === 'win32';
19
+ const isExecutableRegExp = /\.(?:com|exe)$/i;
20
+ const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
21
+
22
+ function detectShebang(parsed) {
23
+ parsed.file = resolveCommand(parsed);
24
+
25
+ const shebang = parsed.file && readShebang(parsed.file);
26
+
27
+ if (shebang) {
28
+ parsed.args.unshift(parsed.file);
29
+ parsed.command = shebang;
30
+
31
+ return resolveCommand(parsed);
32
+ }
33
+
34
+ return parsed.file;
35
+ }
36
+
37
+ function parseNonShell(parsed) {
38
+ if (!isWin) {
39
+ return parsed;
40
+ }
41
+
42
+ // Detect & add support for shebangs
43
+ const commandFile = detectShebang(parsed);
44
+
45
+ // We don't need a shell if the command filename is an executable
46
+ const needsShell = !isExecutableRegExp.test(commandFile);
47
+
48
+ // If a shell is required, use cmd.exe and take care of escaping everything correctly
49
+ // Note that `forceShell` is an hidden option used only in tests
50
+ if (parsed.options.forceShell || needsShell) {
51
+ // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
52
+ // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
53
+ // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
54
+ // we need to double escape them
55
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
56
+
57
+ // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
58
+ // This is necessary otherwise it will always fail with ENOENT in those cases
59
+ parsed.command = path$1.normalize(parsed.command);
60
+
61
+ // Escape command & arguments
62
+ parsed.command = escape.command(parsed.command);
63
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
64
+
65
+ const shellCommand = [parsed.command].concat(parsed.args).join(' ');
66
+
67
+ parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
68
+ parsed.command = process.env.comspec || 'cmd.exe';
69
+ parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
70
+ }
71
+
72
+ return parsed;
73
+ }
74
+
75
+ function parse(command, args, options) {
76
+ // Normalize arguments, similar to nodejs
77
+ if (args && !Array.isArray(args)) {
78
+ options = args;
79
+ args = null;
80
+ }
81
+
82
+ args = args ? args.slice(0) : []; // Clone array to avoid changing the original
83
+ options = Object.assign({}, options); // Clone object to avoid changing the original
84
+
85
+ // Build our parsed object
86
+ const parsed = {
87
+ command,
88
+ args,
89
+ options,
90
+ file: undefined,
91
+ original: {
92
+ command,
93
+ args,
94
+ },
95
+ };
96
+
97
+ // Delegate further parsing to shell or non-shell
98
+ return options.shell ? parsed : parseNonShell(parsed);
99
+ }
100
+
101
+ parse_1 = parse;
102
+ return parse_1;
103
+ }
104
+
105
+ export { requireParse as __require };
106
+ //# 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":["path","require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;CAEA,MAAMA,MAAI,GAAGC,IAAe;CAC5B,MAAM,cAAc,GAAGC,qBAAgC,EAAA;CACvD,MAAM,MAAM,GAAGC,cAAwB,EAAA;CACvC,MAAM,WAAW,GAAGC,kBAA6B,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,GAAG,cAAc,CAAC,MAAM,CAAC;;AAExC,KAAI,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,IAAI,WAAW,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,OAAO,cAAc,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,GAAGJ,MAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;;AAEvD;SACQ,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;SAC/C,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,MAAM,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,58 @@
1
+ import { __exports as _escape } from '../../../../_virtual/escape.js';
2
+
3
+ var hasRequired_escape;
4
+
5
+ function require_escape () {
6
+ if (hasRequired_escape) return _escape;
7
+ hasRequired_escape = 1;
8
+
9
+ // See http://www.robvanderwoude.com/escapechars.php
10
+ const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
11
+
12
+ function escapeCommand(arg) {
13
+ // Escape meta chars
14
+ arg = arg.replace(metaCharsRegExp, '^$1');
15
+
16
+ return arg;
17
+ }
18
+
19
+ function escapeArgument(arg, doubleEscapeMetaChars) {
20
+ // Convert to string
21
+ arg = `${arg}`;
22
+
23
+ // Algorithm below is based on https://qntm.org/cmd
24
+ // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input
25
+ // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information
26
+
27
+ // Sequence of backslashes followed by a double quote:
28
+ // double up all the backslashes and escape the double quote
29
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
30
+
31
+ // Sequence of backslashes followed by the end of the string
32
+ // (which will become a double quote later):
33
+ // double up all the backslashes
34
+ arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
35
+
36
+ // All other backslashes occur literally
37
+
38
+ // Quote the whole thing:
39
+ arg = `"${arg}"`;
40
+
41
+ // Escape meta chars
42
+ arg = arg.replace(metaCharsRegExp, '^$1');
43
+
44
+ // Double escape meta chars if necessary
45
+ if (doubleEscapeMetaChars) {
46
+ arg = arg.replace(metaCharsRegExp, '^$1');
47
+ }
48
+
49
+ return arg;
50
+ }
51
+
52
+ _escape.command = escapeCommand;
53
+ _escape.argument = escapeArgument;
54
+ return _escape;
55
+ }
56
+
57
+ export { require_escape as __require };
58
+ //# 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":[],"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,CAAA,OAAA,CAAA,OAAsB,GAAG,aAAa;AACtC,CAAA,OAAA,CAAA,QAAuB,GAAG,cAAc;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,36 @@
1
+ import require$$0 from 'node:fs';
2
+ import { __require as requireShebangCommand } from '../../../shebang-command/index.js';
3
+
4
+ var readShebang_1;
5
+ var hasRequiredReadShebang;
6
+
7
+ function requireReadShebang () {
8
+ if (hasRequiredReadShebang) return readShebang_1;
9
+ hasRequiredReadShebang = 1;
10
+
11
+ const fs = require$$0;
12
+ const shebangCommand = requireShebangCommand();
13
+
14
+ function readShebang(command) {
15
+ // Read the first 150 bytes from the file
16
+ const size = 150;
17
+ const buffer = Buffer.alloc(size);
18
+
19
+ let fd;
20
+
21
+ try {
22
+ fd = fs.openSync(command, 'r');
23
+ fs.readSync(fd, buffer, 0, size, 0);
24
+ fs.closeSync(fd);
25
+ } catch (e) { /* Empty */ }
26
+
27
+ // Attempt to extract shebang (null is returned if not a shebang)
28
+ return shebangCommand(buffer.toString());
29
+ }
30
+
31
+ readShebang_1 = readShebang;
32
+ return readShebang_1;
33
+ }
34
+
35
+ export { requireReadShebang as __require };
36
+ //# 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$$1"],"mappings":";;;;;;;;;;CAEA,MAAM,EAAE,GAAG,UAAa;CACxB,MAAM,cAAc,GAAGA,qBAA0B,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,66 @@
1
+ import path from 'node:path';
2
+ import { __require as requireWhich } from '../../../which/which.js';
3
+ import { __require as requirePathKey } from '../../../path-key/index.js';
4
+
5
+ var resolveCommand_1;
6
+ var hasRequiredResolveCommand;
7
+
8
+ function requireResolveCommand () {
9
+ if (hasRequiredResolveCommand) return resolveCommand_1;
10
+ hasRequiredResolveCommand = 1;
11
+
12
+ const path$1 = path;
13
+ const which = requireWhich();
14
+ const getPathKey = requirePathKey();
15
+
16
+ function resolveCommandAttempt(parsed, withoutPathExt) {
17
+ const env = parsed.options.env || process.env;
18
+ const cwd = process.cwd();
19
+ const hasCustomCwd = parsed.options.cwd != null;
20
+ // Worker threads do not have process.chdir()
21
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
22
+
23
+ // If a custom `cwd` was specified, we need to change the process cwd
24
+ // because `which` will do stat calls but does not support a custom cwd
25
+ if (shouldSwitchCwd) {
26
+ try {
27
+ process.chdir(parsed.options.cwd);
28
+ } catch (err) {
29
+ /* Empty */
30
+ }
31
+ }
32
+
33
+ let resolved;
34
+
35
+ try {
36
+ resolved = which.sync(parsed.command, {
37
+ path: env[getPathKey({ env })],
38
+ pathExt: withoutPathExt ? path$1.delimiter : undefined,
39
+ });
40
+ } catch (e) {
41
+ /* Empty */
42
+ } finally {
43
+ if (shouldSwitchCwd) {
44
+ process.chdir(cwd);
45
+ }
46
+ }
47
+
48
+ // If we successfully resolved, ensure that an absolute path is returned
49
+ // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
50
+ if (resolved) {
51
+ resolved = path$1.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
52
+ }
53
+
54
+ return resolved;
55
+ }
56
+
57
+ function resolveCommand(parsed) {
58
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
59
+ }
60
+
61
+ resolveCommand_1 = resolveCommand;
62
+ return resolveCommand_1;
63
+ }
64
+
65
+ export { requireResolveCommand as __require };
66
+ //# 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":["path","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;CAEA,MAAMA,MAAI,GAAGC,IAAe;CAC5B,MAAM,KAAK,GAAGC,YAAgB,EAAA;CAC9B,MAAM,UAAU,GAAGC,cAAmB,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,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;aAClC,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;aAC9B,OAAO,EAAE,cAAc,GAAGH,MAAI,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,GAAGA,MAAI,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,79 @@
1
+ import appveyor from './services/appveyor.js';
2
+ import azurePipelines from './services/azure-pipelines.js';
3
+ import bamboo from './services/bamboo.js';
4
+ import bitbucket from './services/bitbucket.js';
5
+ import bitrise from './services/bitrise.js';
6
+ import buddy from './services/buddy.js';
7
+ import buildkite from './services/buildkite.js';
8
+ import circleci from './services/circleci.js';
9
+ import cirrus from './services/cirrus.js';
10
+ import cloudflarePages from './services/cloudflare-pages.js';
11
+ import codebuild from './services/codebuild.js';
12
+ import codefresh from './services/codefresh.js';
13
+ import codeship from './services/codeship.js';
14
+ import drone from './services/drone.js';
15
+ import git from './services/git.js';
16
+ import github from './services/github.js';
17
+ import gitlab from './services/gitlab.js';
18
+ import jenkins from './services/jenkins.js';
19
+ import netlify from './services/netlify.js';
20
+ import puppet from './services/puppet.js';
21
+ import sail from './services/sail.js';
22
+ import screwdriver from './services/screwdriver.js';
23
+ import scrutinizer from './services/scrutinizer.js';
24
+ import semaphore from './services/semaphore.js';
25
+ import shippable from './services/shippable.js';
26
+ import teamcity from './services/teamcity.js';
27
+ import travis from './services/travis.js';
28
+ import vela from './services/vela.js';
29
+ import vercel from './services/vercel.js';
30
+ import wercker from './services/wercker.js';
31
+ import woodpecker from './services/woodpecker.js';
32
+ import jetbrainsSpace from './services/jetbrains-space.js';
33
+
34
+ const services = {
35
+ appveyor,
36
+ azurePipelines,
37
+ bamboo,
38
+ bitbucket,
39
+ bitrise,
40
+ buddy,
41
+ buildkite,
42
+ circleci,
43
+ cirrus,
44
+ cloudflarePages,
45
+ codebuild,
46
+ codefresh,
47
+ codeship,
48
+ drone,
49
+ github,
50
+ gitlab,
51
+ jenkins,
52
+ netlify,
53
+ puppet,
54
+ sail,
55
+ screwdriver,
56
+ scrutinizer,
57
+ semaphore,
58
+ shippable,
59
+ teamcity,
60
+ travis,
61
+ vela,
62
+ vercel,
63
+ wercker,
64
+ woodpecker,
65
+ jetbrainsSpace,
66
+ };
67
+
68
+ var envCi = ({ env = process.env, cwd = process.cwd() } = {}) => {
69
+ for (const name of Object.keys(services)) {
70
+ if (services[name].detect({ env, cwd })) {
71
+ return { isCi: true, ...services[name].configuration({ env, cwd }) };
72
+ }
73
+ }
74
+
75
+ return { isCi: Boolean(env.CI), ...git.configuration({ env, cwd }) };
76
+ };
77
+
78
+ export { envCi as default };
79
+ //# 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,67 @@
1
+ import { execaSync } from '../../execa/index.js';
2
+
3
+ function head(options) {
4
+ try {
5
+ return execaSync("git", ["rev-parse", "HEAD"], options).stdout;
6
+ } catch {
7
+ return undefined;
8
+ }
9
+ }
10
+
11
+ function branch(options) {
12
+ try {
13
+ const headRef = execaSync(
14
+ "git",
15
+ ["rev-parse", "--abbrev-ref", "HEAD"],
16
+ options,
17
+ ).stdout;
18
+
19
+ if (headRef === "HEAD") {
20
+ const branch = execaSync(
21
+ "git",
22
+ ["show", "-s", "--pretty=%d", "HEAD"],
23
+ options,
24
+ )
25
+ .stdout.replace(/^\(|\)$/g, "")
26
+ .split(", ")
27
+ .find((branch) => branch.startsWith("origin/"));
28
+ return branch ? branch.match(/^origin\/(?<branch>.+)/)[1] : undefined;
29
+ }
30
+
31
+ return headRef;
32
+ } catch {
33
+ return undefined;
34
+ }
35
+ }
36
+
37
+ // Match slug on SSH URLs (ex: `USER@HOST:PORT/ORG/REPO.git`)
38
+ const GIT_SSH_URL_SLUG_PATTERN = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/;
39
+
40
+ // Match slug on HTTP(S) URLs `https://github.com/semantic-release/env-ci.git`
41
+ const GIT_PATHNAME_SLUG_PATTERN = /^\/(.*)\.git$/;
42
+
43
+ /**
44
+ * Extract repository slug(owner/repo) from a repository URL
45
+ *
46
+ * @param {String} repositoryURL
47
+ * @returns {String | undefined}
48
+ */
49
+ function getSlugFromGitURL(repositoryURL) {
50
+ if (!repositoryURL) {
51
+ return undefined;
52
+ }
53
+
54
+ if (repositoryURL.match(GIT_SSH_URL_SLUG_PATTERN)) {
55
+ return repositoryURL.replace(GIT_SSH_URL_SLUG_PATTERN, "$1");
56
+ }
57
+
58
+ try {
59
+ const url = new URL(repositoryURL);
60
+ return url.pathname.replace(GIT_PATHNAME_SLUG_PATTERN, "$1");
61
+ } catch {
62
+ return undefined;
63
+ }
64
+ }
65
+
66
+ export { branch, getSlugFromGitURL, head };
67
+ //# 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":[],"mappings":";;AAEO,SAAS,IAAI,CAAC,OAAO,EAAE;AAC9B,EAAE,IAAI;AACN,IAAI,OAAO,SAAS,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,GAAG,SAAS;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,GAAG,SAAS;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,12 @@
1
+ function prNumber(pr) {
2
+ return (/\d+(?!.*\d+)/.exec(pr) || [])[0];
3
+ }
4
+
5
+ function parseBranch(branch) {
6
+ return branch
7
+ ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(branch)[1]
8
+ : undefined;
9
+ }
10
+
11
+ export { parseBranch, prNumber };
12
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../../node_modules/env-ci/lib/utils.js"],"sourcesContent":["export function prNumber(pr) {\n return (/\\d+(?!.*\\d+)/.exec(pr) || [])[0];\n}\n\nexport function parseBranch(branch) {\n return branch\n ? /^(?:refs\\/heads\\/)?(?<branch>.+)$/i.exec(branch)[1]\n : undefined;\n}\n"],"names":[],"mappings":"AAAO,SAAS,QAAQ,CAAC,EAAE,EAAE;AAC7B,EAAE,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC3C;;AAEO,SAAS,WAAW,CAAC,MAAM,EAAE;AACpC,EAAE,OAAO;AACT,MAAM,oCAAoC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AACzD,MAAM,SAAS;AACf;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,31 @@
1
+ // https://www.appveyor.com/docs/environment-variables
2
+
3
+ var appveyor = {
4
+ detect({ env }) {
5
+ return Boolean(env.APPVEYOR);
6
+ },
7
+ configuration({ env }) {
8
+ const pr = env.APPVEYOR_PULL_REQUEST_NUMBER;
9
+ const isPr = Boolean(pr);
10
+
11
+ return {
12
+ name: "Appveyor",
13
+ service: "appveyor",
14
+ commit: env.APPVEYOR_REPO_COMMIT,
15
+ tag: env.APPVEYOR_REPO_TAG_NAME,
16
+ build: env.APPVEYOR_BUILD_NUMBER,
17
+ buildUrl: `https://ci.appveyor.com/project/${env.APPVEYOR_PROJECT_SLUG}/build/${env.APPVEYOR_BUILD_VERSION}`,
18
+ branch: env.APPVEYOR_REPO_BRANCH,
19
+ job: env.APPVEYOR_JOB_NUMBER,
20
+ jobUrl: `https://ci.appveyor.com/project/${env.APPVEYOR_PROJECT_SLUG}/build/job/${env.APPVEYOR_JOB_ID}`,
21
+ pr,
22
+ isPr,
23
+ prBranch: env.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH,
24
+ slug: env.APPVEYOR_REPO_NAME,
25
+ root: env.APPVEYOR_BUILD_FOLDER,
26
+ };
27
+ },
28
+ };
29
+
30
+ export { appveyor as default };
31
+ //# sourceMappingURL=appveyor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appveyor.js","sources":["../../../../../../../node_modules/env-ci/services/appveyor.js"],"sourcesContent":["// https://www.appveyor.com/docs/environment-variables\n\nexport default {\n detect({ env }) {\n return Boolean(env.APPVEYOR);\n },\n configuration({ env }) {\n const pr = env.APPVEYOR_PULL_REQUEST_NUMBER;\n const isPr = Boolean(pr);\n\n return {\n name: \"Appveyor\",\n service: \"appveyor\",\n commit: env.APPVEYOR_REPO_COMMIT,\n tag: env.APPVEYOR_REPO_TAG_NAME,\n build: env.APPVEYOR_BUILD_NUMBER,\n buildUrl: `https://ci.appveyor.com/project/${env.APPVEYOR_PROJECT_SLUG}/build/${env.APPVEYOR_BUILD_VERSION}`,\n branch: env.APPVEYOR_REPO_BRANCH,\n job: env.APPVEYOR_JOB_NUMBER,\n jobUrl: `https://ci.appveyor.com/project/${env.APPVEYOR_PROJECT_SLUG}/build/job/${env.APPVEYOR_JOB_ID}`,\n pr,\n isPr,\n prBranch: env.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH,\n slug: env.APPVEYOR_REPO_NAME,\n root: env.APPVEYOR_BUILD_FOLDER,\n };\n },\n};\n"],"names":[],"mappings":"AAAA;;AAEA,eAAe;AACf,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE;AAClB,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AAChC,GAAG;AACH,EAAE,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE;AACzB,IAAI,MAAM,EAAE,GAAG,GAAG,CAAC,4BAA4B;AAC/C,IAAI,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC;;AAE5B,IAAI,OAAO;AACX,MAAM,IAAI,EAAE,UAAU;AACtB,MAAM,OAAO,EAAE,UAAU;AACzB,MAAM,MAAM,EAAE,GAAG,CAAC,oBAAoB;AACtC,MAAM,GAAG,EAAE,GAAG,CAAC,sBAAsB;AACrC,MAAM,KAAK,EAAE,GAAG,CAAC,qBAAqB;AACtC,MAAM,QAAQ,EAAE,CAAC,gCAAgC,EAAE,GAAG,CAAC,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAClH,MAAM,MAAM,EAAE,GAAG,CAAC,oBAAoB;AACtC,MAAM,GAAG,EAAE,GAAG,CAAC,mBAAmB;AAClC,MAAM,MAAM,EAAE,CAAC,gCAAgC,EAAE,GAAG,CAAC,qBAAqB,CAAC,WAAW,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;AAC7G,MAAM,EAAE;AACR,MAAM,IAAI;AACV,MAAM,QAAQ,EAAE,GAAG,CAAC,sCAAsC;AAC1D,MAAM,IAAI,EAAE,GAAG,CAAC,kBAAkB;AAClC,MAAM,IAAI,EAAE,GAAG,CAAC,qBAAqB;AACrC,KAAK;AACL,GAAG;AACH,CAAC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,33 @@
1
+ import { parseBranch } from '../lib/utils.js';
2
+
3
+ // https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables
4
+ // The docs indicate that SYSTEM_PULLREQUEST_SOURCEBRANCH and SYSTEM_PULLREQUEST_TARGETBRANCH are in the long format (e.g `refs/heads/master`) however tests show they are both in the short format (e.g. `master`)
5
+
6
+ var azurePipelines = {
7
+ detect({ env }) {
8
+ return Boolean(env.BUILD_BUILDURI);
9
+ },
10
+ configuration({ env }) {
11
+ const pr = env.SYSTEM_PULLREQUEST_PULLREQUESTID;
12
+ const isPr = Boolean(pr);
13
+
14
+ return {
15
+ name: "Azure Pipelines",
16
+ service: "azurePipelines",
17
+ commit: env.BUILD_SOURCEVERSION,
18
+ build: env.BUILD_BUILDNUMBER,
19
+ branch: parseBranch(
20
+ isPr ? env.SYSTEM_PULLREQUEST_TARGETBRANCH : env.BUILD_SOURCEBRANCH,
21
+ ),
22
+ pr,
23
+ isPr,
24
+ prBranch: parseBranch(
25
+ isPr ? env.SYSTEM_PULLREQUEST_SOURCEBRANCH : undefined,
26
+ ),
27
+ root: env.BUILD_REPOSITORY_LOCALPATH,
28
+ };
29
+ },
30
+ };
31
+
32
+ export { azurePipelines as default };
33
+ //# sourceMappingURL=azure-pipelines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azure-pipelines.js","sources":["../../../../../../../node_modules/env-ci/services/azure-pipelines.js"],"sourcesContent":["// https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables\n// The docs indicate that SYSTEM_PULLREQUEST_SOURCEBRANCH and SYSTEM_PULLREQUEST_TARGETBRANCH are in the long format (e.g `refs/heads/master`) however tests show they are both in the short format (e.g. `master`)\nimport { parseBranch } from \"../lib/utils.js\";\n\nexport default {\n detect({ env }) {\n return Boolean(env.BUILD_BUILDURI);\n },\n configuration({ env }) {\n const pr = env.SYSTEM_PULLREQUEST_PULLREQUESTID;\n const isPr = Boolean(pr);\n\n return {\n name: \"Azure Pipelines\",\n service: \"azurePipelines\",\n commit: env.BUILD_SOURCEVERSION,\n build: env.BUILD_BUILDNUMBER,\n branch: parseBranch(\n isPr ? env.SYSTEM_PULLREQUEST_TARGETBRANCH : env.BUILD_SOURCEBRANCH,\n ),\n pr,\n isPr,\n prBranch: parseBranch(\n isPr ? env.SYSTEM_PULLREQUEST_SOURCEBRANCH : undefined,\n ),\n root: env.BUILD_REPOSITORY_LOCALPATH,\n };\n },\n};\n"],"names":[],"mappings":";;AAAA;AACA;;AAGA,qBAAe;AACf,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE;AAClB,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;AACtC,GAAG;AACH,EAAE,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE;AACzB,IAAI,MAAM,EAAE,GAAG,GAAG,CAAC,gCAAgC;AACnD,IAAI,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC;;AAE5B,IAAI,OAAO;AACX,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,OAAO,EAAE,gBAAgB;AAC/B,MAAM,MAAM,EAAE,GAAG,CAAC,mBAAmB;AACrC,MAAM,KAAK,EAAE,GAAG,CAAC,iBAAiB;AAClC,MAAM,MAAM,EAAE,WAAW;AACzB,QAAQ,IAAI,GAAG,GAAG,CAAC,+BAA+B,GAAG,GAAG,CAAC,kBAAkB;AAC3E,OAAO;AACP,MAAM,EAAE;AACR,MAAM,IAAI;AACV,MAAM,QAAQ,EAAE,WAAW;AAC3B,QAAQ,IAAI,GAAG,GAAG,CAAC,+BAA+B,GAAG,SAAS;AAC9D,OAAO;AACP,MAAM,IAAI,EAAE,GAAG,CAAC,0BAA0B;AAC1C,KAAK;AACL,GAAG;AACH,CAAC;;;;","x_google_ignoreList":[0]}