@slicemachine/init 2.2.1 → 2.2.2-dev-next-release.4

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 (466) hide show
  1. package/dist/SliceMachineInitProcess.cjs +1 -1
  2. package/dist/SliceMachineInitProcess.js +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.js +2 -2
  5. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +1 -1
  6. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.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.cjs.map +1 -1
  9. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
  10. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -1
  11. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +1 -1
  12. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -1
  13. package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
  14. package/dist/_node_modules/@babel/highlight/lib/index.cjs.map +1 -1
  15. package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
  16. package/dist/_node_modules/@babel/highlight/lib/index.js.map +1 -1
  17. package/dist/_node_modules/@nodelib/fs.scandir/out/index.cjs +1 -1
  18. package/dist/_node_modules/@nodelib/fs.scandir/out/index.js +1 -1
  19. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +3 -3
  20. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs.map +1 -1
  21. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +3 -3
  22. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +2 -2
  23. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +2 -2
  24. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
  25. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
  26. package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.cjs +1 -1
  27. package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.js +1 -1
  28. package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +4 -4
  29. package/dist/_node_modules/@nodelib/fs.stat/out/index.js +4 -4
  30. package/dist/_node_modules/@nodelib/fs.stat/out/providers/async.cjs +1 -1
  31. package/dist/_node_modules/@nodelib/fs.stat/out/providers/async.js +1 -1
  32. package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.cjs +1 -1
  33. package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.js +1 -1
  34. package/dist/_node_modules/@nodelib/fs.stat/out/settings.cjs +1 -1
  35. package/dist/_node_modules/@nodelib/fs.stat/out/settings.js +1 -1
  36. package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +4 -4
  37. package/dist/_node_modules/@nodelib/fs.walk/out/index.js +4 -4
  38. package/dist/_node_modules/@nodelib/fs.walk/out/providers/async.cjs +1 -1
  39. package/dist/_node_modules/@nodelib/fs.walk/out/providers/async.js +1 -1
  40. package/dist/_node_modules/@nodelib/fs.walk/out/providers/sync.cjs +1 -1
  41. package/dist/_node_modules/@nodelib/fs.walk/out/providers/sync.js +1 -1
  42. package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs +3 -4
  43. package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs.map +1 -1
  44. package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js +2 -3
  45. package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js.map +1 -1
  46. package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs +1 -1
  47. package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js +1 -1
  48. package/dist/_node_modules/@nodelib/fs.walk/out/settings.cjs +2 -2
  49. package/dist/_node_modules/@nodelib/fs.walk/out/settings.js +2 -2
  50. package/dist/_node_modules/arrify/index.cjs +2 -1
  51. package/dist/_node_modules/arrify/index.cjs.map +1 -1
  52. package/dist/_node_modules/arrify/index.js +1 -1
  53. package/dist/_node_modules/braces/index.cjs +6 -5
  54. package/dist/_node_modules/braces/index.cjs.map +1 -1
  55. package/dist/_node_modules/braces/index.js +5 -5
  56. package/dist/_node_modules/braces/lib/compile.cjs +3 -2
  57. package/dist/_node_modules/braces/lib/compile.cjs.map +1 -1
  58. package/dist/_node_modules/braces/lib/compile.js +2 -2
  59. package/dist/_node_modules/braces/lib/constants.cjs +2 -1
  60. package/dist/_node_modules/braces/lib/constants.cjs.map +1 -1
  61. package/dist/_node_modules/braces/lib/constants.js +1 -1
  62. package/dist/_node_modules/braces/lib/expand.cjs +4 -3
  63. package/dist/_node_modules/braces/lib/expand.cjs.map +1 -1
  64. package/dist/_node_modules/braces/lib/expand.js +3 -3
  65. package/dist/_node_modules/braces/lib/parse.cjs +4 -3
  66. package/dist/_node_modules/braces/lib/parse.cjs.map +1 -1
  67. package/dist/_node_modules/braces/lib/parse.js +3 -3
  68. package/dist/_node_modules/braces/lib/stringify.cjs +2 -1
  69. package/dist/_node_modules/braces/lib/stringify.cjs.map +1 -1
  70. package/dist/_node_modules/braces/lib/stringify.js +1 -1
  71. package/dist/_node_modules/braces/lib/utils.cjs +0 -1
  72. package/dist/_node_modules/braces/lib/utils.cjs.map +1 -1
  73. package/dist/_node_modules/braces/lib/utils.js +0 -3
  74. package/dist/_node_modules/camelcase-keys/index.cjs +3 -4
  75. package/dist/_node_modules/camelcase-keys/index.cjs.map +1 -1
  76. package/dist/_node_modules/camelcase-keys/index.js +3 -4
  77. package/dist/_node_modules/camelcase-keys/index.js.map +1 -1
  78. package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.cjs +2 -1
  79. package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.cjs.map +1 -1
  80. package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.js +1 -1
  81. package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.cjs +2 -1
  82. package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.cjs.map +1 -1
  83. package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.js +1 -1
  84. package/dist/_node_modules/decamelize-keys/index.cjs +5 -3
  85. package/dist/_node_modules/decamelize-keys/index.cjs.map +1 -1
  86. package/dist/_node_modules/decamelize-keys/index.js +5 -3
  87. package/dist/_node_modules/decamelize-keys/index.js.map +1 -1
  88. package/dist/_node_modules/dir-glob/index.cjs +6 -3
  89. package/dist/_node_modules/dir-glob/index.cjs.map +1 -1
  90. package/dist/_node_modules/dir-glob/index.js +8 -5
  91. package/dist/_node_modules/dir-glob/index.js.map +1 -1
  92. package/dist/_node_modules/error-ex/index.cjs +3 -2
  93. package/dist/_node_modules/error-ex/index.cjs.map +1 -1
  94. package/dist/_node_modules/error-ex/index.js +2 -2
  95. package/dist/_node_modules/fast-glob/out/index.cjs +4 -2
  96. package/dist/_node_modules/fast-glob/out/index.cjs.map +1 -1
  97. package/dist/_node_modules/fast-glob/out/index.js +4 -2
  98. package/dist/_node_modules/fast-glob/out/index.js.map +1 -1
  99. package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
  100. package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
  101. package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
  102. package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
  103. package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
  104. package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
  105. package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
  106. package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
  107. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
  108. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
  109. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
  110. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
  111. package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
  112. package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
  113. package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
  114. package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
  115. package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
  116. package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
  117. package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
  118. package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
  119. package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
  120. package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
  121. package/dist/_node_modules/fast-glob/out/utils/pattern.cjs +3 -3
  122. package/dist/_node_modules/fast-glob/out/utils/pattern.cjs.map +1 -1
  123. package/dist/_node_modules/fast-glob/out/utils/pattern.js +2 -2
  124. package/dist/_node_modules/fast-glob/out/utils/stream.cjs +1 -1
  125. package/dist/_node_modules/fast-glob/out/utils/stream.cjs.map +1 -1
  126. package/dist/_node_modules/fast-glob/out/utils/stream.js +1 -1
  127. package/dist/_node_modules/fastq/queue.cjs +5 -3
  128. package/dist/_node_modules/fastq/queue.cjs.map +1 -1
  129. package/dist/_node_modules/fastq/queue.js +5 -4
  130. package/dist/_node_modules/fastq/queue.js.map +1 -1
  131. package/dist/_node_modules/fill-range/index.cjs +3 -2
  132. package/dist/_node_modules/fill-range/index.cjs.map +1 -1
  133. package/dist/_node_modules/fill-range/index.js +2 -2
  134. package/dist/_node_modules/function-bind/implementation.cjs +2 -1
  135. package/dist/_node_modules/function-bind/implementation.cjs.map +1 -1
  136. package/dist/_node_modules/function-bind/implementation.js +1 -1
  137. package/dist/_node_modules/function-bind/index.cjs +3 -2
  138. package/dist/_node_modules/function-bind/index.cjs.map +1 -1
  139. package/dist/_node_modules/function-bind/index.js +2 -2
  140. package/dist/_node_modules/{fast-glob/_node_modules/glob-parent → glob-parent}/index.cjs +4 -3
  141. package/dist/_node_modules/glob-parent/index.cjs.map +1 -0
  142. package/dist/_node_modules/{fast-glob/_node_modules/glob-parent → glob-parent}/index.js +2 -2
  143. package/dist/_node_modules/glob-parent/index.js.map +1 -0
  144. package/dist/_node_modules/globby/_node_modules/slash/index.cjs.map +1 -0
  145. package/dist/_node_modules/globby/_node_modules/slash/index.js.map +1 -0
  146. package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.cjs +3 -3
  147. package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.js +5 -5
  148. package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.js.map +1 -1
  149. package/dist/{packages/init/_node_modules → _node_modules}/globby/index.cjs +5 -6
  150. package/dist/{packages/init/_node_modules → _node_modules}/globby/index.cjs.map +1 -1
  151. package/dist/{packages/init/_node_modules → _node_modules}/globby/index.js +6 -7
  152. package/dist/{packages/init/_node_modules → _node_modules}/globby/index.js.map +1 -1
  153. package/dist/_node_modules/hard-rejection/index.cjs +6 -3
  154. package/dist/_node_modules/hard-rejection/index.cjs.map +1 -1
  155. package/dist/_node_modules/hard-rejection/index.js +7 -4
  156. package/dist/_node_modules/hard-rejection/index.js.map +1 -1
  157. package/dist/_node_modules/has/src/index.cjs +3 -2
  158. package/dist/_node_modules/has/src/index.cjs.map +1 -1
  159. package/dist/_node_modules/has/src/index.js +2 -2
  160. package/dist/_node_modules/ignore/index.cjs +3 -1
  161. package/dist/_node_modules/ignore/index.cjs.map +1 -1
  162. package/dist/_node_modules/ignore/index.js +3 -1
  163. package/dist/_node_modules/ignore/index.js.map +1 -1
  164. package/dist/_node_modules/is-arrayish/index.cjs +2 -1
  165. package/dist/_node_modules/is-arrayish/index.cjs.map +1 -1
  166. package/dist/_node_modules/is-arrayish/index.js +1 -1
  167. package/dist/_node_modules/is-core-module/core.json.cjs +10 -1
  168. package/dist/_node_modules/is-core-module/core.json.cjs.map +1 -1
  169. package/dist/_node_modules/is-core-module/core.json.js +10 -1
  170. package/dist/_node_modules/is-core-module/core.json.js.map +1 -1
  171. package/dist/_node_modules/is-core-module/index.cjs +3 -2
  172. package/dist/_node_modules/is-core-module/index.cjs.map +1 -1
  173. package/dist/_node_modules/is-core-module/index.js +2 -2
  174. package/dist/_node_modules/is-extglob/index.cjs +2 -1
  175. package/dist/_node_modules/is-extglob/index.cjs.map +1 -1
  176. package/dist/_node_modules/is-extglob/index.js +1 -1
  177. package/dist/_node_modules/is-glob/index.cjs +3 -2
  178. package/dist/_node_modules/is-glob/index.cjs.map +1 -1
  179. package/dist/_node_modules/is-glob/index.js +2 -2
  180. package/dist/_node_modules/{minimist-options/_node_modules/is-plain-obj → is-plain-obj}/index.cjs +2 -1
  181. package/dist/_node_modules/is-plain-obj/index.cjs.map +1 -0
  182. package/dist/_node_modules/{minimist-options/_node_modules/is-plain-obj → is-plain-obj}/index.js +1 -1
  183. package/dist/_node_modules/is-plain-obj/index.js.map +1 -0
  184. package/dist/_node_modules/js-tokens/index.cjs +1 -1
  185. package/dist/_node_modules/js-tokens/index.js +1 -1
  186. package/dist/_node_modules/kind-of/index.cjs +2 -1
  187. package/dist/_node_modules/kind-of/index.cjs.map +1 -1
  188. package/dist/_node_modules/kind-of/index.js +1 -1
  189. package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
  190. package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
  191. package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/lru-cache → lru-cache}/index.cjs +4 -3
  192. package/dist/_node_modules/lru-cache/index.cjs.map +1 -0
  193. package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/lru-cache → lru-cache}/index.js +2 -2
  194. package/dist/_node_modules/lru-cache/index.js.map +1 -0
  195. package/dist/_node_modules/map-obj/index.cjs +6 -3
  196. package/dist/_node_modules/map-obj/index.cjs.map +1 -1
  197. package/dist/_node_modules/map-obj/index.js +6 -3
  198. package/dist/_node_modules/map-obj/index.js.map +1 -1
  199. package/dist/_node_modules/meow/_node_modules/{lru-cache → hosted-git-info/_node_modules/lru-cache}/index.cjs +2 -1
  200. package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.cjs.map +1 -0
  201. package/dist/_node_modules/meow/_node_modules/{lru-cache → hosted-git-info/_node_modules/lru-cache}/index.js +1 -1
  202. package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.js.map +1 -0
  203. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs +2 -1
  204. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs.map +1 -1
  205. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.js +1 -1
  206. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs +3 -2
  207. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs.map +1 -1
  208. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.js +2 -2
  209. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +114 -113
  210. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs.map +1 -1
  211. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +117 -115
  212. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js.map +1 -1
  213. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs +2 -1
  214. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -1
  215. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js +1 -1
  216. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.cjs +2 -1
  217. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -1
  218. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.js +1 -1
  219. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs +7 -7
  220. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -1
  221. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js +5 -6
  222. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js.map +1 -1
  223. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.cjs +2 -1
  224. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -1
  225. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.js +1 -1
  226. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.cjs +5 -3
  227. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -1
  228. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.js +5 -3
  229. package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.js.map +1 -1
  230. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +2 -1
  231. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -1
  232. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +1 -1
  233. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +3 -2
  234. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +1 -1
  235. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +2 -2
  236. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +164 -163
  237. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +1 -1
  238. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +167 -165
  239. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +1 -1
  240. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +2 -1
  241. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -1
  242. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +1 -1
  243. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +7 -7
  244. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -1
  245. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +5 -6
  246. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +1 -1
  247. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +2 -1
  248. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -1
  249. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +1 -1
  250. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +5 -3
  251. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -1
  252. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +5 -3
  253. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +1 -1
  254. package/dist/_node_modules/meow/_node_modules/read-pkg/index.js +4 -4
  255. package/dist/_node_modules/meow/_node_modules/read-pkg/index.js.map +1 -1
  256. package/dist/_node_modules/meow/_node_modules/trim-newlines/index.cjs.map +1 -0
  257. package/dist/_node_modules/meow/_node_modules/trim-newlines/index.js.map +1 -0
  258. package/dist/_node_modules/meow/index.cjs +6 -8
  259. package/dist/_node_modules/meow/index.cjs.map +1 -1
  260. package/dist/_node_modules/meow/index.js +8 -10
  261. package/dist/_node_modules/meow/index.js.map +1 -1
  262. package/dist/_node_modules/merge2/index.cjs +2 -1
  263. package/dist/_node_modules/merge2/index.cjs.map +1 -1
  264. package/dist/_node_modules/merge2/index.js +1 -1
  265. package/dist/_node_modules/micromatch/index.cjs +5 -5
  266. package/dist/_node_modules/micromatch/index.cjs.map +1 -1
  267. package/dist/_node_modules/micromatch/index.js +4 -5
  268. package/dist/_node_modules/micromatch/index.js.map +1 -1
  269. package/dist/_node_modules/min-indent/index.cjs +3 -1
  270. package/dist/_node_modules/min-indent/index.cjs.map +1 -1
  271. package/dist/_node_modules/min-indent/index.js +3 -1
  272. package/dist/_node_modules/min-indent/index.js.map +1 -1
  273. package/dist/_node_modules/minimist-options/index.cjs +10 -7
  274. package/dist/_node_modules/minimist-options/index.cjs.map +1 -1
  275. package/dist/_node_modules/minimist-options/index.js +9 -6
  276. package/dist/_node_modules/minimist-options/index.js.map +1 -1
  277. package/dist/_node_modules/{json-parse-even-better-errors → parse-json/_node_modules/json-parse-even-better-errors}/index.cjs +2 -1
  278. package/dist/_node_modules/parse-json/_node_modules/json-parse-even-better-errors/index.cjs.map +1 -0
  279. package/dist/_node_modules/{json-parse-even-better-errors → parse-json/_node_modules/json-parse-even-better-errors}/index.js +1 -1
  280. package/dist/_node_modules/parse-json/_node_modules/json-parse-even-better-errors/index.js.map +1 -0
  281. package/dist/_node_modules/parse-json/index.cjs +8 -6
  282. package/dist/_node_modules/parse-json/index.cjs.map +1 -1
  283. package/dist/_node_modules/parse-json/index.js +7 -5
  284. package/dist/_node_modules/parse-json/index.js.map +1 -1
  285. package/dist/_node_modules/path-type/index.cjs +1 -1
  286. package/dist/_node_modules/path-type/index.js +1 -1
  287. package/dist/_node_modules/picomatch/index.cjs +4 -5
  288. package/dist/_node_modules/picomatch/index.cjs.map +1 -1
  289. package/dist/_node_modules/picomatch/index.js +5 -5
  290. package/dist/_node_modules/picomatch/index.js.map +1 -1
  291. package/dist/_node_modules/picomatch/lib/constants.cjs +2 -1
  292. package/dist/_node_modules/picomatch/lib/constants.cjs.map +1 -1
  293. package/dist/_node_modules/picomatch/lib/constants.js +1 -1
  294. package/dist/_node_modules/picomatch/lib/parse.cjs +3 -2
  295. package/dist/_node_modules/picomatch/lib/parse.cjs.map +1 -1
  296. package/dist/_node_modules/picomatch/lib/parse.js +2 -2
  297. package/dist/_node_modules/picomatch/lib/picomatch.cjs +5 -4
  298. package/dist/_node_modules/picomatch/lib/picomatch.cjs.map +1 -1
  299. package/dist/_node_modules/picomatch/lib/picomatch.js +4 -4
  300. package/dist/_node_modules/picomatch/lib/scan.cjs +3 -2
  301. package/dist/_node_modules/picomatch/lib/scan.cjs.map +1 -1
  302. package/dist/_node_modules/picomatch/lib/scan.js +2 -2
  303. package/dist/_node_modules/picomatch/lib/utils.cjs +1 -2
  304. package/dist/_node_modules/picomatch/lib/utils.cjs.map +1 -1
  305. package/dist/_node_modules/picomatch/lib/utils.js +1 -4
  306. package/dist/_node_modules/queue-microtask/index.cjs +2 -1
  307. package/dist/_node_modules/queue-microtask/index.cjs.map +1 -1
  308. package/dist/_node_modules/queue-microtask/index.js +1 -1
  309. package/dist/_node_modules/reusify/reusify.cjs +2 -1
  310. package/dist/_node_modules/reusify/reusify.cjs.map +1 -1
  311. package/dist/_node_modules/reusify/reusify.js +1 -1
  312. package/dist/_node_modules/run-parallel/index.cjs +3 -2
  313. package/dist/_node_modules/run-parallel/index.cjs.map +1 -1
  314. package/dist/_node_modules/run-parallel/index.js +2 -2
  315. package/dist/_node_modules/spdx-correct/index.cjs +3 -2
  316. package/dist/_node_modules/spdx-correct/index.cjs.map +1 -1
  317. package/dist/_node_modules/spdx-correct/index.js +2 -2
  318. package/dist/_node_modules/spdx-expression-parse/index.cjs +4 -3
  319. package/dist/_node_modules/spdx-expression-parse/index.cjs.map +1 -1
  320. package/dist/_node_modules/spdx-expression-parse/index.js +3 -3
  321. package/dist/_node_modules/spdx-expression-parse/parse.cjs +2 -1
  322. package/dist/_node_modules/spdx-expression-parse/parse.cjs.map +1 -1
  323. package/dist/_node_modules/spdx-expression-parse/parse.js +1 -1
  324. package/dist/_node_modules/spdx-expression-parse/scan.cjs +2 -1
  325. package/dist/_node_modules/spdx-expression-parse/scan.cjs.map +1 -1
  326. package/dist/_node_modules/spdx-expression-parse/scan.js +1 -1
  327. package/dist/_node_modules/{is-number → to-regex-range/_node_modules/is-number}/index.cjs +2 -1
  328. package/dist/_node_modules/to-regex-range/_node_modules/is-number/index.cjs.map +1 -0
  329. package/dist/_node_modules/{is-number → to-regex-range/_node_modules/is-number}/index.js +1 -1
  330. package/dist/_node_modules/to-regex-range/_node_modules/is-number/index.js.map +1 -0
  331. package/dist/_node_modules/to-regex-range/index.cjs +4 -3
  332. package/dist/_node_modules/to-regex-range/index.cjs.map +1 -1
  333. package/dist/_node_modules/to-regex-range/index.js +2 -2
  334. package/dist/_node_modules/validate-npm-package-license/index.cjs +4 -3
  335. package/dist/_node_modules/validate-npm-package-license/index.cjs.map +1 -1
  336. package/dist/_node_modules/validate-npm-package-license/index.js +3 -3
  337. package/dist/_node_modules/yallist/iterator.cjs.map +1 -0
  338. package/dist/_node_modules/yallist/iterator.js.map +1 -0
  339. package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/yallist.cjs +2 -1
  340. package/dist/_node_modules/yallist/yallist.cjs.map +1 -0
  341. package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/yallist.js +1 -1
  342. package/dist/_node_modules/yallist/yallist.js.map +1 -0
  343. package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +1 -0
  344. package/dist/_node_modules/yargs-parser/build/lib/index.js.map +1 -0
  345. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +1 -0
  346. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +1 -0
  347. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +1 -0
  348. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +1 -0
  349. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +1 -0
  350. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +1 -0
  351. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +1 -0
  352. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +1 -0
  353. package/dist/_virtual/_commonjsHelpers.cjs +4 -0
  354. package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
  355. package/dist/_virtual/_commonjsHelpers.js +5 -1
  356. package/dist/_virtual/_commonjsHelpers.js.map +1 -1
  357. package/dist/_virtual/index.cjs +2 -10
  358. package/dist/_virtual/index.cjs.map +1 -1
  359. package/dist/_virtual/index.js +2 -11
  360. package/dist/_virtual/index.js.map +1 -1
  361. package/dist/_virtual/index10.cjs +2 -2
  362. package/dist/_virtual/index10.js +2 -2
  363. package/dist/_virtual/index11.cjs +2 -10
  364. package/dist/_virtual/index11.cjs.map +1 -1
  365. package/dist/_virtual/index11.js +2 -11
  366. package/dist/_virtual/index11.js.map +1 -1
  367. package/dist/_virtual/index12.cjs +2 -2
  368. package/dist/_virtual/index12.js +2 -2
  369. package/dist/_virtual/index13.cjs +2 -2
  370. package/dist/_virtual/index13.js +2 -2
  371. package/dist/_virtual/index14.cjs +2 -2
  372. package/dist/_virtual/index14.js +2 -2
  373. package/dist/_virtual/index15.cjs +2 -2
  374. package/dist/_virtual/index15.js +2 -2
  375. package/dist/_virtual/index16.cjs +2 -10
  376. package/dist/_virtual/index16.cjs.map +1 -1
  377. package/dist/_virtual/index16.js +2 -11
  378. package/dist/_virtual/index16.js.map +1 -1
  379. package/dist/_virtual/index17.cjs +2 -2
  380. package/dist/_virtual/index17.js +2 -2
  381. package/dist/_virtual/index2.cjs +2 -10
  382. package/dist/_virtual/index2.cjs.map +1 -1
  383. package/dist/_virtual/index2.js +2 -11
  384. package/dist/_virtual/index2.js.map +1 -1
  385. package/dist/_virtual/index3.cjs +2 -10
  386. package/dist/_virtual/index3.cjs.map +1 -1
  387. package/dist/_virtual/index3.js +2 -11
  388. package/dist/_virtual/index3.js.map +1 -1
  389. package/dist/_virtual/index4.cjs +1 -9
  390. package/dist/_virtual/index4.cjs.map +1 -1
  391. package/dist/_virtual/index4.js +2 -11
  392. package/dist/_virtual/index4.js.map +1 -1
  393. package/dist/_virtual/index5.cjs +2 -10
  394. package/dist/_virtual/index5.cjs.map +1 -1
  395. package/dist/_virtual/index5.js +2 -11
  396. package/dist/_virtual/index5.js.map +1 -1
  397. package/dist/_virtual/index6.cjs +2 -2
  398. package/dist/_virtual/index6.js +2 -2
  399. package/dist/_virtual/index7.cjs +2 -2
  400. package/dist/_virtual/index7.js +2 -2
  401. package/dist/_virtual/index8.cjs +2 -2
  402. package/dist/_virtual/index8.js +2 -2
  403. package/dist/_virtual/index9.cjs +2 -2
  404. package/dist/_virtual/index9.js +2 -2
  405. package/dist/_virtual/queue.cjs +1 -9
  406. package/dist/_virtual/queue.cjs.map +1 -1
  407. package/dist/_virtual/queue.js +2 -11
  408. package/dist/_virtual/queue.js.map +1 -1
  409. package/dist/packages/init/package.json.cjs +32 -32
  410. package/dist/packages/init/package.json.js +32 -32
  411. package/package.json +32 -32
  412. package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.cjs.map +0 -1
  413. package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.js.map +0 -1
  414. package/dist/_node_modules/is-number/index.cjs.map +0 -1
  415. package/dist/_node_modules/is-number/index.js.map +0 -1
  416. package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +0 -1
  417. package/dist/_node_modules/json-parse-even-better-errors/index.js.map +0 -1
  418. package/dist/_node_modules/meow/_node_modules/lru-cache/index.cjs.map +0 -1
  419. package/dist/_node_modules/meow/_node_modules/lru-cache/index.js.map +0 -1
  420. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +0 -1
  421. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +0 -1
  422. package/dist/_node_modules/meow/_node_modules/yallist/iterator.cjs.map +0 -1
  423. package/dist/_node_modules/meow/_node_modules/yallist/iterator.js.map +0 -1
  424. package/dist/_node_modules/meow/_node_modules/yallist/yallist.cjs.map +0 -1
  425. package/dist/_node_modules/meow/_node_modules/yallist/yallist.js.map +0 -1
  426. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/index.cjs.map +0 -1
  427. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/index.js.map +0 -1
  428. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +0 -1
  429. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/string-utils.js.map +0 -1
  430. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +0 -1
  431. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +0 -1
  432. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +0 -1
  433. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +0 -1
  434. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +0 -1
  435. package/dist/_node_modules/meow/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +0 -1
  436. package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.cjs.map +0 -1
  437. package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.js.map +0 -1
  438. package/dist/_node_modules/trim-newlines/index.cjs.map +0 -1
  439. package/dist/_node_modules/trim-newlines/index.js.map +0 -1
  440. package/dist/_virtual/index18.cjs +0 -5
  441. package/dist/_virtual/index18.cjs.map +0 -1
  442. package/dist/_virtual/index18.js +0 -5
  443. package/dist/_virtual/index18.js.map +0 -1
  444. package/dist/packages/init/_node_modules/slash/index.cjs.map +0 -1
  445. package/dist/packages/init/_node_modules/slash/index.js.map +0 -1
  446. /package/dist/{packages/init → _node_modules/globby}/_node_modules/slash/index.cjs +0 -0
  447. /package/dist/{packages/init → _node_modules/globby}/_node_modules/slash/index.js +0 -0
  448. /package/dist/{packages/init/_node_modules → _node_modules}/globby/ignore.cjs.map +0 -0
  449. /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.cjs +0 -0
  450. /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.cjs.map +0 -0
  451. /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.js +0 -0
  452. /package/dist/{packages/init/_node_modules → _node_modules}/globby/utilities.js.map +0 -0
  453. /package/dist/_node_modules/{trim-newlines → meow/_node_modules/trim-newlines}/index.cjs +0 -0
  454. /package/dist/_node_modules/{trim-newlines → meow/_node_modules/trim-newlines}/index.js +0 -0
  455. /package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/iterator.cjs +0 -0
  456. /package/dist/_node_modules/{meow/_node_modules/yallist → yallist}/iterator.js +0 -0
  457. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/index.cjs +0 -0
  458. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/index.js +0 -0
  459. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/string-utils.cjs +0 -0
  460. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/string-utils.js +0 -0
  461. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/tokenize-arg-string.cjs +0 -0
  462. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/tokenize-arg-string.js +0 -0
  463. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser-types.cjs +0 -0
  464. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser-types.js +0 -0
  465. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser.cjs +0 -0
  466. /package/dist/_node_modules/{meow/_node_modules/yargs-parser → yargs-parser}/build/lib/yargs-parser.js +0 -0
@@ -1,179 +1,180 @@
1
1
  "use strict";
2
- const index = require("../../../../../../_virtual/index11.cjs");
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const index = require("../../../../../../_virtual/index15.cjs");
3
4
  const require$$0 = require("url");
4
5
  const gitHostInfo = require("./git-host-info.cjs");
5
6
  const gitHost = require("./git-host.cjs");
6
- const index$1 = require("../lru-cache/index.cjs");
7
- (function(module2) {
8
- const url = require$$0;
9
- const gitHosts = gitHostInfo;
10
- const GitHost = module2.exports = gitHost;
11
- const LRU = index$1;
12
- const cache = new LRU({ max: 1e3 });
13
- const protocolToRepresentationMap = {
14
- "git+ssh:": "sshurl",
15
- "git+https:": "https",
16
- "ssh:": "sshurl",
17
- "git:": "git"
18
- };
19
- function protocolToRepresentation(protocol) {
20
- return protocolToRepresentationMap[protocol] || protocol.slice(0, -1);
7
+ const index$1 = require("../../../../../lru-cache/index.cjs");
8
+ const url = require$$0;
9
+ const gitHosts = gitHostInfo.gitHostInfo;
10
+ const GitHost = index.__module.exports = gitHost.gitHost;
11
+ const LRU = index$1.lruCache;
12
+ const cache = new LRU({ max: 1e3 });
13
+ const protocolToRepresentationMap = {
14
+ "git+ssh:": "sshurl",
15
+ "git+https:": "https",
16
+ "ssh:": "sshurl",
17
+ "git:": "git"
18
+ };
19
+ function protocolToRepresentation(protocol) {
20
+ return protocolToRepresentationMap[protocol] || protocol.slice(0, -1);
21
+ }
22
+ const authProtocols = {
23
+ "git:": true,
24
+ "https:": true,
25
+ "git+https:": true,
26
+ "http:": true,
27
+ "git+http:": true
28
+ };
29
+ const knownProtocols = Object.keys(gitHosts.byShortcut).concat(["http:", "https:", "git:", "git+ssh:", "git+https:", "ssh:"]);
30
+ index.__module.exports.fromUrl = function(giturl, opts) {
31
+ if (typeof giturl !== "string") {
32
+ return;
21
33
  }
22
- const authProtocols = {
23
- "git:": true,
24
- "https:": true,
25
- "git+https:": true,
26
- "http:": true,
27
- "git+http:": true
28
- };
29
- const knownProtocols = Object.keys(gitHosts.byShortcut).concat(["http:", "https:", "git:", "git+ssh:", "git+https:", "ssh:"]);
30
- module2.exports.fromUrl = function(giturl, opts) {
31
- if (typeof giturl !== "string") {
32
- return;
33
- }
34
- const key = giturl + JSON.stringify(opts || {});
35
- if (!cache.has(key)) {
36
- cache.set(key, fromUrl(giturl, opts));
37
- }
38
- return cache.get(key);
39
- };
40
- function fromUrl(giturl, opts) {
41
- if (!giturl) {
42
- return;
43
- }
44
- const url2 = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl);
45
- const parsed = parseGitUrl(url2);
46
- if (!parsed) {
47
- return parsed;
48
- }
49
- const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
50
- const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
51
- const gitHostName = gitHostShortcut || gitHostDomain;
52
- if (!gitHostName) {
53
- return;
54
- }
55
- const gitHostInfo2 = gitHosts[gitHostShortcut || gitHostDomain];
56
- let auth = null;
57
- if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {
58
- auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`;
59
- }
60
- let committish = null;
61
- let user = null;
62
- let project = null;
63
- let defaultRepresentation = null;
64
- try {
65
- if (gitHostShortcut) {
66
- let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname;
67
- const firstAt = pathname.indexOf("@");
68
- if (firstAt > -1) {
69
- pathname = pathname.slice(firstAt + 1);
70
- }
71
- const lastSlash = pathname.lastIndexOf("/");
72
- if (lastSlash > -1) {
73
- user = decodeURIComponent(pathname.slice(0, lastSlash));
74
- if (!user) {
75
- user = null;
76
- }
77
- project = decodeURIComponent(pathname.slice(lastSlash + 1));
78
- } else {
79
- project = decodeURIComponent(pathname);
80
- }
81
- if (project.endsWith(".git")) {
82
- project = project.slice(0, -4);
83
- }
84
- if (parsed.hash) {
85
- committish = decodeURIComponent(parsed.hash.slice(1));
34
+ const key = giturl + JSON.stringify(opts || {});
35
+ if (!cache.has(key)) {
36
+ cache.set(key, fromUrl(giturl, opts));
37
+ }
38
+ return cache.get(key);
39
+ };
40
+ function fromUrl(giturl, opts) {
41
+ if (!giturl) {
42
+ return;
43
+ }
44
+ const url2 = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl);
45
+ const parsed = parseGitUrl(url2);
46
+ if (!parsed) {
47
+ return parsed;
48
+ }
49
+ const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
50
+ const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
51
+ const gitHostName = gitHostShortcut || gitHostDomain;
52
+ if (!gitHostName) {
53
+ return;
54
+ }
55
+ const gitHostInfo2 = gitHosts[gitHostShortcut || gitHostDomain];
56
+ let auth = null;
57
+ if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {
58
+ auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`;
59
+ }
60
+ let committish = null;
61
+ let user = null;
62
+ let project = null;
63
+ let defaultRepresentation = null;
64
+ try {
65
+ if (gitHostShortcut) {
66
+ let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname;
67
+ const firstAt = pathname.indexOf("@");
68
+ if (firstAt > -1) {
69
+ pathname = pathname.slice(firstAt + 1);
70
+ }
71
+ const lastSlash = pathname.lastIndexOf("/");
72
+ if (lastSlash > -1) {
73
+ user = decodeURIComponent(pathname.slice(0, lastSlash));
74
+ if (!user) {
75
+ user = null;
86
76
  }
87
- defaultRepresentation = "shortcut";
77
+ project = decodeURIComponent(pathname.slice(lastSlash + 1));
88
78
  } else {
89
- if (!gitHostInfo2.protocols.includes(parsed.protocol)) {
90
- return;
91
- }
92
- const segments = gitHostInfo2.extract(parsed);
93
- if (!segments) {
94
- return;
95
- }
96
- user = segments.user && decodeURIComponent(segments.user);
97
- project = decodeURIComponent(segments.project);
98
- committish = decodeURIComponent(segments.committish);
99
- defaultRepresentation = protocolToRepresentation(parsed.protocol);
79
+ project = decodeURIComponent(pathname);
80
+ }
81
+ if (project.endsWith(".git")) {
82
+ project = project.slice(0, -4);
100
83
  }
101
- } catch (err) {
102
- if (err instanceof URIError) {
84
+ if (parsed.hash) {
85
+ committish = decodeURIComponent(parsed.hash.slice(1));
86
+ }
87
+ defaultRepresentation = "shortcut";
88
+ } else {
89
+ if (!gitHostInfo2.protocols.includes(parsed.protocol)) {
103
90
  return;
104
- } else {
105
- throw err;
106
91
  }
107
- }
108
- return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
109
- }
110
- const correctProtocol = (arg) => {
111
- const firstColon = arg.indexOf(":");
112
- const proto = arg.slice(0, firstColon + 1);
113
- if (knownProtocols.includes(proto)) {
114
- return arg;
115
- }
116
- const firstAt = arg.indexOf("@");
117
- if (firstAt > -1) {
118
- if (firstAt > firstColon) {
119
- return `git+ssh://${arg}`;
120
- } else {
121
- return arg;
92
+ const segments = gitHostInfo2.extract(parsed);
93
+ if (!segments) {
94
+ return;
122
95
  }
96
+ user = segments.user && decodeURIComponent(segments.user);
97
+ project = decodeURIComponent(segments.project);
98
+ committish = decodeURIComponent(segments.committish);
99
+ defaultRepresentation = protocolToRepresentation(parsed.protocol);
123
100
  }
124
- const doubleSlash = arg.indexOf("//");
125
- if (doubleSlash === firstColon + 1) {
126
- return arg;
127
- }
128
- return arg.slice(0, firstColon + 1) + "//" + arg.slice(firstColon + 1);
129
- };
130
- const isGitHubShorthand = (arg) => {
131
- const firstHash = arg.indexOf("#");
132
- const firstSlash = arg.indexOf("/");
133
- const secondSlash = arg.indexOf("/", firstSlash + 1);
134
- const firstColon = arg.indexOf(":");
135
- const firstSpace = /\s/.exec(arg);
136
- const firstAt = arg.indexOf("@");
137
- const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash;
138
- const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash;
139
- const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
140
- const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
141
- const hasSlash = firstSlash > 0;
142
- const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
143
- const doesNotStartWithDot = !arg.startsWith(".");
144
- return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
145
- };
146
- const correctUrl = (giturl) => {
147
- const firstAt = giturl.indexOf("@");
148
- const lastHash = giturl.lastIndexOf("#");
149
- let firstColon = giturl.indexOf(":");
150
- let lastColon = giturl.lastIndexOf(":", lastHash > -1 ? lastHash : Infinity);
151
- let corrected;
152
- if (lastColon > firstAt) {
153
- corrected = giturl.slice(0, lastColon) + "/" + giturl.slice(lastColon + 1);
154
- firstColon = corrected.indexOf(":");
155
- lastColon = corrected.lastIndexOf(":");
156
- }
157
- if (firstColon === -1 && giturl.indexOf("//") === -1) {
158
- corrected = `git+ssh://${corrected}`;
159
- }
160
- return corrected;
161
- };
162
- const parseGitUrl = (giturl) => {
163
- let result;
164
- try {
165
- result = new url.URL(giturl);
166
- } catch (err) {
167
- }
168
- if (result) {
169
- return result;
101
+ } catch (err) {
102
+ if (err instanceof URIError) {
103
+ return;
104
+ } else {
105
+ throw err;
170
106
  }
171
- const correctedUrl = correctUrl(giturl);
172
- try {
173
- result = new url.URL(correctedUrl);
174
- } catch (err) {
107
+ }
108
+ return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts);
109
+ }
110
+ const correctProtocol = (arg) => {
111
+ const firstColon = arg.indexOf(":");
112
+ const proto = arg.slice(0, firstColon + 1);
113
+ if (knownProtocols.includes(proto)) {
114
+ return arg;
115
+ }
116
+ const firstAt = arg.indexOf("@");
117
+ if (firstAt > -1) {
118
+ if (firstAt > firstColon) {
119
+ return `git+ssh://${arg}`;
120
+ } else {
121
+ return arg;
175
122
  }
123
+ }
124
+ const doubleSlash = arg.indexOf("//");
125
+ if (doubleSlash === firstColon + 1) {
126
+ return arg;
127
+ }
128
+ return arg.slice(0, firstColon + 1) + "//" + arg.slice(firstColon + 1);
129
+ };
130
+ const isGitHubShorthand = (arg) => {
131
+ const firstHash = arg.indexOf("#");
132
+ const firstSlash = arg.indexOf("/");
133
+ const secondSlash = arg.indexOf("/", firstSlash + 1);
134
+ const firstColon = arg.indexOf(":");
135
+ const firstSpace = /\s/.exec(arg);
136
+ const firstAt = arg.indexOf("@");
137
+ const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash;
138
+ const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash;
139
+ const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash;
140
+ const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash;
141
+ const hasSlash = firstSlash > 0;
142
+ const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/");
143
+ const doesNotStartWithDot = !arg.startsWith(".");
144
+ return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash;
145
+ };
146
+ const correctUrl = (giturl) => {
147
+ const firstAt = giturl.indexOf("@");
148
+ const lastHash = giturl.lastIndexOf("#");
149
+ let firstColon = giturl.indexOf(":");
150
+ let lastColon = giturl.lastIndexOf(":", lastHash > -1 ? lastHash : Infinity);
151
+ let corrected;
152
+ if (lastColon > firstAt) {
153
+ corrected = giturl.slice(0, lastColon) + "/" + giturl.slice(lastColon + 1);
154
+ firstColon = corrected.indexOf(":");
155
+ lastColon = corrected.lastIndexOf(":");
156
+ }
157
+ if (firstColon === -1 && giturl.indexOf("//") === -1) {
158
+ corrected = `git+ssh://${corrected}`;
159
+ }
160
+ return corrected;
161
+ };
162
+ const parseGitUrl = (giturl) => {
163
+ let result;
164
+ try {
165
+ result = new url.URL(giturl);
166
+ } catch (err) {
167
+ }
168
+ if (result) {
176
169
  return result;
177
- };
178
- })(index.__module);
170
+ }
171
+ const correctedUrl = correctUrl(giturl);
172
+ try {
173
+ result = new url.URL(correctedUrl);
174
+ } catch (err) {
175
+ }
176
+ return result;
177
+ };
178
+ var hostedGitInfoExports = index.__module.exports;
179
+ exports.hostedGitInfoExports = hostedGitInfoExports;
179
180
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../../../node_modules/meow/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","module","require$$2","require$$3","url","gitHostInfo"],"mappings":";;;;;;;AACA,QAAM,MAAM;AACZ,QAAM,WAAWA;AACjB,QAAM,UAAUC,QAAA,UAAiBC;AACjC,QAAM,MAAMC;AACZ,QAAM,QAAQ,IAAI,IAAI,EAAE,KAAK,IAAI,CAAE;AAEnC,QAAM,8BAA8B;AAAA,IAClC,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,QAAQ;AAAA,EACT;AAED,WAAS,yBAA0B,UAAU;AAC3C,WAAO,4B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AAAA,EACjI;AAGD,QAAM,aAAa,CAAC,WAAW;AAC7B,UAAM,UAAU,OAAO,QAAQ,GAAG;AAClC,UAAM,WAAW,OAAO,YAAY,GAAG;AACvC,QAAI,aAAa,OAAO,QAAQ,GAAG;AACnC,QAAI,YAAY,OAAO,YAAY,KAAK,WAAW,KAAK,WAAW,QAAQ;AAE3E,QAAI;AACJ,QAAI,YAAY,SAAS;AAWvB,kBAAY,OAAO,MAAM,GAAG,SAAS,IAAI,MAAM,OAAO,MAAM,YAAY,CAAC;AAEzE,mBAAa,UAAU,QAAQ,GAAG;AAClC,kBAAY,UAAU,YAAY,GAAG;AAAA,IACtC;AAED,QAAI,eAAe,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAKpD,kBAAY,aAAa;AAAA,IAC1B;AAED,WAAO;AAAA,EACR;AAKD,QAAM,cAAc,CAAC,WAAW;AAC9B,QAAI;AACJ,QAAI;AACF,eAAS,IAAI,IAAI,IAAI,MAAM;AAAA,IAC/B,SAAW,KAAP;AAAA,IAAc;AAEhB,QAAI,QAAQ;AACV,aAAO;AAAA,IACR;AAED,UAAM,eAAe,WAAW,MAAM;AACtC,QAAI;AACF,eAAS,IAAI,IAAI,IAAI,YAAY;AAAA,IACrC,SAAW,KAAP;AAAA,IAAc;AAEhB,WAAO;AAAA,EACT;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../../node_modules/meow/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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