@donmahallem/lerna2codecov 0.1.9 → 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 (499) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.cjs +8 -0
  2. package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +1 -0
  3. package/dist/cjs/_virtual/conversions.cjs +8 -0
  4. package/dist/cjs/_virtual/conversions.cjs.map +1 -0
  5. package/dist/cjs/_virtual/git-host-info.cjs +8 -0
  6. package/dist/cjs/_virtual/git-host-info.cjs.map +1 -0
  7. package/dist/cjs/_virtual/identifier.cjs +8 -0
  8. package/dist/cjs/_virtual/identifier.cjs.map +1 -0
  9. package/dist/cjs/_virtual/imurmurhash.cjs +8 -0
  10. package/dist/cjs/_virtual/imurmurhash.cjs.map +1 -0
  11. package/dist/cjs/_virtual/index.cjs +8 -0
  12. package/dist/cjs/_virtual/index.cjs.map +1 -0
  13. package/dist/cjs/_virtual/index10.cjs +8 -0
  14. package/dist/cjs/_virtual/index10.cjs.map +1 -0
  15. package/dist/cjs/_virtual/index11.cjs +8 -0
  16. package/dist/cjs/_virtual/index11.cjs.map +1 -0
  17. package/dist/cjs/_virtual/index12.cjs +8 -0
  18. package/dist/cjs/_virtual/index12.cjs.map +1 -0
  19. package/dist/cjs/_virtual/index13.cjs +8 -0
  20. package/dist/cjs/_virtual/index13.cjs.map +1 -0
  21. package/dist/cjs/_virtual/index14.cjs +8 -0
  22. package/dist/cjs/_virtual/index14.cjs.map +1 -0
  23. package/dist/cjs/_virtual/index15.cjs +8 -0
  24. package/dist/cjs/_virtual/index15.cjs.map +1 -0
  25. package/dist/cjs/_virtual/index2.cjs +8 -0
  26. package/dist/cjs/_virtual/index2.cjs.map +1 -0
  27. package/dist/cjs/_virtual/index3.cjs +8 -0
  28. package/dist/cjs/_virtual/index3.cjs.map +1 -0
  29. package/dist/cjs/_virtual/index4.cjs +8 -0
  30. package/dist/cjs/_virtual/index4.cjs.map +1 -0
  31. package/dist/cjs/_virtual/index5.cjs +8 -0
  32. package/dist/cjs/_virtual/index5.cjs.map +1 -0
  33. package/dist/cjs/_virtual/index6.cjs +8 -0
  34. package/dist/cjs/_virtual/index6.cjs.map +1 -0
  35. package/dist/cjs/_virtual/index7.cjs +8 -0
  36. package/dist/cjs/_virtual/index7.cjs.map +1 -0
  37. package/dist/cjs/_virtual/index8.cjs +8 -0
  38. package/dist/cjs/_virtual/index8.cjs.map +1 -0
  39. package/dist/cjs/_virtual/index9.cjs +8 -0
  40. package/dist/cjs/_virtual/index9.cjs.map +1 -0
  41. package/dist/cjs/_virtual/keyword.cjs +8 -0
  42. package/dist/cjs/_virtual/keyword.cjs.map +1 -0
  43. package/dist/cjs/_virtual/npa.cjs +8 -0
  44. package/dist/cjs/_virtual/npa.cjs.map +1 -0
  45. package/dist/cjs/_virtual/re.cjs +8 -0
  46. package/dist/cjs/_virtual/re.cjs.map +1 -0
  47. package/dist/cjs/_virtual/semver.cjs +8 -0
  48. package/dist/cjs/_virtual/semver.cjs.map +1 -0
  49. package/dist/cjs/_virtual/signals.cjs +8 -0
  50. package/dist/cjs/_virtual/signals.cjs.map +1 -0
  51. package/dist/cjs/index.cjs +10 -0
  52. package/dist/cjs/index.cjs.map +1 -0
  53. package/dist/cjs/node_modules/@babel/code-frame/lib/index.cjs +168 -0
  54. package/dist/cjs/node_modules/@babel/code-frame/lib/index.cjs.map +1 -0
  55. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +89 -0
  56. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +1 -0
  57. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/index.cjs +67 -0
  58. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +1 -0
  59. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +43 -0
  60. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +1 -0
  61. package/dist/cjs/node_modules/@babel/highlight/lib/index.cjs +125 -0
  62. package/dist/cjs/node_modules/@babel/highlight/lib/index.cjs.map +1 -0
  63. package/dist/cjs/node_modules/@lerna/package/index.cjs +314 -0
  64. package/dist/cjs/node_modules/@lerna/package/index.cjs.map +1 -0
  65. package/dist/cjs/node_modules/ansi-styles/index.cjs +172 -0
  66. package/dist/cjs/node_modules/ansi-styles/index.cjs.map +1 -0
  67. package/dist/cjs/node_modules/builtins/builtins.cjs +6 -0
  68. package/dist/cjs/node_modules/builtins/builtins.cjs.map +1 -0
  69. package/dist/cjs/node_modules/chalk/index.cjs +239 -0
  70. package/dist/cjs/node_modules/chalk/index.cjs.map +1 -0
  71. package/dist/cjs/node_modules/chalk/templates.cjs +132 -0
  72. package/dist/cjs/node_modules/chalk/templates.cjs.map +1 -0
  73. package/dist/cjs/node_modules/color-convert/conversions.cjs +877 -0
  74. package/dist/cjs/node_modules/color-convert/conversions.cjs.map +1 -0
  75. package/dist/cjs/node_modules/color-convert/index.cjs +87 -0
  76. package/dist/cjs/node_modules/color-convert/index.cjs.map +1 -0
  77. package/dist/cjs/node_modules/color-convert/route.cjs +104 -0
  78. package/dist/cjs/node_modules/color-convert/route.cjs.map +1 -0
  79. package/dist/cjs/node_modules/color-name/index.cjs +155 -0
  80. package/dist/cjs/node_modules/color-name/index.cjs.map +1 -0
  81. package/dist/cjs/node_modules/error-ex/index.cjs +151 -0
  82. package/dist/cjs/node_modules/error-ex/index.cjs.map +1 -0
  83. package/dist/cjs/node_modules/escape-string-regexp/index.cjs +14 -0
  84. package/dist/cjs/node_modules/escape-string-regexp/index.cjs.map +1 -0
  85. package/dist/cjs/node_modules/graceful-fs/clone.cjs +26 -0
  86. package/dist/cjs/node_modules/graceful-fs/clone.cjs.map +1 -0
  87. package/dist/cjs/node_modules/graceful-fs/graceful-fs.cjs +467 -0
  88. package/dist/cjs/node_modules/graceful-fs/graceful-fs.cjs.map +1 -0
  89. package/dist/cjs/node_modules/graceful-fs/legacy-streams.cjs +129 -0
  90. package/dist/cjs/node_modules/graceful-fs/legacy-streams.cjs.map +1 -0
  91. package/dist/cjs/node_modules/graceful-fs/polyfills.cjs +366 -0
  92. package/dist/cjs/node_modules/graceful-fs/polyfills.cjs.map +1 -0
  93. package/dist/cjs/node_modules/has-flag/index.cjs +12 -0
  94. package/dist/cjs/node_modules/has-flag/index.cjs.map +1 -0
  95. package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs +94 -0
  96. package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs.map +1 -0
  97. package/dist/cjs/node_modules/hosted-git-info/git-host.cjs +172 -0
  98. package/dist/cjs/node_modules/hosted-git-info/git-host.cjs.map +1 -0
  99. package/dist/cjs/node_modules/hosted-git-info/index.cjs +170 -0
  100. package/dist/cjs/node_modules/hosted-git-info/index.cjs.map +1 -0
  101. package/dist/cjs/node_modules/imurmurhash/imurmurhash.cjs +143 -0
  102. package/dist/cjs/node_modules/imurmurhash/imurmurhash.cjs.map +1 -0
  103. package/dist/cjs/node_modules/is-arrayish/index.cjs +13 -0
  104. package/dist/cjs/node_modules/is-arrayish/index.cjs.map +1 -0
  105. package/dist/cjs/node_modules/js-tokens/index.cjs +28 -0
  106. package/dist/cjs/node_modules/js-tokens/index.cjs.map +1 -0
  107. package/dist/cjs/node_modules/json-parse-even-better-errors/index.cjs +124 -0
  108. package/dist/cjs/node_modules/json-parse-even-better-errors/index.cjs.map +1 -0
  109. package/dist/cjs/node_modules/lines-and-columns/build/index.cjs +68 -0
  110. package/dist/cjs/node_modules/lines-and-columns/build/index.cjs.map +1 -0
  111. package/dist/cjs/node_modules/load-json-file/index.cjs +35 -0
  112. package/dist/cjs/node_modules/load-json-file/index.cjs.map +1 -0
  113. package/dist/cjs/node_modules/lru-cache/index.cjs +350 -0
  114. package/dist/cjs/node_modules/lru-cache/index.cjs.map +1 -0
  115. package/dist/cjs/node_modules/npm-package-arg/npa.cjs +323 -0
  116. package/dist/cjs/node_modules/npm-package-arg/npa.cjs.map +1 -0
  117. package/dist/cjs/node_modules/parse-json/index.cjs +65 -0
  118. package/dist/cjs/node_modules/parse-json/index.cjs.map +1 -0
  119. package/dist/cjs/node_modules/pify/index.cjs +71 -0
  120. package/dist/cjs/node_modules/pify/index.cjs.map +1 -0
  121. package/dist/cjs/node_modules/semver/classes/comparator.cjs +158 -0
  122. package/dist/cjs/node_modules/semver/classes/comparator.cjs.map +1 -0
  123. package/dist/cjs/node_modules/semver/classes/range.cjs +541 -0
  124. package/dist/cjs/node_modules/semver/classes/range.cjs.map +1 -0
  125. package/dist/cjs/node_modules/semver/classes/semver.cjs +308 -0
  126. package/dist/cjs/node_modules/semver/classes/semver.cjs.map +1 -0
  127. package/dist/cjs/node_modules/semver/functions/clean.cjs +23 -0
  128. package/dist/cjs/node_modules/semver/functions/clean.cjs.map +1 -0
  129. package/dist/cjs/node_modules/semver/functions/cmp.cjs +74 -0
  130. package/dist/cjs/node_modules/semver/functions/cmp.cjs.map +1 -0
  131. package/dist/cjs/node_modules/semver/functions/coerce.cjs +71 -0
  132. package/dist/cjs/node_modules/semver/functions/coerce.cjs.map +1 -0
  133. package/dist/cjs/node_modules/semver/functions/compare-build.cjs +24 -0
  134. package/dist/cjs/node_modules/semver/functions/compare-build.cjs.map +1 -0
  135. package/dist/cjs/node_modules/semver/functions/compare-loose.cjs +20 -0
  136. package/dist/cjs/node_modules/semver/functions/compare-loose.cjs.map +1 -0
  137. package/dist/cjs/node_modules/semver/functions/compare.cjs +22 -0
  138. package/dist/cjs/node_modules/semver/functions/compare.cjs.map +1 -0
  139. package/dist/cjs/node_modules/semver/functions/diff.cjs +41 -0
  140. package/dist/cjs/node_modules/semver/functions/diff.cjs.map +1 -0
  141. package/dist/cjs/node_modules/semver/functions/eq.cjs +20 -0
  142. package/dist/cjs/node_modules/semver/functions/eq.cjs.map +1 -0
  143. package/dist/cjs/node_modules/semver/functions/gt.cjs +20 -0
  144. package/dist/cjs/node_modules/semver/functions/gt.cjs.map +1 -0
  145. package/dist/cjs/node_modules/semver/functions/gte.cjs +20 -0
  146. package/dist/cjs/node_modules/semver/functions/gte.cjs.map +1 -0
  147. package/dist/cjs/node_modules/semver/functions/inc.cjs +35 -0
  148. package/dist/cjs/node_modules/semver/functions/inc.cjs.map +1 -0
  149. package/dist/cjs/node_modules/semver/functions/lt.cjs +20 -0
  150. package/dist/cjs/node_modules/semver/functions/lt.cjs.map +1 -0
  151. package/dist/cjs/node_modules/semver/functions/lte.cjs +20 -0
  152. package/dist/cjs/node_modules/semver/functions/lte.cjs.map +1 -0
  153. package/dist/cjs/node_modules/semver/functions/major.cjs +20 -0
  154. package/dist/cjs/node_modules/semver/functions/major.cjs.map +1 -0
  155. package/dist/cjs/node_modules/semver/functions/minor.cjs +20 -0
  156. package/dist/cjs/node_modules/semver/functions/minor.cjs.map +1 -0
  157. package/dist/cjs/node_modules/semver/functions/neq.cjs +20 -0
  158. package/dist/cjs/node_modules/semver/functions/neq.cjs.map +1 -0
  159. package/dist/cjs/node_modules/semver/functions/parse.cjs +53 -0
  160. package/dist/cjs/node_modules/semver/functions/parse.cjs.map +1 -0
  161. package/dist/cjs/node_modules/semver/functions/patch.cjs +20 -0
  162. package/dist/cjs/node_modules/semver/functions/patch.cjs.map +1 -0
  163. package/dist/cjs/node_modules/semver/functions/prerelease.cjs +23 -0
  164. package/dist/cjs/node_modules/semver/functions/prerelease.cjs.map +1 -0
  165. package/dist/cjs/node_modules/semver/functions/rcompare.cjs +20 -0
  166. package/dist/cjs/node_modules/semver/functions/rcompare.cjs.map +1 -0
  167. package/dist/cjs/node_modules/semver/functions/rsort.cjs +20 -0
  168. package/dist/cjs/node_modules/semver/functions/rsort.cjs.map +1 -0
  169. package/dist/cjs/node_modules/semver/functions/satisfies.cjs +27 -0
  170. package/dist/cjs/node_modules/semver/functions/satisfies.cjs.map +1 -0
  171. package/dist/cjs/node_modules/semver/functions/sort.cjs +20 -0
  172. package/dist/cjs/node_modules/semver/functions/sort.cjs.map +1 -0
  173. package/dist/cjs/node_modules/semver/functions/valid.cjs +23 -0
  174. package/dist/cjs/node_modules/semver/functions/valid.cjs.map +1 -0
  175. package/dist/cjs/node_modules/semver/index.cjs +105 -0
  176. package/dist/cjs/node_modules/semver/index.cjs.map +1 -0
  177. package/dist/cjs/node_modules/semver/internal/constants.cjs +32 -0
  178. package/dist/cjs/node_modules/semver/internal/constants.cjs.map +1 -0
  179. package/dist/cjs/node_modules/semver/internal/debug.cjs +24 -0
  180. package/dist/cjs/node_modules/semver/internal/debug.cjs.map +1 -0
  181. package/dist/cjs/node_modules/semver/internal/identifiers.cjs +38 -0
  182. package/dist/cjs/node_modules/semver/internal/identifiers.cjs.map +1 -0
  183. package/dist/cjs/node_modules/semver/internal/parse-options.cjs +26 -0
  184. package/dist/cjs/node_modules/semver/internal/parse-options.cjs.map +1 -0
  185. package/dist/cjs/node_modules/semver/internal/re.cjs +202 -0
  186. package/dist/cjs/node_modules/semver/internal/re.cjs.map +1 -0
  187. package/dist/cjs/node_modules/semver/ranges/gtr.cjs +21 -0
  188. package/dist/cjs/node_modules/semver/ranges/gtr.cjs.map +1 -0
  189. package/dist/cjs/node_modules/semver/ranges/intersects.cjs +24 -0
  190. package/dist/cjs/node_modules/semver/ranges/intersects.cjs.map +1 -0
  191. package/dist/cjs/node_modules/semver/ranges/ltr.cjs +21 -0
  192. package/dist/cjs/node_modules/semver/ranges/ltr.cjs.map +1 -0
  193. package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs +43 -0
  194. package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs.map +1 -0
  195. package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs +42 -0
  196. package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs.map +1 -0
  197. package/dist/cjs/node_modules/semver/ranges/min-version.cjs +80 -0
  198. package/dist/cjs/node_modules/semver/ranges/min-version.cjs.map +1 -0
  199. package/dist/cjs/node_modules/semver/ranges/outside.cjs +104 -0
  200. package/dist/cjs/node_modules/semver/ranges/outside.cjs.map +1 -0
  201. package/dist/cjs/node_modules/semver/ranges/simplify.cjs +65 -0
  202. package/dist/cjs/node_modules/semver/ranges/simplify.cjs.map +1 -0
  203. package/dist/cjs/node_modules/semver/ranges/subset.cjs +264 -0
  204. package/dist/cjs/node_modules/semver/ranges/subset.cjs.map +1 -0
  205. package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs +25 -0
  206. package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs.map +1 -0
  207. package/dist/cjs/node_modules/semver/ranges/valid.cjs +28 -0
  208. package/dist/cjs/node_modules/semver/ranges/valid.cjs.map +1 -0
  209. package/dist/cjs/node_modules/signal-exit/index.cjs +218 -0
  210. package/dist/cjs/node_modules/signal-exit/index.cjs.map +1 -0
  211. package/dist/cjs/node_modules/signal-exit/signals.cjs +71 -0
  212. package/dist/cjs/node_modules/signal-exit/signals.cjs.map +1 -0
  213. package/dist/cjs/node_modules/strip-bom/index.cjs +18 -0
  214. package/dist/cjs/node_modules/strip-bom/index.cjs.map +1 -0
  215. package/dist/cjs/node_modules/supports-color/index.cjs +142 -0
  216. package/dist/cjs/node_modules/supports-color/index.cjs.map +1 -0
  217. package/dist/cjs/node_modules/validate-npm-package-name/index.cjs +121 -0
  218. package/dist/cjs/node_modules/validate-npm-package-name/index.cjs.map +1 -0
  219. package/dist/cjs/node_modules/write-pkg/index.cjs +79 -0
  220. package/dist/cjs/node_modules/write-pkg/index.cjs.map +1 -0
  221. package/dist/cjs/node_modules/write-pkg/node_modules/detect-indent/index.cjs +125 -0
  222. package/dist/cjs/node_modules/write-pkg/node_modules/detect-indent/index.cjs.map +1 -0
  223. package/dist/cjs/node_modules/write-pkg/node_modules/is-plain-obj/index.cjs +11 -0
  224. package/dist/cjs/node_modules/write-pkg/node_modules/is-plain-obj/index.cjs.map +1 -0
  225. package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs +155 -0
  226. package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs.map +1 -0
  227. package/dist/cjs/node_modules/write-pkg/node_modules/semver/semver.cjs +1490 -0
  228. package/dist/cjs/node_modules/write-pkg/node_modules/semver/semver.cjs.map +1 -0
  229. package/dist/cjs/node_modules/write-pkg/node_modules/sort-keys/index.cjs +61 -0
  230. package/dist/cjs/node_modules/write-pkg/node_modules/sort-keys/index.cjs.map +1 -0
  231. package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs +255 -0
  232. package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs.map +1 -0
  233. package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs +95 -0
  234. package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs.map +1 -0
  235. package/dist/cjs/node_modules/yallist/iterator.cjs +22 -0
  236. package/dist/cjs/node_modules/yallist/iterator.cjs.map +1 -0
  237. package/dist/cjs/node_modules/yallist/yallist.cjs +442 -0
  238. package/dist/cjs/node_modules/yallist/yallist.cjs.map +1 -0
  239. package/dist/cjs/update-config.cjs +64 -0
  240. package/dist/cjs/update-config.cjs.map +1 -0
  241. package/dist/esm/_virtual/_commonjsHelpers.mjs +4 -0
  242. package/dist/esm/_virtual/_commonjsHelpers.mjs.map +1 -0
  243. package/dist/esm/_virtual/conversions.mjs +4 -0
  244. package/dist/esm/_virtual/conversions.mjs.map +1 -0
  245. package/dist/esm/_virtual/git-host-info.mjs +4 -0
  246. package/dist/esm/_virtual/git-host-info.mjs.map +1 -0
  247. package/dist/esm/_virtual/identifier.mjs +4 -0
  248. package/dist/esm/_virtual/identifier.mjs.map +1 -0
  249. package/dist/esm/_virtual/imurmurhash.mjs +4 -0
  250. package/dist/esm/_virtual/imurmurhash.mjs.map +1 -0
  251. package/dist/esm/_virtual/index.mjs +4 -0
  252. package/dist/esm/_virtual/index.mjs.map +1 -0
  253. package/dist/esm/_virtual/index10.mjs +4 -0
  254. package/dist/esm/_virtual/index10.mjs.map +1 -0
  255. package/dist/esm/_virtual/index11.mjs +4 -0
  256. package/dist/esm/_virtual/index11.mjs.map +1 -0
  257. package/dist/esm/_virtual/index12.mjs +4 -0
  258. package/dist/esm/_virtual/index12.mjs.map +1 -0
  259. package/dist/esm/_virtual/index13.mjs +4 -0
  260. package/dist/esm/_virtual/index13.mjs.map +1 -0
  261. package/dist/esm/_virtual/index14.mjs +4 -0
  262. package/dist/esm/_virtual/index14.mjs.map +1 -0
  263. package/dist/esm/_virtual/index15.mjs +4 -0
  264. package/dist/esm/_virtual/index15.mjs.map +1 -0
  265. package/dist/esm/_virtual/index2.mjs +4 -0
  266. package/dist/esm/_virtual/index2.mjs.map +1 -0
  267. package/dist/esm/_virtual/index3.mjs +4 -0
  268. package/dist/esm/_virtual/index3.mjs.map +1 -0
  269. package/dist/esm/_virtual/index4.mjs +4 -0
  270. package/dist/esm/_virtual/index4.mjs.map +1 -0
  271. package/dist/esm/_virtual/index5.mjs +4 -0
  272. package/dist/esm/_virtual/index5.mjs.map +1 -0
  273. package/dist/esm/_virtual/index6.mjs +4 -0
  274. package/dist/esm/_virtual/index6.mjs.map +1 -0
  275. package/dist/esm/_virtual/index7.mjs +4 -0
  276. package/dist/esm/_virtual/index7.mjs.map +1 -0
  277. package/dist/esm/_virtual/index8.mjs +4 -0
  278. package/dist/esm/_virtual/index8.mjs.map +1 -0
  279. package/dist/esm/_virtual/index9.mjs +4 -0
  280. package/dist/esm/_virtual/index9.mjs.map +1 -0
  281. package/dist/esm/_virtual/keyword.mjs +4 -0
  282. package/dist/esm/_virtual/keyword.mjs.map +1 -0
  283. package/dist/esm/_virtual/npa.mjs +4 -0
  284. package/dist/esm/_virtual/npa.mjs.map +1 -0
  285. package/dist/esm/_virtual/re.mjs +4 -0
  286. package/dist/esm/_virtual/re.mjs.map +1 -0
  287. package/dist/esm/_virtual/semver.mjs +4 -0
  288. package/dist/esm/_virtual/semver.mjs.map +1 -0
  289. package/dist/esm/_virtual/signals.mjs +4 -0
  290. package/dist/esm/_virtual/signals.mjs.map +1 -0
  291. package/dist/esm/index.mjs +2 -0
  292. package/dist/esm/index.mjs.map +1 -0
  293. package/dist/esm/node_modules/@babel/code-frame/lib/index.mjs +166 -0
  294. package/dist/esm/node_modules/@babel/code-frame/lib/index.mjs.map +1 -0
  295. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/identifier.mjs +86 -0
  296. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/identifier.mjs.map +1 -0
  297. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/index.mjs +65 -0
  298. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/index.mjs.map +1 -0
  299. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/keyword.mjs +40 -0
  300. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/keyword.mjs.map +1 -0
  301. package/dist/esm/node_modules/@babel/highlight/lib/index.mjs +123 -0
  302. package/dist/esm/node_modules/@babel/highlight/lib/index.mjs.map +1 -0
  303. package/dist/esm/node_modules/@lerna/package/index.mjs +306 -0
  304. package/dist/esm/node_modules/@lerna/package/index.mjs.map +1 -0
  305. package/dist/esm/node_modules/ansi-styles/index.mjs +170 -0
  306. package/dist/esm/node_modules/ansi-styles/index.mjs.map +1 -0
  307. package/dist/esm/node_modules/builtins/builtins.mjs +4 -0
  308. package/dist/esm/node_modules/builtins/builtins.mjs.map +1 -0
  309. package/dist/esm/node_modules/chalk/index.mjs +237 -0
  310. package/dist/esm/node_modules/chalk/index.mjs.map +1 -0
  311. package/dist/esm/node_modules/chalk/templates.mjs +130 -0
  312. package/dist/esm/node_modules/chalk/templates.mjs.map +1 -0
  313. package/dist/esm/node_modules/color-convert/conversions.mjs +876 -0
  314. package/dist/esm/node_modules/color-convert/conversions.mjs.map +1 -0
  315. package/dist/esm/node_modules/color-convert/index.mjs +85 -0
  316. package/dist/esm/node_modules/color-convert/index.mjs.map +1 -0
  317. package/dist/esm/node_modules/color-convert/route.mjs +102 -0
  318. package/dist/esm/node_modules/color-convert/route.mjs.map +1 -0
  319. package/dist/esm/node_modules/color-name/index.mjs +153 -0
  320. package/dist/esm/node_modules/color-name/index.mjs.map +1 -0
  321. package/dist/esm/node_modules/error-ex/index.mjs +145 -0
  322. package/dist/esm/node_modules/error-ex/index.mjs.map +1 -0
  323. package/dist/esm/node_modules/escape-string-regexp/index.mjs +12 -0
  324. package/dist/esm/node_modules/escape-string-regexp/index.mjs.map +1 -0
  325. package/dist/esm/node_modules/graceful-fs/clone.mjs +24 -0
  326. package/dist/esm/node_modules/graceful-fs/clone.mjs.map +1 -0
  327. package/dist/esm/node_modules/graceful-fs/graceful-fs.mjs +459 -0
  328. package/dist/esm/node_modules/graceful-fs/graceful-fs.mjs.map +1 -0
  329. package/dist/esm/node_modules/graceful-fs/legacy-streams.mjs +123 -0
  330. package/dist/esm/node_modules/graceful-fs/legacy-streams.mjs.map +1 -0
  331. package/dist/esm/node_modules/graceful-fs/polyfills.mjs +360 -0
  332. package/dist/esm/node_modules/graceful-fs/polyfills.mjs.map +1 -0
  333. package/dist/esm/node_modules/has-flag/index.mjs +10 -0
  334. package/dist/esm/node_modules/has-flag/index.mjs.map +1 -0
  335. package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs +90 -0
  336. package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs.map +1 -0
  337. package/dist/esm/node_modules/hosted-git-info/git-host.mjs +168 -0
  338. package/dist/esm/node_modules/hosted-git-info/git-host.mjs.map +1 -0
  339. package/dist/esm/node_modules/hosted-git-info/index.mjs +162 -0
  340. package/dist/esm/node_modules/hosted-git-info/index.mjs.map +1 -0
  341. package/dist/esm/node_modules/imurmurhash/imurmurhash.mjs +141 -0
  342. package/dist/esm/node_modules/imurmurhash/imurmurhash.mjs.map +1 -0
  343. package/dist/esm/node_modules/is-arrayish/index.mjs +11 -0
  344. package/dist/esm/node_modules/is-arrayish/index.mjs.map +1 -0
  345. package/dist/esm/node_modules/js-tokens/index.mjs +26 -0
  346. package/dist/esm/node_modules/js-tokens/index.mjs.map +1 -0
  347. package/dist/esm/node_modules/json-parse-even-better-errors/index.mjs +122 -0
  348. package/dist/esm/node_modules/json-parse-even-better-errors/index.mjs.map +1 -0
  349. package/dist/esm/node_modules/lines-and-columns/build/index.mjs +66 -0
  350. package/dist/esm/node_modules/lines-and-columns/build/index.mjs.map +1 -0
  351. package/dist/esm/node_modules/load-json-file/index.mjs +29 -0
  352. package/dist/esm/node_modules/load-json-file/index.mjs.map +1 -0
  353. package/dist/esm/node_modules/lru-cache/index.mjs +346 -0
  354. package/dist/esm/node_modules/lru-cache/index.mjs.map +1 -0
  355. package/dist/esm/node_modules/npm-package-arg/npa.mjs +316 -0
  356. package/dist/esm/node_modules/npm-package-arg/npa.mjs.map +1 -0
  357. package/dist/esm/node_modules/parse-json/index.mjs +63 -0
  358. package/dist/esm/node_modules/parse-json/index.mjs.map +1 -0
  359. package/dist/esm/node_modules/pify/index.mjs +69 -0
  360. package/dist/esm/node_modules/pify/index.mjs.map +1 -0
  361. package/dist/esm/node_modules/semver/classes/comparator.mjs +154 -0
  362. package/dist/esm/node_modules/semver/classes/comparator.mjs.map +1 -0
  363. package/dist/esm/node_modules/semver/classes/range.mjs +537 -0
  364. package/dist/esm/node_modules/semver/classes/range.mjs.map +1 -0
  365. package/dist/esm/node_modules/semver/classes/semver.mjs +304 -0
  366. package/dist/esm/node_modules/semver/classes/semver.mjs.map +1 -0
  367. package/dist/esm/node_modules/semver/functions/clean.mjs +19 -0
  368. package/dist/esm/node_modules/semver/functions/clean.mjs.map +1 -0
  369. package/dist/esm/node_modules/semver/functions/cmp.mjs +70 -0
  370. package/dist/esm/node_modules/semver/functions/cmp.mjs.map +1 -0
  371. package/dist/esm/node_modules/semver/functions/coerce.mjs +67 -0
  372. package/dist/esm/node_modules/semver/functions/coerce.mjs.map +1 -0
  373. package/dist/esm/node_modules/semver/functions/compare-build.mjs +20 -0
  374. package/dist/esm/node_modules/semver/functions/compare-build.mjs.map +1 -0
  375. package/dist/esm/node_modules/semver/functions/compare-loose.mjs +16 -0
  376. package/dist/esm/node_modules/semver/functions/compare-loose.mjs.map +1 -0
  377. package/dist/esm/node_modules/semver/functions/compare.mjs +18 -0
  378. package/dist/esm/node_modules/semver/functions/compare.mjs.map +1 -0
  379. package/dist/esm/node_modules/semver/functions/diff.mjs +37 -0
  380. package/dist/esm/node_modules/semver/functions/diff.mjs.map +1 -0
  381. package/dist/esm/node_modules/semver/functions/eq.mjs +16 -0
  382. package/dist/esm/node_modules/semver/functions/eq.mjs.map +1 -0
  383. package/dist/esm/node_modules/semver/functions/gt.mjs +16 -0
  384. package/dist/esm/node_modules/semver/functions/gt.mjs.map +1 -0
  385. package/dist/esm/node_modules/semver/functions/gte.mjs +16 -0
  386. package/dist/esm/node_modules/semver/functions/gte.mjs.map +1 -0
  387. package/dist/esm/node_modules/semver/functions/inc.mjs +31 -0
  388. package/dist/esm/node_modules/semver/functions/inc.mjs.map +1 -0
  389. package/dist/esm/node_modules/semver/functions/lt.mjs +16 -0
  390. package/dist/esm/node_modules/semver/functions/lt.mjs.map +1 -0
  391. package/dist/esm/node_modules/semver/functions/lte.mjs +16 -0
  392. package/dist/esm/node_modules/semver/functions/lte.mjs.map +1 -0
  393. package/dist/esm/node_modules/semver/functions/major.mjs +16 -0
  394. package/dist/esm/node_modules/semver/functions/major.mjs.map +1 -0
  395. package/dist/esm/node_modules/semver/functions/minor.mjs +16 -0
  396. package/dist/esm/node_modules/semver/functions/minor.mjs.map +1 -0
  397. package/dist/esm/node_modules/semver/functions/neq.mjs +16 -0
  398. package/dist/esm/node_modules/semver/functions/neq.mjs.map +1 -0
  399. package/dist/esm/node_modules/semver/functions/parse.mjs +49 -0
  400. package/dist/esm/node_modules/semver/functions/parse.mjs.map +1 -0
  401. package/dist/esm/node_modules/semver/functions/patch.mjs +16 -0
  402. package/dist/esm/node_modules/semver/functions/patch.mjs.map +1 -0
  403. package/dist/esm/node_modules/semver/functions/prerelease.mjs +19 -0
  404. package/dist/esm/node_modules/semver/functions/prerelease.mjs.map +1 -0
  405. package/dist/esm/node_modules/semver/functions/rcompare.mjs +16 -0
  406. package/dist/esm/node_modules/semver/functions/rcompare.mjs.map +1 -0
  407. package/dist/esm/node_modules/semver/functions/rsort.mjs +16 -0
  408. package/dist/esm/node_modules/semver/functions/rsort.mjs.map +1 -0
  409. package/dist/esm/node_modules/semver/functions/satisfies.mjs +23 -0
  410. package/dist/esm/node_modules/semver/functions/satisfies.mjs.map +1 -0
  411. package/dist/esm/node_modules/semver/functions/sort.mjs +16 -0
  412. package/dist/esm/node_modules/semver/functions/sort.mjs.map +1 -0
  413. package/dist/esm/node_modules/semver/functions/valid.mjs +19 -0
  414. package/dist/esm/node_modules/semver/functions/valid.mjs.map +1 -0
  415. package/dist/esm/node_modules/semver/index.mjs +101 -0
  416. package/dist/esm/node_modules/semver/index.mjs.map +1 -0
  417. package/dist/esm/node_modules/semver/internal/constants.mjs +28 -0
  418. package/dist/esm/node_modules/semver/internal/constants.mjs.map +1 -0
  419. package/dist/esm/node_modules/semver/internal/debug.mjs +20 -0
  420. package/dist/esm/node_modules/semver/internal/debug.mjs.map +1 -0
  421. package/dist/esm/node_modules/semver/internal/identifiers.mjs +34 -0
  422. package/dist/esm/node_modules/semver/internal/identifiers.mjs.map +1 -0
  423. package/dist/esm/node_modules/semver/internal/parse-options.mjs +22 -0
  424. package/dist/esm/node_modules/semver/internal/parse-options.mjs.map +1 -0
  425. package/dist/esm/node_modules/semver/internal/re.mjs +198 -0
  426. package/dist/esm/node_modules/semver/internal/re.mjs.map +1 -0
  427. package/dist/esm/node_modules/semver/ranges/gtr.mjs +17 -0
  428. package/dist/esm/node_modules/semver/ranges/gtr.mjs.map +1 -0
  429. package/dist/esm/node_modules/semver/ranges/intersects.mjs +20 -0
  430. package/dist/esm/node_modules/semver/ranges/intersects.mjs.map +1 -0
  431. package/dist/esm/node_modules/semver/ranges/ltr.mjs +17 -0
  432. package/dist/esm/node_modules/semver/ranges/ltr.mjs.map +1 -0
  433. package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs +39 -0
  434. package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs.map +1 -0
  435. package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs +38 -0
  436. package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs.map +1 -0
  437. package/dist/esm/node_modules/semver/ranges/min-version.mjs +76 -0
  438. package/dist/esm/node_modules/semver/ranges/min-version.mjs.map +1 -0
  439. package/dist/esm/node_modules/semver/ranges/outside.mjs +100 -0
  440. package/dist/esm/node_modules/semver/ranges/outside.mjs.map +1 -0
  441. package/dist/esm/node_modules/semver/ranges/simplify.mjs +61 -0
  442. package/dist/esm/node_modules/semver/ranges/simplify.mjs.map +1 -0
  443. package/dist/esm/node_modules/semver/ranges/subset.mjs +260 -0
  444. package/dist/esm/node_modules/semver/ranges/subset.mjs.map +1 -0
  445. package/dist/esm/node_modules/semver/ranges/to-comparators.mjs +21 -0
  446. package/dist/esm/node_modules/semver/ranges/to-comparators.mjs.map +1 -0
  447. package/dist/esm/node_modules/semver/ranges/valid.mjs +24 -0
  448. package/dist/esm/node_modules/semver/ranges/valid.mjs.map +1 -0
  449. package/dist/esm/node_modules/signal-exit/index.mjs +212 -0
  450. package/dist/esm/node_modules/signal-exit/index.mjs.map +1 -0
  451. package/dist/esm/node_modules/signal-exit/signals.mjs +67 -0
  452. package/dist/esm/node_modules/signal-exit/signals.mjs.map +1 -0
  453. package/dist/esm/node_modules/strip-bom/index.mjs +16 -0
  454. package/dist/esm/node_modules/strip-bom/index.mjs.map +1 -0
  455. package/dist/esm/node_modules/supports-color/index.mjs +136 -0
  456. package/dist/esm/node_modules/supports-color/index.mjs.map +1 -0
  457. package/dist/esm/node_modules/validate-npm-package-name/index.mjs +117 -0
  458. package/dist/esm/node_modules/validate-npm-package-name/index.mjs.map +1 -0
  459. package/dist/esm/node_modules/write-pkg/index.mjs +74 -0
  460. package/dist/esm/node_modules/write-pkg/index.mjs.map +1 -0
  461. package/dist/esm/node_modules/write-pkg/node_modules/detect-indent/index.mjs +123 -0
  462. package/dist/esm/node_modules/write-pkg/node_modules/detect-indent/index.mjs.map +1 -0
  463. package/dist/esm/node_modules/write-pkg/node_modules/is-plain-obj/index.mjs +9 -0
  464. package/dist/esm/node_modules/write-pkg/node_modules/is-plain-obj/index.mjs.map +1 -0
  465. package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs +149 -0
  466. package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs.map +1 -0
  467. package/dist/esm/node_modules/write-pkg/node_modules/semver/semver.mjs +1488 -0
  468. package/dist/esm/node_modules/write-pkg/node_modules/semver/semver.mjs.map +1 -0
  469. package/dist/esm/node_modules/write-pkg/node_modules/sort-keys/index.mjs +59 -0
  470. package/dist/esm/node_modules/write-pkg/node_modules/sort-keys/index.mjs.map +1 -0
  471. package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs +250 -0
  472. package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs.map +1 -0
  473. package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs +90 -0
  474. package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs.map +1 -0
  475. package/dist/esm/node_modules/yallist/iterator.mjs +18 -0
  476. package/dist/esm/node_modules/yallist/iterator.mjs.map +1 -0
  477. package/dist/esm/node_modules/yallist/yallist.mjs +438 -0
  478. package/dist/esm/node_modules/yallist/yallist.mjs.map +1 -0
  479. package/dist/esm/update-config.mjs +56 -0
  480. package/dist/esm/update-config.mjs.map +1 -0
  481. package/dist/types/cli.d.ts +1 -2
  482. package/dist/types/codecov-config.d.ts +13 -14
  483. package/dist/types/index.d.ts +2 -3
  484. package/dist/types/update-command.d.ts +8 -9
  485. package/dist/types/update-config.d.ts +12 -13
  486. package/dist/types/update.d.ts +6 -7
  487. package/package.json +65 -66
  488. package/dist/cjs/index.js +0 -11411
  489. package/dist/cjs/index.js.map +0 -1
  490. package/dist/cli/cli.js +0 -11479
  491. package/dist/cli/cli.js.map +0 -1
  492. package/dist/esm/index.js +0 -11394
  493. package/dist/esm/index.js.map +0 -1
  494. package/dist/types/cli.d.ts.map +0 -1
  495. package/dist/types/codecov-config.d.ts.map +0 -1
  496. package/dist/types/index.d.ts.map +0 -1
  497. package/dist/types/update-command.d.ts.map +0 -1
  498. package/dist/types/update-config.d.ts.map +0 -1
  499. package/dist/types/update.d.ts.map +0 -1
@@ -0,0 +1,154 @@
1
+ import { __require as requireParseOptions } from '../internal/parse-options.mjs';
2
+ import { __require as requireRe } from '../internal/re.mjs';
3
+ import { __require as requireCmp } from '../functions/cmp.mjs';
4
+ import { __require as requireDebug } from '../internal/debug.mjs';
5
+ import { __require as requireSemver } from './semver.mjs';
6
+ import { __require as requireRange } from './range.mjs';
7
+
8
+ var comparator;
9
+ var hasRequiredComparator;
10
+
11
+ function requireComparator () {
12
+ if (hasRequiredComparator) return comparator;
13
+ hasRequiredComparator = 1;
14
+ const ANY = Symbol('SemVer ANY');
15
+ // hoisted class for cyclic dependency
16
+ class Comparator {
17
+ static get ANY () {
18
+ return ANY
19
+ }
20
+
21
+ constructor (comp, options) {
22
+ options = parseOptions(options);
23
+
24
+ if (comp instanceof Comparator) {
25
+ if (comp.loose === !!options.loose) {
26
+ return comp
27
+ } else {
28
+ comp = comp.value;
29
+ }
30
+ }
31
+
32
+ debug('comparator', comp, options);
33
+ this.options = options;
34
+ this.loose = !!options.loose;
35
+ this.parse(comp);
36
+
37
+ if (this.semver === ANY) {
38
+ this.value = '';
39
+ } else {
40
+ this.value = this.operator + this.semver.version;
41
+ }
42
+
43
+ debug('comp', this);
44
+ }
45
+
46
+ parse (comp) {
47
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
48
+ const m = comp.match(r);
49
+
50
+ if (!m) {
51
+ throw new TypeError(`Invalid comparator: ${comp}`)
52
+ }
53
+
54
+ this.operator = m[1] !== undefined ? m[1] : '';
55
+ if (this.operator === '=') {
56
+ this.operator = '';
57
+ }
58
+
59
+ // if it literally is just '>' or '' then allow anything.
60
+ if (!m[2]) {
61
+ this.semver = ANY;
62
+ } else {
63
+ this.semver = new SemVer(m[2], this.options.loose);
64
+ }
65
+ }
66
+
67
+ toString () {
68
+ return this.value
69
+ }
70
+
71
+ test (version) {
72
+ debug('Comparator.test', version, this.options.loose);
73
+
74
+ if (this.semver === ANY || version === ANY) {
75
+ return true
76
+ }
77
+
78
+ if (typeof version === 'string') {
79
+ try {
80
+ version = new SemVer(version, this.options);
81
+ } catch (er) {
82
+ return false
83
+ }
84
+ }
85
+
86
+ return cmp(version, this.operator, this.semver, this.options)
87
+ }
88
+
89
+ intersects (comp, options) {
90
+ if (!(comp instanceof Comparator)) {
91
+ throw new TypeError('a Comparator is required')
92
+ }
93
+
94
+ if (!options || typeof options !== 'object') {
95
+ options = {
96
+ loose: !!options,
97
+ includePrerelease: false,
98
+ };
99
+ }
100
+
101
+ if (this.operator === '') {
102
+ if (this.value === '') {
103
+ return true
104
+ }
105
+ return new Range(comp.value, options).test(this.value)
106
+ } else if (comp.operator === '') {
107
+ if (comp.value === '') {
108
+ return true
109
+ }
110
+ return new Range(this.value, options).test(comp.semver)
111
+ }
112
+
113
+ const sameDirectionIncreasing =
114
+ (this.operator === '>=' || this.operator === '>') &&
115
+ (comp.operator === '>=' || comp.operator === '>');
116
+ const sameDirectionDecreasing =
117
+ (this.operator === '<=' || this.operator === '<') &&
118
+ (comp.operator === '<=' || comp.operator === '<');
119
+ const sameSemVer = this.semver.version === comp.semver.version;
120
+ const differentDirectionsInclusive =
121
+ (this.operator === '>=' || this.operator === '<=') &&
122
+ (comp.operator === '>=' || comp.operator === '<=');
123
+ const oppositeDirectionsLessThan =
124
+ cmp(this.semver, '<', comp.semver, options) &&
125
+ (this.operator === '>=' || this.operator === '>') &&
126
+ (comp.operator === '<=' || comp.operator === '<');
127
+ const oppositeDirectionsGreaterThan =
128
+ cmp(this.semver, '>', comp.semver, options) &&
129
+ (this.operator === '<=' || this.operator === '<') &&
130
+ (comp.operator === '>=' || comp.operator === '>');
131
+
132
+ return (
133
+ sameDirectionIncreasing ||
134
+ sameDirectionDecreasing ||
135
+ (sameSemVer && differentDirectionsInclusive) ||
136
+ oppositeDirectionsLessThan ||
137
+ oppositeDirectionsGreaterThan
138
+ )
139
+ }
140
+ }
141
+
142
+ comparator = Comparator;
143
+
144
+ const parseOptions = requireParseOptions();
145
+ const { re, t } = requireRe();
146
+ const cmp = requireCmp();
147
+ const debug = requireDebug();
148
+ const SemVer = requireSemver();
149
+ const Range = requireRange();
150
+ return comparator;
151
+ }
152
+
153
+ export { requireComparator as __require };
154
+ //# sourceMappingURL=comparator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comparator.mjs","sources":["../../../../../node_modules/semver/classes/comparator.js"],"sourcesContent":["const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false,\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":";;;;;;;;;;;;;AAAA,CAAA,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,EAAC;AAChC;AACA,CAAA,MAAM,UAAU,CAAC;GACf,WAAW,GAAG,CAAC,GAAG;AACpB,KAAI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+ import { __require as requireParseOptions } from '../internal/parse-options.mjs';
3
+ import { __require as requireComparator } from './comparator.mjs';
4
+ import { __require as requireDebug } from '../internal/debug.mjs';
5
+ import { __require as requireSemver } from './semver.mjs';
6
+ import { __require as requireRe } from '../internal/re.mjs';
7
+
8
+ var range;
9
+ var hasRequiredRange;
10
+
11
+ function requireRange () {
12
+ if (hasRequiredRange) return range;
13
+ hasRequiredRange = 1;
14
+ // hoisted class for cyclic dependency
15
+ class Range {
16
+ constructor (range, options) {
17
+ options = parseOptions(options);
18
+
19
+ if (range instanceof Range) {
20
+ if (
21
+ range.loose === !!options.loose &&
22
+ range.includePrerelease === !!options.includePrerelease
23
+ ) {
24
+ return range
25
+ } else {
26
+ return new Range(range.raw, options)
27
+ }
28
+ }
29
+
30
+ if (range instanceof Comparator) {
31
+ // just put it in the set and return
32
+ this.raw = range.value;
33
+ this.set = [[range]];
34
+ this.format();
35
+ return this
36
+ }
37
+
38
+ this.options = options;
39
+ this.loose = !!options.loose;
40
+ this.includePrerelease = !!options.includePrerelease;
41
+
42
+ // First, split based on boolean or ||
43
+ this.raw = range;
44
+ this.set = range
45
+ .split('||')
46
+ // map the range to a 2d array of comparators
47
+ .map(r => this.parseRange(r.trim()))
48
+ // throw out any comparator lists that are empty
49
+ // this generally means that it was not a valid range, which is allowed
50
+ // in loose mode, but will still throw if the WHOLE range is invalid.
51
+ .filter(c => c.length);
52
+
53
+ if (!this.set.length) {
54
+ throw new TypeError(`Invalid SemVer Range: ${range}`)
55
+ }
56
+
57
+ // if we have any that are not the null set, throw out null sets.
58
+ if (this.set.length > 1) {
59
+ // keep the first one, in case they're all null sets
60
+ const first = this.set[0];
61
+ this.set = this.set.filter(c => !isNullSet(c[0]));
62
+ if (this.set.length === 0) {
63
+ this.set = [first];
64
+ } else if (this.set.length > 1) {
65
+ // if we have any that are *, then the range is just *
66
+ for (const c of this.set) {
67
+ if (c.length === 1 && isAny(c[0])) {
68
+ this.set = [c];
69
+ break
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ this.format();
76
+ }
77
+
78
+ format () {
79
+ this.range = this.set
80
+ .map((comps) => {
81
+ return comps.join(' ').trim()
82
+ })
83
+ .join('||')
84
+ .trim();
85
+ return this.range
86
+ }
87
+
88
+ toString () {
89
+ return this.range
90
+ }
91
+
92
+ parseRange (range) {
93
+ range = range.trim();
94
+
95
+ // memoize range parsing for performance.
96
+ // this is a very hot path, and fully deterministic.
97
+ const memoOpts = Object.keys(this.options).join(',');
98
+ const memoKey = `parseRange:${memoOpts}:${range}`;
99
+ const cached = cache.get(memoKey);
100
+ if (cached) {
101
+ return cached
102
+ }
103
+
104
+ const loose = this.options.loose;
105
+ // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
106
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
107
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
108
+ debug('hyphen replace', range);
109
+ // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
110
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
111
+ debug('comparator trim', range);
112
+
113
+ // `~ 1.2.3` => `~1.2.3`
114
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
115
+
116
+ // `^ 1.2.3` => `^1.2.3`
117
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
118
+
119
+ // normalize spaces
120
+ range = range.split(/\s+/).join(' ');
121
+
122
+ // At this point, the range is completely trimmed and
123
+ // ready to be split into comparators.
124
+
125
+ let rangeList = range
126
+ .split(' ')
127
+ .map(comp => parseComparator(comp, this.options))
128
+ .join(' ')
129
+ .split(/\s+/)
130
+ // >=0.0.0 is equivalent to *
131
+ .map(comp => replaceGTE0(comp, this.options));
132
+
133
+ if (loose) {
134
+ // in loose mode, throw out any that are not valid comparators
135
+ rangeList = rangeList.filter(comp => {
136
+ debug('loose invalid filter', comp, this.options);
137
+ return !!comp.match(re[t.COMPARATORLOOSE])
138
+ });
139
+ }
140
+ debug('range list', rangeList);
141
+
142
+ // if any comparators are the null set, then replace with JUST null set
143
+ // if more than one comparator, remove any * comparators
144
+ // also, don't include the same comparator more than once
145
+ const rangeMap = new Map();
146
+ const comparators = rangeList.map(comp => new Comparator(comp, this.options));
147
+ for (const comp of comparators) {
148
+ if (isNullSet(comp)) {
149
+ return [comp]
150
+ }
151
+ rangeMap.set(comp.value, comp);
152
+ }
153
+ if (rangeMap.size > 1 && rangeMap.has('')) {
154
+ rangeMap.delete('');
155
+ }
156
+
157
+ const result = [...rangeMap.values()];
158
+ cache.set(memoKey, result);
159
+ return result
160
+ }
161
+
162
+ intersects (range, options) {
163
+ if (!(range instanceof Range)) {
164
+ throw new TypeError('a Range is required')
165
+ }
166
+
167
+ return this.set.some((thisComparators) => {
168
+ return (
169
+ isSatisfiable(thisComparators, options) &&
170
+ range.set.some((rangeComparators) => {
171
+ return (
172
+ isSatisfiable(rangeComparators, options) &&
173
+ thisComparators.every((thisComparator) => {
174
+ return rangeComparators.every((rangeComparator) => {
175
+ return thisComparator.intersects(rangeComparator, options)
176
+ })
177
+ })
178
+ )
179
+ })
180
+ )
181
+ })
182
+ }
183
+
184
+ // if ANY of the sets match ALL of its comparators, then pass
185
+ test (version) {
186
+ if (!version) {
187
+ return false
188
+ }
189
+
190
+ if (typeof version === 'string') {
191
+ try {
192
+ version = new SemVer(version, this.options);
193
+ } catch (er) {
194
+ return false
195
+ }
196
+ }
197
+
198
+ for (let i = 0; i < this.set.length; i++) {
199
+ if (testSet(this.set[i], version, this.options)) {
200
+ return true
201
+ }
202
+ }
203
+ return false
204
+ }
205
+ }
206
+ range = Range;
207
+
208
+ const LRU = requireLruCache();
209
+ const cache = new LRU({ max: 1000 });
210
+
211
+ const parseOptions = requireParseOptions();
212
+ const Comparator = requireComparator();
213
+ const debug = requireDebug();
214
+ const SemVer = requireSemver();
215
+ const {
216
+ re,
217
+ t,
218
+ comparatorTrimReplace,
219
+ tildeTrimReplace,
220
+ caretTrimReplace,
221
+ } = requireRe();
222
+
223
+ const isNullSet = c => c.value === '<0.0.0-0';
224
+ const isAny = c => c.value === '';
225
+
226
+ // take a set of comparators and determine whether there
227
+ // exists a version which can satisfy it
228
+ const isSatisfiable = (comparators, options) => {
229
+ let result = true;
230
+ const remainingComparators = comparators.slice();
231
+ let testComparator = remainingComparators.pop();
232
+
233
+ while (result && remainingComparators.length) {
234
+ result = remainingComparators.every((otherComparator) => {
235
+ return testComparator.intersects(otherComparator, options)
236
+ });
237
+
238
+ testComparator = remainingComparators.pop();
239
+ }
240
+
241
+ return result
242
+ };
243
+
244
+ // comprised of xranges, tildes, stars, and gtlt's at this point.
245
+ // already replaced the hyphen ranges
246
+ // turn into a set of JUST comparators.
247
+ const parseComparator = (comp, options) => {
248
+ debug('comp', comp, options);
249
+ comp = replaceCarets(comp, options);
250
+ debug('caret', comp);
251
+ comp = replaceTildes(comp, options);
252
+ debug('tildes', comp);
253
+ comp = replaceXRanges(comp, options);
254
+ debug('xrange', comp);
255
+ comp = replaceStars(comp, options);
256
+ debug('stars', comp);
257
+ return comp
258
+ };
259
+
260
+ const isX = id => !id || id.toLowerCase() === 'x' || id === '*';
261
+
262
+ // ~, ~> --> * (any, kinda silly)
263
+ // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
264
+ // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
265
+ // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
266
+ // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
267
+ // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
268
+ const replaceTildes = (comp, options) =>
269
+ comp.trim().split(/\s+/).map((c) => {
270
+ return replaceTilde(c, options)
271
+ }).join(' ');
272
+
273
+ const replaceTilde = (comp, options) => {
274
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
275
+ return comp.replace(r, (_, M, m, p, pr) => {
276
+ debug('tilde', comp, _, M, m, p, pr);
277
+ let ret;
278
+
279
+ if (isX(M)) {
280
+ ret = '';
281
+ } else if (isX(m)) {
282
+ ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
283
+ } else if (isX(p)) {
284
+ // ~1.2 == >=1.2.0 <1.3.0-0
285
+ ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
286
+ } else if (pr) {
287
+ debug('replaceTilde pr', pr);
288
+ ret = `>=${M}.${m}.${p}-${pr
289
+ } <${M}.${+m + 1}.0-0`;
290
+ } else {
291
+ // ~1.2.3 == >=1.2.3 <1.3.0-0
292
+ ret = `>=${M}.${m}.${p
293
+ } <${M}.${+m + 1}.0-0`;
294
+ }
295
+
296
+ debug('tilde return', ret);
297
+ return ret
298
+ })
299
+ };
300
+
301
+ // ^ --> * (any, kinda silly)
302
+ // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
303
+ // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
304
+ // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
305
+ // ^1.2.3 --> >=1.2.3 <2.0.0-0
306
+ // ^1.2.0 --> >=1.2.0 <2.0.0-0
307
+ const replaceCarets = (comp, options) =>
308
+ comp.trim().split(/\s+/).map((c) => {
309
+ return replaceCaret(c, options)
310
+ }).join(' ');
311
+
312
+ const replaceCaret = (comp, options) => {
313
+ debug('caret', comp, options);
314
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
315
+ const z = options.includePrerelease ? '-0' : '';
316
+ return comp.replace(r, (_, M, m, p, pr) => {
317
+ debug('caret', comp, _, M, m, p, pr);
318
+ let ret;
319
+
320
+ if (isX(M)) {
321
+ ret = '';
322
+ } else if (isX(m)) {
323
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
324
+ } else if (isX(p)) {
325
+ if (M === '0') {
326
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
327
+ } else {
328
+ ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
329
+ }
330
+ } else if (pr) {
331
+ debug('replaceCaret pr', pr);
332
+ if (M === '0') {
333
+ if (m === '0') {
334
+ ret = `>=${M}.${m}.${p}-${pr
335
+ } <${M}.${m}.${+p + 1}-0`;
336
+ } else {
337
+ ret = `>=${M}.${m}.${p}-${pr
338
+ } <${M}.${+m + 1}.0-0`;
339
+ }
340
+ } else {
341
+ ret = `>=${M}.${m}.${p}-${pr
342
+ } <${+M + 1}.0.0-0`;
343
+ }
344
+ } else {
345
+ debug('no pr');
346
+ if (M === '0') {
347
+ if (m === '0') {
348
+ ret = `>=${M}.${m}.${p
349
+ }${z} <${M}.${m}.${+p + 1}-0`;
350
+ } else {
351
+ ret = `>=${M}.${m}.${p
352
+ }${z} <${M}.${+m + 1}.0-0`;
353
+ }
354
+ } else {
355
+ ret = `>=${M}.${m}.${p
356
+ } <${+M + 1}.0.0-0`;
357
+ }
358
+ }
359
+
360
+ debug('caret return', ret);
361
+ return ret
362
+ })
363
+ };
364
+
365
+ const replaceXRanges = (comp, options) => {
366
+ debug('replaceXRanges', comp, options);
367
+ return comp.split(/\s+/).map((c) => {
368
+ return replaceXRange(c, options)
369
+ }).join(' ')
370
+ };
371
+
372
+ const replaceXRange = (comp, options) => {
373
+ comp = comp.trim();
374
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
375
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
376
+ debug('xRange', comp, ret, gtlt, M, m, p, pr);
377
+ const xM = isX(M);
378
+ const xm = xM || isX(m);
379
+ const xp = xm || isX(p);
380
+ const anyX = xp;
381
+
382
+ if (gtlt === '=' && anyX) {
383
+ gtlt = '';
384
+ }
385
+
386
+ // if we're including prereleases in the match, then we need
387
+ // to fix this to -0, the lowest possible prerelease value
388
+ pr = options.includePrerelease ? '-0' : '';
389
+
390
+ if (xM) {
391
+ if (gtlt === '>' || gtlt === '<') {
392
+ // nothing is allowed
393
+ ret = '<0.0.0-0';
394
+ } else {
395
+ // nothing is forbidden
396
+ ret = '*';
397
+ }
398
+ } else if (gtlt && anyX) {
399
+ // we know patch is an x, because we have any x at all.
400
+ // replace X with 0
401
+ if (xm) {
402
+ m = 0;
403
+ }
404
+ p = 0;
405
+
406
+ if (gtlt === '>') {
407
+ // >1 => >=2.0.0
408
+ // >1.2 => >=1.3.0
409
+ gtlt = '>=';
410
+ if (xm) {
411
+ M = +M + 1;
412
+ m = 0;
413
+ p = 0;
414
+ } else {
415
+ m = +m + 1;
416
+ p = 0;
417
+ }
418
+ } else if (gtlt === '<=') {
419
+ // <=0.7.x is actually <0.8.0, since any 0.7.x should
420
+ // pass. Similarly, <=7.x is actually <8.0.0, etc.
421
+ gtlt = '<';
422
+ if (xm) {
423
+ M = +M + 1;
424
+ } else {
425
+ m = +m + 1;
426
+ }
427
+ }
428
+
429
+ if (gtlt === '<') {
430
+ pr = '-0';
431
+ }
432
+
433
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
434
+ } else if (xm) {
435
+ ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
436
+ } else if (xp) {
437
+ ret = `>=${M}.${m}.0${pr
438
+ } <${M}.${+m + 1}.0-0`;
439
+ }
440
+
441
+ debug('xRange return', ret);
442
+
443
+ return ret
444
+ })
445
+ };
446
+
447
+ // Because * is AND-ed with everything else in the comparator,
448
+ // and '' means "any version", just remove the *s entirely.
449
+ const replaceStars = (comp, options) => {
450
+ debug('replaceStars', comp, options);
451
+ // Looseness is ignored here. star is always as loose as it gets!
452
+ return comp.trim().replace(re[t.STAR], '')
453
+ };
454
+
455
+ const replaceGTE0 = (comp, options) => {
456
+ debug('replaceGTE0', comp, options);
457
+ return comp.trim()
458
+ .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
459
+ };
460
+
461
+ // This function is passed to string.replace(re[t.HYPHENRANGE])
462
+ // M, m, patch, prerelease, build
463
+ // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
464
+ // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
465
+ // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
466
+ const hyphenReplace = incPr => ($0,
467
+ from, fM, fm, fp, fpr, fb,
468
+ to, tM, tm, tp, tpr, tb) => {
469
+ if (isX(fM)) {
470
+ from = '';
471
+ } else if (isX(fm)) {
472
+ from = `>=${fM}.0.0${incPr ? '-0' : ''}`;
473
+ } else if (isX(fp)) {
474
+ from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`;
475
+ } else if (fpr) {
476
+ from = `>=${from}`;
477
+ } else {
478
+ from = `>=${from}${incPr ? '-0' : ''}`;
479
+ }
480
+
481
+ if (isX(tM)) {
482
+ to = '';
483
+ } else if (isX(tm)) {
484
+ to = `<${+tM + 1}.0.0-0`;
485
+ } else if (isX(tp)) {
486
+ to = `<${tM}.${+tm + 1}.0-0`;
487
+ } else if (tpr) {
488
+ to = `<=${tM}.${tm}.${tp}-${tpr}`;
489
+ } else if (incPr) {
490
+ to = `<${tM}.${tm}.${+tp + 1}-0`;
491
+ } else {
492
+ to = `<=${to}`;
493
+ }
494
+
495
+ return (`${from} ${to}`).trim()
496
+ };
497
+
498
+ const testSet = (set, version, options) => {
499
+ for (let i = 0; i < set.length; i++) {
500
+ if (!set[i].test(version)) {
501
+ return false
502
+ }
503
+ }
504
+
505
+ if (version.prerelease.length && !options.includePrerelease) {
506
+ // Find the set of versions that are allowed to have prereleases
507
+ // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
508
+ // That should allow `1.2.3-pr.2` to pass.
509
+ // However, `1.2.4-alpha.notready` should NOT be allowed,
510
+ // even though it's within the range set by the comparators.
511
+ for (let i = 0; i < set.length; i++) {
512
+ debug(set[i].semver);
513
+ if (set[i].semver === Comparator.ANY) {
514
+ continue
515
+ }
516
+
517
+ if (set[i].semver.prerelease.length > 0) {
518
+ const allowed = set[i].semver;
519
+ if (allowed.major === version.major &&
520
+ allowed.minor === version.minor &&
521
+ allowed.patch === version.patch) {
522
+ return true
523
+ }
524
+ }
525
+ }
526
+
527
+ // Version has a -pre, but it's not one of the ones we like.
528
+ return false
529
+ }
530
+
531
+ return true
532
+ };
533
+ return range;
534
+ }
535
+
536
+ export { requireRange as __require };
537
+ //# sourceMappingURL=range.mjs.map