@slicemachine/init 2.10.34-beta.1 → 2.10.34-beta.10

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 (334) hide show
  1. package/dist/SliceMachineInitProcess.cjs.map +1 -1
  2. package/dist/SliceMachineInitProcess.js.map +1 -1
  3. package/dist/_node_modules/@babel/code-frame/lib/index.cjs +2 -2
  4. package/dist/_node_modules/@babel/code-frame/lib/index.cjs.map +1 -1
  5. package/dist/_node_modules/@babel/code-frame/lib/index.js +2 -2
  6. package/dist/_node_modules/@babel/code-frame/lib/index.js.map +1 -1
  7. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
  8. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
  9. package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
  10. package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
  11. package/dist/_node_modules/@nodelib/fs.scandir/out/constants.cjs.map +1 -1
  12. package/dist/_node_modules/@nodelib/fs.scandir/out/constants.js.map +1 -1
  13. package/dist/_node_modules/@nodelib/fs.scandir/out/index.cjs +1 -1
  14. package/dist/_node_modules/@nodelib/fs.scandir/out/index.js +1 -1
  15. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
  16. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
  17. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
  18. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs.map +1 -1
  19. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
  20. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js.map +1 -1
  21. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
  22. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
  23. package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
  24. package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
  25. package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.cjs.map +1 -1
  26. package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.js.map +1 -1
  27. package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
  28. package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
  29. package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs +1 -1
  30. package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js +1 -1
  31. package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs +1 -1
  32. package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs.map +1 -1
  33. package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js +1 -1
  34. package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js.map +1 -1
  35. package/dist/_node_modules/@nodelib/fs.walk/out/settings.cjs +1 -1
  36. package/dist/_node_modules/@nodelib/fs.walk/out/settings.js +1 -1
  37. package/dist/_node_modules/braces/lib/compile.cjs.map +1 -1
  38. package/dist/_node_modules/braces/lib/compile.js.map +1 -1
  39. package/dist/_node_modules/braces/lib/expand.cjs.map +1 -1
  40. package/dist/_node_modules/braces/lib/expand.js.map +1 -1
  41. package/dist/_node_modules/braces/lib/parse.cjs.map +1 -1
  42. package/dist/_node_modules/braces/lib/parse.js.map +1 -1
  43. package/dist/_node_modules/camelcase-keys/index.cjs.map +1 -1
  44. package/dist/_node_modules/camelcase-keys/index.js.map +1 -1
  45. package/dist/_node_modules/cross-spawn/index.cjs +1 -1
  46. package/dist/_node_modules/cross-spawn/index.js +1 -1
  47. package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -1
  48. package/dist/_node_modules/cross-spawn/lib/enoent.js.map +1 -1
  49. package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -1
  50. package/dist/_node_modules/cross-spawn/lib/parse.js.map +1 -1
  51. package/dist/_node_modules/cross-spawn/lib/util/escape.cjs.map +1 -1
  52. package/dist/_node_modules/cross-spawn/lib/util/escape.js.map +1 -1
  53. package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -1
  54. package/dist/_node_modules/cross-spawn/lib/util/readShebang.js.map +1 -1
  55. package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -1
  56. package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -1
  57. package/dist/_node_modules/decamelize/index.cjs.map +1 -1
  58. package/dist/_node_modules/decamelize/index.js.map +1 -1
  59. package/dist/_node_modules/dir-glob/index.cjs +2 -2
  60. package/dist/_node_modules/dir-glob/index.cjs.map +1 -1
  61. package/dist/_node_modules/dir-glob/index.js +2 -2
  62. package/dist/_node_modules/dir-glob/index.js.map +1 -1
  63. package/dist/_node_modules/execa/index.cjs +2 -2
  64. package/dist/_node_modules/execa/index.cjs.map +1 -1
  65. package/dist/_node_modules/execa/index.js +2 -2
  66. package/dist/_node_modules/execa/index.js.map +1 -1
  67. package/dist/_node_modules/execa/lib/command.cjs.map +1 -1
  68. package/dist/_node_modules/execa/lib/command.js.map +1 -1
  69. package/dist/_node_modules/execa/lib/error.cjs.map +1 -1
  70. package/dist/_node_modules/execa/lib/error.js.map +1 -1
  71. package/dist/_node_modules/execa/lib/kill.cjs.map +1 -1
  72. package/dist/_node_modules/execa/lib/kill.js.map +1 -1
  73. package/dist/_node_modules/execa/lib/promise.cjs +2 -2
  74. package/dist/_node_modules/execa/lib/promise.cjs.map +1 -1
  75. package/dist/_node_modules/execa/lib/promise.js +2 -2
  76. package/dist/_node_modules/execa/lib/promise.js.map +1 -1
  77. package/dist/_node_modules/execa/lib/stdio.cjs.map +1 -1
  78. package/dist/_node_modules/execa/lib/stdio.js.map +1 -1
  79. package/dist/_node_modules/execa/lib/stream.cjs.map +1 -1
  80. package/dist/_node_modules/execa/lib/stream.js.map +1 -1
  81. package/dist/_node_modules/execa/lib/verbose.cjs.map +1 -1
  82. package/dist/_node_modules/execa/lib/verbose.js.map +1 -1
  83. package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
  84. package/dist/_node_modules/fast-glob/out/index.js +1 -1
  85. package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
  86. package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
  87. package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
  88. package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
  89. package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
  90. package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
  91. package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
  92. package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
  93. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
  94. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
  95. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
  96. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
  97. package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
  98. package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
  99. package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
  100. package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
  101. package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
  102. package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
  103. package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
  104. package/dist/_node_modules/fast-glob/out/readers/sync.cjs.map +1 -1
  105. package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
  106. package/dist/_node_modules/fast-glob/out/readers/sync.js.map +1 -1
  107. package/dist/_node_modules/fast-glob/out/settings.cjs.map +1 -1
  108. package/dist/_node_modules/fast-glob/out/settings.js.map +1 -1
  109. package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
  110. package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
  111. package/dist/_node_modules/fill-range/index.cjs.map +1 -1
  112. package/dist/_node_modules/fill-range/index.js.map +1 -1
  113. package/dist/_node_modules/get-stream/index.cjs +1 -1
  114. package/dist/_node_modules/get-stream/index.cjs.map +1 -1
  115. package/dist/_node_modules/get-stream/index.js +1 -1
  116. package/dist/_node_modules/get-stream/index.js.map +1 -1
  117. package/dist/_node_modules/globby/ignore.cjs.map +1 -1
  118. package/dist/_node_modules/globby/ignore.js.map +1 -1
  119. package/dist/_node_modules/globby/index.cjs.map +1 -1
  120. package/dist/_node_modules/globby/index.js.map +1 -1
  121. package/dist/_node_modules/hard-rejection/index.cjs +1 -1
  122. package/dist/_node_modules/hard-rejection/index.cjs.map +1 -1
  123. package/dist/_node_modules/hard-rejection/index.js +1 -1
  124. package/dist/_node_modules/hard-rejection/index.js.map +1 -1
  125. package/dist/_node_modules/human-signals/build/src/realtime.cjs.map +1 -1
  126. package/dist/_node_modules/human-signals/build/src/realtime.js.map +1 -1
  127. package/dist/_node_modules/ignore/index.cjs.map +1 -1
  128. package/dist/_node_modules/ignore/index.js.map +1 -1
  129. package/dist/_node_modules/isexe/index.cjs.map +1 -1
  130. package/dist/_node_modules/isexe/index.js.map +1 -1
  131. package/dist/_node_modules/js-tokens/index.cjs +1 -1
  132. package/dist/_node_modules/js-tokens/index.js +1 -1
  133. package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +1 -1
  134. package/dist/_node_modules/json-parse-even-better-errors/index.js.map +1 -1
  135. package/dist/_node_modules/kind-of/index.cjs.map +1 -1
  136. package/dist/_node_modules/kind-of/index.js.map +1 -1
  137. package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
  138. package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
  139. package/dist/_node_modules/locate-path/index.cjs.map +1 -0
  140. package/dist/_node_modules/locate-path/index.js.map +1 -0
  141. package/dist/_node_modules/map-obj/index.cjs +1 -1
  142. package/dist/_node_modules/map-obj/index.cjs.map +1 -1
  143. package/dist/_node_modules/map-obj/index.js +1 -1
  144. package/dist/_node_modules/map-obj/index.js.map +1 -1
  145. package/dist/_node_modules/meow/_node_modules/find-up/index.cjs +1 -1
  146. package/dist/_node_modules/meow/_node_modules/find-up/index.js +1 -1
  147. package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.cjs.map +1 -1
  148. package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.js.map +1 -1
  149. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs.map +1 -1
  150. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.js.map +1 -1
  151. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs.map +1 -1
  152. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.js.map +1 -1
  153. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
  154. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs.map +1 -1
  155. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +1 -1
  156. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js.map +1 -1
  157. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -1
  158. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js.map +1 -1
  159. package/dist/_node_modules/meow/index.cjs.map +1 -1
  160. package/dist/_node_modules/meow/index.js.map +1 -1
  161. package/dist/_node_modules/micromatch/_node_modules/picomatch/index.cjs.map +1 -0
  162. package/dist/_node_modules/micromatch/_node_modules/picomatch/index.js.map +1 -0
  163. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/constants.cjs.map +1 -0
  164. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/constants.js.map +1 -0
  165. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/parse.cjs +1 -1
  166. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/parse.cjs.map +1 -0
  167. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/parse.js +1 -1
  168. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/parse.js.map +1 -0
  169. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/picomatch.cjs +1 -1
  170. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/picomatch.cjs.map +1 -0
  171. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/picomatch.js +1 -1
  172. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/picomatch.js.map +1 -0
  173. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/scan.cjs +1 -1
  174. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/scan.cjs.map +1 -0
  175. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/scan.js +1 -1
  176. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/scan.js.map +1 -0
  177. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/utils.cjs +1 -1
  178. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/utils.cjs.map +1 -0
  179. package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/utils.js +1 -1
  180. package/dist/_node_modules/micromatch/_node_modules/picomatch/lib/utils.js.map +1 -0
  181. package/dist/_node_modules/micromatch/index.cjs +2 -2
  182. package/dist/_node_modules/micromatch/index.cjs.map +1 -1
  183. package/dist/_node_modules/micromatch/index.js +2 -2
  184. package/dist/_node_modules/micromatch/index.js.map +1 -1
  185. package/dist/_node_modules/mimic-fn/index.cjs.map +1 -1
  186. package/dist/_node_modules/mimic-fn/index.js.map +1 -1
  187. package/dist/_node_modules/minimist-options/index.cjs +1 -1
  188. package/dist/_node_modules/minimist-options/index.cjs.map +1 -1
  189. package/dist/_node_modules/minimist-options/index.js +1 -1
  190. package/dist/_node_modules/minimist-options/index.js.map +1 -1
  191. package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.cjs.map +1 -0
  192. package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.js.map +1 -0
  193. package/dist/_node_modules/{execa/_node_modules/npm-run-path → npm-run-path}/index.cjs +1 -1
  194. package/dist/_node_modules/npm-run-path/index.cjs.map +1 -0
  195. package/dist/_node_modules/{execa/_node_modules/npm-run-path → npm-run-path}/index.js +1 -1
  196. package/dist/_node_modules/npm-run-path/index.js.map +1 -0
  197. package/dist/_node_modules/{execa/_node_modules/onetime → onetime}/index.cjs +1 -1
  198. package/dist/_node_modules/onetime/index.cjs.map +1 -0
  199. package/dist/_node_modules/{execa/_node_modules/onetime → onetime}/index.js +1 -1
  200. package/dist/_node_modules/onetime/index.js.map +1 -0
  201. package/dist/_node_modules/p-limit/index.cjs.map +1 -1
  202. package/dist/_node_modules/p-limit/index.js.map +1 -1
  203. package/dist/_node_modules/parse-json/index.cjs +2 -2
  204. package/dist/_node_modules/parse-json/index.cjs.map +1 -1
  205. package/dist/_node_modules/parse-json/index.js +2 -2
  206. package/dist/_node_modules/parse-json/index.js.map +1 -1
  207. package/dist/_node_modules/path-key/index.cjs +1 -1
  208. package/dist/_node_modules/path-key/index.js +1 -1
  209. package/dist/_node_modules/path-type/index.cjs +1 -1
  210. package/dist/_node_modules/path-type/index.cjs.map +1 -1
  211. package/dist/_node_modules/path-type/index.js +1 -1
  212. package/dist/_node_modules/path-type/index.js.map +1 -1
  213. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -1
  214. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +1 -1
  215. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +1 -1
  216. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +1 -1
  217. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
  218. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +1 -1
  219. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
  220. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +1 -1
  221. package/dist/_node_modules/redent/_node_modules/indent-string/index.cjs.map +1 -1
  222. package/dist/_node_modules/redent/_node_modules/indent-string/index.js.map +1 -1
  223. package/dist/_node_modules/redent/_node_modules/strip-indent/index.cjs.map +1 -1
  224. package/dist/_node_modules/redent/_node_modules/strip-indent/index.js.map +1 -1
  225. package/dist/_node_modules/shebang-command/index.cjs.map +1 -1
  226. package/dist/_node_modules/shebang-command/index.js.map +1 -1
  227. package/dist/_node_modules/signal-exit/index.cjs +1 -1
  228. package/dist/_node_modules/signal-exit/index.cjs.map +1 -1
  229. package/dist/_node_modules/signal-exit/index.js +1 -1
  230. package/dist/_node_modules/signal-exit/index.js.map +1 -1
  231. package/dist/_node_modules/spdx-correct/index.cjs.map +1 -1
  232. package/dist/_node_modules/spdx-correct/index.js.map +1 -1
  233. package/dist/_node_modules/to-regex-range/index.cjs.map +1 -1
  234. package/dist/_node_modules/to-regex-range/index.js.map +1 -1
  235. package/dist/_node_modules/validate-npm-package-license/index.cjs.map +1 -1
  236. package/dist/_node_modules/validate-npm-package-license/index.js.map +1 -1
  237. package/dist/_node_modules/which/which.cjs.map +1 -1
  238. package/dist/_node_modules/which/which.js.map +1 -1
  239. package/dist/_node_modules/yallist/yallist.cjs.map +1 -1
  240. package/dist/_node_modules/yallist/yallist.js.map +1 -1
  241. package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +1 -1
  242. package/dist/_node_modules/yargs-parser/build/lib/index.js.map +1 -1
  243. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +1 -1
  244. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +1 -1
  245. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +1 -1
  246. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +1 -1
  247. package/dist/_virtual/index.cjs +2 -2
  248. package/dist/_virtual/index.js +2 -2
  249. package/dist/_virtual/index10.cjs +2 -2
  250. package/dist/_virtual/index10.js +2 -2
  251. package/dist/_virtual/index11.cjs +2 -2
  252. package/dist/_virtual/index11.js +2 -2
  253. package/dist/_virtual/index12.cjs +2 -2
  254. package/dist/_virtual/index12.js +2 -2
  255. package/dist/_virtual/index14.cjs +2 -2
  256. package/dist/_virtual/index14.js +2 -2
  257. package/dist/_virtual/index15.cjs +2 -2
  258. package/dist/_virtual/index15.js +2 -2
  259. package/dist/_virtual/index16.cjs +2 -2
  260. package/dist/_virtual/index16.js +2 -2
  261. package/dist/_virtual/index17.cjs +2 -2
  262. package/dist/_virtual/index17.js +2 -2
  263. package/dist/_virtual/index18.cjs +2 -2
  264. package/dist/_virtual/index18.js +2 -2
  265. package/dist/_virtual/index19.cjs +2 -2
  266. package/dist/_virtual/index19.js +2 -2
  267. package/dist/_virtual/index2.cjs +2 -2
  268. package/dist/_virtual/index2.js +2 -2
  269. package/dist/_virtual/index20.cjs +2 -2
  270. package/dist/_virtual/index20.js +2 -2
  271. package/dist/_virtual/index3.cjs +2 -2
  272. package/dist/_virtual/index3.js +2 -2
  273. package/dist/_virtual/index4.cjs +2 -2
  274. package/dist/_virtual/index4.js +2 -2
  275. package/dist/_virtual/index5.cjs +2 -2
  276. package/dist/_virtual/index5.js +2 -2
  277. package/dist/_virtual/index6.cjs +2 -2
  278. package/dist/_virtual/index6.js +2 -2
  279. package/dist/_virtual/index7.cjs +2 -2
  280. package/dist/_virtual/index7.js +2 -2
  281. package/dist/_virtual/index8.cjs +2 -2
  282. package/dist/_virtual/index8.js +2 -2
  283. package/dist/_virtual/index9.cjs +2 -2
  284. package/dist/_virtual/index9.js +2 -2
  285. package/dist/cli.cjs +2 -1
  286. package/dist/cli.cjs.map +1 -1
  287. package/dist/cli.js.map +1 -1
  288. package/dist/constants.cjs.map +1 -1
  289. package/dist/constants.js.map +1 -1
  290. package/dist/lib/checkIsSentryEnabled.cjs.map +1 -1
  291. package/dist/lib/checkIsSentryEnabled.js.map +1 -1
  292. package/dist/lib/framework.cjs.map +1 -1
  293. package/dist/lib/framework.js.map +1 -1
  294. package/dist/lib/getExecuteCommand.cjs.map +1 -1
  295. package/dist/lib/getExecuteCommand.js.map +1 -1
  296. package/dist/lib/getRunScriptCommand.cjs.map +1 -1
  297. package/dist/lib/getRunScriptCommand.js.map +1 -1
  298. package/dist/lib/repositoryDomain.cjs.map +1 -1
  299. package/dist/lib/repositoryDomain.js.map +1 -1
  300. package/dist/lib/starters.cjs.map +1 -1
  301. package/dist/lib/starters.js.map +1 -1
  302. package/dist/lib/updateSentryContext.cjs.map +1 -1
  303. package/dist/lib/updateSentryContext.js.map +1 -1
  304. package/dist/packages/init/package.json.cjs +2 -2
  305. package/dist/packages/init/package.json.js +2 -2
  306. package/package.json +4 -4
  307. package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs.map +0 -1
  308. package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js.map +0 -1
  309. package/dist/_node_modules/execa/_node_modules/onetime/index.cjs.map +0 -1
  310. package/dist/_node_modules/execa/_node_modules/onetime/index.js.map +0 -1
  311. package/dist/_node_modules/execa/_node_modules/path-key/index.cjs.map +0 -1
  312. package/dist/_node_modules/execa/_node_modules/path-key/index.js.map +0 -1
  313. package/dist/_node_modules/meow/_node_modules/locate-path/index.cjs.map +0 -1
  314. package/dist/_node_modules/meow/_node_modules/locate-path/index.js.map +0 -1
  315. package/dist/_node_modules/picomatch/index.cjs.map +0 -1
  316. package/dist/_node_modules/picomatch/index.js.map +0 -1
  317. package/dist/_node_modules/picomatch/lib/constants.cjs.map +0 -1
  318. package/dist/_node_modules/picomatch/lib/constants.js.map +0 -1
  319. package/dist/_node_modules/picomatch/lib/parse.cjs.map +0 -1
  320. package/dist/_node_modules/picomatch/lib/parse.js.map +0 -1
  321. package/dist/_node_modules/picomatch/lib/picomatch.cjs.map +0 -1
  322. package/dist/_node_modules/picomatch/lib/picomatch.js.map +0 -1
  323. package/dist/_node_modules/picomatch/lib/scan.cjs.map +0 -1
  324. package/dist/_node_modules/picomatch/lib/scan.js.map +0 -1
  325. package/dist/_node_modules/picomatch/lib/utils.cjs.map +0 -1
  326. package/dist/_node_modules/picomatch/lib/utils.js.map +0 -1
  327. /package/dist/_node_modules/{meow/_node_modules/locate-path → locate-path}/index.cjs +0 -0
  328. /package/dist/_node_modules/{meow/_node_modules/locate-path → locate-path}/index.js +0 -0
  329. /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/index.cjs +0 -0
  330. /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/index.js +0 -0
  331. /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/constants.cjs +0 -0
  332. /package/dist/_node_modules/{picomatch → micromatch/_node_modules/picomatch}/lib/constants.js +0 -0
  333. /package/dist/_node_modules/{execa → npm-run-path}/_node_modules/path-key/index.cjs +0 -0
  334. /package/dist/_node_modules/{execa → npm-run-path}/_node_modules/path-key/index.js +0 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../../mimic-fn/index.cjs");
2
+ const index = require("../mimic-fn/index.cjs");
3
3
  const calledFunctions = /* @__PURE__ */ new WeakMap();
4
4
  const onetime = (function_, options = {}) => {
5
5
  if (typeof function_ !== "function") {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/onetime/index.js"],"sourcesContent":["import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '<anonymous>';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n"],"names":["onetime","mimicFunction"],"mappings":";;AAEA,MAAM,kBAAkB,oBAAI;AAEvB,MAAC,UAAU,CAAC,WAAW,UAAU,OAAO;AAC5C,MAAI,OAAO,cAAc,YAAY;AACpC,UAAM,IAAI,UAAU,qBAAqB;AAAA,EACzC;AAED,MAAI;AACJ,MAAI,YAAY;AAChB,QAAM,eAAe,UAAU,eAAe,UAAU,QAAQ;AAEhE,QAAMA,WAAU,YAAa,YAAY;AACxC,oBAAgB,IAAIA,UAAS,EAAE,SAAS;AAExC,QAAI,cAAc,GAAG;AACpB,oBAAc,UAAU,MAAM,MAAM,UAAU;AAC9C,kBAAY;AAAA,IACf,WAAa,QAAQ,UAAU,MAAM;AAClC,YAAM,IAAI,MAAM,cAAc,YAAY,4BAA4B;AAAA,IACtE;AAED,WAAO;AAAA,EACT;AAECC,QAAcD,UAAS,SAAS;AAChC,kBAAgB,IAAIA,UAAS,SAAS;AAEtC,SAAOA;AACR;AAEA,QAAQ,YAAY,eAAa;AAChC,MAAI,CAAC,gBAAgB,IAAI,SAAS,GAAG;AACpC,UAAM,IAAI,MAAM,wBAAwB,UAAU,IAAI,8CAA8C;AAAA,EACpG;AAED,SAAO,gBAAgB,IAAI,SAAS;AACrC;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import mimicFunction from "../../../mimic-fn/index.js";
1
+ import mimicFunction from "../mimic-fn/index.js";
2
2
  const calledFunctions = /* @__PURE__ */ new WeakMap();
3
3
  const onetime = (function_, options = {}) => {
4
4
  if (typeof function_ !== "function") {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/onetime/index.js"],"sourcesContent":["import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '<anonymous>';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n"],"names":["onetime"],"mappings":";AAEA,MAAM,kBAAkB,oBAAI;AAEvB,MAAC,UAAU,CAAC,WAAW,UAAU,OAAO;AAC5C,MAAI,OAAO,cAAc,YAAY;AACpC,UAAM,IAAI,UAAU,qBAAqB;AAAA,EACzC;AAED,MAAI;AACJ,MAAI,YAAY;AAChB,QAAM,eAAe,UAAU,eAAe,UAAU,QAAQ;AAEhE,QAAMA,WAAU,YAAa,YAAY;AACxC,oBAAgB,IAAIA,UAAS,EAAE,SAAS;AAExC,QAAI,cAAc,GAAG;AACpB,oBAAc,UAAU,MAAM,MAAM,UAAU;AAC9C,kBAAY;AAAA,IACf,WAAa,QAAQ,UAAU,MAAM;AAClC,YAAM,IAAI,MAAM,cAAc,YAAY,4BAA4B;AAAA,IACtE;AAED,WAAO;AAAA,EACT;AAEC,gBAAcA,UAAS,SAAS;AAChC,kBAAgB,IAAIA,UAAS,SAAS;AAEtC,SAAOA;AACR;AAEA,QAAQ,YAAY,eAAa;AAChC,MAAI,CAAC,gBAAgB,IAAI,SAAS,GAAG;AACpC,UAAM,IAAI,MAAM,wBAAwB,UAAU,IAAI,8CAA8C;AAAA,EACpG;AAED,SAAO,gBAAgB,IAAI,SAAS;AACrC;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/p-limit/index.js"],"sourcesContent":["import Queue from 'yocto-queue';\n\nexport default function pLimit(concurrency) {\n\tif (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {\n\t\tthrow new TypeError('Expected `concurrency` to be a number from 1 and up');\n\t}\n\n\tconst queue = new Queue();\n\tlet activeCount = 0;\n\n\tconst next = () => {\n\t\tactiveCount--;\n\n\t\tif (queue.size > 0) {\n\t\t\tqueue.dequeue()();\n\t\t}\n\t};\n\n\tconst run = async (fn, resolve, args) => {\n\t\tactiveCount++;\n\n\t\tconst result = (async () => fn(...args))();\n\n\t\tresolve(result);\n\n\t\ttry {\n\t\t\tawait result;\n\t\t} catch {}\n\n\t\tnext();\n\t};\n\n\tconst enqueue = (fn, resolve, args) => {\n\t\tqueue.enqueue(run.bind(undefined, fn, resolve, args));\n\n\t\t(async () => {\n\t\t\t// This function needs to wait until the next microtask before comparing\n\t\t\t// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously\n\t\t\t// when the run function is dequeued and called. The comparison in the if-statement\n\t\t\t// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.\n\t\t\tawait Promise.resolve();\n\n\t\t\tif (activeCount < concurrency && queue.size > 0) {\n\t\t\t\tqueue.dequeue()();\n\t\t\t}\n\t\t})();\n\t};\n\n\tconst generator = (fn, ...args) => new Promise(resolve => {\n\t\tenqueue(fn, resolve, args);\n\t});\n\n\tObject.defineProperties(generator, {\n\t\tactiveCount: {\n\t\t\tget: () => activeCount,\n\t\t},\n\t\tpendingCount: {\n\t\t\tget: () => queue.size,\n\t\t},\n\t\tclearQueue: {\n\t\t\tvalue: () => {\n\t\t\t\tqueue.clear();\n\t\t\t},\n\t\t},\n\t});\n\n\treturn generator;\n}\n"],"names":["Queue"],"mappings":";;AAEe,SAAS,OAAO,aAAa;AAC3C,MAAI,GAAG,OAAO,UAAU,WAAW,KAAK,gBAAgB,OAAO,sBAAsB,cAAc,IAAI;AACtG,UAAM,IAAI,UAAU,qDAAqD;AAAA,EACzE;AAED,QAAM,QAAQ,IAAIA;AAClB,MAAI,cAAc;AAElB,QAAM,OAAO,MAAM;AAClB;AAEA,QAAI,MAAM,OAAO,GAAG;AACnB,YAAM,QAAO;IACb;AAAA,EACH;AAEC,QAAM,MAAM,OAAO,IAAI,SAAS,SAAS;AACxC;AAEA,UAAM,UAAU,YAAY,GAAG,GAAG,IAAI,GAAC;AAEvC,YAAQ,MAAM;AAEd,QAAI;AACH,YAAM;AAAA,IACN,QAAC;AAAA,IAAQ;AAEV;EACF;AAEC,QAAM,UAAU,CAAC,IAAI,SAAS,SAAS;AACtC,UAAM,QAAQ,IAAI,KAAK,QAAW,IAAI,SAAS,IAAI,CAAC;AAEpD,KAAC,YAAY;AAKZ,YAAM,QAAQ;AAEd,UAAI,cAAc,eAAe,MAAM,OAAO,GAAG;AAChD,cAAM,QAAO;MACb;AAAA,IACJ;EACA;AAEC,QAAM,YAAY,CAAC,OAAO,SAAS,IAAI,QAAQ,aAAW;AACzD,YAAQ,IAAI,SAAS,IAAI;AAAA,EAC3B,CAAE;AAED,SAAO,iBAAiB,WAAW;AAAA,IAClC,aAAa;AAAA,MACZ,KAAK,MAAM;AAAA,IACX;AAAA,IACD,cAAc;AAAA,MACb,KAAK,MAAM,MAAM;AAAA,IACjB;AAAA,IACD,YAAY;AAAA,MACX,OAAO,MAAM;AACZ,cAAM,MAAK;AAAA,MACX;AAAA,IACD;AAAA,EACH,CAAE;AAED,SAAO;AACR;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/p-limit/index.js"],"sourcesContent":["import Queue from 'yocto-queue';\n\nexport default function pLimit(concurrency) {\n\tif (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {\n\t\tthrow new TypeError('Expected `concurrency` to be a number from 1 and up');\n\t}\n\n\tconst queue = new Queue();\n\tlet activeCount = 0;\n\n\tconst next = () => {\n\t\tactiveCount--;\n\n\t\tif (queue.size > 0) {\n\t\t\tqueue.dequeue()();\n\t\t}\n\t};\n\n\tconst run = async (fn, resolve, args) => {\n\t\tactiveCount++;\n\n\t\tconst result = (async () => fn(...args))();\n\n\t\tresolve(result);\n\n\t\ttry {\n\t\t\tawait result;\n\t\t} catch {}\n\n\t\tnext();\n\t};\n\n\tconst enqueue = (fn, resolve, args) => {\n\t\tqueue.enqueue(run.bind(undefined, fn, resolve, args));\n\n\t\t(async () => {\n\t\t\t// This function needs to wait until the next microtask before comparing\n\t\t\t// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously\n\t\t\t// when the run function is dequeued and called. The comparison in the if-statement\n\t\t\t// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.\n\t\t\tawait Promise.resolve();\n\n\t\t\tif (activeCount < concurrency && queue.size > 0) {\n\t\t\t\tqueue.dequeue()();\n\t\t\t}\n\t\t})();\n\t};\n\n\tconst generator = (fn, ...args) => new Promise(resolve => {\n\t\tenqueue(fn, resolve, args);\n\t});\n\n\tObject.defineProperties(generator, {\n\t\tactiveCount: {\n\t\t\tget: () => activeCount,\n\t\t},\n\t\tpendingCount: {\n\t\t\tget: () => queue.size,\n\t\t},\n\t\tclearQueue: {\n\t\t\tvalue: () => {\n\t\t\t\tqueue.clear();\n\t\t\t},\n\t\t},\n\t});\n\n\treturn generator;\n}\n"],"names":["Queue"],"mappings":";;AAEe,SAAS,OAAO,aAAa;AAC3C,MAAI,GAAG,OAAO,UAAU,WAAW,KAAK,gBAAgB,OAAO,sBAAsB,cAAc,IAAI;AACtG,UAAM,IAAI,UAAU,qDAAqD;AAAA,EACzE;AAED,QAAM,QAAQ,IAAIA;AAClB,MAAI,cAAc;AAElB,QAAM,OAAO,MAAM;AAClB;AAEA,QAAI,MAAM,OAAO,GAAG;AACnB,YAAM,QAAO;IACb;AAAA,EACH;AAEC,QAAM,MAAM,OAAO,IAAI,SAAS,SAAS;AACxC;AAEA,UAAM,UAAU,YAAY,GAAG,GAAG,IAAI,GAAC;AAEvC,YAAQ,MAAM;AAEd,QAAI;AACH,YAAM;AAAA,IACN,QAAO;AAAA,IAAE;AAEV;EACF;AAEC,QAAM,UAAU,CAAC,IAAI,SAAS,SAAS;AACtC,UAAM,QAAQ,IAAI,KAAK,QAAW,IAAI,SAAS,IAAI,CAAC;AAEpD,KAAC,YAAY;AAKZ,YAAM,QAAQ;AAEd,UAAI,cAAc,eAAe,MAAM,OAAO,GAAG;AAChD,cAAM,QAAO;MACb;AAAA,IACJ;EACA;AAEC,QAAM,YAAY,CAAC,OAAO,SAAS,IAAI,QAAQ,aAAW;AACzD,YAAQ,IAAI,SAAS,IAAI;AAAA,EAC3B,CAAE;AAED,SAAO,iBAAiB,WAAW;AAAA,IAClC,aAAa;AAAA,MACZ,KAAK,MAAM;AAAA,IACX;AAAA,IACD,cAAc;AAAA,MACb,KAAK,MAAM,MAAM;AAAA,IACjB;AAAA,IACD,YAAY;AAAA,MACX,OAAO,MAAM;AACZ,cAAM,MAAK;AAAA,MACX;AAAA,IACD;AAAA,EACH,CAAE;AAED,SAAO;AACR;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/p-limit/index.js"],"sourcesContent":["import Queue from 'yocto-queue';\n\nexport default function pLimit(concurrency) {\n\tif (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {\n\t\tthrow new TypeError('Expected `concurrency` to be a number from 1 and up');\n\t}\n\n\tconst queue = new Queue();\n\tlet activeCount = 0;\n\n\tconst next = () => {\n\t\tactiveCount--;\n\n\t\tif (queue.size > 0) {\n\t\t\tqueue.dequeue()();\n\t\t}\n\t};\n\n\tconst run = async (fn, resolve, args) => {\n\t\tactiveCount++;\n\n\t\tconst result = (async () => fn(...args))();\n\n\t\tresolve(result);\n\n\t\ttry {\n\t\t\tawait result;\n\t\t} catch {}\n\n\t\tnext();\n\t};\n\n\tconst enqueue = (fn, resolve, args) => {\n\t\tqueue.enqueue(run.bind(undefined, fn, resolve, args));\n\n\t\t(async () => {\n\t\t\t// This function needs to wait until the next microtask before comparing\n\t\t\t// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously\n\t\t\t// when the run function is dequeued and called. The comparison in the if-statement\n\t\t\t// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.\n\t\t\tawait Promise.resolve();\n\n\t\t\tif (activeCount < concurrency && queue.size > 0) {\n\t\t\t\tqueue.dequeue()();\n\t\t\t}\n\t\t})();\n\t};\n\n\tconst generator = (fn, ...args) => new Promise(resolve => {\n\t\tenqueue(fn, resolve, args);\n\t});\n\n\tObject.defineProperties(generator, {\n\t\tactiveCount: {\n\t\t\tget: () => activeCount,\n\t\t},\n\t\tpendingCount: {\n\t\t\tget: () => queue.size,\n\t\t},\n\t\tclearQueue: {\n\t\t\tvalue: () => {\n\t\t\t\tqueue.clear();\n\t\t\t},\n\t\t},\n\t});\n\n\treturn generator;\n}\n"],"names":[],"mappings":";AAEe,SAAS,OAAO,aAAa;AAC3C,MAAI,GAAG,OAAO,UAAU,WAAW,KAAK,gBAAgB,OAAO,sBAAsB,cAAc,IAAI;AACtG,UAAM,IAAI,UAAU,qDAAqD;AAAA,EACzE;AAED,QAAM,QAAQ,IAAI;AAClB,MAAI,cAAc;AAElB,QAAM,OAAO,MAAM;AAClB;AAEA,QAAI,MAAM,OAAO,GAAG;AACnB,YAAM,QAAO;IACb;AAAA,EACH;AAEC,QAAM,MAAM,OAAO,IAAI,SAAS,SAAS;AACxC;AAEA,UAAM,UAAU,YAAY,GAAG,GAAG,IAAI,GAAC;AAEvC,YAAQ,MAAM;AAEd,QAAI;AACH,YAAM;AAAA,IACN,QAAC;AAAA,IAAQ;AAEV;EACF;AAEC,QAAM,UAAU,CAAC,IAAI,SAAS,SAAS;AACtC,UAAM,QAAQ,IAAI,KAAK,QAAW,IAAI,SAAS,IAAI,CAAC;AAEpD,KAAC,YAAY;AAKZ,YAAM,QAAQ;AAEd,UAAI,cAAc,eAAe,MAAM,OAAO,GAAG;AAChD,cAAM,QAAO;MACb;AAAA,IACJ;EACA;AAEC,QAAM,YAAY,CAAC,OAAO,SAAS,IAAI,QAAQ,aAAW;AACzD,YAAQ,IAAI,SAAS,IAAI;AAAA,EAC3B,CAAE;AAED,SAAO,iBAAiB,WAAW;AAAA,IAClC,aAAa;AAAA,MACZ,KAAK,MAAM;AAAA,IACX;AAAA,IACD,cAAc;AAAA,MACb,KAAK,MAAM,MAAM;AAAA,IACjB;AAAA,IACD,YAAY;AAAA,MACX,OAAO,MAAM;AACZ,cAAM,MAAK;AAAA,MACX;AAAA,IACD;AAAA,EACH,CAAE;AAED,SAAO;AACR;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/p-limit/index.js"],"sourcesContent":["import Queue from 'yocto-queue';\n\nexport default function pLimit(concurrency) {\n\tif (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {\n\t\tthrow new TypeError('Expected `concurrency` to be a number from 1 and up');\n\t}\n\n\tconst queue = new Queue();\n\tlet activeCount = 0;\n\n\tconst next = () => {\n\t\tactiveCount--;\n\n\t\tif (queue.size > 0) {\n\t\t\tqueue.dequeue()();\n\t\t}\n\t};\n\n\tconst run = async (fn, resolve, args) => {\n\t\tactiveCount++;\n\n\t\tconst result = (async () => fn(...args))();\n\n\t\tresolve(result);\n\n\t\ttry {\n\t\t\tawait result;\n\t\t} catch {}\n\n\t\tnext();\n\t};\n\n\tconst enqueue = (fn, resolve, args) => {\n\t\tqueue.enqueue(run.bind(undefined, fn, resolve, args));\n\n\t\t(async () => {\n\t\t\t// This function needs to wait until the next microtask before comparing\n\t\t\t// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously\n\t\t\t// when the run function is dequeued and called. The comparison in the if-statement\n\t\t\t// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.\n\t\t\tawait Promise.resolve();\n\n\t\t\tif (activeCount < concurrency && queue.size > 0) {\n\t\t\t\tqueue.dequeue()();\n\t\t\t}\n\t\t})();\n\t};\n\n\tconst generator = (fn, ...args) => new Promise(resolve => {\n\t\tenqueue(fn, resolve, args);\n\t});\n\n\tObject.defineProperties(generator, {\n\t\tactiveCount: {\n\t\t\tget: () => activeCount,\n\t\t},\n\t\tpendingCount: {\n\t\t\tget: () => queue.size,\n\t\t},\n\t\tclearQueue: {\n\t\t\tvalue: () => {\n\t\t\t\tqueue.clear();\n\t\t\t},\n\t\t},\n\t});\n\n\treturn generator;\n}\n"],"names":[],"mappings":";AAEe,SAAS,OAAO,aAAa;AAC3C,MAAI,GAAG,OAAO,UAAU,WAAW,KAAK,gBAAgB,OAAO,sBAAsB,cAAc,IAAI;AACtG,UAAM,IAAI,UAAU,qDAAqD;AAAA,EACzE;AAED,QAAM,QAAQ,IAAI;AAClB,MAAI,cAAc;AAElB,QAAM,OAAO,MAAM;AAClB;AAEA,QAAI,MAAM,OAAO,GAAG;AACnB,YAAM,QAAO;IACb;AAAA,EACH;AAEC,QAAM,MAAM,OAAO,IAAI,SAAS,SAAS;AACxC;AAEA,UAAM,UAAU,YAAY,GAAG,GAAG,IAAI,GAAC;AAEvC,YAAQ,MAAM;AAEd,QAAI;AACH,YAAM;AAAA,IACN,QAAO;AAAA,IAAE;AAEV;EACF;AAEC,QAAM,UAAU,CAAC,IAAI,SAAS,SAAS;AACtC,UAAM,QAAQ,IAAI,KAAK,QAAW,IAAI,SAAS,IAAI,CAAC;AAEpD,KAAC,YAAY;AAKZ,YAAM,QAAQ;AAEd,UAAI,cAAc,eAAe,MAAM,OAAO,GAAG;AAChD,cAAM,QAAO;MACb;AAAA,IACJ;EACA;AAEC,QAAM,YAAY,CAAC,OAAO,SAAS,IAAI,QAAQ,aAAW;AACzD,YAAQ,IAAI,SAAS,IAAI;AAAA,EAC3B,CAAE;AAED,SAAO,iBAAiB,WAAW;AAAA,IAClC,aAAa;AAAA,MACZ,KAAK,MAAM;AAAA,IACX;AAAA,IACD,cAAc;AAAA,MACb,KAAK,MAAM,MAAM;AAAA,IACjB;AAAA,IACD,YAAY;AAAA,MACX,OAAO,MAAM;AACZ,cAAM,MAAK;AAAA,MACX;AAAA,IACD;AAAA,EACH,CAAE;AAED,SAAO;AACR;","x_google_ignoreList":[0]}
@@ -4,8 +4,8 @@ const index = require("../error-ex/index.cjs");
4
4
  const index$1 = require("../json-parse-even-better-errors/index.cjs");
5
5
  require("../lines-and-columns/build/index.cjs");
6
6
  require("../@babel/code-frame/lib/index.cjs");
7
- const index$2 = require("../../_virtual/index8.cjs");
8
- const index$3 = require("../../_virtual/index9.cjs");
7
+ const index$2 = require("../../_virtual/index12.cjs");
8
+ const index$3 = require("../../_virtual/index13.cjs");
9
9
  const errorEx = index.errorEx_1;
10
10
  const fallback = index$1.jsonParseEvenBetterErrors;
11
11
  const { default: LinesAndColumns } = index$2.__exports;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/parse-json/index.js"],"sourcesContent":["'use strict';\nconst errorEx = require('error-ex');\nconst fallback = require('json-parse-even-better-errors');\nconst {default: LinesAndColumns} = require('lines-and-columns');\nconst {codeFrameColumns} = require('@babel/code-frame');\n\nconst JSONError = errorEx('JSONError', {\n\tfileName: errorEx.append('in %s'),\n\tcodeFrame: errorEx.append('\\n\\n%s\\n')\n});\n\nconst parseJson = (string, reviver, filename) => {\n\tif (typeof reviver === 'string') {\n\t\tfilename = reviver;\n\t\treviver = null;\n\t}\n\n\ttry {\n\t\ttry {\n\t\t\treturn JSON.parse(string, reviver);\n\t\t} catch (error) {\n\t\t\tfallback(string, reviver);\n\t\t\tthrow error;\n\t\t}\n\t} catch (error) {\n\t\terror.message = error.message.replace(/\\n/g, '');\n\t\tconst indexMatch = error.message.match(/in JSON at position (\\d+) while parsing/);\n\n\t\tconst jsonError = new JSONError(error);\n\t\tif (filename) {\n\t\t\tjsonError.fileName = filename;\n\t\t}\n\n\t\tif (indexMatch && indexMatch.length > 0) {\n\t\t\tconst lines = new LinesAndColumns(string);\n\t\t\tconst index = Number(indexMatch[1]);\n\t\t\tconst location = lines.locationForIndex(index);\n\n\t\t\tconst codeFrame = codeFrameColumns(\n\t\t\t\tstring,\n\t\t\t\t{start: {line: location.line + 1, column: location.column + 1}},\n\t\t\t\t{highlightCode: true}\n\t\t\t);\n\n\t\t\tjsonError.codeFrame = codeFrame;\n\t\t}\n\n\t\tthrow jsonError;\n\t}\n};\n\nparseJson.JSONError = JSONError;\n\nmodule.exports = parseJson;\n"],"names":["require$$0","require$$1","require$$2","require$$3","index"],"mappings":";;;;;;;;AACA,MAAM,UAAUA,MAAAA;AAChB,MAAM,WAAWC,QAAAA;AACjB,MAAM,EAAC,SAAS,gBAAe,IAAIC;AACnC,MAAM,EAAC,iBAAgB,IAAIC;AAE3B,MAAM,YAAY,QAAQ,aAAa;AAAA,EACtC,UAAU,QAAQ,OAAO,OAAO;AAAA,EAChC,WAAW,QAAQ,OAAO,UAAU;AACrC,CAAC;AAED,MAAM,YAAY,CAAC,QAAQ,SAAS,aAAa;AAChD,MAAI,OAAO,YAAY,UAAU;AAChC,eAAW;AACX,cAAU;AAAA,EACV;AAED,MAAI;AACH,QAAI;AACH,aAAO,KAAK,MAAM,QAAQ,OAAO;AAAA,IACjC,SAAQ,OAAP;AACD,eAAS,QAAQ,OAAO;AACxB,YAAM;AAAA,IACN;AAAA,EACD,SAAQ,OAAP;AACD,UAAM,UAAU,MAAM,QAAQ,QAAQ,OAAO,EAAE;AAC/C,UAAM,aAAa,MAAM,QAAQ,MAAM,yCAAyC;AAEhF,UAAM,YAAY,IAAI,UAAU,KAAK;AACrC,QAAI,UAAU;AACb,gBAAU,WAAW;AAAA,IACrB;AAED,QAAI,cAAc,WAAW,SAAS,GAAG;AACxC,YAAM,QAAQ,IAAI,gBAAgB,MAAM;AACxC,YAAMC,SAAQ,OAAO,WAAW,CAAC,CAAC;AAClC,YAAM,WAAW,MAAM,iBAAiBA,MAAK;AAE7C,YAAM,YAAY;AAAA,QACjB;AAAA,QACA,EAAC,OAAO,EAAC,MAAM,SAAS,OAAO,GAAG,QAAQ,SAAS,SAAS,EAAC,EAAC;AAAA,QAC9D,EAAC,eAAe,KAAI;AAAA,MACxB;AAEG,gBAAU,YAAY;AAAA,IACtB;AAED,UAAM;AAAA,EACN;AACF;AAEA,UAAU,YAAY;AAEtB,IAAA,cAAiB;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/parse-json/index.js"],"sourcesContent":["'use strict';\nconst errorEx = require('error-ex');\nconst fallback = require('json-parse-even-better-errors');\nconst {default: LinesAndColumns} = require('lines-and-columns');\nconst {codeFrameColumns} = require('@babel/code-frame');\n\nconst JSONError = errorEx('JSONError', {\n\tfileName: errorEx.append('in %s'),\n\tcodeFrame: errorEx.append('\\n\\n%s\\n')\n});\n\nconst parseJson = (string, reviver, filename) => {\n\tif (typeof reviver === 'string') {\n\t\tfilename = reviver;\n\t\treviver = null;\n\t}\n\n\ttry {\n\t\ttry {\n\t\t\treturn JSON.parse(string, reviver);\n\t\t} catch (error) {\n\t\t\tfallback(string, reviver);\n\t\t\tthrow error;\n\t\t}\n\t} catch (error) {\n\t\terror.message = error.message.replace(/\\n/g, '');\n\t\tconst indexMatch = error.message.match(/in JSON at position (\\d+) while parsing/);\n\n\t\tconst jsonError = new JSONError(error);\n\t\tif (filename) {\n\t\t\tjsonError.fileName = filename;\n\t\t}\n\n\t\tif (indexMatch && indexMatch.length > 0) {\n\t\t\tconst lines = new LinesAndColumns(string);\n\t\t\tconst index = Number(indexMatch[1]);\n\t\t\tconst location = lines.locationForIndex(index);\n\n\t\t\tconst codeFrame = codeFrameColumns(\n\t\t\t\tstring,\n\t\t\t\t{start: {line: location.line + 1, column: location.column + 1}},\n\t\t\t\t{highlightCode: true}\n\t\t\t);\n\n\t\t\tjsonError.codeFrame = codeFrame;\n\t\t}\n\n\t\tthrow jsonError;\n\t}\n};\n\nparseJson.JSONError = JSONError;\n\nmodule.exports = parseJson;\n"],"names":["require$$0","require$$1","require$$2","require$$3","index"],"mappings":";;;;;;;;AACA,MAAM,UAAUA,MAAAA;AAChB,MAAM,WAAWC,QAAAA;AACjB,MAAM,EAAC,SAAS,gBAAe,IAAIC;AACnC,MAAM,EAAC,iBAAgB,IAAIC;AAE3B,MAAM,YAAY,QAAQ,aAAa;AAAA,EACtC,UAAU,QAAQ,OAAO,OAAO;AAAA,EAChC,WAAW,QAAQ,OAAO,UAAU;AACrC,CAAC;AAED,MAAM,YAAY,CAAC,QAAQ,SAAS,aAAa;AAChD,MAAI,OAAO,YAAY,UAAU;AAChC,eAAW;AACX,cAAU;AAAA,EACV;AAED,MAAI;AACH,QAAI;AACH,aAAO,KAAK,MAAM,QAAQ,OAAO;AAAA,IACjC,SAAQ,OAAO;AACf,eAAS,QAAQ,OAAO;AACxB,YAAM;AAAA,IACN;AAAA,EACD,SAAQ,OAAO;AACf,UAAM,UAAU,MAAM,QAAQ,QAAQ,OAAO,EAAE;AAC/C,UAAM,aAAa,MAAM,QAAQ,MAAM,yCAAyC;AAEhF,UAAM,YAAY,IAAI,UAAU,KAAK;AACrC,QAAI,UAAU;AACb,gBAAU,WAAW;AAAA,IACrB;AAED,QAAI,cAAc,WAAW,SAAS,GAAG;AACxC,YAAM,QAAQ,IAAI,gBAAgB,MAAM;AACxC,YAAMC,SAAQ,OAAO,WAAW,CAAC,CAAC;AAClC,YAAM,WAAW,MAAM,iBAAiBA,MAAK;AAE7C,YAAM,YAAY;AAAA,QACjB;AAAA,QACA,EAAC,OAAO,EAAC,MAAM,SAAS,OAAO,GAAG,QAAQ,SAAS,SAAS,EAAC,EAAC;AAAA,QAC9D,EAAC,eAAe,KAAI;AAAA,MACxB;AAEG,gBAAU,YAAY;AAAA,IACtB;AAED,UAAM;AAAA,EACN;AACF;AAEA,UAAU,YAAY;AAEtB,IAAA,cAAiB;;;","x_google_ignoreList":[0]}
@@ -3,8 +3,8 @@ import { e as errorEx_1 } from "../error-ex/index.js";
3
3
  import { j as jsonParseEvenBetterErrors } from "../json-parse-even-better-errors/index.js";
4
4
  import "../lines-and-columns/build/index.js";
5
5
  import "../@babel/code-frame/lib/index.js";
6
- import { __exports as build } from "../../_virtual/index8.js";
7
- import { __exports as lib } from "../../_virtual/index9.js";
6
+ import { __exports as build } from "../../_virtual/index12.js";
7
+ import { __exports as lib } from "../../_virtual/index13.js";
8
8
  const errorEx = errorEx_1;
9
9
  const fallback = jsonParseEvenBetterErrors;
10
10
  const { default: LinesAndColumns } = build;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/parse-json/index.js"],"sourcesContent":["'use strict';\nconst errorEx = require('error-ex');\nconst fallback = require('json-parse-even-better-errors');\nconst {default: LinesAndColumns} = require('lines-and-columns');\nconst {codeFrameColumns} = require('@babel/code-frame');\n\nconst JSONError = errorEx('JSONError', {\n\tfileName: errorEx.append('in %s'),\n\tcodeFrame: errorEx.append('\\n\\n%s\\n')\n});\n\nconst parseJson = (string, reviver, filename) => {\n\tif (typeof reviver === 'string') {\n\t\tfilename = reviver;\n\t\treviver = null;\n\t}\n\n\ttry {\n\t\ttry {\n\t\t\treturn JSON.parse(string, reviver);\n\t\t} catch (error) {\n\t\t\tfallback(string, reviver);\n\t\t\tthrow error;\n\t\t}\n\t} catch (error) {\n\t\terror.message = error.message.replace(/\\n/g, '');\n\t\tconst indexMatch = error.message.match(/in JSON at position (\\d+) while parsing/);\n\n\t\tconst jsonError = new JSONError(error);\n\t\tif (filename) {\n\t\t\tjsonError.fileName = filename;\n\t\t}\n\n\t\tif (indexMatch && indexMatch.length > 0) {\n\t\t\tconst lines = new LinesAndColumns(string);\n\t\t\tconst index = Number(indexMatch[1]);\n\t\t\tconst location = lines.locationForIndex(index);\n\n\t\t\tconst codeFrame = codeFrameColumns(\n\t\t\t\tstring,\n\t\t\t\t{start: {line: location.line + 1, column: location.column + 1}},\n\t\t\t\t{highlightCode: true}\n\t\t\t);\n\n\t\t\tjsonError.codeFrame = codeFrame;\n\t\t}\n\n\t\tthrow jsonError;\n\t}\n};\n\nparseJson.JSONError = JSONError;\n\nmodule.exports = parseJson;\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;AACA,MAAM,UAAUA;AAChB,MAAM,WAAWC;AACjB,MAAM,EAAC,SAAS,gBAAe,IAAIC;AACnC,MAAM,EAAC,iBAAgB,IAAIC;AAE3B,MAAM,YAAY,QAAQ,aAAa;AAAA,EACtC,UAAU,QAAQ,OAAO,OAAO;AAAA,EAChC,WAAW,QAAQ,OAAO,UAAU;AACrC,CAAC;AAED,MAAM,YAAY,CAAC,QAAQ,SAAS,aAAa;AAChD,MAAI,OAAO,YAAY,UAAU;AAChC,eAAW;AACX,cAAU;AAAA,EACV;AAED,MAAI;AACH,QAAI;AACH,aAAO,KAAK,MAAM,QAAQ,OAAO;AAAA,IACjC,SAAQ,OAAP;AACD,eAAS,QAAQ,OAAO;AACxB,YAAM;AAAA,IACN;AAAA,EACD,SAAQ,OAAP;AACD,UAAM,UAAU,MAAM,QAAQ,QAAQ,OAAO,EAAE;AAC/C,UAAM,aAAa,MAAM,QAAQ,MAAM,yCAAyC;AAEhF,UAAM,YAAY,IAAI,UAAU,KAAK;AACrC,QAAI,UAAU;AACb,gBAAU,WAAW;AAAA,IACrB;AAED,QAAI,cAAc,WAAW,SAAS,GAAG;AACxC,YAAM,QAAQ,IAAI,gBAAgB,MAAM;AACxC,YAAM,QAAQ,OAAO,WAAW,CAAC,CAAC;AAClC,YAAM,WAAW,MAAM,iBAAiB,KAAK;AAE7C,YAAM,YAAY;AAAA,QACjB;AAAA,QACA,EAAC,OAAO,EAAC,MAAM,SAAS,OAAO,GAAG,QAAQ,SAAS,SAAS,EAAC,EAAC;AAAA,QAC9D,EAAC,eAAe,KAAI;AAAA,MACxB;AAEG,gBAAU,YAAY;AAAA,IACtB;AAED,UAAM;AAAA,EACN;AACF;AAEA,UAAU,YAAY;AAEtB,IAAA,cAAiB;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/parse-json/index.js"],"sourcesContent":["'use strict';\nconst errorEx = require('error-ex');\nconst fallback = require('json-parse-even-better-errors');\nconst {default: LinesAndColumns} = require('lines-and-columns');\nconst {codeFrameColumns} = require('@babel/code-frame');\n\nconst JSONError = errorEx('JSONError', {\n\tfileName: errorEx.append('in %s'),\n\tcodeFrame: errorEx.append('\\n\\n%s\\n')\n});\n\nconst parseJson = (string, reviver, filename) => {\n\tif (typeof reviver === 'string') {\n\t\tfilename = reviver;\n\t\treviver = null;\n\t}\n\n\ttry {\n\t\ttry {\n\t\t\treturn JSON.parse(string, reviver);\n\t\t} catch (error) {\n\t\t\tfallback(string, reviver);\n\t\t\tthrow error;\n\t\t}\n\t} catch (error) {\n\t\terror.message = error.message.replace(/\\n/g, '');\n\t\tconst indexMatch = error.message.match(/in JSON at position (\\d+) while parsing/);\n\n\t\tconst jsonError = new JSONError(error);\n\t\tif (filename) {\n\t\t\tjsonError.fileName = filename;\n\t\t}\n\n\t\tif (indexMatch && indexMatch.length > 0) {\n\t\t\tconst lines = new LinesAndColumns(string);\n\t\t\tconst index = Number(indexMatch[1]);\n\t\t\tconst location = lines.locationForIndex(index);\n\n\t\t\tconst codeFrame = codeFrameColumns(\n\t\t\t\tstring,\n\t\t\t\t{start: {line: location.line + 1, column: location.column + 1}},\n\t\t\t\t{highlightCode: true}\n\t\t\t);\n\n\t\t\tjsonError.codeFrame = codeFrame;\n\t\t}\n\n\t\tthrow jsonError;\n\t}\n};\n\nparseJson.JSONError = JSONError;\n\nmodule.exports = parseJson;\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;AACA,MAAM,UAAUA;AAChB,MAAM,WAAWC;AACjB,MAAM,EAAC,SAAS,gBAAe,IAAIC;AACnC,MAAM,EAAC,iBAAgB,IAAIC;AAE3B,MAAM,YAAY,QAAQ,aAAa;AAAA,EACtC,UAAU,QAAQ,OAAO,OAAO;AAAA,EAChC,WAAW,QAAQ,OAAO,UAAU;AACrC,CAAC;AAED,MAAM,YAAY,CAAC,QAAQ,SAAS,aAAa;AAChD,MAAI,OAAO,YAAY,UAAU;AAChC,eAAW;AACX,cAAU;AAAA,EACV;AAED,MAAI;AACH,QAAI;AACH,aAAO,KAAK,MAAM,QAAQ,OAAO;AAAA,IACjC,SAAQ,OAAO;AACf,eAAS,QAAQ,OAAO;AACxB,YAAM;AAAA,IACN;AAAA,EACD,SAAQ,OAAO;AACf,UAAM,UAAU,MAAM,QAAQ,QAAQ,OAAO,EAAE;AAC/C,UAAM,aAAa,MAAM,QAAQ,MAAM,yCAAyC;AAEhF,UAAM,YAAY,IAAI,UAAU,KAAK;AACrC,QAAI,UAAU;AACb,gBAAU,WAAW;AAAA,IACrB;AAED,QAAI,cAAc,WAAW,SAAS,GAAG;AACxC,YAAM,QAAQ,IAAI,gBAAgB,MAAM;AACxC,YAAM,QAAQ,OAAO,WAAW,CAAC,CAAC;AAClC,YAAM,WAAW,MAAM,iBAAiB,KAAK;AAE7C,YAAM,YAAY;AAAA,QACjB;AAAA,QACA,EAAC,OAAO,EAAC,MAAM,SAAS,OAAO,GAAG,QAAQ,SAAS,SAAS,EAAC,EAAC;AAAA,QAC9D,EAAC,eAAe,KAAI;AAAA,MACxB;AAEG,gBAAU,YAAY;AAAA,IACtB;AAED,UAAM;AAAA,EACN;AACF;AAEA,UAAU,YAAY;AAEtB,IAAA,cAAiB;;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../_virtual/index19.cjs");
3
+ const index = require("../../_virtual/index15.cjs");
4
4
  const pathKey = (options = {}) => {
5
5
  const environment = options.env || process.env;
6
6
  const platform = options.platform || process.platform;
@@ -1,4 +1,4 @@
1
- import { __module as pathKey$1 } from "../../_virtual/index19.js";
1
+ import { __module as pathKey$1 } from "../../_virtual/index15.js";
2
2
  const pathKey = (options = {}) => {
3
3
  const environment = options.env || process.env;
4
4
  const platform = options.platform || process.platform;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../_virtual/index6.cjs");
2
+ const index = require("../../_virtual/index4.cjs");
3
3
  const require$$0 = require("util");
4
4
  const require$$0$1 = require("fs");
5
5
  const { promisify } = require$$0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/path-type/index.js"],"sourcesContent":["'use strict';\nconst {promisify} = require('util');\nconst fs = require('fs');\n\nasync function isType(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\tconst stats = await promisify(fs[fsStatType])(filePath);\n\t\treturn stats[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nfunction isTypeSync(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\treturn fs[fsStatType](filePath)[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nexports.isFile = isType.bind(null, 'stat', 'isFile');\nexports.isDirectory = isType.bind(null, 'stat', 'isDirectory');\nexports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink');\nexports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile');\nexports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory');\nexports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');\n"],"names":["require$$1","pathType"],"mappings":";;;;AACA,MAAM,EAAC,UAAS,IAAI;AACpB,MAAM,KAAKA;AAEX,eAAe,OAAO,YAAY,iBAAiB,UAAU;AAC5D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,UAAU;AAAA,EAC/D;AAED,MAAI;AACH,UAAM,QAAQ,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,QAAQ;AACtD,WAAO,MAAM,eAAe;EAC5B,SAAQ,OAAP;AACD,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEA,SAAS,WAAW,YAAY,iBAAiB,UAAU;AAC1D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,UAAU;AAAA,EAC/D;AAED,MAAI;AACH,WAAO,GAAG,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAC;AAAA,EAChD,SAAQ,OAAP;AACD,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEcC,MAAAA,UAAA,SAAG,OAAO,KAAK,MAAM,QAAQ,QAAQ;AAChCA,MAAAA,UAAA,cAAG,OAAO,KAAK,MAAM,QAAQ,aAAa;AAC5CA,MAAAA,UAAA,YAAG,OAAO,KAAK,MAAM,SAAS,gBAAgB;AAC7CA,MAAAA,UAAA,aAAG,WAAW,KAAK,MAAM,YAAY,QAAQ;AACxCA,MAAAA,UAAA,kBAAG,WAAW,KAAK,MAAM,YAAY,aAAa;AACpDA,MAAA,UAAA,gBAAG,WAAW,KAAK,MAAM,aAAa,gBAAgB;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../node_modules/path-type/index.js"],"sourcesContent":["'use strict';\nconst {promisify} = require('util');\nconst fs = require('fs');\n\nasync function isType(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\tconst stats = await promisify(fs[fsStatType])(filePath);\n\t\treturn stats[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nfunction isTypeSync(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\treturn fs[fsStatType](filePath)[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nexports.isFile = isType.bind(null, 'stat', 'isFile');\nexports.isDirectory = isType.bind(null, 'stat', 'isDirectory');\nexports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink');\nexports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile');\nexports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory');\nexports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');\n"],"names":["require$$1","pathType"],"mappings":";;;;AACA,MAAM,EAAC,UAAS,IAAI;AACpB,MAAM,KAAKA;AAEX,eAAe,OAAO,YAAY,iBAAiB,UAAU;AAC5D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,QAAQ,EAAE;AAAA,EAC/D;AAED,MAAI;AACH,UAAM,QAAQ,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,QAAQ;AACtD,WAAO,MAAM,eAAe;EAC5B,SAAQ,OAAO;AACf,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEA,SAAS,WAAW,YAAY,iBAAiB,UAAU;AAC1D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,QAAQ,EAAE;AAAA,EAC/D;AAED,MAAI;AACH,WAAO,GAAG,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAC;AAAA,EAChD,SAAQ,OAAO;AACf,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEcC,MAAAA,UAAA,SAAG,OAAO,KAAK,MAAM,QAAQ,QAAQ;AAChCA,MAAAA,UAAA,cAAG,OAAO,KAAK,MAAM,QAAQ,aAAa;AAC5CA,MAAAA,UAAA,YAAG,OAAO,KAAK,MAAM,SAAS,gBAAgB;AAC7CA,MAAAA,UAAA,aAAG,WAAW,KAAK,MAAM,YAAY,QAAQ;AACxCA,MAAAA,UAAA,kBAAG,WAAW,KAAK,MAAM,YAAY,aAAa;AACpDA,MAAA,UAAA,gBAAG,WAAW,KAAK,MAAM,aAAa,gBAAgB;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as pathType } from "../../_virtual/index6.js";
1
+ import { __exports as pathType } from "../../_virtual/index4.js";
2
2
  import require$$0 from "util";
3
3
  import require$$0$1 from "fs";
4
4
  const { promisify } = require$$0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/path-type/index.js"],"sourcesContent":["'use strict';\nconst {promisify} = require('util');\nconst fs = require('fs');\n\nasync function isType(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\tconst stats = await promisify(fs[fsStatType])(filePath);\n\t\treturn stats[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nfunction isTypeSync(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\treturn fs[fsStatType](filePath)[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nexports.isFile = isType.bind(null, 'stat', 'isFile');\nexports.isDirectory = isType.bind(null, 'stat', 'isDirectory');\nexports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink');\nexports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile');\nexports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory');\nexports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');\n"],"names":["require$$1"],"mappings":";;;AACA,MAAM,EAAC,UAAS,IAAI;AACpB,MAAM,KAAKA;AAEX,eAAe,OAAO,YAAY,iBAAiB,UAAU;AAC5D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,UAAU;AAAA,EAC/D;AAED,MAAI;AACH,UAAM,QAAQ,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,QAAQ;AACtD,WAAO,MAAM,eAAe;EAC5B,SAAQ,OAAP;AACD,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEA,SAAS,WAAW,YAAY,iBAAiB,UAAU;AAC1D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,UAAU;AAAA,EAC/D;AAED,MAAI;AACH,WAAO,GAAG,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAC;AAAA,EAChD,SAAQ,OAAP;AACD,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEc,SAAA,SAAG,OAAO,KAAK,MAAM,QAAQ,QAAQ;AAChC,SAAA,cAAG,OAAO,KAAK,MAAM,QAAQ,aAAa;AAC5C,SAAA,YAAG,OAAO,KAAK,MAAM,SAAS,gBAAgB;AAC7C,SAAA,aAAG,WAAW,KAAK,MAAM,YAAY,QAAQ;AACxC,SAAA,kBAAG,WAAW,KAAK,MAAM,YAAY,aAAa;AACpD,SAAA,gBAAG,WAAW,KAAK,MAAM,aAAa,gBAAgB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/path-type/index.js"],"sourcesContent":["'use strict';\nconst {promisify} = require('util');\nconst fs = require('fs');\n\nasync function isType(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\tconst stats = await promisify(fs[fsStatType])(filePath);\n\t\treturn stats[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nfunction isTypeSync(fsStatType, statsMethodName, filePath) {\n\tif (typeof filePath !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof filePath}`);\n\t}\n\n\ttry {\n\t\treturn fs[fsStatType](filePath)[statsMethodName]();\n\t} catch (error) {\n\t\tif (error.code === 'ENOENT') {\n\t\t\treturn false;\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n\nexports.isFile = isType.bind(null, 'stat', 'isFile');\nexports.isDirectory = isType.bind(null, 'stat', 'isDirectory');\nexports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink');\nexports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile');\nexports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory');\nexports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');\n"],"names":["require$$1"],"mappings":";;;AACA,MAAM,EAAC,UAAS,IAAI;AACpB,MAAM,KAAKA;AAEX,eAAe,OAAO,YAAY,iBAAiB,UAAU;AAC5D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,QAAQ,EAAE;AAAA,EAC/D;AAED,MAAI;AACH,UAAM,QAAQ,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,QAAQ;AACtD,WAAO,MAAM,eAAe;EAC5B,SAAQ,OAAO;AACf,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEA,SAAS,WAAW,YAAY,iBAAiB,UAAU;AAC1D,MAAI,OAAO,aAAa,UAAU;AACjC,UAAM,IAAI,UAAU,0BAA0B,OAAO,QAAQ,EAAE;AAAA,EAC/D;AAED,MAAI;AACH,WAAO,GAAG,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAC;AAAA,EAChD,SAAQ,OAAO;AACf,QAAI,MAAM,SAAS,UAAU;AAC5B,aAAO;AAAA,IACP;AAED,UAAM;AAAA,EACN;AACF;AAEc,SAAA,SAAG,OAAO,KAAK,MAAM,QAAQ,QAAQ;AAChC,SAAA,cAAG,OAAO,KAAK,MAAM,QAAQ,aAAa;AAC5C,SAAA,YAAG,OAAO,KAAK,MAAM,SAAS,gBAAgB;AAC7C,SAAA,aAAG,WAAW,KAAK,MAAM,YAAY,QAAQ;AACxC,SAAA,kBAAG,WAAW,KAAK,MAAM,YAAY,aAAa;AACpD,SAAA,gBAAG,WAAW,KAAK,MAAM,aAAa,gBAAgB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"git-host-info.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":";;AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACxH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACrI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,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AG,IAAI,IAAI,SAAS,MAAM,KAAK,CAAC;AAGtD,QAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;AAC7B;AAAA,IACD;AAED,QAAI,WAAW,QAAQ,SAAS,MAAM,GAAG;AACvC,gBAAU,QAAQ,MAAM,GAAG,EAAE;AAAA,IAC9B;AAED,QAAI,CAAC,QAAQ,CAAC,SAAS;AACrB;AAAA,IACD;AAED,WAAO,EAAE,MAAM,SAAS,YAAY,IAAI,KAAK,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,OAAO,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"git-host-info.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":";;AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACzH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACtI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAClK,oBAAoB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,UAAU,MAAM,UAAU,WAAY,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,IAAI,QAAQ,IAAI,YAAY,cAAc,QAAQ,CAAC,IAAI,IAAI,GAAG,UAAU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/H,iBAAiB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAY,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,YAAY,YAAY,UAAU,KAAK,MAAM;AAAA,EAC7I,cAAc,CAAC,EAAE,QAAQ,MAAM,QAAO,MAAO,sBAAsB,IAAI,IAAI,OAAO;AAAA,EAClF,cAAc,CAAC,EAAE,QAAQ,MAAM,SAAS,UAAU,iBAAiB,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAChK,SAAS,CAAC,QAAQ;AAChB,QAAI,CAAG,EAAA,MAAM,SAAS,GAAG,IAAI,IAAI,SAAS,MAAM,KAAK,CAAC;AAGtD,QAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;AAC7B;AAAA,IACD;AAED,QAAI,WAAW,QAAQ,SAAS,MAAM,GAAG;AACvC,gBAAU,QAAQ,MAAM,GAAG,EAAE;AAAA,IAC9B;AAED,QAAI,CAAC,QAAQ,CAAC,SAAS;AACrB;AAAA,IACD;AAED,WAAO,EAAE,MAAM,SAAS,YAAY,IAAI,KAAK,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,IAAI,GAAG,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"git-host-info.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":"AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,UAAU,QAAQ,cAAc,UAAU,KAAK,UAAU;AAAA,EACxH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO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Q,UAAU,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC;AAAA,EAC/J,SAAS,CAAC,QAAQ;AAChB,QAAI,CAAG,EAAA,MAAM,SAAS,GAAG,IAAI,IAAI,SAAS,MAAM,KAAK,CAAC;AAGtD,QAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;AAC7B;AAAA,IACD;AAED,QAAI,WAAW,QAAQ,SAAS,MAAM,GAAG;AACvC,gBAAU,QAAQ,MAAM,GAAG,EAAE;AAAA,IAC9B;AAED,QAAI,CAAC,QAAQ,CAAC,SAAS;AACrB;AAAA,IACD;AAED,WAAO,EAAE,MAAM,SAAS,YAAY,IAAI,KAAK,MAAM,CAAC,EAAG;AAAA,EACxD;AACH,CAAC;AAED,MAAM,QAAQ,OAAO,KAAK,QAAQ;AAClC,SAAS,aAAa,CAAE;AACxB,SAAS,WAAW,CAAE;AACtB,WAAW,QAAQ,OAAO;AACxB,WAAS,WAAW,GAAG,OAAO,IAAI;AAClC,WAAS,SAAS,SAAS,IAAI,EAAE,MAAM,IAAI;AAC7C;AAEA,SAAS,mBAAoB,UAAU;AACrC,SAAO,SAAS,YAAa,EAAC,QAAQ,iBAAiB,EAAE,EAAE,QAAQ,QAAQ,GAAG;AAChF;AAEA,IAAA,cAAiB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"git-host-info.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host-info.js"],"sourcesContent":["'use strict'\nconst maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''\nconst maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''\n\nconst defaults = {\n sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'master')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || 'master'}/${path}`,\n shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,\n hashformat: formatHashFragment\n}\n\nconst gitHosts = {}\ngitHosts.github = Object.assign({}, defaults, {\n // First two are insecure and generally shouldn't be used any more, but\n // they are still supported.\n protocols: ['git:', 'http:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'github.com',\n treepath: 'tree',\n filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, '@')}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || 'master'}/${path}`,\n gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, type, committish] = url.pathname.split('/', 5)\n if (type && type !== 'tree') {\n return\n }\n\n if (!type) {\n committish = url.hash.slice(1)\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish }\n }\n})\n\ngitHosts.bitbucket = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'bitbucket.org',\n treepath: 'src',\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || 'master'}.tar.gz`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (['get'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gitlab = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gitlab.com',\n treepath: 'tree',\n httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n const path = url.pathname.slice(1)\n if (path.includes('/-/') || path.includes('/archive.tar.gz')) {\n return\n }\n\n const segments = path.split('/')\n let project = segments.pop()\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n const user = segments.join('/')\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\ngitHosts.gist = Object.assign({}, defaults, {\n protocols: ['git:', 'git+ssh:', 'git+https:', 'ssh:', 'https:'],\n domain: 'gist.github.com',\n sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin('#', committish)}`,\n sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin('#', committish)}`,\n browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}${maybeJoin('#', hashformat(path))}`,\n docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin('/', maybeEncode(committish))}`,\n httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin('#', committish)}`,\n filetemplate: ({ user, project, committish, path }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin('/', maybeEncode(committish))}/${path}`,\n shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin('#', committish)}`,\n pathtemplate: ({ project, committish }) => `${project}${maybeJoin('#', committish)}`,\n bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,\n gittemplate: ({ domain, project, committish }) => `git://${domain}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ project, committish }) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || 'master'}`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n if (aux === 'raw') {\n return\n }\n\n if (!project) {\n if (!user) {\n return\n }\n\n project = user\n user = null\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n return { user, project, committish: url.hash.slice(1) }\n },\n hashformat: function (fragment) {\n return fragment && 'file-' + formatHashFragment(fragment)\n }\n})\n\ngitHosts.sourcehut = Object.assign({}, defaults, {\n protocols: ['git+ssh:', 'https:'],\n domain: 'git.sr.ht',\n treepath: 'tree',\n browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,\n filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,\n httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,\n tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,\n bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,\n docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,\n extract: (url) => {\n let [, user, project, aux] = url.pathname.split('/', 4)\n\n // tarball url\n if (['archive'].includes(aux)) {\n return\n }\n\n if (project && project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (!user || !project) {\n return\n }\n\n return { user, project, committish: url.hash.slice(1) }\n }\n})\n\nconst names = Object.keys(gitHosts)\ngitHosts.byShortcut = {}\ngitHosts.byDomain = {}\nfor (const name of names) {\n gitHosts.byShortcut[`${name}:`] = name\n gitHosts.byDomain[gitHosts[name].domain] = name\n}\n\nfunction formatHashFragment (fragment) {\n return fragment.toLowerCase().replace(/^\\W+|\\/|\\W+$/g, '').replace(/\\W+/g, '-')\n}\n\nmodule.exports = gitHosts\n"],"names":[],"mappings":"AACA,MAAM,YAAY,IAAI,SAAS,KAAK,MAAM,SAAO,GAAG,IAAI,KAAK,KAAK,EAAE,IAAI;AACxE,MAAM,cAAc,CAAC,QAAQ,MAAM,mBAAmB,GAAG,IAAI;AAE7D,MAAM,WAAW;AAAA,EACf,aAAa,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,OAAO,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACzH,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,WAAU,MAAO,iBAAiB,MAAM,IAAI,IAAI,IAAI,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC;AAAA,EACtI,gBAAgB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,SAAU,MAAK,WAAW,MAAM,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,KAAK,UAAU,KAAK,YAAY,UAAU,CAAC,CAAC;AAAA,EAClK,oBAAoB,CAAC,EAAE,QAAQ,MAAM,SAAS,YAAY,UAAU,MAAM,UAA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ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"git-host.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";;;AACA,MAAM,WAAWA,YAA6B;AAE9C,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO,IAAI;AACpF,WAAO,OAAO,MAAM,SAAS,IAAI,CAAC;AAClC,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,SAAK,aAAa;AAClB,SAAK,UAAU;AACf,SAAK,OAAO;AAAA,EACb;AAAA,EAED,OAAQ;AACN,WAAO,KAAK,aAAa,IAAI,KAAK,eAAe;AAAA,EAClD;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,MAAO,UAAU,MAAM;AACrB,QAAI,OAAO,aAAa,YAAY;AAClC,YAAM,UAAU,EAAE,GAAG,MAAM,GAAG,KAAK,MAAM,GAAG,KAAM;AAGlD,UAAI,CAAC,QAAQ,MAAM;AACjB,gBAAQ,OAAO;AAAA,MAChB;AAGD,UAAI,QAAQ,KAAK,WAAW,GAAG,GAAG;AAChC,gBAAQ,OAAO,QAAQ,KAAK,MAAM,CAAC;AAAA,MACpC;AAED,UAAI,QAAQ,cAAc;AACxB,gBAAQ,aAAa;AAAA,MACtB;AAED,YAAM,SAAS,SAAS,OAAO;AAC/B,aAAO,QAAQ,aAAa,OAAO,WAAW,MAAM,IAAI,OAAO,MAAM,CAAC,IAAI;AAAA,IAC3E;AAED,WAAO;AAAA,EACR;AAAA,EAED,OAAQ,MAAM;AACZ,WAAO,KAAK,MAAM,KAAK,gBAAgB,IAAI;AAAA,EAC5C;AAAA,EAED,OAAQ,MAAM,UAAU,MAAM;AAE5B,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,KAAK,MAAM,KAAK,gBAAgB,IAAI;AAAA,IAC5C;AAED,QAAI,OAAO,aAAa,UAAU;AAChC,aAAO;AACP,iBAAW;AAAA,IACZ;AACD,WAAO,KAAK,MAAM,KAAK,oBAAoB,EAAE,GAAG,MAAM,UAAU,MAAM;AAAA,EACvE;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,MAAO,MAAM;AACX,WAAO,KAAK,MAAM,KAAK,eAAe,IAAI;AAAA,EAC3C;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,SAAU,MAAM;AACd,WAAO,KAAK,MAAM,KAAK,kBAAkB,IAAI;AAAA,EAC9C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,QAAS,MAAM;AACb,WAAO,KAAK,MAAM,KAAK,iBAAiB,EAAE,GAAG,MAAM,cAAc,OAAO;AAAA,EACzE;AAAA,EAED,KAAM,MAAM,MAAM;AAChB,WAAO,KAAK,MAAM,KAAK,cAAc,EAAE,GAAG,MAAM,MAAM;AAAA,EACvD;AAAA,EAED,2BAA4B;AAC1B,WAAO,KAAK;AAAA,EACb;AAAA,EAED,SAAU,MAAM;AACd,QAAI,KAAK,WAAW,OAAO,KAAK,KAAK,OAAO,MAAM,YAAY;AAC5D,aAAO,KAAK,KAAK,OAAO,EAAE,IAAI;AAAA,IAC/B;AAED,WAAO,KAAK,OAAO,IAAI;AAAA,EACxB;AACH;AACA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"git-host.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require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AK,MAAM,KAAK,oBAAoB,EAAE,GAAG,MAAM,UAAU,MAAM;AAAA,EACvE;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,MAAO,MAAM;AACX,WAAO,KAAK,MAAM,KAAK,eAAe,IAAI;AAAA,EAC3C;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,SAAU,MAAM;AACd,WAAO,KAAK,MAAM,KAAK,kBAAkB,IAAI;AAAA,EAC9C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,QAAS,MAAM;AACb,WAAO,KAAK,MAAM,KAAK,iBAAiB,EAAE,GAAG,MAAM,cAAc,OAAO;AAAA,EACzE;AAAA,EAED,KAAM,MAAM,MAAM;AAChB,WAAO,KAAK,MAAM,KAAK,cAAc,EAAE,GAAG,MAAM,MAAM;AAAA,EACvD;AAAA,EAED,2BAA4B;AAC1B,WAAO,KAAK;AAAA,EACb;AAAA,EAED,SAAU,MAAM;AACd,QAAI,KAAK,WAAW,OAAO,KAAK,KAAK,OAAO,MAAM,YAAY;AAC5D,aAAO,KAAK,KAAK,OAAO,EAAE,IAAI;AAAA,IAC/B;AAED,WAAO,KAAK,OAAO,IAAI;AAAA,EACxB;AACH;AACA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"git-host.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";AACA,MAAM,WAAWA;AAEjB,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO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;AAAA,EAC1C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,MAAO,MAAM;AACX,WAAO,KAAK,MAAM,KAAK,eAAe,IAAI;AAAA,EAC3C;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,SAAU,MAAM;AACd,WAAO,KAAK,MAAM,KAAK,kBAAkB,IAAI;AAAA,EAC9C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,QAAS,MAAM;AACb,WAAO,KAAK,MAAM,KAAK,iBAAiB,EAAE,GAAG,MAAM,cAAc,OAAO;AAAA,EACzE;AAAA,EAED,KAAM,MAAM,MAAM;AAChB,WAAO,KAAK,MAAM,KAAK,cAAc,EAAE,GAAG,MAAM,MAAM;AAAA,EACvD;AAAA,EAED,2BAA4B;AAC1B,WAAO,KAAK;AAAA,EACb;AAAA,EAED,SAAU,MAAM;AACd,QAAI,KAAK,WAAW,OAAO,KAAK,KAAK,OAAO,MAAM,YAAY;AAC5D,aAAO,KAAK,KAAK,OAAO,EAAE,IAAI;AAAA,IAC/B;AAED,WAAO,KAAK,OAAO,IAAI;AAAA,EACxB;AACH;AACA,IAAA,UAAiB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"git-host.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/git-host.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\n\nclass GitHost {\n constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {\n Object.assign(this, gitHosts[type])\n this.type = type\n this.user = user\n this.auth = auth\n this.project = project\n this.committish = committish\n this.default = defaultRepresentation\n this.opts = opts\n }\n\n hash () {\n return this.committish ? `#${this.committish}` : ''\n }\n\n ssh (opts) {\n return this._fill(this.sshtemplate, opts)\n }\n\n _fill (template, opts) {\n if (typeof template === 'function') {\n const options = { ...this, ...this.opts, ...opts }\n\n // the path should always be set so we don't end up with 'undefined' in urls\n if (!options.path) {\n options.path = ''\n }\n\n // template functions will insert the leading slash themselves\n if (options.path.startsWith('/')) {\n options.path = options.path.slice(1)\n }\n\n if (options.noCommittish) {\n options.committish = null\n }\n\n const result = template(options)\n return options.noGitPlus && result.startsWith('git+') ? result.slice(4) : result\n }\n\n return null\n }\n\n sshurl (opts) {\n return this._fill(this.sshurltemplate, opts)\n }\n\n browse (path, fragment, opts) {\n // not a string, treat path as opts\n if (typeof path !== 'string') {\n return this._fill(this.browsetemplate, path)\n }\n\n if (typeof fragment !== 'string') {\n opts = fragment\n fragment = null\n }\n return this._fill(this.browsefiletemplate, { ...opts, fragment, path })\n }\n\n docs (opts) {\n return this._fill(this.docstemplate, opts)\n }\n\n bugs (opts) {\n return this._fill(this.bugstemplate, opts)\n }\n\n https (opts) {\n return this._fill(this.httpstemplate, opts)\n }\n\n git (opts) {\n return this._fill(this.gittemplate, opts)\n }\n\n shortcut (opts) {\n return this._fill(this.shortcuttemplate, opts)\n }\n\n path (opts) {\n return this._fill(this.pathtemplate, opts)\n }\n\n tarball (opts) {\n return this._fill(this.tarballtemplate, { ...opts, noCommittish: false })\n }\n\n file (path, opts) {\n return this._fill(this.filetemplate, { ...opts, path })\n }\n\n getDefaultRepresentation () {\n return this.default\n }\n\n toString (opts) {\n if (this.default && typeof this[this.default] === 'function') {\n return this[this.default](opts)\n }\n\n return this.sshurl(opts)\n }\n}\nmodule.exports = GitHost\n"],"names":["require$$0"],"mappings":";AACA,MAAM,WAAWA;AAEjB,MAAM,QAAQ;AAAA,EACZ,YAAa,MAAM,MAAM,MAAM,SAAS,YAAY,uBAAuB,OAAO,IAAI;AACpF,WAAO,OAAO,MAAM,SAAS,IAAI,CAAC;AAClC,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,SAAK,aAAa;AAClB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KAAK,eAAe,IAAI;AAAA,EAC3C;AAAA,EAED,IAAK,MAAM;AACT,WAAO,KAAK,MAAM,KAAK,aAAa,IAAI;AAAA,EACzC;AAAA,EAED,SAAU,MAAM;AACd,WAAO,KAAK,MAAM,KAAK,kBAAkB,IAAI;AAAA,EAC9C;AAAA,EAED,KAAM,MAAM;AACV,WAAO,KAAK,MAAM,KAAK,cAAc,IAAI;AAAA,EAC1C;AAAA,EAED,QAAS,MAAM;AACb,WAAO,KAAK,MAAM,KAAK,iBAAiB,EAAE,GAAG,MAAM,cAAc,OAAO;AAAA,EACzE;AAAA,EAED,KAAM,MAAM,MAAM;AAChB,WAAO,KAAK,MAAM,KAAK,cAAc,EAAE,GAAG,MAAM,MAAM;AAAA,EACvD;AAAA,EAED,2BAA4B;AAC1B,WAAO,KAAK;AAAA,EACb;AAAA,EAED,SAAU,MAAM;AACd,QAAI,KAAK,WAAW,OAAO,KAAK,KAAK,OAAO,MAAM,YAAY;AAC5D,aAAO,KAAK,KAAK,OAAO,EAAE,IAAI;AAAA,IAC/B;AAED,WAAO,KAAK,OAAO,IAAI;AAAA,EACxB;AACH;AACA,IAAA,UAAiB;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../_virtual/index18.cjs");
3
+ const index = require("../../../../_virtual/index20.cjs");
4
4
  const require$$0 = require("url");
5
5
  const gitHostInfo = require("./git-host-info.cjs");
6
6
  const gitHost = require("./git-host.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = protocolToRepresentation(parsed.protocol)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA,YAA6B;AAC9C,MAAM,UAAUC,MAAAA,SAAc,UAAGC,QAAwB;AACzD,MAAM,MAAMC,QAAoB;AAChC,MAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,MAAM,8BAA8B;AAAA,EAClC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AACV;AAEA,SAAS,yBAA0B,UAAU;AAC3C,SAAO,4BAA4B,QAAQ,KAAK,SAAS,MAAM,GAAG,EAAE;AACtE;AAEA,MAAM,gBAAgB;AAAA,EACpB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AACf;AAEA,MAAM,iBAAiB,OAAO,KAAK,SAAS,UAAU,EAAE,OAAO,CAAC,SAAS,UAAU,QAAQ,YAAY,cAAc,MAAM,CAAC;AAE5HF,MAAA,SAAA,QAAA,UAAyB,SAAU,QAAQ,MAAM;AAC/C,MAAI,OAAO,WAAW,UAAU;AAC9B;AAAA,EACD;AAED,QAAM,MAAM,SAAS,KAAK,UAAU,QAAQ,CAAA,CAAE;AAE9C,MAAI,CAAC,MAAM,IAAI,GAAG,GAAG;AACnB,UAAM,IAAI,KAAK,QAAQ,QAAQ,IAAI,CAAC;AAAA,EACrC;AAED,SAAO,MAAM,IAAI,GAAG;AACtB;AAEA,SAAS,QAAS,QAAQ,MAAM;AAC9B,MAAI,CAAC,QAAQ;AACX;AAAA,EACD;AAED,QAAMG,OAAM,kBAAkB,MAAM,IAAI,YAAY,SAAS,gBAAgB,MAAM;AACnF,QAAM,SAAS,YAAYA,IAAG;AAC9B,MAAI,CAAC,QAAQ;AACX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AAO;AACT;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = protocolToRepresentation(parsed.protocol)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA,YAA6B;AAC9C,MAAM,UAAUC,MAAAA,SAAc,UAAGC,QAAwB;AACzD,MAAM,MAAMC,QAAoB;AAChC,MAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,MAAM,8BAA8B;AAAA,EAClC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AACV;AAEA,SAAS,yBAA0B,UAAU;AAC3C,SAAO,4BAA4B,QAAQ,KAAK,SAAS,MAAM,GAAG,EAAE;AACtE;AAEA,MAAM,gBAAgB;AAAA,EACpB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AACf;AAEA,MAAM,iBAAiB,OAAO,KAAK,SAAS,UAAU,EAAE,OAAO,CAAC,SAAS,UAAU,QAAQ,YAAY,cAAc,MAAM,CAAC;AAE5HF,MAAA,SAAA,QAAA,UAAyB,SAAU,QAAQ,MAAM;AAC/C,MAAI,OAAO,WAAW,UAAU;AAC9B;AAAA,EACD;AAED,QAAM,MAAM,SAAS,KAAK,UAAU,QAAQ,CAAA,CAAE;AAE9C,MAAI,CAAC,MAAM,IAAI,GAAG,GAAG;AACnB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AAAA,EACnC;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAK;AAAA,EAAE;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAK;AAAA,EAAE;AAEhB,SAAO;AACT;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __module as hostedGitInfo } from "../../../../_virtual/index18.js";
1
+ import { __module as hostedGitInfo } from "../../../../_virtual/index20.js";
2
2
  import require$$0 from "url";
3
3
  import { g as gitHostInfo } from "./git-host-info.js";
4
4
  import { g as gitHost } from "./git-host.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = protocolToRepresentation(parsed.protocol)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;AACA,MAAM,MAAM;AACZ,MAAM,WAAWA;AACjB,MAAM,UAAUC,cAAc,UAAGC;AACjC,MAAM,MAAMC;AACZ,MAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,MAAM,8BAA8B;AAAA,EAClC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,QAAQ;AACV;AAEA,SAAS,yBAA0B,UAAU;AAC3C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CAAC,WAAW;AAC7B,QAAM,UAAU,OAAO,QAAQ,GAAG;AAClC,QAAM,WAAW,OAAO,YAAY,GAAG;AACvC,MAAI,aAAa,OAAO,QAAQ,GAAG;AACnC,MAAI,YAAY,OAAO,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,MAAI;AACJ,MAAI,YAAY,SAAS;AAWvB,gBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,iBAAa,UAAU,QAAQ,GAAG;AAClC,gBAAY,UAAU,YAAY,GAAG;AAAA,EACtC;AAED,MAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,gBAAY,aAAa;AAAA,EAC1B;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAP;AAAA,EAAc;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAP;AAAA,EAAc;AAEhB,SAAO;AACT;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/read-pkg/node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nconst url = require('url')\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst protocolToRepresentationMap = {\n 'git+ssh:': 'sshurl',\n 'git+https:': 'https',\n 'ssh:': 'sshurl',\n 'git:': 'git'\n}\n\nfunction protocolToRepresentation (protocol) {\n return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)\n}\n\nconst authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nconst knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:'])\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl)\n const parsed = parseGitUrl(url)\n if (!parsed) {\n return parsed\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = protocolToRepresentation(parsed.protocol)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (knownProtocols.includes(proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n const firstAt = giturl.indexOf('@')\n const lastHash = giturl.lastIndexOf('#')\n let firstColon = giturl.indexOf(':')\n let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity)\n\n let corrected\n if (lastColon > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1)\n // // and we find our new : positions\n firstColon = corrected.indexOf(':')\n lastColon = corrected.lastIndexOf(':')\n }\n\n if (firstColon === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n corrected = `git+ssh://${corrected}`\n }\n\n return corrected\n}\n\n// try to parse the url as its given to us, if that throws\n// then we try to clean the url and parse that result instead\n// THIS FUNCTION SHOULD NEVER THROW\nconst parseGitUrl = (giturl) => {\n let result\n try {\n result = new url.URL(giturl)\n } catch (err) {}\n\n if (result) {\n return result\n }\n\n const correctedUrl = correctUrl(giturl)\n try {\n result = new url.URL(correctedUrl)\n } catch (err) {}\n\n return result\n}\n"],"names":["require$$1","hostedGitInfoModule","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;AACA,MAAM,MAAM;AACZ,M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gB,MAAO,YAAY,MAAM,cAAc;AACxF,QAAM,WAAW,aAAa;AAE9B,QAAM,sBAAsB,YAAY,KAAK,IAAI,YAAY,CAAC,MAAM,MAAM,CAAC,IAAI,SAAS,GAAG;AAC3F,QAAM,sBAAsB,CAAC,IAAI,WAAW,GAAG;AAE/C,SAAO,sBAAsB,YAAY,uBAAuB,uBAAuB,mBAAmB,sBAAsB;AAClI;AAGA,MAAM,aAAa,CAAC,WAAW;AAC7B,QAAM,UAAU,OAAO,QAAQ,GAAG;AAClC,QAAM,WAAW,OAAO,YAAY,GAAG;AACvC,MAAI,aAAa,OAAO,QAAQ,GAAG;AACnC,MAAI,YAAY,OAAO,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,MAAI;AACJ,MAAI,YAAY,SAAS;AAWvB,gBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,iBAAa,UAAU,QAAQ,GAAG;AAClC,gBAAY,UAAU,YAAY,GAAG;AAAA,EACtC;AAED,MAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,gBAAY,aAAa,SAAS;AAAA,EACnC;AAED,SAAO;AACT;AAKA,MAAM,cAAc,CAAC,WAAW;AAC9B,MAAI;AACJ,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,MAAM;AAAA,EAC/B,SAAW,KAAK;AAAA,EAAE;AAEhB,MAAI,QAAQ;AACV,WAAO;AAAA,EACR;AAED,QAAM,eAAe,WAAW,MAAM;AACtC,MAAI;AACF,aAAS,IAAI,IAAI,IAAI,YAAY;AAAA,EACrC,SAAW,KAAK;AAAA,EAAE;AAEhB,SAAO;AACT;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":";AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO;AAAA,IAC1D;AAAA,EACE;AAED,MAAI,OAAO,UAAU,UAAU;AAC9B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO;AAAA,IAC1D;AAAA,EACE;AAED,MAAI,QAAQ,GAAG;AACd,UAAM,IAAI;AAAA,MACT,8CAA8C;AAAA,IACjD;AAAA,EACE;AAED,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,yDAAyD,OAAO;AAAA,IACnE;AAAA,EACE;AAED,MAAI,UAAU,GAAG;AAChB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,oBAAoB,QAAQ;AAE1C,SAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,KAAK,CAAC;AAClD;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":";AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,MAAM;AAAA,IAChE;AAAA,EACE;AAED,MAAI,OAAO,UAAU,UAAU;AAC9B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,KAAK;AAAA,IAC/D;AAAA,EACE;AAED,MAAI,QAAQ,GAAG;AACd,UAAM,IAAI;AAAA,MACT,8CAA8C,KAAK;AAAA,IACtD;AAAA,EACE;AAED,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,yDAAyD,OAAO,MAAM;AAAA,IACzE;AAAA,EACE;AAED,MAAI,UAAU,GAAG;AAChB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,oBAAoB,QAAQ;AAE1C,SAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,KAAK,CAAC;AAClD;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":"AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO;AAAA,IAC1D;AAAA,EACE;AAED,MAAI,OAAO,UAAU,UAAU;AAC9B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO;AAAA,IAC1D;AAAA,EACE;AAED,MAAI,QAAQ,GAAG;AACd,UAAM,IAAI;AAAA,MACT,8CAA8C;AAAA,IACjD;AAAA,EACE;AAED,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,yDAAyD,OAAO;AAAA,IACnE;AAAA,EACE;AAED,MAAI,UAAU,GAAG;AAChB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,oBAAoB,QAAQ;AAE1C,SAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,KAAK,CAAC;AAClD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/redent/node_modules/indent-string/index.js"],"sourcesContent":["export default function indentString(string, count = 1, options = {}) {\n\tconst {\n\t\tindent = ' ',\n\t\tincludeEmptyLines = false\n\t} = options;\n\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof string}\\``\n\t\t);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``\n\t\t);\n\t}\n\n\tif (count < 0) {\n\t\tthrow new RangeError(\n\t\t\t`Expected \\`count\\` to be at least 0, got \\`${count}\\``\n\t\t);\n\t}\n\n\tif (typeof indent !== 'string') {\n\t\tthrow new TypeError(\n\t\t\t`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof indent}\\``\n\t\t);\n\t}\n\n\tif (count === 0) {\n\t\treturn string;\n\t}\n\n\tconst regex = includeEmptyLines ? /^/gm : /^(?!\\s*$)/gm;\n\n\treturn string.replace(regex, indent.repeat(count));\n}\n"],"names":[],"mappings":"AAAe,SAAS,aAAa,QAAQ,QAAQ,GAAG,UAAU,CAAA,GAAI;AACrE,QAAM;AAAA,IACL,SAAS;AAAA,IACT,oBAAoB;AAAA,EACpB,IAAG;AAEJ,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,MAAM;AAAA,IAChE;AAAA,EACE;AAED,MAAI,OAAO,UAAU,UAAU;AAC9B,UAAM,IAAI;AAAA,MACT,gDAAgD,OAAO,KAAK;AAAA,IAC/D;AAAA,EACE;AAED,MAAI,QAAQ,GAAG;AACd,UAAM,IAAI;AAAA,MACT,8CAA8C,KAAK;AAAA,IACtD;AAAA,EACE;AAED,MAAI,OAAO,WAAW,UAAU;AAC/B,UAAM,IAAI;AAAA,MACT,yDAAyD,OAAO,MAAM;AAAA,IACzE;AAAA,EACE;AAED,MAAI,UAAU,GAAG;AAChB,WAAO;AAAA,EACP;AAED,QAAM,QAAQ,oBAAoB,QAAQ;AAE1C,SAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,KAAK,CAAC;AAClD;","x_google_ignoreList":[0]}