@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,6 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const index = require('../../_virtual/index3.cjs');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('../../_virtual/index4.cjs');
4
6
  const require$$0 = require('url');
5
7
  const gitHostInfo = require('./git-host-info.cjs');
6
8
  const gitHost = require('./git-host.cjs');
@@ -10,242 +12,159 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
12
 
11
13
  const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
12
14
 
13
- (function (module) {
14
- const url = require$$0__default["default"];
15
- const gitHosts = gitHostInfo;
16
- const GitHost = module.exports = gitHost;
17
- const LRU = index$1;
18
- const cache = new LRU({ max: 1000 });
19
-
20
- const protocolToRepresentationMap = {
21
- 'git+ssh:': 'sshurl',
22
- 'git+https:': 'https',
23
- 'ssh:': 'sshurl',
24
- 'git:': 'git'
25
- };
26
-
27
- function protocolToRepresentation (protocol) {
28
- return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)
29
- }
30
-
31
- const authProtocols = {
32
- 'git:': true,
33
- 'https:': true,
34
- 'git+https:': true,
35
- 'http:': true,
36
- 'git+http:': true
37
- };
38
-
39
- const knownProtocols = Object.keys(gitHosts.byShortcut).concat(['http:', 'https:', 'git:', 'git+ssh:', 'git+https:', 'ssh:']);
40
-
41
- module.exports.fromUrl = function (giturl, opts) {
42
- if (typeof giturl !== 'string') {
43
- return
44
- }
45
-
46
- const key = giturl + JSON.stringify(opts || {});
47
-
48
- if (!cache.has(key)) {
49
- cache.set(key, fromUrl(giturl, opts));
50
- }
51
-
52
- return cache.get(key)
53
- };
54
-
55
- function fromUrl (giturl, opts) {
56
- if (!giturl) {
57
- return
58
- }
59
-
60
- const url = isGitHubShorthand(giturl) ? 'github:' + giturl : correctProtocol(giturl);
61
- const parsed = parseGitUrl(url);
62
- if (!parsed) {
63
- return parsed
64
- }
65
-
66
- const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
67
- const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.') ? parsed.hostname.slice(4) : parsed.hostname];
68
- const gitHostName = gitHostShortcut || gitHostDomain;
69
- if (!gitHostName) {
70
- return
71
- }
72
-
73
- const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain];
74
- let auth = null;
75
- if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) {
76
- auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`;
77
- }
78
-
79
- let committish = null;
80
- let user = null;
81
- let project = null;
82
- let defaultRepresentation = null;
83
-
84
- try {
85
- if (gitHostShortcut) {
86
- let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname;
87
- const firstAt = pathname.indexOf('@');
88
- // we ignore auth for shortcuts, so just trim it out
89
- if (firstAt > -1) {
90
- pathname = pathname.slice(firstAt + 1);
91
- }
92
-
93
- const lastSlash = pathname.lastIndexOf('/');
94
- if (lastSlash > -1) {
95
- user = decodeURIComponent(pathname.slice(0, lastSlash));
96
- // we want nulls only, never empty strings
97
- if (!user) {
98
- user = null;
99
- }
100
- project = decodeURIComponent(pathname.slice(lastSlash + 1));
101
- } else {
102
- project = decodeURIComponent(pathname);
103
- }
104
-
105
- if (project.endsWith('.git')) {
106
- project = project.slice(0, -4);
107
- }
108
-
109
- if (parsed.hash) {
110
- committish = decodeURIComponent(parsed.hash.slice(1));
111
- }
112
-
113
- defaultRepresentation = 'shortcut';
114
- } else {
115
- if (!gitHostInfo.protocols.includes(parsed.protocol)) {
116
- return
117
- }
118
-
119
- const segments = gitHostInfo.extract(parsed);
120
- if (!segments) {
121
- return
122
- }
123
-
124
- user = segments.user && decodeURIComponent(segments.user);
125
- project = decodeURIComponent(segments.project);
126
- committish = decodeURIComponent(segments.committish);
127
- defaultRepresentation = protocolToRepresentation(parsed.protocol);
128
- }
129
- } catch (err) {
130
- /* istanbul ignore else */
131
- if (err instanceof URIError) {
132
- return
133
- } else {
134
- throw err
135
- }
136
- }
137
-
138
- return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)
139
- }
140
-
141
- // accepts input like git:github.com:user/repo and inserts the // after the first :
142
- const correctProtocol = (arg) => {
143
- const firstColon = arg.indexOf(':');
144
- const proto = arg.slice(0, firstColon + 1);
145
- if (knownProtocols.includes(proto)) {
146
- return arg
147
- }
148
-
149
- const firstAt = arg.indexOf('@');
150
- if (firstAt > -1) {
151
- if (firstAt > firstColon) {
152
- return `git+ssh://${arg}`
153
- } else {
154
- return arg
155
- }
156
- }
157
-
158
- const doubleSlash = arg.indexOf('//');
159
- if (doubleSlash === firstColon + 1) {
160
- return arg
161
- }
162
-
163
- return arg.slice(0, firstColon + 1) + '//' + arg.slice(firstColon + 1)
164
- };
165
-
166
- // look for github shorthand inputs, such as npm/cli
167
- const isGitHubShorthand = (arg) => {
168
- // it cannot contain whitespace before the first #
169
- // it cannot start with a / because that's probably an absolute file path
170
- // but it must include a slash since repos are username/repository
171
- // it cannot start with a . because that's probably a relative file path
172
- // it cannot start with an @ because that's a scoped package if it passes the other tests
173
- // it cannot contain a : before a # because that tells us that there's a protocol
174
- // a second / may not exist before a #
175
- const firstHash = arg.indexOf('#');
176
- const firstSlash = arg.indexOf('/');
177
- const secondSlash = arg.indexOf('/', firstSlash + 1);
178
- const firstColon = arg.indexOf(':');
179
- const firstSpace = /\s/.exec(arg);
180
- const firstAt = arg.indexOf('@');
181
-
182
- const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash);
183
- const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash);
184
- const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash);
185
- const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash);
186
- const hasSlash = firstSlash > 0;
187
- // if a # is found, what we really want to know is that the character immediately before # is not a /
188
- const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/');
189
- const doesNotStartWithDot = !arg.startsWith('.');
190
-
191
- return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash
192
- };
193
-
194
- // attempt to correct an scp style url so that it will parse with `new URL()`
195
- const correctUrl = (giturl) => {
196
- const firstAt = giturl.indexOf('@');
197
- const lastHash = giturl.lastIndexOf('#');
198
- let firstColon = giturl.indexOf(':');
199
- let lastColon = giturl.lastIndexOf(':', lastHash > -1 ? lastHash : Infinity);
200
-
201
- let corrected;
202
- if (lastColon > firstAt) {
203
- // the last : comes after the first @ (or there is no @)
204
- // like it would in:
205
- // proto://hostname.com:user/repo
206
- // username@hostname.com:user/repo
207
- // :password@hostname.com:user/repo
208
- // username:password@hostname.com:user/repo
209
- // proto://username@hostname.com:user/repo
210
- // proto://:password@hostname.com:user/repo
211
- // proto://username:password@hostname.com:user/repo
212
- // then we replace the last : with a / to create a valid path
213
- corrected = giturl.slice(0, lastColon) + '/' + giturl.slice(lastColon + 1);
214
- // // and we find our new : positions
215
- firstColon = corrected.indexOf(':');
216
- lastColon = corrected.lastIndexOf(':');
217
- }
218
-
219
- if (firstColon === -1 && giturl.indexOf('//') === -1) {
220
- // we have no : at all
221
- // as it would be in:
222
- // username@hostname.com/user/repo
223
- // then we prepend a protocol
224
- corrected = `git+ssh://${corrected}`;
225
- }
226
-
227
- return corrected
228
- };
229
-
230
- // try to parse the url as its given to us, if that throws
231
- // then we try to clean the url and parse that result instead
232
- // THIS FUNCTION SHOULD NEVER THROW
233
- const parseGitUrl = (giturl) => {
234
- let result;
235
- try {
236
- result = new url.URL(giturl);
237
- } catch (err) {}
238
-
239
- if (result) {
240
- return result
241
- }
242
-
243
- const correctedUrl = correctUrl(giturl);
244
- try {
245
- result = new url.URL(correctedUrl);
246
- } catch (err) {}
247
-
248
- return result
249
- };
15
+ var hasRequiredHostedGitInfo;
16
+
17
+ function requireHostedGitInfo () {
18
+ if (hasRequiredHostedGitInfo) return index.hostedGitInfo.exports;
19
+ hasRequiredHostedGitInfo = 1;
20
+ (function (module) {
21
+ var url = require$$0__default["default"];
22
+ var gitHosts = gitHostInfo.__require();
23
+ var GitHost = module.exports = gitHost.__require();
24
+ var LRU = index$1.__require();
25
+ var cache = new LRU({max: 1000});
26
+
27
+ var protocolToRepresentationMap = {
28
+ 'git+ssh:': 'sshurl',
29
+ 'git+https:': 'https',
30
+ 'ssh:': 'sshurl',
31
+ 'git:': 'git'
32
+ };
33
+
34
+ function protocolToRepresentation (protocol) {
35
+ return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)
36
+ }
37
+
38
+ var authProtocols = {
39
+ 'git:': true,
40
+ 'https:': true,
41
+ 'git+https:': true,
42
+ 'http:': true,
43
+ 'git+http:': true
44
+ };
45
+
46
+ module.exports.fromUrl = function (giturl, opts) {
47
+ if (typeof giturl !== 'string') return
48
+ var key = giturl + JSON.stringify(opts || {});
49
+
50
+ if (!cache.has(key)) {
51
+ cache.set(key, fromUrl(giturl, opts));
52
+ }
53
+
54
+ return cache.get(key)
55
+ };
56
+
57
+ function fromUrl (giturl, opts) {
58
+ if (giturl == null || giturl === '') return
59
+ var url = fixupUnqualifiedGist(
60
+ isGitHubShorthand(giturl) ? 'github:' + giturl : giturl
61
+ );
62
+ var parsed = parseGitUrl(url);
63
+ var shortcutMatch = url.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/);
64
+ var matches = Object.keys(gitHosts).map(function (gitHostName) {
65
+ try {
66
+ var gitHostInfo = gitHosts[gitHostName];
67
+ var auth = null;
68
+ if (parsed.auth && authProtocols[parsed.protocol]) {
69
+ auth = parsed.auth;
70
+ }
71
+ var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null;
72
+ var user = null;
73
+ var project = null;
74
+ var defaultRepresentation = null;
75
+ if (shortcutMatch && shortcutMatch[1] === gitHostName) {
76
+ user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2]);
77
+ project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, ''));
78
+ defaultRepresentation = 'shortcut';
79
+ } else {
80
+ if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, '') !== gitHostInfo.domain) return
81
+ if (!gitHostInfo.protocols_re.test(parsed.protocol)) return
82
+ if (!parsed.path) return
83
+ var pathmatch = gitHostInfo.pathmatch;
84
+ var matched = parsed.path.match(pathmatch);
85
+ if (!matched) return
86
+ /* istanbul ignore else */
87
+ if (matched[1] !== null && matched[1] !== undefined) {
88
+ user = decodeURIComponent(matched[1].replace(/^:/, ''));
89
+ }
90
+ project = decodeURIComponent(matched[2]);
91
+ defaultRepresentation = protocolToRepresentation(parsed.protocol);
92
+ }
93
+ return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)
94
+ } catch (ex) {
95
+ /* istanbul ignore else */
96
+ if (ex instanceof URIError) ; else throw ex
97
+ }
98
+ }).filter(function (gitHostInfo) { return gitHostInfo });
99
+ if (matches.length !== 1) return
100
+ return matches[0]
101
+ }
102
+
103
+ function isGitHubShorthand (arg) {
104
+ // Note: This does not fully test the git ref format.
105
+ // See https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
106
+ //
107
+ // The only way to do this properly would be to shell out to
108
+ // git-check-ref-format, and as this is a fast sync function,
109
+ // we don't want to do that. Just let git fail if it turns
110
+ // out that the commit-ish is invalid.
111
+ // GH usernames cannot start with . or -
112
+ return /^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(arg)
113
+ }
114
+
115
+ function fixupUnqualifiedGist (giturl) {
116
+ // necessary for round-tripping gists
117
+ var parsed = url.parse(giturl);
118
+ if (parsed.protocol === 'gist:' && parsed.host && !parsed.path) {
119
+ return parsed.protocol + '/' + parsed.host
120
+ } else {
121
+ return giturl
122
+ }
123
+ }
124
+
125
+ function parseGitUrl (giturl) {
126
+ var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);
127
+ if (!matched) {
128
+ var legacy = url.parse(giturl);
129
+ if (legacy.auth) {
130
+ // git urls can be in the form of scp-style/ssh-connect strings, like
131
+ // git+ssh://user@host.com:some/path, which the legacy url parser
132
+ // supports, but WhatWG url.URL class does not. However, the legacy
133
+ // parser de-urlencodes the username and password, so something like
134
+ // https://user%3An%40me:p%40ss%3Aword@x.com/ becomes
135
+ // https://user:n@me:p@ss:word@x.com/ which is all kinds of wrong.
136
+ // Pull off just the auth and host, so we dont' get the confusing
137
+ // scp-style URL, then pass that to the WhatWG parser to get the
138
+ // auth properly escaped.
139
+ const authmatch = giturl.match(/[^@]+@[^:/]+/);
140
+ /* istanbul ignore else - this should be impossible */
141
+ if (authmatch) {
142
+ var whatwg = new url.URL(authmatch[0]);
143
+ legacy.auth = whatwg.username || '';
144
+ if (whatwg.password) legacy.auth += ':' + whatwg.password;
145
+ }
146
+ }
147
+ return legacy
148
+ }
149
+ return {
150
+ protocol: 'git+ssh:',
151
+ slashes: true,
152
+ auth: matched[1],
153
+ host: matched[2],
154
+ port: null,
155
+ hostname: matched[2],
156
+ hash: matched[4],
157
+ search: null,
158
+ query: null,
159
+ pathname: '/' + matched[3],
160
+ path: '/' + matched[3],
161
+ href: 'git+ssh://' + matched[1] + '@' + matched[2] +
162
+ '/' + matched[3] + (matched[4] || '')
163
+ }
164
+ }
250
165
  } (index.hostedGitInfo));
166
+ return index.hostedGitInfo.exports;
167
+ }
168
+
169
+ exports.__require = requireHostedGitInfo;
251
170
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","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$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;;CACA,MAAM,GAAG,GAAGA,+BAAc;CAC1B,MAAM,QAAQ,GAAGC,YAA6B;CAC9C,MAAM,OAAO,GAAG,MAAA,CAAA,OAAA,GAAiBC,QAAwB;CACzD,MAAM,GAAG,GAAGC,QAAoB;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,IA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CAAC,GAAG,CAAC,MAAM,EAAC;AAChC,IAAG,CAAC,OAAO,GAAG,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.cjs","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$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;;;;;;;;;EACA,IAAI,GAAG,GAAGA,+BAAc;EACxB,IAAI,QAAQ,GAAGC,qBAA6B,GAAA;EAC5C,IAAI,OAAO,GAAG,MAAA,CAAA,OAAA,GAAiBC,iBAAwB,GAAA;EACvD,IAAI,GAAG,GAAGC,iBAAoB,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;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AO,CAAC,CAAC,CAAC;AACtD,YAAU,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KAC5C;AACH,GAAA;;;;;;;"}
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('../../_virtual/index.cjs');
4
- const require$$3 = require('path');
4
+ const require$$0 = require('path');
5
5
  const require$$4 = require('util');
6
6
  const gracefulFs = require('../graceful-fs/graceful-fs.cjs');
7
- const index$2 = require('../strip-bom/index.cjs');
8
- const index$1 = require('../parse-json/index.cjs');
7
+ const index$1 = require('../strip-bom/index.cjs');
8
+ const index$2 = require('../parse-json/index.cjs');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
12
- const require$$3__default = /*#__PURE__*/_interopDefaultLegacy(require$$3);
12
+ const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
13
13
  const require$$4__default = /*#__PURE__*/_interopDefaultLegacy(require$$4);
14
14
 
15
- const path = require$$3__default["default"];
15
+ const path = require$$0__default["default"];
16
16
  const {promisify} = require$$4__default["default"];
17
17
  const fs = gracefulFs.gracefulFs;
18
- const stripBom = index$2;
19
- const parseJson = index$1;
18
+ const stripBom = index$1;
19
+ const parseJson = index$2;
20
20
 
21
21
  const parse = (data, filePath, options = {}) => {
22
22
  data = stripBom(data);