@donmahallem/lerna2codecov 0.2.2 → 0.2.3

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 (236) hide show
  1. package/dist/cjs/_virtual/git-host-info.cjs +8 -0
  2. package/dist/cjs/_virtual/git-host-info.cjs.map +1 -0
  3. package/dist/cjs/_virtual/index3.cjs +2 -2
  4. package/dist/cjs/_virtual/index4.cjs +2 -2
  5. package/dist/cjs/node_modules/@lerna/package/index.cjs +3 -4
  6. package/dist/cjs/node_modules/@lerna/package/index.cjs.map +1 -1
  7. package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs +89 -183
  8. package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs.map +1 -1
  9. package/dist/cjs/node_modules/hosted-git-info/git-host.cjs +165 -109
  10. package/dist/cjs/node_modules/hosted-git-info/git-host.cjs.map +1 -1
  11. package/dist/cjs/node_modules/hosted-git-info/index.cjs +157 -238
  12. package/dist/cjs/node_modules/hosted-git-info/index.cjs.map +1 -1
  13. package/dist/cjs/node_modules/load-json-file/index.cjs +7 -7
  14. package/dist/cjs/node_modules/lru-cache/index.cjs +343 -332
  15. package/dist/cjs/node_modules/lru-cache/index.cjs.map +1 -1
  16. package/dist/cjs/node_modules/npm-package-arg/npa.cjs +95 -141
  17. package/dist/cjs/node_modules/npm-package-arg/npa.cjs.map +1 -1
  18. package/dist/cjs/node_modules/semver/classes/comparator.cjs +6 -7
  19. package/dist/cjs/node_modules/semver/classes/comparator.cjs.map +1 -1
  20. package/dist/cjs/node_modules/semver/classes/range.cjs +6 -7
  21. package/dist/cjs/node_modules/semver/classes/range.cjs.map +1 -1
  22. package/dist/cjs/node_modules/semver/classes/semver.cjs +301 -292
  23. package/dist/cjs/node_modules/semver/classes/semver.cjs.map +1 -1
  24. package/dist/cjs/node_modules/semver/functions/clean.cjs +18 -8
  25. package/dist/cjs/node_modules/semver/functions/clean.cjs.map +1 -1
  26. package/dist/cjs/node_modules/semver/functions/cmp.cjs +60 -50
  27. package/dist/cjs/node_modules/semver/functions/cmp.cjs.map +1 -1
  28. package/dist/cjs/node_modules/semver/functions/coerce.cjs +67 -58
  29. package/dist/cjs/node_modules/semver/functions/coerce.cjs.map +1 -1
  30. package/dist/cjs/node_modules/semver/functions/compare-build.cjs +18 -8
  31. package/dist/cjs/node_modules/semver/functions/compare-build.cjs.map +1 -1
  32. package/dist/cjs/node_modules/semver/functions/compare-loose.cjs +15 -5
  33. package/dist/cjs/node_modules/semver/functions/compare-loose.cjs.map +1 -1
  34. package/dist/cjs/node_modules/semver/functions/compare.cjs +15 -5
  35. package/dist/cjs/node_modules/semver/functions/compare.cjs.map +1 -1
  36. package/dist/cjs/node_modules/semver/functions/diff.cjs +35 -25
  37. package/dist/cjs/node_modules/semver/functions/diff.cjs.map +1 -1
  38. package/dist/cjs/node_modules/semver/functions/eq.cjs +15 -5
  39. package/dist/cjs/node_modules/semver/functions/eq.cjs.map +1 -1
  40. package/dist/cjs/node_modules/semver/functions/gt.cjs +15 -5
  41. package/dist/cjs/node_modules/semver/functions/gt.cjs.map +1 -1
  42. package/dist/cjs/node_modules/semver/functions/gte.cjs +15 -5
  43. package/dist/cjs/node_modules/semver/functions/gte.cjs.map +1 -1
  44. package/dist/cjs/node_modules/semver/functions/inc.cjs +27 -17
  45. package/dist/cjs/node_modules/semver/functions/inc.cjs.map +1 -1
  46. package/dist/cjs/node_modules/semver/functions/lt.cjs +15 -5
  47. package/dist/cjs/node_modules/semver/functions/lt.cjs.map +1 -1
  48. package/dist/cjs/node_modules/semver/functions/lte.cjs +15 -5
  49. package/dist/cjs/node_modules/semver/functions/lte.cjs.map +1 -1
  50. package/dist/cjs/node_modules/semver/functions/major.cjs +14 -4
  51. package/dist/cjs/node_modules/semver/functions/major.cjs.map +1 -1
  52. package/dist/cjs/node_modules/semver/functions/minor.cjs +14 -4
  53. package/dist/cjs/node_modules/semver/functions/minor.cjs.map +1 -1
  54. package/dist/cjs/node_modules/semver/functions/neq.cjs +15 -5
  55. package/dist/cjs/node_modules/semver/functions/neq.cjs.map +1 -1
  56. package/dist/cjs/node_modules/semver/functions/parse.cjs +48 -39
  57. package/dist/cjs/node_modules/semver/functions/parse.cjs.map +1 -1
  58. package/dist/cjs/node_modules/semver/functions/patch.cjs +14 -4
  59. package/dist/cjs/node_modules/semver/functions/patch.cjs.map +1 -1
  60. package/dist/cjs/node_modules/semver/functions/prerelease.cjs +18 -8
  61. package/dist/cjs/node_modules/semver/functions/prerelease.cjs.map +1 -1
  62. package/dist/cjs/node_modules/semver/functions/rcompare.cjs +15 -5
  63. package/dist/cjs/node_modules/semver/functions/rcompare.cjs.map +1 -1
  64. package/dist/cjs/node_modules/semver/functions/rsort.cjs +15 -5
  65. package/dist/cjs/node_modules/semver/functions/rsort.cjs.map +1 -1
  66. package/dist/cjs/node_modules/semver/functions/satisfies.cjs +21 -11
  67. package/dist/cjs/node_modules/semver/functions/satisfies.cjs.map +1 -1
  68. package/dist/cjs/node_modules/semver/functions/sort.cjs +15 -5
  69. package/dist/cjs/node_modules/semver/functions/sort.cjs.map +1 -1
  70. package/dist/cjs/node_modules/semver/functions/valid.cjs +18 -8
  71. package/dist/cjs/node_modules/semver/functions/valid.cjs.map +1 -1
  72. package/dist/cjs/node_modules/semver/index.cjs +60 -51
  73. package/dist/cjs/node_modules/semver/index.cjs.map +1 -1
  74. package/dist/cjs/node_modules/semver/internal/constants.cjs +25 -15
  75. package/dist/cjs/node_modules/semver/internal/constants.cjs.map +1 -1
  76. package/dist/cjs/node_modules/semver/internal/debug.cjs +19 -9
  77. package/dist/cjs/node_modules/semver/internal/debug.cjs.map +1 -1
  78. package/dist/cjs/node_modules/semver/internal/identifiers.cjs +35 -25
  79. package/dist/cjs/node_modules/semver/internal/identifiers.cjs.map +1 -1
  80. package/dist/cjs/node_modules/semver/internal/parse-options.cjs +22 -12
  81. package/dist/cjs/node_modules/semver/internal/parse-options.cjs.map +1 -1
  82. package/dist/cjs/node_modules/semver/internal/re.cjs +172 -161
  83. package/dist/cjs/node_modules/semver/internal/re.cjs.map +1 -1
  84. package/dist/cjs/node_modules/semver/ranges/gtr.cjs +16 -6
  85. package/dist/cjs/node_modules/semver/ranges/gtr.cjs.map +1 -1
  86. package/dist/cjs/node_modules/semver/ranges/intersects.cjs +18 -8
  87. package/dist/cjs/node_modules/semver/ranges/intersects.cjs.map +1 -1
  88. package/dist/cjs/node_modules/semver/ranges/ltr.cjs +16 -6
  89. package/dist/cjs/node_modules/semver/ranges/ltr.cjs.map +1 -1
  90. package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs +35 -25
  91. package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs.map +1 -1
  92. package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs +35 -25
  93. package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs.map +1 -1
  94. package/dist/cjs/node_modules/semver/ranges/min-version.cjs +66 -56
  95. package/dist/cjs/node_modules/semver/ranges/min-version.cjs.map +1 -1
  96. package/dist/cjs/node_modules/semver/ranges/outside.cjs +86 -76
  97. package/dist/cjs/node_modules/semver/ranges/outside.cjs.map +1 -1
  98. package/dist/cjs/node_modules/semver/ranges/simplify.cjs +59 -49
  99. package/dist/cjs/node_modules/semver/ranges/simplify.cjs.map +1 -1
  100. package/dist/cjs/node_modules/semver/ranges/subset.cjs +259 -249
  101. package/dist/cjs/node_modules/semver/ranges/subset.cjs.map +1 -1
  102. package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs +17 -7
  103. package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs.map +1 -1
  104. package/dist/cjs/node_modules/semver/ranges/valid.cjs +22 -12
  105. package/dist/cjs/node_modules/semver/ranges/valid.cjs.map +1 -1
  106. package/dist/cjs/node_modules/supports-color/index.cjs +3 -3
  107. package/dist/cjs/node_modules/validate-npm-package-name/index.cjs +118 -108
  108. package/dist/cjs/node_modules/validate-npm-package-name/index.cjs.map +1 -1
  109. package/dist/cjs/node_modules/write-pkg/index.cjs +3 -3
  110. package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs +3 -3
  111. package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs.map +1 -1
  112. package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs +3 -3
  113. package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs +3 -3
  114. package/dist/cjs/node_modules/yallist/yallist.cjs +435 -425
  115. package/dist/cjs/node_modules/yallist/yallist.cjs.map +1 -1
  116. package/dist/cjs/update-config.cjs +2 -2
  117. package/dist/esm/_virtual/git-host-info.mjs +4 -0
  118. package/dist/esm/_virtual/git-host-info.mjs.map +1 -0
  119. package/dist/esm/_virtual/index3.mjs +2 -2
  120. package/dist/esm/_virtual/index4.mjs +2 -2
  121. package/dist/esm/node_modules/@lerna/package/index.mjs +2 -3
  122. package/dist/esm/node_modules/@lerna/package/index.mjs.map +1 -1
  123. package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs +87 -183
  124. package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs.map +1 -1
  125. package/dist/esm/node_modules/hosted-git-info/git-host.mjs +165 -111
  126. package/dist/esm/node_modules/hosted-git-info/git-host.mjs.map +1 -1
  127. package/dist/esm/node_modules/hosted-git-info/index.mjs +159 -242
  128. package/dist/esm/node_modules/hosted-git-info/index.mjs.map +1 -1
  129. package/dist/esm/node_modules/load-json-file/index.mjs +2 -2
  130. package/dist/esm/node_modules/load-json-file/index.mjs.map +1 -1
  131. package/dist/esm/node_modules/lru-cache/index.mjs +343 -334
  132. package/dist/esm/node_modules/lru-cache/index.mjs.map +1 -1
  133. package/dist/esm/node_modules/npm-package-arg/npa.mjs +93 -139
  134. package/dist/esm/node_modules/npm-package-arg/npa.mjs.map +1 -1
  135. package/dist/esm/node_modules/semver/classes/comparator.mjs +11 -12
  136. package/dist/esm/node_modules/semver/classes/comparator.mjs.map +1 -1
  137. package/dist/esm/node_modules/semver/classes/range.mjs +21 -22
  138. package/dist/esm/node_modules/semver/classes/range.mjs.map +1 -1
  139. package/dist/esm/node_modules/semver/classes/semver.mjs +301 -294
  140. package/dist/esm/node_modules/semver/classes/semver.mjs.map +1 -1
  141. package/dist/esm/node_modules/semver/functions/clean.mjs +16 -8
  142. package/dist/esm/node_modules/semver/functions/clean.mjs.map +1 -1
  143. package/dist/esm/node_modules/semver/functions/cmp.mjs +69 -61
  144. package/dist/esm/node_modules/semver/functions/cmp.mjs.map +1 -1
  145. package/dist/esm/node_modules/semver/functions/coerce.mjs +66 -59
  146. package/dist/esm/node_modules/semver/functions/coerce.mjs.map +1 -1
  147. package/dist/esm/node_modules/semver/functions/compare-build.mjs +17 -9
  148. package/dist/esm/node_modules/semver/functions/compare-build.mjs.map +1 -1
  149. package/dist/esm/node_modules/semver/functions/compare-loose.mjs +13 -5
  150. package/dist/esm/node_modules/semver/functions/compare-loose.mjs.map +1 -1
  151. package/dist/esm/node_modules/semver/functions/compare.mjs +14 -6
  152. package/dist/esm/node_modules/semver/functions/compare.mjs.map +1 -1
  153. package/dist/esm/node_modules/semver/functions/diff.mjs +33 -25
  154. package/dist/esm/node_modules/semver/functions/diff.mjs.map +1 -1
  155. package/dist/esm/node_modules/semver/functions/eq.mjs +13 -5
  156. package/dist/esm/node_modules/semver/functions/eq.mjs.map +1 -1
  157. package/dist/esm/node_modules/semver/functions/gt.mjs +13 -5
  158. package/dist/esm/node_modules/semver/functions/gt.mjs.map +1 -1
  159. package/dist/esm/node_modules/semver/functions/gte.mjs +13 -5
  160. package/dist/esm/node_modules/semver/functions/gte.mjs.map +1 -1
  161. package/dist/esm/node_modules/semver/functions/inc.mjs +26 -18
  162. package/dist/esm/node_modules/semver/functions/inc.mjs.map +1 -1
  163. package/dist/esm/node_modules/semver/functions/lt.mjs +13 -5
  164. package/dist/esm/node_modules/semver/functions/lt.mjs.map +1 -1
  165. package/dist/esm/node_modules/semver/functions/lte.mjs +13 -5
  166. package/dist/esm/node_modules/semver/functions/lte.mjs.map +1 -1
  167. package/dist/esm/node_modules/semver/functions/major.mjs +13 -5
  168. package/dist/esm/node_modules/semver/functions/major.mjs.map +1 -1
  169. package/dist/esm/node_modules/semver/functions/minor.mjs +13 -5
  170. package/dist/esm/node_modules/semver/functions/minor.mjs.map +1 -1
  171. package/dist/esm/node_modules/semver/functions/neq.mjs +13 -5
  172. package/dist/esm/node_modules/semver/functions/neq.mjs.map +1 -1
  173. package/dist/esm/node_modules/semver/functions/parse.mjs +48 -41
  174. package/dist/esm/node_modules/semver/functions/parse.mjs.map +1 -1
  175. package/dist/esm/node_modules/semver/functions/patch.mjs +13 -5
  176. package/dist/esm/node_modules/semver/functions/patch.mjs.map +1 -1
  177. package/dist/esm/node_modules/semver/functions/prerelease.mjs +16 -8
  178. package/dist/esm/node_modules/semver/functions/prerelease.mjs.map +1 -1
  179. package/dist/esm/node_modules/semver/functions/rcompare.mjs +13 -5
  180. package/dist/esm/node_modules/semver/functions/rcompare.mjs.map +1 -1
  181. package/dist/esm/node_modules/semver/functions/rsort.mjs +13 -5
  182. package/dist/esm/node_modules/semver/functions/rsort.mjs.map +1 -1
  183. package/dist/esm/node_modules/semver/functions/satisfies.mjs +19 -11
  184. package/dist/esm/node_modules/semver/functions/satisfies.mjs.map +1 -1
  185. package/dist/esm/node_modules/semver/functions/sort.mjs +13 -5
  186. package/dist/esm/node_modules/semver/functions/sort.mjs.map +1 -1
  187. package/dist/esm/node_modules/semver/functions/valid.mjs +16 -8
  188. package/dist/esm/node_modules/semver/functions/valid.mjs.map +1 -1
  189. package/dist/esm/node_modules/semver/index.mjs +96 -89
  190. package/dist/esm/node_modules/semver/index.mjs.map +1 -1
  191. package/dist/esm/node_modules/semver/internal/constants.mjs +23 -15
  192. package/dist/esm/node_modules/semver/internal/constants.mjs.map +1 -1
  193. package/dist/esm/node_modules/semver/internal/debug.mjs +17 -9
  194. package/dist/esm/node_modules/semver/internal/debug.mjs.map +1 -1
  195. package/dist/esm/node_modules/semver/internal/identifiers.mjs +28 -20
  196. package/dist/esm/node_modules/semver/internal/identifiers.mjs.map +1 -1
  197. package/dist/esm/node_modules/semver/internal/parse-options.mjs +20 -12
  198. package/dist/esm/node_modules/semver/internal/parse-options.mjs.map +1 -1
  199. package/dist/esm/node_modules/semver/internal/re.mjs +175 -166
  200. package/dist/esm/node_modules/semver/internal/re.mjs.map +1 -1
  201. package/dist/esm/node_modules/semver/ranges/gtr.mjs +14 -6
  202. package/dist/esm/node_modules/semver/ranges/gtr.mjs.map +1 -1
  203. package/dist/esm/node_modules/semver/ranges/intersects.mjs +16 -8
  204. package/dist/esm/node_modules/semver/ranges/intersects.mjs.map +1 -1
  205. package/dist/esm/node_modules/semver/ranges/ltr.mjs +14 -6
  206. package/dist/esm/node_modules/semver/ranges/ltr.mjs.map +1 -1
  207. package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs +34 -26
  208. package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs.map +1 -1
  209. package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs +34 -26
  210. package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs.map +1 -1
  211. package/dist/esm/node_modules/semver/ranges/min-version.mjs +65 -57
  212. package/dist/esm/node_modules/semver/ranges/min-version.mjs.map +1 -1
  213. package/dist/esm/node_modules/semver/ranges/outside.mjs +85 -77
  214. package/dist/esm/node_modules/semver/ranges/outside.mjs.map +1 -1
  215. package/dist/esm/node_modules/semver/ranges/simplify.mjs +57 -49
  216. package/dist/esm/node_modules/semver/ranges/simplify.mjs.map +1 -1
  217. package/dist/esm/node_modules/semver/ranges/subset.mjs +257 -249
  218. package/dist/esm/node_modules/semver/ranges/subset.mjs.map +1 -1
  219. package/dist/esm/node_modules/semver/ranges/to-comparators.mjs +15 -7
  220. package/dist/esm/node_modules/semver/ranges/to-comparators.mjs.map +1 -1
  221. package/dist/esm/node_modules/semver/ranges/valid.mjs +20 -12
  222. package/dist/esm/node_modules/semver/ranges/valid.mjs.map +1 -1
  223. package/dist/esm/node_modules/supports-color/index.mjs +2 -2
  224. package/dist/esm/node_modules/validate-npm-package-name/index.mjs +114 -107
  225. package/dist/esm/node_modules/validate-npm-package-name/index.mjs.map +1 -1
  226. package/dist/esm/node_modules/write-pkg/index.mjs +2 -2
  227. package/dist/esm/node_modules/write-pkg/index.mjs.map +1 -1
  228. package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs +2 -2
  229. package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs.map +1 -1
  230. package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs +2 -2
  231. package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs.map +1 -1
  232. package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs +2 -2
  233. package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs.map +1 -1
  234. package/dist/esm/node_modules/yallist/yallist.mjs +433 -425
  235. package/dist/esm/node_modules/yallist/yallist.mjs.map +1 -1
  236. package/package.json +4 -4
@@ -1,245 +1,162 @@
1
- import { h as hostedGitInfo } from '../../_virtual/index3.mjs';
1
+ import { h as hostedGitInfo } from '../../_virtual/index4.mjs';
2
2
  import require$$0 from 'url';
3
- import gitHostInfo from './git-host-info.mjs';
4
- import gitHost from './git-host.mjs';
5
- import lruCache from '../lru-cache/index.mjs';
6
-
7
- (function (module) {
8
- const url = require$$0;
9
- const gitHosts = gitHostInfo;
10
- const GitHost = module.exports = gitHost;
11
- const LRU = lruCache;
12
- const cache = new LRU({ max: 1000 });
13
-
14
- const protocolToRepresentationMap = {
15
- 'git+ssh:': 'sshurl',
16
- 'git+https:': 'https',
17
- 'ssh:': 'sshurl',
18
- 'git:': 'git'
19
- };
20
-
21
- function protocolToRepresentation (protocol) {
22
- return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)
23
- }
24
-
25
- const authProtocols = {
26
- 'git:': true,
27
- 'https:': true,
28
- 'git+https:': true,
29
- 'http:': true,
30
- 'git+http:': true
31
- };
32
-
33
- const knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:']);
34
-
35
- module.exports.fromUrl = function (giturl, opts) {
36
- if (typeof giturl !== 'string') {
37
- return
38
- }
39
-
40
- const key = giturl + JSON.stringify(opts || {});
41
-
42
- if (!cache.has(key)) {
43
- cache.set(key, fromUrl(giturl, opts));
44
- }
45
-
46
- return cache.get(key)
47
- };
48
-
49
- function fromUrl (giturl, opts) {
50
- if (!giturl) {
51
- return
52
- }
53
-
54
- const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl);
55
- const parsed = parseGitUrl(url);
56
- if (!parsed) {
57
- return parsed
58
- }
59
-
60
- const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
61
- const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname];
62
- const gitHostName = gitHostShortcut || gitHostDomain;
63
- if (!gitHostName) {
64
- return
65
- }
66
-
67
- const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain];
68
- let auth = null;
69
- if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {
70
- auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`;
71
- }
72
-
73
- let committish = null;
74
- let user = null;
75
- let project = null;
76
- let defaultRepresentation = null;
77
-
78
- try {
79
- if (gitHostShortcut) {
80
- let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname;
81
- const firstAt = pathname.indexOf('@');
82
- // we ignore auth for shortcuts, so just trim it out
83
- if (firstAt > -1) {
84
- pathname = pathname.slice(firstAt + 1);
85
- }
86
-
87
- const lastSlash = pathname.lastIndexOf('/');
88
- if (lastSlash > -1) {
89
- user = decodeURIComponent(pathname.slice(0, lastSlash));
90
- // we want nulls only, never empty strings
91
- if (!user) {
92
- user = null;
93
- }
94
- project = decodeURIComponent(pathname.slice(lastSlash + 1));
95
- } else {
96
- project = decodeURIComponent(pathname);
97
- }
98
-
99
- if (project.endsWith('.git')) {
100
- project = project.slice(0, -4);
101
- }
102
-
103
- if (parsed.hash) {
104
- committish = decodeURIComponent(parsed.hash.slice(1));
105
- }
106
-
107
- defaultRepresentation = 'shortcut';
108
- } else {
109
- if (!gitHostInfo.protocols.includes(parsed.protocol)) {
110
- return
111
- }
112
-
113
- const segments = gitHostInfo.extract(parsed);
114
- if (!segments) {
115
- return
116
- }
117
-
118
- user = segments.user && decodeURIComponent(segments.user);
119
- project = decodeURIComponent(segments.project);
120
- committish = decodeURIComponent(segments.committish);
121
- defaultRepresentation = protocolToRepresentation(parsed.protocol);
122
- }
123
- } catch (err) {
124
- /* istanbul ignore else */
125
- if (err instanceof URIError) {
126
- return
127
- } else {
128
- throw err
129
- }
130
- }
131
-
132
- return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)
133
- }
134
-
135
- // accepts input like git:github.com:user/repo and inserts the // after the first :
136
- const correctProtocol = (arg) => {
137
- const firstColon = arg.indexOf(':');
138
- const proto = arg.slice(0, firstColon + 1);
139
- if (knownProtocols.includes(proto)) {
140
- return arg
141
- }
142
-
143
- const firstAt = arg.indexOf('@');
144
- if (firstAt > -1) {
145
- if (firstAt > firstColon) {
146
- return `git+ssh://${arg}`
147
- } else {
148
- return arg
149
- }
150
- }
151
-
152
- const doubleSlash = arg.indexOf('//');
153
- if (doubleSlash === firstColon + 1) {
154
- return arg
155
- }
156
-
157
- return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)
158
- };
159
-
160
- // look for github shorthand inputs, such as npm/cli
161
- const isGitHubShorthand = (arg) => {
162
- // it cannot contain whitespace before the first #
163
- // it cannot start with a / because that's probably an absolute file path
164
- // but it must include a slash since repos are username/repository
165
- // it cannot start with a . because that's probably a relative file path
166
- // it cannot start with an @ because that's a scoped package if it passes the other tests
167
- // it cannot contain a : before a # because that tells us that there's a protocol
168
- // a second / may not exist before a #
169
- const firstHash = arg.indexOf('#');
170
- const firstSlash = arg.indexOf('/');
171
- const secondSlash = arg.indexOf('/', firstSlash + 1);
172
- const firstColon = arg.indexOf(':');
173
- const firstSpace = /\s/.exec(arg);
174
- const firstAt = arg.indexOf('@');
175
-
176
- const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash);
177
- const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash);
178
- const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash);
179
- const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash);
180
- const hasSlash = firstSlash > 0;
181
- // if a # is found, what we really want to know is that the character immediately before # is not a /
182
- const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/');
183
- const doesNotStartWithDot = !arg.startsWith('.');
184
-
185
- return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash
186
- };
187
-
188
- // attempt to correct an scp style url so that it will parse with `new URL()`
189
- const correctUrl = (giturl) => {
190
- const firstAt = giturl.indexOf('@');
191
- const lastHash = giturl.lastIndexOf('#');
192
- let firstColon = giturl.indexOf(':');
193
- let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity);
194
-
195
- let corrected;
196
- if (lastColon > firstAt) {
197
- // the last : comes after the first @ (or there is no @)
198
- // like it would in:
199
- // proto://hostname.com:user/repo
200
- // username@hostname.com:user/repo
201
- // :password@hostname.com:user/repo
202
- // username:password@hostname.com:user/repo
203
- // proto://username@hostname.com:user/repo
204
- // proto://:password@hostname.com:user/repo
205
- // proto://username:password@hostname.com:user/repo
206
- // then we replace the last : with a / to create a valid path
207
- corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1);
208
- // // and we find our new : positions
209
- firstColon = corrected.indexOf(':');
210
- lastColon = corrected.lastIndexOf(':');
211
- }
212
-
213
- if (firstColon === -1 && giturl.indexOf('//') === -1) {
214
- // we have no : at all
215
- // as it would be in:
216
- // username@hostname.com/user/repo
217
- // then we prepend a protocol
218
- corrected = `git+ssh://${corrected}`;
219
- }
220
-
221
- return corrected
222
- };
223
-
224
- // try to parse the url as its given to us, if that throws
225
- // then we try to clean the url and parse that result instead
226
- // THIS FUNCTION SHOULD NEVER THROW
227
- const parseGitUrl = (giturl) => {
228
- let result;
229
- try {
230
- result = new url.URL(giturl);
231
- } catch (err) {}
232
-
233
- if (result) {
234
- return result
235
- }
236
-
237
- const correctedUrl = correctUrl(giturl);
238
- try {
239
- result = new url.URL(correctedUrl);
240
- } catch (err) {}
241
-
242
- return result
243
- };
3
+ import { __require as requireGitHostInfo } from './git-host-info.mjs';
4
+ import { __require as requireGitHost } from './git-host.mjs';
5
+ import { __require as requireLruCache } from '../lru-cache/index.mjs';
6
+
7
+ var hasRequiredHostedGitInfo;
8
+
9
+ function requireHostedGitInfo () {
10
+ if (hasRequiredHostedGitInfo) return hostedGitInfo.exports;
11
+ hasRequiredHostedGitInfo = 1;
12
+ (function (module) {
13
+ var url = require$$0;
14
+ var gitHosts = requireGitHostInfo();
15
+ var GitHost = module.exports = requireGitHost();
16
+ var LRU = requireLruCache();
17
+ var cache = new LRU({max: 1000});
18
+
19
+ var protocolToRepresentationMap = {
20
+ 'git+ssh:': 'sshurl',
21
+ 'git+https:': 'https',
22
+ 'ssh:': 'sshurl',
23
+ 'git:': 'git'
24
+ };
25
+
26
+ function protocolToRepresentation (protocol) {
27
+ return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)
28
+ }
29
+
30
+ var authProtocols = {
31
+ 'git:': true,
32
+ 'https:': true,
33
+ 'git+https:': true,
34
+ 'http:': true,
35
+ 'git+http:': true
36
+ };
37
+
38
+ module.exports.fromUrl = function (giturl, opts) {
39
+ if (typeof giturl !== 'string') return
40
+ var key = giturl + JSON.stringify(opts || {});
41
+
42
+ if (!cache.has(key)) {
43
+ cache.set(key, fromUrl(giturl, opts));
44
+ }
45
+
46
+ return cache.get(key)
47
+ };
48
+
49
+ function fromUrl (giturl, opts) {
50
+ if (giturl == null || giturl === '') return
51
+ var url = fixupUnqualifiedGist(
52
+ isGitHubShorthand(giturl) ? 'github:' + giturl : giturl
53
+ );
54
+ var parsed = parseGitUrl(url);
55
+ var shortcutMatch = url.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/);
56
+ var matches = Object.keys(gitHosts).map(function (gitHostName) {
57
+ try {
58
+ var gitHostInfo = gitHosts[gitHostName];
59
+ var auth = null;
60
+ if (parsed.auth && authProtocols[parsed.protocol]) {
61
+ auth = parsed.auth;
62
+ }
63
+ var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null;
64
+ var user = null;
65
+ var project = null;
66
+ var defaultRepresentation = null;
67
+ if (shortcutMatch && shortcutMatch[1] === gitHostName) {
68
+ user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2]);
69
+ project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, ''));
70
+ defaultRepresentation = 'shortcut';
71
+ } else {
72
+ if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, '') !== gitHostInfo.domain) return
73
+ if (!gitHostInfo.protocols_re.test(parsed.protocol)) return
74
+ if (!parsed.path) return
75
+ var pathmatch = gitHostInfo.pathmatch;
76
+ var matched = parsed.path.match(pathmatch);
77
+ if (!matched) return
78
+ /* istanbul ignore else */
79
+ if (matched[1] !== null && matched[1] !== undefined) {
80
+ user = decodeURIComponent(matched[1].replace(/^:/, ''));
81
+ }
82
+ project = decodeURIComponent(matched[2]);
83
+ defaultRepresentation = protocolToRepresentation(parsed.protocol);
84
+ }
85
+ return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)
86
+ } catch (ex) {
87
+ /* istanbul ignore else */
88
+ if (ex instanceof URIError) ; else throw ex
89
+ }
90
+ }).filter(function (gitHostInfo) { return gitHostInfo });
91
+ if (matches.length !== 1) return
92
+ return matches[0]
93
+ }
94
+
95
+ function isGitHubShorthand (arg) {
96
+ // Note: This does not fully test the git ref format.
97
+ // See https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
98
+ //
99
+ // The only way to do this properly would be to shell out to
100
+ // git-check-ref-format, and as this is a fast sync function,
101
+ // we don't want to do that. Just let git fail if it turns
102
+ // out that the commit-ish is invalid.
103
+ // GH usernames cannot start with . or -
104
+ return /^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(arg)
105
+ }
106
+
107
+ function fixupUnqualifiedGist (giturl) {
108
+ // necessary for round-tripping gists
109
+ var parsed = url.parse(giturl);
110
+ if (parsed.protocol === 'gist:' && parsed.host && !parsed.path) {
111
+ return parsed.protocol + '/' + parsed.host
112
+ } else {
113
+ return giturl
114
+ }
115
+ }
116
+
117
+ function parseGitUrl (giturl) {
118
+ var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);
119
+ if (!matched) {
120
+ var legacy = url.parse(giturl);
121
+ if (legacy.auth) {
122
+ // git urls can be in the form of scp-style/ssh-connect strings, like
123
+ // git+ssh://user@host.com:some/path, which the legacy url parser
124
+ // supports, but WhatWG url.URL class does not. However, the legacy
125
+ // parser de-urlencodes the username and password, so something like
126
+ // https://user%3An%40me:p%40ss%3Aword@x.com/ becomes
127
+ // https://user:n@me:p@ss:word@x.com/ which is all kinds of wrong.
128
+ // Pull off just the auth and host, so we dont' get the confusing
129
+ // scp-style URL, then pass that to the WhatWG parser to get the
130
+ // auth properly escaped.
131
+ const authmatch = giturl.match(/[^@]+@[^:/]+/);
132
+ /* istanbul ignore else - this should be impossible */
133
+ if (authmatch) {
134
+ var whatwg = new url.URL(authmatch[0]);
135
+ legacy.auth = whatwg.username || '';
136
+ if (whatwg.password) legacy.auth += ':' + whatwg.password;
137
+ }
138
+ }
139
+ return legacy
140
+ }
141
+ return {
142
+ protocol: 'git+ssh:',
143
+ slashes: true,
144
+ auth: matched[1],
145
+ host: matched[2],
146
+ port: null,
147
+ hostname: matched[2],
148
+ hash: matched[4],
149
+ search: null,
150
+ query: null,
151
+ pathname: '/' + matched[3],
152
+ path: '/' + matched[3],
153
+ href: 'git+ssh://' + matched[1] + '@' + matched[2] +
154
+ '/' + matched[3] + (matched[4] || '')
155
+ }
156
+ }
244
157
  } (hostedGitInfo));
158
+ return hostedGitInfo.exports;
159
+ }
160
+
161
+ export { requireHostedGitInfo as __require };
245
162
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../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","require$$2","require$$3"],"mappings":";;;;;;;CACA,MAAM,GAAG,GAAG,WAAc;CAC1B,MAAM,QAAQ,GAAGA,YAA6B;CAC9C,MAAM,OAAO,GAAG,MAAA,CAAA,OAAA,GAAiBC,QAAwB;CACzD,MAAM,GAAG,GAAGC,SAAoB;CAChC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAC;AACpC;AACA,CAAA,MAAM,2BAA2B,GAAG;GAClC,UAAU,EAAE,QAAQ;GACpB,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,QAAQ;GAChB,MAAM,EAAE,KAAK;GACd;AACD;CACA,SAAS,wBAAwB,EAAE,QAAQ,EAAE;AAC7C,GAAE,OAAO,2BAA2B,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC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G,EAAE,EAAE;AAClB;GACE,IAAI,MAAM,EAAE;AACd,KAAI,OAAO,MAAM;IACd;AACH;AACA,GAAE,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,EAAC;AACzC,GAAE,IAAI;KACF,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,YAAY,EAAC;AACtC,IAAG,CAAC,OAAO,GAAG,EAAE,EAAE;AAClB;AACA,GAAE,OAAO,MAAM;AACf,GAAA;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../node_modules/hosted-git-info/index.js"],"sourcesContent":["'use strict'\nvar url = require('url')\nvar gitHosts = require('./git-host-info.js')\nvar GitHost = module.exports = require('./git-host.js')\nvar LRU = require('lru-cache')\nvar cache = new LRU({max: 1000})\n\nvar 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\nvar authProtocols = {\n 'git:': true,\n 'https:': true,\n 'git+https:': true,\n 'http:': true,\n 'git+http:': true\n}\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') return\n var 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 == null || giturl === '') return\n var url = fixupUnqualifiedGist(\n isGitHubShorthand(giturl) ? 'github:' + giturl : giturl\n )\n var parsed = parseGitUrl(url)\n var shortcutMatch = url.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\\/)?([^#]+)/)\n var matches = Object.keys(gitHosts).map(function (gitHostName) {\n try {\n var gitHostInfo = gitHosts[gitHostName]\n var auth = null\n if (parsed.auth && authProtocols[parsed.protocol]) {\n auth = parsed.auth\n }\n var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null\n var user = null\n var project = null\n var defaultRepresentation = null\n if (shortcutMatch && shortcutMatch[1] === gitHostName) {\n user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2])\n project = decodeURIComponent(shortcutMatch[3].replace(/\\.git$/, ''))\n defaultRepresentation = 'shortcut'\n } else {\n if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, '') !== gitHostInfo.domain) return\n if (!gitHostInfo.protocols_re.test(parsed.protocol)) return\n if (!parsed.path) return\n var pathmatch = gitHostInfo.pathmatch\n var matched = parsed.path.match(pathmatch)\n if (!matched) return\n /* istanbul ignore else */\n if (matched[1] !== null && matched[1] !== undefined) {\n user = decodeURIComponent(matched[1].replace(/^:/, ''))\n }\n project = decodeURIComponent(matched[2])\n defaultRepresentation = protocolToRepresentation(parsed.protocol)\n }\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n } catch (ex) {\n /* istanbul ignore else */\n if (ex instanceof URIError) {\n } else throw ex\n }\n }).filter(function (gitHostInfo) { return gitHostInfo })\n if (matches.length !== 1) return\n return matches[0]\n}\n\nfunction isGitHubShorthand (arg) {\n // Note: This does not fully test the git ref format.\n // See https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html\n //\n // The only way to do this properly would be to shell out to\n // git-check-ref-format, and as this is a fast sync function,\n // we don't want to do that. Just let git fail if it turns\n // out that the commit-ish is invalid.\n // GH usernames cannot start with . or -\n return /^[^:@%/\\s.-][^:@%/\\s]*[/][^:@\\s/%]+(?:#.*)?$/.test(arg)\n}\n\nfunction fixupUnqualifiedGist (giturl) {\n // necessary for round-tripping gists\n var parsed = url.parse(giturl)\n if (parsed.protocol === 'gist:' && parsed.host && !parsed.path) {\n return parsed.protocol + '/' + parsed.host\n } else {\n return giturl\n }\n}\n\nfunction parseGitUrl (giturl) {\n var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/)\n if (!matched) {\n var legacy = url.parse(giturl)\n if (legacy.auth) {\n // git urls can be in the form of scp-style/ssh-connect strings, like\n // git+ssh://user@host.com:some/path, which the legacy url parser\n // supports, but WhatWG url.URL class does not. However, the legacy\n // parser de-urlencodes the username and password, so something like\n // https://user%3An%40me:p%40ss%3Aword@x.com/ becomes\n // https://user:n@me:p@ss:word@x.com/ which is all kinds of wrong.\n // Pull off just the auth and host, so we dont' get the confusing\n // scp-style URL, then pass that to the WhatWG parser to get the\n // auth properly escaped.\n const authmatch = giturl.match(/[^@]+@[^:/]+/)\n /* istanbul ignore else - this should be impossible */\n if (authmatch) {\n var whatwg = new url.URL(authmatch[0])\n legacy.auth = whatwg.username || ''\n if (whatwg.password) legacy.auth += ':' + whatwg.password\n }\n }\n return legacy\n }\n return {\n protocol: 'git+ssh:',\n slashes: true,\n auth: matched[1],\n host: matched[2],\n port: null,\n hostname: matched[2],\n hash: matched[4],\n search: null,\n query: null,\n pathname: '/' + matched[3],\n path: '/' + matched[3],\n href: 'git+ssh://' + matched[1] + '@' + matched[2] +\n '/' + matched[3] + (matched[4] || '')\n }\n}\n"],"names":["require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;EACA,IAAI,GAAG,GAAG,WAAc;EACxB,IAAI,QAAQ,GAAGA,kBAA6B,GAAA;EAC5C,IAAI,OAAO,GAAG,MAAA,CAAA,OAAA,GAAiBC,cAAwB,GAAA;EACvD,IAAI,GAAG,GAAGC,eAAoB,GAAA;EAC9B,IAAI,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAC;AAChC;AACA,EAAA,IAAI,2BAA2B,GAAG;IAChC,UAAU,EAAE,QAAQ;IACpB,YAAY,EAAE,OAAO;IACrB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,KAAK;IACd;AACD;EACA,SAAS,wBAAwB,EAAE,QAAQ,EAAE;AAC7C,IAAE,OAAO,2BAA2B,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CA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,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KAC5C;AACH,GAAA;;;;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { l as loadJsonFile } from '../../_virtual/index.mjs';
2
- import require$$3 from 'path';
2
+ import require$$0 from 'path';
3
3
  import require$$4 from 'util';
4
4
  import { g as gracefulFs } from '../graceful-fs/graceful-fs.mjs';
5
5
  import stripBom$1 from '../strip-bom/index.mjs';
6
6
  import parseJson_1 from '../parse-json/index.mjs';
7
7
 
8
- const path = require$$3;
8
+ const path = require$$0;
9
9
  const {promisify} = require$$4;
10
10
  const fs = gracefulFs;
11
11
  const stripBom = stripBom$1;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../node_modules/load-json-file/index.js"],"sourcesContent":["'use strict';\nconst path = require('path');\nconst {promisify} = require('util');\nconst fs = require('graceful-fs');\nconst stripBom = require('strip-bom');\nconst parseJson = require('parse-json');\n\nconst parse = (data, filePath, options = {}) => {\n\tdata = stripBom(data);\n\n\tif (typeof options.beforeParse === 'function') {\n\t\tdata = options.beforeParse(data);\n\t}\n\n\treturn parseJson(data, options.reviver, path.relative(process.cwd(), filePath));\n};\n\nmodule.exports = async (filePath, options) => parse(await promisify(fs.readFile)(filePath, 'utf8'), filePath, options);\nmodule.exports.sync = (filePath, options) => parse(fs.readFileSync(filePath, 'utf8'), filePath, options);\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","loadJsonFileModule","loadJsonFile"],"mappings":";;;;;;;AACA,MAAM,IAAI,GAAGA,UAAe,CAAC;AAC7B,MAAM,CAAC,SAAS,CAAC,GAAGC,UAAe,CAAC;AACpC,MAAM,EAAE,GAAGC,UAAsB,CAAC;AAClC,MAAM,QAAQ,GAAGC,UAAoB,CAAC;AACtC,MAAM,SAAS,GAAGC,WAAqB,CAAC;AACxC;AACA,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,KAAK;AAChD,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvB;AACA,CAAC,IAAI,OAAO,OAAO,CAAC,WAAW,KAAK,UAAU,EAAE;AAChD,EAAE,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACnC,EAAE;AACF;AACA,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AACF;AACAC,YAAc,CAAA,OAAA,GAAG,OAAO,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpGC,oBAAA,CAAA,IAAA,GAAG,CAAC,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../node_modules/load-json-file/index.js"],"sourcesContent":["'use strict';\nconst path = require('path');\nconst {promisify} = require('util');\nconst fs = require('graceful-fs');\nconst stripBom = require('strip-bom');\nconst parseJson = require('parse-json');\n\nconst parse = (data, filePath, options = {}) => {\n\tdata = stripBom(data);\n\n\tif (typeof options.beforeParse === 'function') {\n\t\tdata = options.beforeParse(data);\n\t}\n\n\treturn parseJson(data, options.reviver, path.relative(process.cwd(), filePath));\n};\n\nmodule.exports = async (filePath, options) => parse(await promisify(fs.readFile)(filePath, 'utf8'), filePath, options);\nmodule.exports.sync = (filePath, options) => parse(fs.readFileSync(filePath, 'utf8'), filePath, options);\n"],"names":["require$$1","require$$2","require$$3","require$$4","loadJsonFileModule","loadJsonFile"],"mappings":";;;;;;;AACA,MAAM,IAAI,GAAG,UAAe,CAAC;AAC7B,MAAM,CAAC,SAAS,CAAC,GAAGA,UAAe,CAAC;AACpC,MAAM,EAAE,GAAGC,UAAsB,CAAC;AAClC,MAAM,QAAQ,GAAGC,UAAoB,CAAC;AACtC,MAAM,SAAS,GAAGC,WAAqB,CAAC;AACxC;AACA,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,KAAK;AAChD,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvB;AACA,CAAC,IAAI,OAAO,OAAO,CAAC,WAAW,KAAK,UAAU,EAAE;AAChD,EAAE,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACnC,EAAE;AACF;AACA,CAAC,OAAO,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AACF;AACAC,YAAc,CAAA,OAAA,GAAG,OAAO,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpGC,oBAAA,CAAA,IAAA,GAAG,CAAC,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO;;;;;"}