@donmahallem/lerna2codecov 0.2.3 → 0.2.6

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 (488) hide show
  1. package/dist/cjs/index.cjs +0 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/update-config.cjs +48 -56
  4. package/dist/cjs/update-config.cjs.map +1 -1
  5. package/dist/esm/update-config.mjs +48 -50
  6. package/dist/esm/update-config.mjs.map +1 -1
  7. package/dist/types/cli.d.ts +1 -1
  8. package/dist/types/codecov-config.d.ts +13 -13
  9. package/dist/types/index.d.ts +2 -2
  10. package/dist/types/update-command.d.ts +8 -8
  11. package/dist/types/update-config.d.ts +12 -12
  12. package/dist/types/update.d.ts +6 -6
  13. package/package.json +19 -12
  14. package/src/update-command.ts +2 -2
  15. package/src/update-config.ts +1 -2
  16. package/src/update.ts +3 -3
  17. package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -8
  18. package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +0 -1
  19. package/dist/cjs/_virtual/conversions.cjs +0 -8
  20. package/dist/cjs/_virtual/conversions.cjs.map +0 -1
  21. package/dist/cjs/_virtual/git-host-info.cjs +0 -8
  22. package/dist/cjs/_virtual/git-host-info.cjs.map +0 -1
  23. package/dist/cjs/_virtual/identifier.cjs +0 -8
  24. package/dist/cjs/_virtual/identifier.cjs.map +0 -1
  25. package/dist/cjs/_virtual/imurmurhash.cjs +0 -8
  26. package/dist/cjs/_virtual/imurmurhash.cjs.map +0 -1
  27. package/dist/cjs/_virtual/index.cjs +0 -8
  28. package/dist/cjs/_virtual/index.cjs.map +0 -1
  29. package/dist/cjs/_virtual/index10.cjs +0 -8
  30. package/dist/cjs/_virtual/index10.cjs.map +0 -1
  31. package/dist/cjs/_virtual/index11.cjs +0 -8
  32. package/dist/cjs/_virtual/index11.cjs.map +0 -1
  33. package/dist/cjs/_virtual/index12.cjs +0 -8
  34. package/dist/cjs/_virtual/index12.cjs.map +0 -1
  35. package/dist/cjs/_virtual/index13.cjs +0 -8
  36. package/dist/cjs/_virtual/index13.cjs.map +0 -1
  37. package/dist/cjs/_virtual/index14.cjs +0 -8
  38. package/dist/cjs/_virtual/index14.cjs.map +0 -1
  39. package/dist/cjs/_virtual/index15.cjs +0 -8
  40. package/dist/cjs/_virtual/index15.cjs.map +0 -1
  41. package/dist/cjs/_virtual/index2.cjs +0 -8
  42. package/dist/cjs/_virtual/index2.cjs.map +0 -1
  43. package/dist/cjs/_virtual/index3.cjs +0 -8
  44. package/dist/cjs/_virtual/index3.cjs.map +0 -1
  45. package/dist/cjs/_virtual/index4.cjs +0 -8
  46. package/dist/cjs/_virtual/index4.cjs.map +0 -1
  47. package/dist/cjs/_virtual/index5.cjs +0 -8
  48. package/dist/cjs/_virtual/index5.cjs.map +0 -1
  49. package/dist/cjs/_virtual/index6.cjs +0 -8
  50. package/dist/cjs/_virtual/index6.cjs.map +0 -1
  51. package/dist/cjs/_virtual/index7.cjs +0 -8
  52. package/dist/cjs/_virtual/index7.cjs.map +0 -1
  53. package/dist/cjs/_virtual/index8.cjs +0 -8
  54. package/dist/cjs/_virtual/index8.cjs.map +0 -1
  55. package/dist/cjs/_virtual/index9.cjs +0 -8
  56. package/dist/cjs/_virtual/index9.cjs.map +0 -1
  57. package/dist/cjs/_virtual/keyword.cjs +0 -8
  58. package/dist/cjs/_virtual/keyword.cjs.map +0 -1
  59. package/dist/cjs/_virtual/npa.cjs +0 -8
  60. package/dist/cjs/_virtual/npa.cjs.map +0 -1
  61. package/dist/cjs/_virtual/re.cjs +0 -8
  62. package/dist/cjs/_virtual/re.cjs.map +0 -1
  63. package/dist/cjs/_virtual/semver.cjs +0 -8
  64. package/dist/cjs/_virtual/semver.cjs.map +0 -1
  65. package/dist/cjs/_virtual/signals.cjs +0 -8
  66. package/dist/cjs/_virtual/signals.cjs.map +0 -1
  67. package/dist/cjs/node_modules/@babel/code-frame/lib/index.cjs +0 -168
  68. package/dist/cjs/node_modules/@babel/code-frame/lib/index.cjs.map +0 -1
  69. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +0 -89
  70. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +0 -1
  71. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/index.cjs +0 -67
  72. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +0 -1
  73. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +0 -43
  74. package/dist/cjs/node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +0 -1
  75. package/dist/cjs/node_modules/@babel/highlight/lib/index.cjs +0 -125
  76. package/dist/cjs/node_modules/@babel/highlight/lib/index.cjs.map +0 -1
  77. package/dist/cjs/node_modules/@lerna/package/index.cjs +0 -314
  78. package/dist/cjs/node_modules/@lerna/package/index.cjs.map +0 -1
  79. package/dist/cjs/node_modules/ansi-styles/index.cjs +0 -172
  80. package/dist/cjs/node_modules/ansi-styles/index.cjs.map +0 -1
  81. package/dist/cjs/node_modules/builtins/builtins.cjs +0 -6
  82. package/dist/cjs/node_modules/builtins/builtins.cjs.map +0 -1
  83. package/dist/cjs/node_modules/chalk/index.cjs +0 -239
  84. package/dist/cjs/node_modules/chalk/index.cjs.map +0 -1
  85. package/dist/cjs/node_modules/chalk/templates.cjs +0 -132
  86. package/dist/cjs/node_modules/chalk/templates.cjs.map +0 -1
  87. package/dist/cjs/node_modules/color-convert/conversions.cjs +0 -877
  88. package/dist/cjs/node_modules/color-convert/conversions.cjs.map +0 -1
  89. package/dist/cjs/node_modules/color-convert/index.cjs +0 -87
  90. package/dist/cjs/node_modules/color-convert/index.cjs.map +0 -1
  91. package/dist/cjs/node_modules/color-convert/route.cjs +0 -104
  92. package/dist/cjs/node_modules/color-convert/route.cjs.map +0 -1
  93. package/dist/cjs/node_modules/color-name/index.cjs +0 -155
  94. package/dist/cjs/node_modules/color-name/index.cjs.map +0 -1
  95. package/dist/cjs/node_modules/error-ex/index.cjs +0 -151
  96. package/dist/cjs/node_modules/error-ex/index.cjs.map +0 -1
  97. package/dist/cjs/node_modules/escape-string-regexp/index.cjs +0 -14
  98. package/dist/cjs/node_modules/escape-string-regexp/index.cjs.map +0 -1
  99. package/dist/cjs/node_modules/graceful-fs/clone.cjs +0 -26
  100. package/dist/cjs/node_modules/graceful-fs/clone.cjs.map +0 -1
  101. package/dist/cjs/node_modules/graceful-fs/graceful-fs.cjs +0 -467
  102. package/dist/cjs/node_modules/graceful-fs/graceful-fs.cjs.map +0 -1
  103. package/dist/cjs/node_modules/graceful-fs/legacy-streams.cjs +0 -129
  104. package/dist/cjs/node_modules/graceful-fs/legacy-streams.cjs.map +0 -1
  105. package/dist/cjs/node_modules/graceful-fs/polyfills.cjs +0 -366
  106. package/dist/cjs/node_modules/graceful-fs/polyfills.cjs.map +0 -1
  107. package/dist/cjs/node_modules/has-flag/index.cjs +0 -12
  108. package/dist/cjs/node_modules/has-flag/index.cjs.map +0 -1
  109. package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs +0 -94
  110. package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs.map +0 -1
  111. package/dist/cjs/node_modules/hosted-git-info/git-host.cjs +0 -172
  112. package/dist/cjs/node_modules/hosted-git-info/git-host.cjs.map +0 -1
  113. package/dist/cjs/node_modules/hosted-git-info/index.cjs +0 -170
  114. package/dist/cjs/node_modules/hosted-git-info/index.cjs.map +0 -1
  115. package/dist/cjs/node_modules/imurmurhash/imurmurhash.cjs +0 -143
  116. package/dist/cjs/node_modules/imurmurhash/imurmurhash.cjs.map +0 -1
  117. package/dist/cjs/node_modules/is-arrayish/index.cjs +0 -13
  118. package/dist/cjs/node_modules/is-arrayish/index.cjs.map +0 -1
  119. package/dist/cjs/node_modules/js-tokens/index.cjs +0 -28
  120. package/dist/cjs/node_modules/js-tokens/index.cjs.map +0 -1
  121. package/dist/cjs/node_modules/json-parse-even-better-errors/index.cjs +0 -124
  122. package/dist/cjs/node_modules/json-parse-even-better-errors/index.cjs.map +0 -1
  123. package/dist/cjs/node_modules/lines-and-columns/build/index.cjs +0 -68
  124. package/dist/cjs/node_modules/lines-and-columns/build/index.cjs.map +0 -1
  125. package/dist/cjs/node_modules/load-json-file/index.cjs +0 -35
  126. package/dist/cjs/node_modules/load-json-file/index.cjs.map +0 -1
  127. package/dist/cjs/node_modules/lru-cache/index.cjs +0 -350
  128. package/dist/cjs/node_modules/lru-cache/index.cjs.map +0 -1
  129. package/dist/cjs/node_modules/npm-package-arg/npa.cjs +0 -323
  130. package/dist/cjs/node_modules/npm-package-arg/npa.cjs.map +0 -1
  131. package/dist/cjs/node_modules/parse-json/index.cjs +0 -65
  132. package/dist/cjs/node_modules/parse-json/index.cjs.map +0 -1
  133. package/dist/cjs/node_modules/pify/index.cjs +0 -71
  134. package/dist/cjs/node_modules/pify/index.cjs.map +0 -1
  135. package/dist/cjs/node_modules/semver/classes/comparator.cjs +0 -158
  136. package/dist/cjs/node_modules/semver/classes/comparator.cjs.map +0 -1
  137. package/dist/cjs/node_modules/semver/classes/range.cjs +0 -541
  138. package/dist/cjs/node_modules/semver/classes/range.cjs.map +0 -1
  139. package/dist/cjs/node_modules/semver/classes/semver.cjs +0 -308
  140. package/dist/cjs/node_modules/semver/classes/semver.cjs.map +0 -1
  141. package/dist/cjs/node_modules/semver/functions/clean.cjs +0 -23
  142. package/dist/cjs/node_modules/semver/functions/clean.cjs.map +0 -1
  143. package/dist/cjs/node_modules/semver/functions/cmp.cjs +0 -74
  144. package/dist/cjs/node_modules/semver/functions/cmp.cjs.map +0 -1
  145. package/dist/cjs/node_modules/semver/functions/coerce.cjs +0 -71
  146. package/dist/cjs/node_modules/semver/functions/coerce.cjs.map +0 -1
  147. package/dist/cjs/node_modules/semver/functions/compare-build.cjs +0 -24
  148. package/dist/cjs/node_modules/semver/functions/compare-build.cjs.map +0 -1
  149. package/dist/cjs/node_modules/semver/functions/compare-loose.cjs +0 -20
  150. package/dist/cjs/node_modules/semver/functions/compare-loose.cjs.map +0 -1
  151. package/dist/cjs/node_modules/semver/functions/compare.cjs +0 -22
  152. package/dist/cjs/node_modules/semver/functions/compare.cjs.map +0 -1
  153. package/dist/cjs/node_modules/semver/functions/diff.cjs +0 -41
  154. package/dist/cjs/node_modules/semver/functions/diff.cjs.map +0 -1
  155. package/dist/cjs/node_modules/semver/functions/eq.cjs +0 -20
  156. package/dist/cjs/node_modules/semver/functions/eq.cjs.map +0 -1
  157. package/dist/cjs/node_modules/semver/functions/gt.cjs +0 -20
  158. package/dist/cjs/node_modules/semver/functions/gt.cjs.map +0 -1
  159. package/dist/cjs/node_modules/semver/functions/gte.cjs +0 -20
  160. package/dist/cjs/node_modules/semver/functions/gte.cjs.map +0 -1
  161. package/dist/cjs/node_modules/semver/functions/inc.cjs +0 -35
  162. package/dist/cjs/node_modules/semver/functions/inc.cjs.map +0 -1
  163. package/dist/cjs/node_modules/semver/functions/lt.cjs +0 -20
  164. package/dist/cjs/node_modules/semver/functions/lt.cjs.map +0 -1
  165. package/dist/cjs/node_modules/semver/functions/lte.cjs +0 -20
  166. package/dist/cjs/node_modules/semver/functions/lte.cjs.map +0 -1
  167. package/dist/cjs/node_modules/semver/functions/major.cjs +0 -20
  168. package/dist/cjs/node_modules/semver/functions/major.cjs.map +0 -1
  169. package/dist/cjs/node_modules/semver/functions/minor.cjs +0 -20
  170. package/dist/cjs/node_modules/semver/functions/minor.cjs.map +0 -1
  171. package/dist/cjs/node_modules/semver/functions/neq.cjs +0 -20
  172. package/dist/cjs/node_modules/semver/functions/neq.cjs.map +0 -1
  173. package/dist/cjs/node_modules/semver/functions/parse.cjs +0 -53
  174. package/dist/cjs/node_modules/semver/functions/parse.cjs.map +0 -1
  175. package/dist/cjs/node_modules/semver/functions/patch.cjs +0 -20
  176. package/dist/cjs/node_modules/semver/functions/patch.cjs.map +0 -1
  177. package/dist/cjs/node_modules/semver/functions/prerelease.cjs +0 -23
  178. package/dist/cjs/node_modules/semver/functions/prerelease.cjs.map +0 -1
  179. package/dist/cjs/node_modules/semver/functions/rcompare.cjs +0 -20
  180. package/dist/cjs/node_modules/semver/functions/rcompare.cjs.map +0 -1
  181. package/dist/cjs/node_modules/semver/functions/rsort.cjs +0 -20
  182. package/dist/cjs/node_modules/semver/functions/rsort.cjs.map +0 -1
  183. package/dist/cjs/node_modules/semver/functions/satisfies.cjs +0 -27
  184. package/dist/cjs/node_modules/semver/functions/satisfies.cjs.map +0 -1
  185. package/dist/cjs/node_modules/semver/functions/sort.cjs +0 -20
  186. package/dist/cjs/node_modules/semver/functions/sort.cjs.map +0 -1
  187. package/dist/cjs/node_modules/semver/functions/valid.cjs +0 -23
  188. package/dist/cjs/node_modules/semver/functions/valid.cjs.map +0 -1
  189. package/dist/cjs/node_modules/semver/index.cjs +0 -105
  190. package/dist/cjs/node_modules/semver/index.cjs.map +0 -1
  191. package/dist/cjs/node_modules/semver/internal/constants.cjs +0 -32
  192. package/dist/cjs/node_modules/semver/internal/constants.cjs.map +0 -1
  193. package/dist/cjs/node_modules/semver/internal/debug.cjs +0 -24
  194. package/dist/cjs/node_modules/semver/internal/debug.cjs.map +0 -1
  195. package/dist/cjs/node_modules/semver/internal/identifiers.cjs +0 -38
  196. package/dist/cjs/node_modules/semver/internal/identifiers.cjs.map +0 -1
  197. package/dist/cjs/node_modules/semver/internal/parse-options.cjs +0 -26
  198. package/dist/cjs/node_modules/semver/internal/parse-options.cjs.map +0 -1
  199. package/dist/cjs/node_modules/semver/internal/re.cjs +0 -202
  200. package/dist/cjs/node_modules/semver/internal/re.cjs.map +0 -1
  201. package/dist/cjs/node_modules/semver/ranges/gtr.cjs +0 -21
  202. package/dist/cjs/node_modules/semver/ranges/gtr.cjs.map +0 -1
  203. package/dist/cjs/node_modules/semver/ranges/intersects.cjs +0 -24
  204. package/dist/cjs/node_modules/semver/ranges/intersects.cjs.map +0 -1
  205. package/dist/cjs/node_modules/semver/ranges/ltr.cjs +0 -21
  206. package/dist/cjs/node_modules/semver/ranges/ltr.cjs.map +0 -1
  207. package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs +0 -43
  208. package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
  209. package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs +0 -42
  210. package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
  211. package/dist/cjs/node_modules/semver/ranges/min-version.cjs +0 -80
  212. package/dist/cjs/node_modules/semver/ranges/min-version.cjs.map +0 -1
  213. package/dist/cjs/node_modules/semver/ranges/outside.cjs +0 -104
  214. package/dist/cjs/node_modules/semver/ranges/outside.cjs.map +0 -1
  215. package/dist/cjs/node_modules/semver/ranges/simplify.cjs +0 -65
  216. package/dist/cjs/node_modules/semver/ranges/simplify.cjs.map +0 -1
  217. package/dist/cjs/node_modules/semver/ranges/subset.cjs +0 -264
  218. package/dist/cjs/node_modules/semver/ranges/subset.cjs.map +0 -1
  219. package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs +0 -25
  220. package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
  221. package/dist/cjs/node_modules/semver/ranges/valid.cjs +0 -28
  222. package/dist/cjs/node_modules/semver/ranges/valid.cjs.map +0 -1
  223. package/dist/cjs/node_modules/signal-exit/index.cjs +0 -218
  224. package/dist/cjs/node_modules/signal-exit/index.cjs.map +0 -1
  225. package/dist/cjs/node_modules/signal-exit/signals.cjs +0 -71
  226. package/dist/cjs/node_modules/signal-exit/signals.cjs.map +0 -1
  227. package/dist/cjs/node_modules/strip-bom/index.cjs +0 -18
  228. package/dist/cjs/node_modules/strip-bom/index.cjs.map +0 -1
  229. package/dist/cjs/node_modules/supports-color/index.cjs +0 -142
  230. package/dist/cjs/node_modules/supports-color/index.cjs.map +0 -1
  231. package/dist/cjs/node_modules/validate-npm-package-name/index.cjs +0 -121
  232. package/dist/cjs/node_modules/validate-npm-package-name/index.cjs.map +0 -1
  233. package/dist/cjs/node_modules/write-pkg/index.cjs +0 -79
  234. package/dist/cjs/node_modules/write-pkg/index.cjs.map +0 -1
  235. package/dist/cjs/node_modules/write-pkg/node_modules/detect-indent/index.cjs +0 -125
  236. package/dist/cjs/node_modules/write-pkg/node_modules/detect-indent/index.cjs.map +0 -1
  237. package/dist/cjs/node_modules/write-pkg/node_modules/is-plain-obj/index.cjs +0 -11
  238. package/dist/cjs/node_modules/write-pkg/node_modules/is-plain-obj/index.cjs.map +0 -1
  239. package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs +0 -155
  240. package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs.map +0 -1
  241. package/dist/cjs/node_modules/write-pkg/node_modules/semver/semver.cjs +0 -1490
  242. package/dist/cjs/node_modules/write-pkg/node_modules/semver/semver.cjs.map +0 -1
  243. package/dist/cjs/node_modules/write-pkg/node_modules/sort-keys/index.cjs +0 -61
  244. package/dist/cjs/node_modules/write-pkg/node_modules/sort-keys/index.cjs.map +0 -1
  245. package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs +0 -255
  246. package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs.map +0 -1
  247. package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs +0 -95
  248. package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs.map +0 -1
  249. package/dist/cjs/node_modules/yallist/iterator.cjs +0 -22
  250. package/dist/cjs/node_modules/yallist/iterator.cjs.map +0 -1
  251. package/dist/cjs/node_modules/yallist/yallist.cjs +0 -442
  252. package/dist/cjs/node_modules/yallist/yallist.cjs.map +0 -1
  253. package/dist/esm/_virtual/_commonjsHelpers.mjs +0 -4
  254. package/dist/esm/_virtual/_commonjsHelpers.mjs.map +0 -1
  255. package/dist/esm/_virtual/conversions.mjs +0 -4
  256. package/dist/esm/_virtual/conversions.mjs.map +0 -1
  257. package/dist/esm/_virtual/git-host-info.mjs +0 -4
  258. package/dist/esm/_virtual/git-host-info.mjs.map +0 -1
  259. package/dist/esm/_virtual/identifier.mjs +0 -4
  260. package/dist/esm/_virtual/identifier.mjs.map +0 -1
  261. package/dist/esm/_virtual/imurmurhash.mjs +0 -4
  262. package/dist/esm/_virtual/imurmurhash.mjs.map +0 -1
  263. package/dist/esm/_virtual/index.mjs +0 -4
  264. package/dist/esm/_virtual/index.mjs.map +0 -1
  265. package/dist/esm/_virtual/index10.mjs +0 -4
  266. package/dist/esm/_virtual/index10.mjs.map +0 -1
  267. package/dist/esm/_virtual/index11.mjs +0 -4
  268. package/dist/esm/_virtual/index11.mjs.map +0 -1
  269. package/dist/esm/_virtual/index12.mjs +0 -4
  270. package/dist/esm/_virtual/index12.mjs.map +0 -1
  271. package/dist/esm/_virtual/index13.mjs +0 -4
  272. package/dist/esm/_virtual/index13.mjs.map +0 -1
  273. package/dist/esm/_virtual/index14.mjs +0 -4
  274. package/dist/esm/_virtual/index14.mjs.map +0 -1
  275. package/dist/esm/_virtual/index15.mjs +0 -4
  276. package/dist/esm/_virtual/index15.mjs.map +0 -1
  277. package/dist/esm/_virtual/index2.mjs +0 -4
  278. package/dist/esm/_virtual/index2.mjs.map +0 -1
  279. package/dist/esm/_virtual/index3.mjs +0 -4
  280. package/dist/esm/_virtual/index3.mjs.map +0 -1
  281. package/dist/esm/_virtual/index4.mjs +0 -4
  282. package/dist/esm/_virtual/index4.mjs.map +0 -1
  283. package/dist/esm/_virtual/index5.mjs +0 -4
  284. package/dist/esm/_virtual/index5.mjs.map +0 -1
  285. package/dist/esm/_virtual/index6.mjs +0 -4
  286. package/dist/esm/_virtual/index6.mjs.map +0 -1
  287. package/dist/esm/_virtual/index7.mjs +0 -4
  288. package/dist/esm/_virtual/index7.mjs.map +0 -1
  289. package/dist/esm/_virtual/index8.mjs +0 -4
  290. package/dist/esm/_virtual/index8.mjs.map +0 -1
  291. package/dist/esm/_virtual/index9.mjs +0 -4
  292. package/dist/esm/_virtual/index9.mjs.map +0 -1
  293. package/dist/esm/_virtual/keyword.mjs +0 -4
  294. package/dist/esm/_virtual/keyword.mjs.map +0 -1
  295. package/dist/esm/_virtual/npa.mjs +0 -4
  296. package/dist/esm/_virtual/npa.mjs.map +0 -1
  297. package/dist/esm/_virtual/re.mjs +0 -4
  298. package/dist/esm/_virtual/re.mjs.map +0 -1
  299. package/dist/esm/_virtual/semver.mjs +0 -4
  300. package/dist/esm/_virtual/semver.mjs.map +0 -1
  301. package/dist/esm/_virtual/signals.mjs +0 -4
  302. package/dist/esm/_virtual/signals.mjs.map +0 -1
  303. package/dist/esm/node_modules/@babel/code-frame/lib/index.mjs +0 -166
  304. package/dist/esm/node_modules/@babel/code-frame/lib/index.mjs.map +0 -1
  305. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/identifier.mjs +0 -86
  306. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/identifier.mjs.map +0 -1
  307. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/index.mjs +0 -65
  308. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/index.mjs.map +0 -1
  309. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/keyword.mjs +0 -40
  310. package/dist/esm/node_modules/@babel/helper-validator-identifier/lib/keyword.mjs.map +0 -1
  311. package/dist/esm/node_modules/@babel/highlight/lib/index.mjs +0 -123
  312. package/dist/esm/node_modules/@babel/highlight/lib/index.mjs.map +0 -1
  313. package/dist/esm/node_modules/@lerna/package/index.mjs +0 -306
  314. package/dist/esm/node_modules/@lerna/package/index.mjs.map +0 -1
  315. package/dist/esm/node_modules/ansi-styles/index.mjs +0 -170
  316. package/dist/esm/node_modules/ansi-styles/index.mjs.map +0 -1
  317. package/dist/esm/node_modules/builtins/builtins.mjs +0 -4
  318. package/dist/esm/node_modules/builtins/builtins.mjs.map +0 -1
  319. package/dist/esm/node_modules/chalk/index.mjs +0 -237
  320. package/dist/esm/node_modules/chalk/index.mjs.map +0 -1
  321. package/dist/esm/node_modules/chalk/templates.mjs +0 -130
  322. package/dist/esm/node_modules/chalk/templates.mjs.map +0 -1
  323. package/dist/esm/node_modules/color-convert/conversions.mjs +0 -876
  324. package/dist/esm/node_modules/color-convert/conversions.mjs.map +0 -1
  325. package/dist/esm/node_modules/color-convert/index.mjs +0 -85
  326. package/dist/esm/node_modules/color-convert/index.mjs.map +0 -1
  327. package/dist/esm/node_modules/color-convert/route.mjs +0 -102
  328. package/dist/esm/node_modules/color-convert/route.mjs.map +0 -1
  329. package/dist/esm/node_modules/color-name/index.mjs +0 -153
  330. package/dist/esm/node_modules/color-name/index.mjs.map +0 -1
  331. package/dist/esm/node_modules/error-ex/index.mjs +0 -145
  332. package/dist/esm/node_modules/error-ex/index.mjs.map +0 -1
  333. package/dist/esm/node_modules/escape-string-regexp/index.mjs +0 -12
  334. package/dist/esm/node_modules/escape-string-regexp/index.mjs.map +0 -1
  335. package/dist/esm/node_modules/graceful-fs/clone.mjs +0 -24
  336. package/dist/esm/node_modules/graceful-fs/clone.mjs.map +0 -1
  337. package/dist/esm/node_modules/graceful-fs/graceful-fs.mjs +0 -459
  338. package/dist/esm/node_modules/graceful-fs/graceful-fs.mjs.map +0 -1
  339. package/dist/esm/node_modules/graceful-fs/legacy-streams.mjs +0 -123
  340. package/dist/esm/node_modules/graceful-fs/legacy-streams.mjs.map +0 -1
  341. package/dist/esm/node_modules/graceful-fs/polyfills.mjs +0 -360
  342. package/dist/esm/node_modules/graceful-fs/polyfills.mjs.map +0 -1
  343. package/dist/esm/node_modules/has-flag/index.mjs +0 -10
  344. package/dist/esm/node_modules/has-flag/index.mjs.map +0 -1
  345. package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs +0 -90
  346. package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs.map +0 -1
  347. package/dist/esm/node_modules/hosted-git-info/git-host.mjs +0 -168
  348. package/dist/esm/node_modules/hosted-git-info/git-host.mjs.map +0 -1
  349. package/dist/esm/node_modules/hosted-git-info/index.mjs +0 -162
  350. package/dist/esm/node_modules/hosted-git-info/index.mjs.map +0 -1
  351. package/dist/esm/node_modules/imurmurhash/imurmurhash.mjs +0 -141
  352. package/dist/esm/node_modules/imurmurhash/imurmurhash.mjs.map +0 -1
  353. package/dist/esm/node_modules/is-arrayish/index.mjs +0 -11
  354. package/dist/esm/node_modules/is-arrayish/index.mjs.map +0 -1
  355. package/dist/esm/node_modules/js-tokens/index.mjs +0 -26
  356. package/dist/esm/node_modules/js-tokens/index.mjs.map +0 -1
  357. package/dist/esm/node_modules/json-parse-even-better-errors/index.mjs +0 -122
  358. package/dist/esm/node_modules/json-parse-even-better-errors/index.mjs.map +0 -1
  359. package/dist/esm/node_modules/lines-and-columns/build/index.mjs +0 -66
  360. package/dist/esm/node_modules/lines-and-columns/build/index.mjs.map +0 -1
  361. package/dist/esm/node_modules/load-json-file/index.mjs +0 -29
  362. package/dist/esm/node_modules/load-json-file/index.mjs.map +0 -1
  363. package/dist/esm/node_modules/lru-cache/index.mjs +0 -346
  364. package/dist/esm/node_modules/lru-cache/index.mjs.map +0 -1
  365. package/dist/esm/node_modules/npm-package-arg/npa.mjs +0 -316
  366. package/dist/esm/node_modules/npm-package-arg/npa.mjs.map +0 -1
  367. package/dist/esm/node_modules/parse-json/index.mjs +0 -63
  368. package/dist/esm/node_modules/parse-json/index.mjs.map +0 -1
  369. package/dist/esm/node_modules/pify/index.mjs +0 -69
  370. package/dist/esm/node_modules/pify/index.mjs.map +0 -1
  371. package/dist/esm/node_modules/semver/classes/comparator.mjs +0 -154
  372. package/dist/esm/node_modules/semver/classes/comparator.mjs.map +0 -1
  373. package/dist/esm/node_modules/semver/classes/range.mjs +0 -537
  374. package/dist/esm/node_modules/semver/classes/range.mjs.map +0 -1
  375. package/dist/esm/node_modules/semver/classes/semver.mjs +0 -304
  376. package/dist/esm/node_modules/semver/classes/semver.mjs.map +0 -1
  377. package/dist/esm/node_modules/semver/functions/clean.mjs +0 -19
  378. package/dist/esm/node_modules/semver/functions/clean.mjs.map +0 -1
  379. package/dist/esm/node_modules/semver/functions/cmp.mjs +0 -70
  380. package/dist/esm/node_modules/semver/functions/cmp.mjs.map +0 -1
  381. package/dist/esm/node_modules/semver/functions/coerce.mjs +0 -67
  382. package/dist/esm/node_modules/semver/functions/coerce.mjs.map +0 -1
  383. package/dist/esm/node_modules/semver/functions/compare-build.mjs +0 -20
  384. package/dist/esm/node_modules/semver/functions/compare-build.mjs.map +0 -1
  385. package/dist/esm/node_modules/semver/functions/compare-loose.mjs +0 -16
  386. package/dist/esm/node_modules/semver/functions/compare-loose.mjs.map +0 -1
  387. package/dist/esm/node_modules/semver/functions/compare.mjs +0 -18
  388. package/dist/esm/node_modules/semver/functions/compare.mjs.map +0 -1
  389. package/dist/esm/node_modules/semver/functions/diff.mjs +0 -37
  390. package/dist/esm/node_modules/semver/functions/diff.mjs.map +0 -1
  391. package/dist/esm/node_modules/semver/functions/eq.mjs +0 -16
  392. package/dist/esm/node_modules/semver/functions/eq.mjs.map +0 -1
  393. package/dist/esm/node_modules/semver/functions/gt.mjs +0 -16
  394. package/dist/esm/node_modules/semver/functions/gt.mjs.map +0 -1
  395. package/dist/esm/node_modules/semver/functions/gte.mjs +0 -16
  396. package/dist/esm/node_modules/semver/functions/gte.mjs.map +0 -1
  397. package/dist/esm/node_modules/semver/functions/inc.mjs +0 -31
  398. package/dist/esm/node_modules/semver/functions/inc.mjs.map +0 -1
  399. package/dist/esm/node_modules/semver/functions/lt.mjs +0 -16
  400. package/dist/esm/node_modules/semver/functions/lt.mjs.map +0 -1
  401. package/dist/esm/node_modules/semver/functions/lte.mjs +0 -16
  402. package/dist/esm/node_modules/semver/functions/lte.mjs.map +0 -1
  403. package/dist/esm/node_modules/semver/functions/major.mjs +0 -16
  404. package/dist/esm/node_modules/semver/functions/major.mjs.map +0 -1
  405. package/dist/esm/node_modules/semver/functions/minor.mjs +0 -16
  406. package/dist/esm/node_modules/semver/functions/minor.mjs.map +0 -1
  407. package/dist/esm/node_modules/semver/functions/neq.mjs +0 -16
  408. package/dist/esm/node_modules/semver/functions/neq.mjs.map +0 -1
  409. package/dist/esm/node_modules/semver/functions/parse.mjs +0 -49
  410. package/dist/esm/node_modules/semver/functions/parse.mjs.map +0 -1
  411. package/dist/esm/node_modules/semver/functions/patch.mjs +0 -16
  412. package/dist/esm/node_modules/semver/functions/patch.mjs.map +0 -1
  413. package/dist/esm/node_modules/semver/functions/prerelease.mjs +0 -19
  414. package/dist/esm/node_modules/semver/functions/prerelease.mjs.map +0 -1
  415. package/dist/esm/node_modules/semver/functions/rcompare.mjs +0 -16
  416. package/dist/esm/node_modules/semver/functions/rcompare.mjs.map +0 -1
  417. package/dist/esm/node_modules/semver/functions/rsort.mjs +0 -16
  418. package/dist/esm/node_modules/semver/functions/rsort.mjs.map +0 -1
  419. package/dist/esm/node_modules/semver/functions/satisfies.mjs +0 -23
  420. package/dist/esm/node_modules/semver/functions/satisfies.mjs.map +0 -1
  421. package/dist/esm/node_modules/semver/functions/sort.mjs +0 -16
  422. package/dist/esm/node_modules/semver/functions/sort.mjs.map +0 -1
  423. package/dist/esm/node_modules/semver/functions/valid.mjs +0 -19
  424. package/dist/esm/node_modules/semver/functions/valid.mjs.map +0 -1
  425. package/dist/esm/node_modules/semver/index.mjs +0 -101
  426. package/dist/esm/node_modules/semver/index.mjs.map +0 -1
  427. package/dist/esm/node_modules/semver/internal/constants.mjs +0 -28
  428. package/dist/esm/node_modules/semver/internal/constants.mjs.map +0 -1
  429. package/dist/esm/node_modules/semver/internal/debug.mjs +0 -20
  430. package/dist/esm/node_modules/semver/internal/debug.mjs.map +0 -1
  431. package/dist/esm/node_modules/semver/internal/identifiers.mjs +0 -34
  432. package/dist/esm/node_modules/semver/internal/identifiers.mjs.map +0 -1
  433. package/dist/esm/node_modules/semver/internal/parse-options.mjs +0 -22
  434. package/dist/esm/node_modules/semver/internal/parse-options.mjs.map +0 -1
  435. package/dist/esm/node_modules/semver/internal/re.mjs +0 -198
  436. package/dist/esm/node_modules/semver/internal/re.mjs.map +0 -1
  437. package/dist/esm/node_modules/semver/ranges/gtr.mjs +0 -17
  438. package/dist/esm/node_modules/semver/ranges/gtr.mjs.map +0 -1
  439. package/dist/esm/node_modules/semver/ranges/intersects.mjs +0 -20
  440. package/dist/esm/node_modules/semver/ranges/intersects.mjs.map +0 -1
  441. package/dist/esm/node_modules/semver/ranges/ltr.mjs +0 -17
  442. package/dist/esm/node_modules/semver/ranges/ltr.mjs.map +0 -1
  443. package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs +0 -39
  444. package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs.map +0 -1
  445. package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs +0 -38
  446. package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs.map +0 -1
  447. package/dist/esm/node_modules/semver/ranges/min-version.mjs +0 -76
  448. package/dist/esm/node_modules/semver/ranges/min-version.mjs.map +0 -1
  449. package/dist/esm/node_modules/semver/ranges/outside.mjs +0 -100
  450. package/dist/esm/node_modules/semver/ranges/outside.mjs.map +0 -1
  451. package/dist/esm/node_modules/semver/ranges/simplify.mjs +0 -61
  452. package/dist/esm/node_modules/semver/ranges/simplify.mjs.map +0 -1
  453. package/dist/esm/node_modules/semver/ranges/subset.mjs +0 -260
  454. package/dist/esm/node_modules/semver/ranges/subset.mjs.map +0 -1
  455. package/dist/esm/node_modules/semver/ranges/to-comparators.mjs +0 -21
  456. package/dist/esm/node_modules/semver/ranges/to-comparators.mjs.map +0 -1
  457. package/dist/esm/node_modules/semver/ranges/valid.mjs +0 -24
  458. package/dist/esm/node_modules/semver/ranges/valid.mjs.map +0 -1
  459. package/dist/esm/node_modules/signal-exit/index.mjs +0 -212
  460. package/dist/esm/node_modules/signal-exit/index.mjs.map +0 -1
  461. package/dist/esm/node_modules/signal-exit/signals.mjs +0 -67
  462. package/dist/esm/node_modules/signal-exit/signals.mjs.map +0 -1
  463. package/dist/esm/node_modules/strip-bom/index.mjs +0 -16
  464. package/dist/esm/node_modules/strip-bom/index.mjs.map +0 -1
  465. package/dist/esm/node_modules/supports-color/index.mjs +0 -136
  466. package/dist/esm/node_modules/supports-color/index.mjs.map +0 -1
  467. package/dist/esm/node_modules/validate-npm-package-name/index.mjs +0 -117
  468. package/dist/esm/node_modules/validate-npm-package-name/index.mjs.map +0 -1
  469. package/dist/esm/node_modules/write-pkg/index.mjs +0 -74
  470. package/dist/esm/node_modules/write-pkg/index.mjs.map +0 -1
  471. package/dist/esm/node_modules/write-pkg/node_modules/detect-indent/index.mjs +0 -123
  472. package/dist/esm/node_modules/write-pkg/node_modules/detect-indent/index.mjs.map +0 -1
  473. package/dist/esm/node_modules/write-pkg/node_modules/is-plain-obj/index.mjs +0 -9
  474. package/dist/esm/node_modules/write-pkg/node_modules/is-plain-obj/index.mjs.map +0 -1
  475. package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs +0 -149
  476. package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs.map +0 -1
  477. package/dist/esm/node_modules/write-pkg/node_modules/semver/semver.mjs +0 -1488
  478. package/dist/esm/node_modules/write-pkg/node_modules/semver/semver.mjs.map +0 -1
  479. package/dist/esm/node_modules/write-pkg/node_modules/sort-keys/index.mjs +0 -59
  480. package/dist/esm/node_modules/write-pkg/node_modules/sort-keys/index.mjs.map +0 -1
  481. package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs +0 -250
  482. package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs.map +0 -1
  483. package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs +0 -90
  484. package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs.map +0 -1
  485. package/dist/esm/node_modules/yallist/iterator.mjs +0 -18
  486. package/dist/esm/node_modules/yallist/iterator.mjs.map +0 -1
  487. package/dist/esm/node_modules/yallist/yallist.mjs +0 -438
  488. package/dist/esm/node_modules/yallist/yallist.mjs.map +0 -1
@@ -1,154 +0,0 @@
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
@@ -1 +0,0 @@
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":"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"}
@@ -1,537 +0,0 @@
1
- import { __require as requireLruCache } from '../../lru-cache/index.mjs';
2
- 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