immosquare-cleaner 0.1.42 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (807) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/.bin/ncu +1 -1
  4. data/node_modules/.bin/npm-check-updates +1 -1
  5. data/node_modules/.bin/rimraf +1 -1
  6. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +5 -0
  7. data/node_modules/@eslint/config-array/dist/esm/index.js +5 -0
  8. data/node_modules/@eslint/config-array/package.json +1 -1
  9. data/node_modules/@eslint/js/package.json +1 -1
  10. data/node_modules/ansi-regex/index.d.ts +13 -9
  11. data/node_modules/ansi-regex/index.js +5 -3
  12. data/node_modules/ansi-regex/license +1 -1
  13. data/node_modules/ansi-regex/package.json +6 -9
  14. data/node_modules/ansi-regex/readme.md +8 -2
  15. data/node_modules/brace-expansion/README.md +0 -6
  16. data/node_modules/brace-expansion/index.js +84 -86
  17. data/node_modules/brace-expansion/package.json +4 -3
  18. data/node_modules/chalk/license +1 -1
  19. data/node_modules/chalk/package.json +23 -38
  20. data/node_modules/chalk/readme.md +85 -69
  21. data/node_modules/chalk/source/index.js +84 -80
  22. data/node_modules/eslint/lib/cli.js +0 -20
  23. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +19 -0
  24. data/node_modules/eslint/lib/linter/apply-disable-directives.js +24 -12
  25. data/node_modules/eslint/lib/linter/linter.js +44 -20
  26. data/node_modules/eslint/lib/linter/report-translator.js +10 -10
  27. data/node_modules/eslint/lib/linter/rule-fixer.js +38 -15
  28. data/node_modules/eslint/lib/shared/flags.js +2 -2
  29. data/node_modules/eslint/package.json +5 -4
  30. data/node_modules/glob/LICENSE +7 -1
  31. data/node_modules/glob/README.md +284 -1120
  32. data/node_modules/glob/common.js +238 -0
  33. data/node_modules/glob/glob.js +790 -0
  34. data/node_modules/glob/package.json +34 -76
  35. data/node_modules/glob/sync.js +486 -0
  36. data/node_modules/lru-cache/LICENSE +1 -1
  37. data/node_modules/lru-cache/README.md +104 -1055
  38. data/node_modules/lru-cache/index.js +246 -1139
  39. data/node_modules/lru-cache/package.json +11 -75
  40. data/node_modules/minimatch/LICENSE +1 -1
  41. data/node_modules/minimatch/README.md +65 -289
  42. data/node_modules/minimatch/package.json +14 -67
  43. data/node_modules/npm-check-updates/README.md +9 -12
  44. data/node_modules/npm-check-updates/build/cli.js +21 -21
  45. data/node_modules/npm-check-updates/build/cli.js.map +1 -1
  46. data/node_modules/npm-check-updates/build/index-CWktU8PK.js +58 -0
  47. data/node_modules/npm-check-updates/build/index-CWktU8PK.js.map +1 -0
  48. data/node_modules/npm-check-updates/build/index.d.ts +1 -3
  49. data/node_modules/npm-check-updates/build/index.js +207 -223
  50. data/node_modules/npm-check-updates/build/index.js.map +1 -1
  51. data/node_modules/npm-check-updates/package.json +101 -105
  52. data/node_modules/rimraf/LICENSE +1 -1
  53. data/node_modules/rimraf/README.md +70 -188
  54. data/node_modules/rimraf/bin.js +50 -0
  55. data/node_modules/rimraf/package.json +16 -74
  56. data/node_modules/rimraf/rimraf.js +364 -0
  57. data/node_modules/semver/README.md +27 -221
  58. data/node_modules/semver/bin/semver.js +84 -107
  59. data/node_modules/semver/package.json +14 -63
  60. data/node_modules/semver/semver.js +1643 -0
  61. data/node_modules/strip-ansi/index.d.ts +4 -2
  62. data/node_modules/strip-ansi/index.js +3 -13
  63. data/node_modules/strip-ansi/license +1 -1
  64. data/node_modules/strip-ansi/package.json +7 -10
  65. data/node_modules/strip-ansi/readme.md +7 -2
  66. data/node_modules/strip-json-comments/index.d.ts +13 -18
  67. data/node_modules/strip-json-comments/index.js +38 -68
  68. data/node_modules/strip-json-comments/package.json +5 -13
  69. data/node_modules/strip-json-comments/readme.md +18 -15
  70. data/node_modules/yallist/package.json +1 -1
  71. data/node_modules/yallist/yallist.js +3 -3
  72. data/package.json +3 -3
  73. metadata +14 -736
  74. data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +0 -15
  75. data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +0 -230
  76. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  77. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  78. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  79. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  80. data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +0 -33
  81. data/node_modules/chalk/source/index.d.ts +0 -320
  82. data/node_modules/chalk/source/utilities.js +0 -33
  83. data/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  84. data/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  85. data/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  86. data/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  87. data/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  88. data/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  89. data/node_modules/eslint/node_modules/chalk/license +0 -9
  90. data/node_modules/eslint/node_modules/chalk/package.json +0 -68
  91. data/node_modules/eslint/node_modules/chalk/readme.md +0 -341
  92. data/node_modules/eslint/node_modules/chalk/source/index.js +0 -229
  93. data/node_modules/eslint/node_modules/minimatch/LICENSE +0 -15
  94. data/node_modules/eslint/node_modules/minimatch/README.md +0 -230
  95. data/node_modules/eslint/node_modules/minimatch/minimatch.js +0 -947
  96. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  97. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  98. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  99. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  100. data/node_modules/eslint/node_modules/minimatch/package.json +0 -33
  101. data/node_modules/eslint/node_modules/strip-ansi/index.d.ts +0 -17
  102. data/node_modules/eslint/node_modules/strip-ansi/index.js +0 -4
  103. data/node_modules/eslint/node_modules/strip-ansi/license +0 -9
  104. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -37
  105. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -10
  106. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
  107. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -55
  108. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -78
  109. data/node_modules/eslint/node_modules/strip-ansi/package.json +0 -54
  110. data/node_modules/eslint/node_modules/strip-ansi/readme.md +0 -46
  111. data/node_modules/glob/dist/commonjs/glob.d.ts +0 -344
  112. data/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  113. data/node_modules/glob/dist/commonjs/glob.js +0 -243
  114. data/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  115. data/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  116. data/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  117. data/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  118. data/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  119. data/node_modules/glob/dist/commonjs/ignore.d.ts +0 -20
  120. data/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  121. data/node_modules/glob/dist/commonjs/ignore.js +0 -108
  122. data/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  123. data/node_modules/glob/dist/commonjs/index.d.ts +0 -96
  124. data/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  125. data/node_modules/glob/dist/commonjs/index.js +0 -68
  126. data/node_modules/glob/dist/commonjs/index.js.map +0 -1
  127. data/node_modules/glob/dist/commonjs/package.json +0 -1
  128. data/node_modules/glob/dist/commonjs/pattern.d.ts +0 -77
  129. data/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  130. data/node_modules/glob/dist/commonjs/pattern.js +0 -219
  131. data/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  132. data/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  133. data/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  134. data/node_modules/glob/dist/commonjs/processor.js +0 -302
  135. data/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  136. data/node_modules/glob/dist/commonjs/walker.d.ts +0 -96
  137. data/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  138. data/node_modules/glob/dist/commonjs/walker.js +0 -358
  139. data/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  140. data/node_modules/glob/dist/esm/bin.d.mts +0 -3
  141. data/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
  142. data/node_modules/glob/dist/esm/bin.mjs +0 -275
  143. data/node_modules/glob/dist/esm/bin.mjs.map +0 -1
  144. data/node_modules/glob/dist/esm/glob.d.ts +0 -344
  145. data/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  146. data/node_modules/glob/dist/esm/glob.js +0 -239
  147. data/node_modules/glob/dist/esm/glob.js.map +0 -1
  148. data/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  149. data/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  150. data/node_modules/glob/dist/esm/has-magic.js +0 -23
  151. data/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  152. data/node_modules/glob/dist/esm/ignore.d.ts +0 -20
  153. data/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  154. data/node_modules/glob/dist/esm/ignore.js +0 -104
  155. data/node_modules/glob/dist/esm/ignore.js.map +0 -1
  156. data/node_modules/glob/dist/esm/index.d.ts +0 -96
  157. data/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  158. data/node_modules/glob/dist/esm/index.js +0 -56
  159. data/node_modules/glob/dist/esm/index.js.map +0 -1
  160. data/node_modules/glob/dist/esm/package.json +0 -1
  161. data/node_modules/glob/dist/esm/pattern.d.ts +0 -77
  162. data/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  163. data/node_modules/glob/dist/esm/pattern.js +0 -215
  164. data/node_modules/glob/dist/esm/pattern.js.map +0 -1
  165. data/node_modules/glob/dist/esm/processor.d.ts +0 -59
  166. data/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  167. data/node_modules/glob/dist/esm/processor.js +0 -295
  168. data/node_modules/glob/dist/esm/processor.js.map +0 -1
  169. data/node_modules/glob/dist/esm/walker.d.ts +0 -96
  170. data/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  171. data/node_modules/glob/dist/esm/walker.js +0 -352
  172. data/node_modules/glob/dist/esm/walker.js.map +0 -1
  173. data/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
  174. data/node_modules/glob/node_modules/minimatch/README.md +0 -454
  175. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  176. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  177. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  178. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  179. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  180. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  181. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js +0 -589
  182. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  183. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  184. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  185. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  186. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  187. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  188. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  189. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js +0 -22
  190. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  191. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  192. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  193. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js +0 -1011
  194. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  195. data/node_modules/glob/node_modules/minimatch/dist/cjs/package.json +0 -3
  196. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  197. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  198. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  199. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  200. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  201. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  202. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  203. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  204. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  205. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  206. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js +0 -585
  207. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  208. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  209. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  210. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  211. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  212. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  213. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  214. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js +0 -18
  215. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  216. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  217. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  218. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js +0 -995
  219. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  220. data/node_modules/glob/node_modules/minimatch/dist/mjs/package.json +0 -3
  221. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  222. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  223. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  224. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  225. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  226. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
  227. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
  228. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
  229. data/node_modules/glob/node_modules/minimatch/package.json +0 -86
  230. data/node_modules/glob/node_modules/minipass/LICENSE +0 -15
  231. data/node_modules/glob/node_modules/minipass/README.md +0 -825
  232. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts +0 -549
  233. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  234. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js +0 -1028
  235. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  236. data/node_modules/glob/node_modules/minipass/dist/commonjs/package.json +0 -1
  237. data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts +0 -549
  238. data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  239. data/node_modules/glob/node_modules/minipass/dist/esm/index.js +0 -1018
  240. data/node_modules/glob/node_modules/minipass/dist/esm/index.js.map +0 -1
  241. data/node_modules/glob/node_modules/minipass/dist/esm/package.json +0 -1
  242. data/node_modules/glob/node_modules/minipass/package.json +0 -82
  243. data/node_modules/lru-cache/index.d.ts +0 -869
  244. data/node_modules/lru-cache/index.mjs +0 -1227
  245. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  246. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  247. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  248. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  249. data/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  250. data/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  251. data/node_modules/minimatch/dist/cjs/ast.js +0 -589
  252. data/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  253. data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  254. data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  255. data/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  256. data/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  257. data/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  258. data/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  259. data/node_modules/minimatch/dist/cjs/escape.js +0 -22
  260. data/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  261. data/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  262. data/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  263. data/node_modules/minimatch/dist/cjs/index.js +0 -1011
  264. data/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  265. data/node_modules/minimatch/dist/cjs/package.json +0 -3
  266. data/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  267. data/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  268. data/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  269. data/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  270. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  271. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  272. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  273. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  274. data/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  275. data/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  276. data/node_modules/minimatch/dist/mjs/ast.js +0 -585
  277. data/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  278. data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  279. data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  280. data/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  281. data/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  282. data/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  283. data/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  284. data/node_modules/minimatch/dist/mjs/escape.js +0 -18
  285. data/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  286. data/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  287. data/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  288. data/node_modules/minimatch/dist/mjs/index.js +0 -995
  289. data/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  290. data/node_modules/minimatch/dist/mjs/package.json +0 -3
  291. data/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  292. data/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  293. data/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  294. data/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  295. data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +0 -66
  296. data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +0 -1
  297. data/node_modules/npm-check-updates/build/package.json +0 -183
  298. data/node_modules/npm-check-updates/build/src/bin/cli.d.ts +0 -2
  299. data/node_modules/npm-check-updates/build/src/bin/cli.js +0 -182
  300. data/node_modules/npm-check-updates/build/src/bin/cli.js.map +0 -1
  301. data/node_modules/npm-check-updates/build/src/cli-options.d.ts +0 -9
  302. data/node_modules/npm-check-updates/build/src/cli-options.js +0 -795
  303. data/node_modules/npm-check-updates/build/src/cli-options.js.map +0 -1
  304. data/node_modules/npm-check-updates/build/src/index.d.ts +0 -17
  305. data/node_modules/npm-check-updates/build/src/index.js +0 -316
  306. data/node_modules/npm-check-updates/build/src/index.js.map +0 -1
  307. data/node_modules/npm-check-updates/build/src/lib/cache.d.ts +0 -17
  308. data/node_modules/npm-check-updates/build/src/lib/cache.js +0 -105
  309. data/node_modules/npm-check-updates/build/src/lib/cache.js.map +0 -1
  310. data/node_modules/npm-check-updates/build/src/lib/chalk.d.ts +0 -7
  311. data/node_modules/npm-check-updates/build/src/lib/chalk.js +0 -66
  312. data/node_modules/npm-check-updates/build/src/lib/chalk.js.map +0 -1
  313. data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.d.ts +0 -8
  314. data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js +0 -32
  315. data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js.map +0 -1
  316. data/node_modules/npm-check-updates/build/src/lib/doctor.d.ts +0 -8
  317. data/node_modules/npm-check-updates/build/src/lib/doctor.js +0 -290
  318. data/node_modules/npm-check-updates/build/src/lib/doctor.js.map +0 -1
  319. data/node_modules/npm-check-updates/build/src/lib/exists.d.ts +0 -3
  320. data/node_modules/npm-check-updates/build/src/lib/exists.js +0 -10
  321. data/node_modules/npm-check-updates/build/src/lib/exists.js.map +0 -1
  322. data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.d.ts +0 -2
  323. data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js +0 -112
  324. data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js.map +0 -1
  325. data/node_modules/npm-check-updates/build/src/lib/filterAndReject.d.ts +0 -12
  326. data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js +0 -80
  327. data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js.map +0 -1
  328. data/node_modules/npm-check-updates/build/src/lib/filterObject.d.ts +0 -4
  329. data/node_modules/npm-check-updates/build/src/lib/filterObject.js +0 -10
  330. data/node_modules/npm-check-updates/build/src/lib/filterObject.js.map +0 -1
  331. data/node_modules/npm-check-updates/build/src/lib/findLockfile.d.ts +0 -12
  332. data/node_modules/npm-check-updates/build/src/lib/findLockfile.js +0 -54
  333. data/node_modules/npm-check-updates/build/src/lib/findLockfile.js.map +0 -1
  334. data/node_modules/npm-check-updates/build/src/lib/findPackage.d.ts +0 -16
  335. data/node_modules/npm-check-updates/build/src/lib/findPackage.js +0 -78
  336. data/node_modules/npm-check-updates/build/src/lib/findPackage.js.map +0 -1
  337. data/node_modules/npm-check-updates/build/src/lib/getAllPackages.d.ts +0 -10
  338. data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js +0 -126
  339. data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js.map +0 -1
  340. data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.d.ts +0 -15
  341. data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js +0 -76
  342. data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js.map +0 -1
  343. data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.d.ts +0 -8
  344. data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js +0 -37
  345. data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js.map +0 -1
  346. data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.d.ts +0 -12
  347. data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js +0 -35
  348. data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js.map +0 -1
  349. data/node_modules/npm-check-updates/build/src/lib/getNcuRc.d.ts +0 -22
  350. data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js +0 -60
  351. data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js.map +0 -1
  352. data/node_modules/npm-check-updates/build/src/lib/getPackageManager.d.ts +0 -13
  353. data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js +0 -30
  354. data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js.map +0 -1
  355. data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.d.ts +0 -6
  356. data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js +0 -31
  357. data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js.map +0 -1
  358. data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.d.ts +0 -12
  359. data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js +0 -35
  360. data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js.map +0 -1
  361. data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.d.ts +0 -10
  362. data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js +0 -30
  363. data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js.map +0 -1
  364. data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.d.ts +0 -11
  365. data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js +0 -81
  366. data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js.map +0 -1
  367. data/node_modules/npm-check-updates/build/src/lib/initOptions.d.ts +0 -7
  368. data/node_modules/npm-check-updates/build/src/lib/initOptions.js +0 -207
  369. data/node_modules/npm-check-updates/build/src/lib/initOptions.js.map +0 -1
  370. data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.d.ts +0 -14
  371. data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js +0 -68
  372. data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js.map +0 -1
  373. data/node_modules/npm-check-updates/build/src/lib/keyValueBy.d.ts +0 -6
  374. data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js +0 -23
  375. data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js.map +0 -1
  376. data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.d.ts +0 -3
  377. data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +0 -108
  378. data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +0 -1
  379. data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.d.ts +0 -5
  380. data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js +0 -27
  381. data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js.map +0 -1
  382. data/node_modules/npm-check-updates/build/src/lib/logging.d.ts +0 -77
  383. data/node_modules/npm-check-updates/build/src/lib/logging.js +0 -287
  384. data/node_modules/npm-check-updates/build/src/lib/logging.js.map +0 -1
  385. data/node_modules/npm-check-updates/build/src/lib/mergeOptions.d.ts +0 -69
  386. data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js +0 -23
  387. data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js.map +0 -1
  388. data/node_modules/npm-check-updates/build/src/lib/programError.d.ts +0 -6
  389. data/node_modules/npm-check-updates/build/src/lib/programError.js +0 -19
  390. data/node_modules/npm-check-updates/build/src/lib/programError.js.map +0 -1
  391. data/node_modules/npm-check-updates/build/src/lib/queryVersions.d.ts +0 -13
  392. data/node_modules/npm-check-updates/build/src/lib/queryVersions.js +0 -118
  393. data/node_modules/npm-check-updates/build/src/lib/queryVersions.js.map +0 -1
  394. data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.d.ts +0 -4
  395. data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js +0 -20
  396. data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js.map +0 -1
  397. data/node_modules/npm-check-updates/build/src/lib/runGlobal.d.ts +0 -5
  398. data/node_modules/npm-check-updates/build/src/lib/runGlobal.js +0 -76
  399. data/node_modules/npm-check-updates/build/src/lib/runGlobal.js.map +0 -1
  400. data/node_modules/npm-check-updates/build/src/lib/runLocal.d.ts +0 -18
  401. data/node_modules/npm-check-updates/build/src/lib/runLocal.js +0 -239
  402. data/node_modules/npm-check-updates/build/src/lib/runLocal.js.map +0 -1
  403. data/node_modules/npm-check-updates/build/src/lib/table.d.ts +0 -7
  404. data/node_modules/npm-check-updates/build/src/lib/table.js +0 -27
  405. data/node_modules/npm-check-updates/build/src/lib/table.js.map +0 -1
  406. data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.d.ts +0 -14
  407. data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js +0 -103
  408. data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js.map +0 -1
  409. data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.d.ts +0 -14
  410. data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js +0 -50
  411. data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js.map +0 -1
  412. data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.d.ts +0 -13
  413. data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js +0 -58
  414. data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js.map +0 -1
  415. data/node_modules/npm-check-updates/build/src/lib/version-util.d.ts +0 -180
  416. data/node_modules/npm-check-updates/build/src/lib/version-util.js +0 -518
  417. data/node_modules/npm-check-updates/build/src/lib/version-util.js.map +0 -1
  418. data/node_modules/npm-check-updates/build/src/lib/wrap.d.ts +0 -3
  419. data/node_modules/npm-check-updates/build/src/lib/wrap.js +0 -45
  420. data/node_modules/npm-check-updates/build/src/lib/wrap.js.map +0 -1
  421. data/node_modules/npm-check-updates/build/src/package-managers/bun.d.ts +0 -18
  422. data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -89
  423. data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +0 -1
  424. data/node_modules/npm-check-updates/build/src/package-managers/filters.d.ts +0 -35
  425. data/node_modules/npm-check-updates/build/src/package-managers/filters.js +0 -96
  426. data/node_modules/npm-check-updates/build/src/package-managers/filters.js.map +0 -1
  427. data/node_modules/npm-check-updates/build/src/package-managers/gitTags.d.ts +0 -16
  428. data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js +0 -112
  429. data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js.map +0 -1
  430. data/node_modules/npm-check-updates/build/src/package-managers/index.d.ts +0 -4
  431. data/node_modules/npm-check-updates/build/src/package-managers/index.js +0 -40
  432. data/node_modules/npm-check-updates/build/src/package-managers/index.js.map +0 -1
  433. data/node_modules/npm-check-updates/build/src/package-managers/npm.d.ts +0 -147
  434. data/node_modules/npm-check-updates/build/src/package-managers/npm.js +0 -688
  435. data/node_modules/npm-check-updates/build/src/package-managers/npm.js.map +0 -1
  436. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.d.ts +0 -25
  437. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js +0 -103
  438. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js.map +0 -1
  439. data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.d.ts +0 -10
  440. data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js +0 -52
  441. data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js.map +0 -1
  442. data/node_modules/npm-check-updates/build/src/package-managers/yarn.d.ts +0 -60
  443. data/node_modules/npm-check-updates/build/src/package-managers/yarn.js +0 -248
  444. data/node_modules/npm-check-updates/build/src/package-managers/yarn.js.map +0 -1
  445. data/node_modules/npm-check-updates/build/src/scripts/build-options.d.ts +0 -1
  446. data/node_modules/npm-check-updates/build/src/scripts/build-options.js +0 -121
  447. data/node_modules/npm-check-updates/build/src/scripts/build-options.js.map +0 -1
  448. data/node_modules/npm-check-updates/build/src/types/CLIOption.d.ts +0 -16
  449. data/node_modules/npm-check-updates/build/src/types/CLIOption.js +0 -3
  450. data/node_modules/npm-check-updates/build/src/types/CLIOption.js.map +0 -1
  451. data/node_modules/npm-check-updates/build/src/types/Cacher.d.ts +0 -10
  452. data/node_modules/npm-check-updates/build/src/types/Cacher.js +0 -3
  453. data/node_modules/npm-check-updates/build/src/types/Cacher.js.map +0 -1
  454. data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.d.ts +0 -5
  455. data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js +0 -3
  456. data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js.map +0 -1
  457. data/node_modules/npm-check-updates/build/src/types/FilterFunction.d.ts +0 -3
  458. data/node_modules/npm-check-updates/build/src/types/FilterFunction.js +0 -3
  459. data/node_modules/npm-check-updates/build/src/types/FilterFunction.js.map +0 -1
  460. data/node_modules/npm-check-updates/build/src/types/FilterPattern.d.ts +0 -3
  461. data/node_modules/npm-check-updates/build/src/types/FilterPattern.js +0 -3
  462. data/node_modules/npm-check-updates/build/src/types/FilterPattern.js.map +0 -1
  463. data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.d.ts +0 -9
  464. data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js +0 -3
  465. data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js.map +0 -1
  466. data/node_modules/npm-check-updates/build/src/types/GetVersion.d.ts +0 -6
  467. data/node_modules/npm-check-updates/build/src/types/GetVersion.js +0 -3
  468. data/node_modules/npm-check-updates/build/src/types/GetVersion.js.map +0 -1
  469. data/node_modules/npm-check-updates/build/src/types/GroupFunction.d.ts +0 -4
  470. data/node_modules/npm-check-updates/build/src/types/GroupFunction.js +0 -3
  471. data/node_modules/npm-check-updates/build/src/types/GroupFunction.js.map +0 -1
  472. data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.d.ts +0 -8
  473. data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js +0 -3
  474. data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js.map +0 -1
  475. data/node_modules/npm-check-updates/build/src/types/IndexType.d.ts +0 -4
  476. data/node_modules/npm-check-updates/build/src/types/IndexType.js +0 -4
  477. data/node_modules/npm-check-updates/build/src/types/IndexType.js.map +0 -1
  478. data/node_modules/npm-check-updates/build/src/types/Maybe.d.ts +0 -2
  479. data/node_modules/npm-check-updates/build/src/types/Maybe.js +0 -3
  480. data/node_modules/npm-check-updates/build/src/types/Maybe.js.map +0 -1
  481. data/node_modules/npm-check-updates/build/src/types/MockedVersions.d.ts +0 -5
  482. data/node_modules/npm-check-updates/build/src/types/MockedVersions.js +0 -3
  483. data/node_modules/npm-check-updates/build/src/types/MockedVersions.js.map +0 -1
  484. data/node_modules/npm-check-updates/build/src/types/NpmConfig.d.ts +0 -4
  485. data/node_modules/npm-check-updates/build/src/types/NpmConfig.js +0 -3
  486. data/node_modules/npm-check-updates/build/src/types/NpmConfig.js.map +0 -1
  487. data/node_modules/npm-check-updates/build/src/types/NpmOptions.d.ts +0 -6
  488. data/node_modules/npm-check-updates/build/src/types/NpmOptions.js +0 -3
  489. data/node_modules/npm-check-updates/build/src/types/NpmOptions.js.map +0 -1
  490. data/node_modules/npm-check-updates/build/src/types/Options.d.ts +0 -17
  491. data/node_modules/npm-check-updates/build/src/types/Options.js +0 -3
  492. data/node_modules/npm-check-updates/build/src/types/Options.js.map +0 -1
  493. data/node_modules/npm-check-updates/build/src/types/PackageFile.d.ts +0 -24
  494. data/node_modules/npm-check-updates/build/src/types/PackageFile.js +0 -3
  495. data/node_modules/npm-check-updates/build/src/types/PackageFile.js.map +0 -1
  496. data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.d.ts +0 -5
  497. data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js +0 -3
  498. data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js.map +0 -1
  499. data/node_modules/npm-check-updates/build/src/types/PackageInfo.d.ts +0 -8
  500. data/node_modules/npm-check-updates/build/src/types/PackageInfo.js +0 -3
  501. data/node_modules/npm-check-updates/build/src/types/PackageInfo.js.map +0 -1
  502. data/node_modules/npm-check-updates/build/src/types/PackageManager.d.ts +0 -18
  503. data/node_modules/npm-check-updates/build/src/types/PackageManager.js +0 -3
  504. data/node_modules/npm-check-updates/build/src/types/PackageManager.js.map +0 -1
  505. data/node_modules/npm-check-updates/build/src/types/PackageManagerName.d.ts +0 -2
  506. data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js +0 -3
  507. data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js.map +0 -1
  508. data/node_modules/npm-check-updates/build/src/types/Packument.d.ts +0 -13
  509. data/node_modules/npm-check-updates/build/src/types/Packument.js +0 -3
  510. data/node_modules/npm-check-updates/build/src/types/Packument.js.map +0 -1
  511. data/node_modules/npm-check-updates/build/src/types/RunOptions.d.ts +0 -137
  512. data/node_modules/npm-check-updates/build/src/types/RunOptions.js +0 -3
  513. data/node_modules/npm-check-updates/build/src/types/RunOptions.js.map +0 -1
  514. data/node_modules/npm-check-updates/build/src/types/SpawnOptions.d.ts +0 -6
  515. data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js +0 -3
  516. data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js.map +0 -1
  517. data/node_modules/npm-check-updates/build/src/types/StaticRegistry.d.ts +0 -4
  518. data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js +0 -3
  519. data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js.map +0 -1
  520. data/node_modules/npm-check-updates/build/src/types/Target.d.ts +0 -9
  521. data/node_modules/npm-check-updates/build/src/types/Target.js +0 -6
  522. data/node_modules/npm-check-updates/build/src/types/Target.js.map +0 -1
  523. data/node_modules/npm-check-updates/build/src/types/TargetFunction.d.ts +0 -3
  524. data/node_modules/npm-check-updates/build/src/types/TargetFunction.js +0 -3
  525. data/node_modules/npm-check-updates/build/src/types/TargetFunction.js.map +0 -1
  526. data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.d.ts +0 -1
  527. data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js +0 -3
  528. data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js.map +0 -1
  529. data/node_modules/npm-check-updates/build/src/types/Version.d.ts +0 -2
  530. data/node_modules/npm-check-updates/build/src/types/Version.js +0 -3
  531. data/node_modules/npm-check-updates/build/src/types/Version.js.map +0 -1
  532. data/node_modules/npm-check-updates/build/src/types/VersionLevel.d.ts +0 -2
  533. data/node_modules/npm-check-updates/build/src/types/VersionLevel.js +0 -3
  534. data/node_modules/npm-check-updates/build/src/types/VersionLevel.js.map +0 -1
  535. data/node_modules/npm-check-updates/build/src/types/VersionResult.d.ts +0 -7
  536. data/node_modules/npm-check-updates/build/src/types/VersionResult.js +0 -3
  537. data/node_modules/npm-check-updates/build/src/types/VersionResult.js.map +0 -1
  538. data/node_modules/npm-check-updates/build/src/types/VersionSpec.d.ts +0 -2
  539. data/node_modules/npm-check-updates/build/src/types/VersionSpec.js +0 -3
  540. data/node_modules/npm-check-updates/build/src/types/VersionSpec.js.map +0 -1
  541. data/node_modules/npm-check-updates/node_modules/chalk/license +0 -9
  542. data/node_modules/npm-check-updates/node_modules/chalk/package.json +0 -83
  543. data/node_modules/npm-check-updates/node_modules/chalk/readme.md +0 -325
  544. data/node_modules/npm-check-updates/node_modules/chalk/source/index.d.ts +0 -320
  545. data/node_modules/npm-check-updates/node_modules/chalk/source/index.js +0 -225
  546. data/node_modules/npm-check-updates/node_modules/chalk/source/utilities.js +0 -33
  547. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  548. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  549. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  550. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  551. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  552. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  553. data/node_modules/npm-check-updates/node_modules/minimatch/LICENSE +0 -15
  554. data/node_modules/npm-check-updates/node_modules/minimatch/README.md +0 -454
  555. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  556. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  557. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  558. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  559. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  560. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  561. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js +0 -589
  562. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  563. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  564. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  565. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  566. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  567. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  568. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  569. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js +0 -22
  570. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  571. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  572. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  573. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js +0 -1011
  574. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  575. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/package.json +0 -3
  576. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  577. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  578. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  579. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  580. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  581. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  582. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  583. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  584. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  585. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  586. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js +0 -585
  587. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  588. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  589. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  590. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  591. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  592. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  593. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  594. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js +0 -18
  595. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  596. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  597. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  598. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js +0 -995
  599. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  600. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/package.json +0 -3
  601. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  602. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  603. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  604. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  605. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  606. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
  607. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
  608. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
  609. data/node_modules/npm-check-updates/node_modules/minimatch/package.json +0 -86
  610. data/node_modules/npm-check-updates/node_modules/strip-ansi/index.d.ts +0 -15
  611. data/node_modules/npm-check-updates/node_modules/strip-ansi/index.js +0 -14
  612. data/node_modules/npm-check-updates/node_modules/strip-ansi/license +0 -9
  613. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -33
  614. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -8
  615. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
  616. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -58
  617. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -72
  618. data/node_modules/npm-check-updates/node_modules/strip-ansi/package.json +0 -57
  619. data/node_modules/npm-check-updates/node_modules/strip-ansi/readme.md +0 -41
  620. data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
  621. data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
  622. data/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
  623. data/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
  624. data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
  625. data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
  626. data/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
  627. data/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
  628. data/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
  629. data/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
  630. data/node_modules/rimraf/dist/commonjs/fs.js +0 -46
  631. data/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
  632. data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
  633. data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
  634. data/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
  635. data/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
  636. data/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
  637. data/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
  638. data/node_modules/rimraf/dist/commonjs/index.js +0 -76
  639. data/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
  640. data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -35
  641. data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
  642. data/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
  643. data/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
  644. data/node_modules/rimraf/dist/commonjs/package.json +0 -1
  645. data/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
  646. data/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
  647. data/node_modules/rimraf/dist/commonjs/path-arg.js +0 -54
  648. data/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
  649. data/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
  650. data/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
  651. data/node_modules/rimraf/dist/commonjs/platform.js +0 -4
  652. data/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
  653. data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -5
  654. data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
  655. data/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
  656. data/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
  657. data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
  658. data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
  659. data/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
  660. data/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
  661. data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
  662. data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
  663. data/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
  664. data/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
  665. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
  666. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
  667. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
  668. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
  669. data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
  670. data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
  671. data/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
  672. data/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
  673. data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
  674. data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
  675. data/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
  676. data/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
  677. data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
  678. data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
  679. data/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
  680. data/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
  681. data/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
  682. data/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
  683. data/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
  684. data/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
  685. data/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
  686. data/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
  687. data/node_modules/rimraf/dist/esm/bin.mjs +0 -256
  688. data/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
  689. data/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
  690. data/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
  691. data/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
  692. data/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
  693. data/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
  694. data/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
  695. data/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
  696. data/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
  697. data/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
  698. data/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
  699. data/node_modules/rimraf/dist/esm/fs.js +0 -31
  700. data/node_modules/rimraf/dist/esm/fs.js.map +0 -1
  701. data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
  702. data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
  703. data/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
  704. data/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
  705. data/node_modules/rimraf/dist/esm/index.d.ts +0 -50
  706. data/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
  707. data/node_modules/rimraf/dist/esm/index.js +0 -68
  708. data/node_modules/rimraf/dist/esm/index.js.map +0 -1
  709. data/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -35
  710. data/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
  711. data/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
  712. data/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
  713. data/node_modules/rimraf/dist/esm/package.json +0 -1
  714. data/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
  715. data/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
  716. data/node_modules/rimraf/dist/esm/path-arg.js +0 -49
  717. data/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
  718. data/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
  719. data/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
  720. data/node_modules/rimraf/dist/esm/platform.js +0 -2
  721. data/node_modules/rimraf/dist/esm/platform.js.map +0 -1
  722. data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -5
  723. data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
  724. data/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
  725. data/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
  726. data/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
  727. data/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
  728. data/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
  729. data/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
  730. data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
  731. data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
  732. data/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
  733. data/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
  734. data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
  735. data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
  736. data/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
  737. data/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
  738. data/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
  739. data/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
  740. data/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
  741. data/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
  742. data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
  743. data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
  744. data/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
  745. data/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
  746. data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
  747. data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
  748. data/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
  749. data/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
  750. data/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
  751. data/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
  752. data/node_modules/rimraf/dist/esm/use-native.js +0 -16
  753. data/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
  754. data/node_modules/semver/classes/comparator.js +0 -141
  755. data/node_modules/semver/classes/index.js +0 -5
  756. data/node_modules/semver/classes/range.js +0 -539
  757. data/node_modules/semver/classes/semver.js +0 -302
  758. data/node_modules/semver/functions/clean.js +0 -6
  759. data/node_modules/semver/functions/cmp.js +0 -52
  760. data/node_modules/semver/functions/coerce.js +0 -52
  761. data/node_modules/semver/functions/compare-build.js +0 -7
  762. data/node_modules/semver/functions/compare-loose.js +0 -3
  763. data/node_modules/semver/functions/compare.js +0 -5
  764. data/node_modules/semver/functions/diff.js +0 -65
  765. data/node_modules/semver/functions/eq.js +0 -3
  766. data/node_modules/semver/functions/gt.js +0 -3
  767. data/node_modules/semver/functions/gte.js +0 -3
  768. data/node_modules/semver/functions/inc.js +0 -19
  769. data/node_modules/semver/functions/lt.js +0 -3
  770. data/node_modules/semver/functions/lte.js +0 -3
  771. data/node_modules/semver/functions/major.js +0 -3
  772. data/node_modules/semver/functions/minor.js +0 -3
  773. data/node_modules/semver/functions/neq.js +0 -3
  774. data/node_modules/semver/functions/parse.js +0 -16
  775. data/node_modules/semver/functions/patch.js +0 -3
  776. data/node_modules/semver/functions/prerelease.js +0 -6
  777. data/node_modules/semver/functions/rcompare.js +0 -3
  778. data/node_modules/semver/functions/rsort.js +0 -3
  779. data/node_modules/semver/functions/satisfies.js +0 -10
  780. data/node_modules/semver/functions/sort.js +0 -3
  781. data/node_modules/semver/functions/valid.js +0 -6
  782. data/node_modules/semver/index.js +0 -89
  783. data/node_modules/semver/internal/constants.js +0 -35
  784. data/node_modules/semver/internal/debug.js +0 -9
  785. data/node_modules/semver/internal/identifiers.js +0 -23
  786. data/node_modules/semver/internal/parse-options.js +0 -15
  787. data/node_modules/semver/internal/re.js +0 -212
  788. data/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
  789. data/node_modules/semver/node_modules/lru-cache/README.md +0 -166
  790. data/node_modules/semver/node_modules/lru-cache/index.js +0 -334
  791. data/node_modules/semver/node_modules/lru-cache/package.json +0 -34
  792. data/node_modules/semver/preload.js +0 -2
  793. data/node_modules/semver/ranges/gtr.js +0 -4
  794. data/node_modules/semver/ranges/intersects.js +0 -7
  795. data/node_modules/semver/ranges/ltr.js +0 -4
  796. data/node_modules/semver/ranges/max-satisfying.js +0 -25
  797. data/node_modules/semver/ranges/min-satisfying.js +0 -24
  798. data/node_modules/semver/ranges/min-version.js +0 -61
  799. data/node_modules/semver/ranges/outside.js +0 -80
  800. data/node_modules/semver/ranges/simplify.js +0 -47
  801. data/node_modules/semver/ranges/subset.js +0 -247
  802. data/node_modules/semver/ranges/to-comparators.js +0 -8
  803. data/node_modules/semver/ranges/valid.js +0 -11
  804. /data/node_modules/{eslint/node_modules/chalk → chalk}/index.d.ts +0 -0
  805. /data/node_modules/{eslint/node_modules/chalk → chalk}/source/templates.js +0 -0
  806. /data/node_modules/{eslint/node_modules/chalk → chalk}/source/util.js +0 -0
  807. /data/node_modules/{@eslint/config-array/node_modules/minimatch → minimatch}/minimatch.js +0 -0
@@ -0,0 +1,1643 @@
1
+ exports = module.exports = SemVer
2
+
3
+ var debug
4
+ /* istanbul ignore next */
5
+ if (typeof process === 'object' &&
6
+ process.env &&
7
+ process.env.NODE_DEBUG &&
8
+ /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
9
+ debug = function () {
10
+ var args = Array.prototype.slice.call(arguments, 0)
11
+ args.unshift('SEMVER')
12
+ console.log.apply(console, args)
13
+ }
14
+ } else {
15
+ debug = function () {}
16
+ }
17
+
18
+ // Note: this is the semver.org version of the spec that it implements
19
+ // Not necessarily the package version of this code.
20
+ exports.SEMVER_SPEC_VERSION = '2.0.0'
21
+
22
+ var MAX_LENGTH = 256
23
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
24
+ /* istanbul ignore next */ 9007199254740991
25
+
26
+ // Max safe segment length for coercion.
27
+ var MAX_SAFE_COMPONENT_LENGTH = 16
28
+
29
+ var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6
30
+
31
+ // The actual regexps go on exports.re
32
+ var re = exports.re = []
33
+ var safeRe = exports.safeRe = []
34
+ var src = exports.src = []
35
+ var t = exports.tokens = {}
36
+ var R = 0
37
+
38
+ function tok (n) {
39
+ t[n] = R++
40
+ }
41
+
42
+ var LETTERDASHNUMBER = '[a-zA-Z0-9-]'
43
+
44
+ // Replace some greedy regex tokens to prevent regex dos issues. These regex are
45
+ // used internally via the safeRe object since all inputs in this library get
46
+ // normalized first to trim and collapse all extra whitespace. The original
47
+ // regexes are exported for userland consumption and lower level usage. A
48
+ // future breaking change could export the safer regex only with a note that
49
+ // all input should have extra whitespace removed.
50
+ var safeRegexReplacements = [
51
+ ['\\s', 1],
52
+ ['\\d', MAX_LENGTH],
53
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
54
+ ]
55
+
56
+ function makeSafeRe (value) {
57
+ for (var i = 0; i < safeRegexReplacements.length; i++) {
58
+ var token = safeRegexReplacements[i][0]
59
+ var max = safeRegexReplacements[i][1]
60
+ value = value
61
+ .split(token + '*').join(token + '{0,' + max + '}')
62
+ .split(token + '+').join(token + '{1,' + max + '}')
63
+ }
64
+ return value
65
+ }
66
+
67
+ // The following Regular Expressions can be used for tokenizing,
68
+ // validating, and parsing SemVer version strings.
69
+
70
+ // ## Numeric Identifier
71
+ // A single `0`, or a non-zero digit followed by zero or more digits.
72
+
73
+ tok('NUMERICIDENTIFIER')
74
+ src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
75
+ tok('NUMERICIDENTIFIERLOOSE')
76
+ src[t.NUMERICIDENTIFIERLOOSE] = '\\d+'
77
+
78
+ // ## Non-numeric Identifier
79
+ // Zero or more digits, followed by a letter or hyphen, and then zero or
80
+ // more letters, digits, or hyphens.
81
+
82
+ tok('NONNUMERICIDENTIFIER')
83
+ src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'
84
+
85
+ // ## Main Version
86
+ // Three dot-separated numeric identifiers.
87
+
88
+ tok('MAINVERSION')
89
+ src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
90
+ '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
91
+ '(' + src[t.NUMERICIDENTIFIER] + ')'
92
+
93
+ tok('MAINVERSIONLOOSE')
94
+ src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
95
+ '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
96
+ '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
97
+
98
+ // ## Pre-release Version Identifier
99
+ // A numeric identifier, or a non-numeric identifier.
100
+
101
+ tok('PRERELEASEIDENTIFIER')
102
+ src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
103
+ '|' + src[t.NONNUMERICIDENTIFIER] + ')'
104
+
105
+ tok('PRERELEASEIDENTIFIERLOOSE')
106
+ src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
107
+ '|' + src[t.NONNUMERICIDENTIFIER] + ')'
108
+
109
+ // ## Pre-release Version
110
+ // Hyphen, followed by one or more dot-separated pre-release version
111
+ // identifiers.
112
+
113
+ tok('PRERELEASE')
114
+ src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
115
+ '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
116
+
117
+ tok('PRERELEASELOOSE')
118
+ src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
119
+ '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
120
+
121
+ // ## Build Metadata Identifier
122
+ // Any combination of digits, letters, or hyphens.
123
+
124
+ tok('BUILDIDENTIFIER')
125
+ src[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'
126
+
127
+ // ## Build Metadata
128
+ // Plus sign, followed by one or more period-separated build metadata
129
+ // identifiers.
130
+
131
+ tok('BUILD')
132
+ src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
133
+ '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
134
+
135
+ // ## Full Version String
136
+ // A main version, followed optionally by a pre-release version and
137
+ // build metadata.
138
+
139
+ // Note that the only major, minor, patch, and pre-release sections of
140
+ // the version string are capturing groups. The build metadata is not a
141
+ // capturing group, because it should not ever be used in version
142
+ // comparison.
143
+
144
+ tok('FULL')
145
+ tok('FULLPLAIN')
146
+ src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
147
+ src[t.PRERELEASE] + '?' +
148
+ src[t.BUILD] + '?'
149
+
150
+ src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
151
+
152
+ // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
153
+ // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
154
+ // common in the npm registry.
155
+ tok('LOOSEPLAIN')
156
+ src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
157
+ src[t.PRERELEASELOOSE] + '?' +
158
+ src[t.BUILD] + '?'
159
+
160
+ tok('LOOSE')
161
+ src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
162
+
163
+ tok('GTLT')
164
+ src[t.GTLT] = '((?:<|>)?=?)'
165
+
166
+ // Something like "2.*" or "1.2.x".
167
+ // Note that "x.x" is a valid xRange identifer, meaning "any version"
168
+ // Only the first item is strictly required.
169
+ tok('XRANGEIDENTIFIERLOOSE')
170
+ src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
171
+ tok('XRANGEIDENTIFIER')
172
+ src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
173
+
174
+ tok('XRANGEPLAIN')
175
+ src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
176
+ '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
177
+ '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
178
+ '(?:' + src[t.PRERELEASE] + ')?' +
179
+ src[t.BUILD] + '?' +
180
+ ')?)?'
181
+
182
+ tok('XRANGEPLAINLOOSE')
183
+ src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
184
+ '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
185
+ '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
186
+ '(?:' + src[t.PRERELEASELOOSE] + ')?' +
187
+ src[t.BUILD] + '?' +
188
+ ')?)?'
189
+
190
+ tok('XRANGE')
191
+ src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
192
+ tok('XRANGELOOSE')
193
+ src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
194
+
195
+ // Coercion.
196
+ // Extract anything that could conceivably be a part of a valid semver
197
+ tok('COERCE')
198
+ src[t.COERCE] = '(^|[^\\d])' +
199
+ '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
200
+ '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
201
+ '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
202
+ '(?:$|[^\\d])'
203
+ tok('COERCERTL')
204
+ re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
205
+ safeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')
206
+
207
+ // Tilde ranges.
208
+ // Meaning is "reasonably at or greater than"
209
+ tok('LONETILDE')
210
+ src[t.LONETILDE] = '(?:~>?)'
211
+
212
+ tok('TILDETRIM')
213
+ src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
214
+ re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
215
+ safeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')
216
+ var tildeTrimReplace = '$1~'
217
+
218
+ tok('TILDE')
219
+ src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
220
+ tok('TILDELOOSE')
221
+ src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
222
+
223
+ // Caret ranges.
224
+ // Meaning is "at least and backwards compatible with"
225
+ tok('LONECARET')
226
+ src[t.LONECARET] = '(?:\\^)'
227
+
228
+ tok('CARETTRIM')
229
+ src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
230
+ re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
231
+ safeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')
232
+ var caretTrimReplace = '$1^'
233
+
234
+ tok('CARET')
235
+ src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
236
+ tok('CARETLOOSE')
237
+ src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
238
+
239
+ // A simple gt/lt/eq thing, or just "" to indicate "any version"
240
+ tok('COMPARATORLOOSE')
241
+ src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
242
+ tok('COMPARATOR')
243
+ src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
244
+
245
+ // An expression to strip any whitespace between the gtlt and the thing
246
+ // it modifies, so that `> 1.2.3` ==> `>1.2.3`
247
+ tok('COMPARATORTRIM')
248
+ src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
249
+ '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
250
+
251
+ // this one has to use the /g flag
252
+ re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
253
+ safeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')
254
+ var comparatorTrimReplace = '$1$2$3'
255
+
256
+ // Something like `1.2.3 - 1.2.4`
257
+ // Note that these all use the loose form, because they'll be
258
+ // checked against either the strict or loose comparator form
259
+ // later.
260
+ tok('HYPHENRANGE')
261
+ src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
262
+ '\\s+-\\s+' +
263
+ '(' + src[t.XRANGEPLAIN] + ')' +
264
+ '\\s*$'
265
+
266
+ tok('HYPHENRANGELOOSE')
267
+ src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
268
+ '\\s+-\\s+' +
269
+ '(' + src[t.XRANGEPLAINLOOSE] + ')' +
270
+ '\\s*$'
271
+
272
+ // Star ranges basically just allow anything at all.
273
+ tok('STAR')
274
+ src[t.STAR] = '(<|>)?=?\\s*\\*'
275
+
276
+ // Compile to actual regexp objects.
277
+ // All are flag-free, unless they were created above with a flag.
278
+ for (var i = 0; i < R; i++) {
279
+ debug(i, src[i])
280
+ if (!re[i]) {
281
+ re[i] = new RegExp(src[i])
282
+
283
+ // Replace all greedy whitespace to prevent regex dos issues. These regex are
284
+ // used internally via the safeRe object since all inputs in this library get
285
+ // normalized first to trim and collapse all extra whitespace. The original
286
+ // regexes are exported for userland consumption and lower level usage. A
287
+ // future breaking change could export the safer regex only with a note that
288
+ // all input should have extra whitespace removed.
289
+ safeRe[i] = new RegExp(makeSafeRe(src[i]))
290
+ }
291
+ }
292
+
293
+ exports.parse = parse
294
+ function parse (version, options) {
295
+ if (!options || typeof options !== 'object') {
296
+ options = {
297
+ loose: !!options,
298
+ includePrerelease: false
299
+ }
300
+ }
301
+
302
+ if (version instanceof SemVer) {
303
+ return version
304
+ }
305
+
306
+ if (typeof version !== 'string') {
307
+ return null
308
+ }
309
+
310
+ if (version.length > MAX_LENGTH) {
311
+ return null
312
+ }
313
+
314
+ var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]
315
+ if (!r.test(version)) {
316
+ return null
317
+ }
318
+
319
+ try {
320
+ return new SemVer(version, options)
321
+ } catch (er) {
322
+ return null
323
+ }
324
+ }
325
+
326
+ exports.valid = valid
327
+ function valid (version, options) {
328
+ var v = parse(version, options)
329
+ return v ? v.version : null
330
+ }
331
+
332
+ exports.clean = clean
333
+ function clean (version, options) {
334
+ var s = parse(version.trim().replace(/^[=v]+/, ''), options)
335
+ return s ? s.version : null
336
+ }
337
+
338
+ exports.SemVer = SemVer
339
+
340
+ function SemVer (version, options) {
341
+ if (!options || typeof options !== 'object') {
342
+ options = {
343
+ loose: !!options,
344
+ includePrerelease: false
345
+ }
346
+ }
347
+ if (version instanceof SemVer) {
348
+ if (version.loose === options.loose) {
349
+ return version
350
+ } else {
351
+ version = version.version
352
+ }
353
+ } else if (typeof version !== 'string') {
354
+ throw new TypeError('Invalid Version: ' + version)
355
+ }
356
+
357
+ if (version.length > MAX_LENGTH) {
358
+ throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
359
+ }
360
+
361
+ if (!(this instanceof SemVer)) {
362
+ return new SemVer(version, options)
363
+ }
364
+
365
+ debug('SemVer', version, options)
366
+ this.options = options
367
+ this.loose = !!options.loose
368
+
369
+ var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])
370
+
371
+ if (!m) {
372
+ throw new TypeError('Invalid Version: ' + version)
373
+ }
374
+
375
+ this.raw = version
376
+
377
+ // these are actually numbers
378
+ this.major = +m[1]
379
+ this.minor = +m[2]
380
+ this.patch = +m[3]
381
+
382
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
383
+ throw new TypeError('Invalid major version')
384
+ }
385
+
386
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
387
+ throw new TypeError('Invalid minor version')
388
+ }
389
+
390
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
391
+ throw new TypeError('Invalid patch version')
392
+ }
393
+
394
+ // numberify any prerelease numeric ids
395
+ if (!m[4]) {
396
+ this.prerelease = []
397
+ } else {
398
+ this.prerelease = m[4].split('.').map(function (id) {
399
+ if (/^[0-9]+$/.test(id)) {
400
+ var num = +id
401
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
402
+ return num
403
+ }
404
+ }
405
+ return id
406
+ })
407
+ }
408
+
409
+ this.build = m[5] ? m[5].split('.') : []
410
+ this.format()
411
+ }
412
+
413
+ SemVer.prototype.format = function () {
414
+ this.version = this.major + '.' + this.minor + '.' + this.patch
415
+ if (this.prerelease.length) {
416
+ this.version += '-' + this.prerelease.join('.')
417
+ }
418
+ return this.version
419
+ }
420
+
421
+ SemVer.prototype.toString = function () {
422
+ return this.version
423
+ }
424
+
425
+ SemVer.prototype.compare = function (other) {
426
+ debug('SemVer.compare', this.version, this.options, other)
427
+ if (!(other instanceof SemVer)) {
428
+ other = new SemVer(other, this.options)
429
+ }
430
+
431
+ return this.compareMain(other) || this.comparePre(other)
432
+ }
433
+
434
+ SemVer.prototype.compareMain = function (other) {
435
+ if (!(other instanceof SemVer)) {
436
+ other = new SemVer(other, this.options)
437
+ }
438
+
439
+ return compareIdentifiers(this.major, other.major) ||
440
+ compareIdentifiers(this.minor, other.minor) ||
441
+ compareIdentifiers(this.patch, other.patch)
442
+ }
443
+
444
+ SemVer.prototype.comparePre = function (other) {
445
+ if (!(other instanceof SemVer)) {
446
+ other = new SemVer(other, this.options)
447
+ }
448
+
449
+ // NOT having a prerelease is > having one
450
+ if (this.prerelease.length && !other.prerelease.length) {
451
+ return -1
452
+ } else if (!this.prerelease.length && other.prerelease.length) {
453
+ return 1
454
+ } else if (!this.prerelease.length && !other.prerelease.length) {
455
+ return 0
456
+ }
457
+
458
+ var i = 0
459
+ do {
460
+ var a = this.prerelease[i]
461
+ var b = other.prerelease[i]
462
+ debug('prerelease compare', i, a, b)
463
+ if (a === undefined && b === undefined) {
464
+ return 0
465
+ } else if (b === undefined) {
466
+ return 1
467
+ } else if (a === undefined) {
468
+ return -1
469
+ } else if (a === b) {
470
+ continue
471
+ } else {
472
+ return compareIdentifiers(a, b)
473
+ }
474
+ } while (++i)
475
+ }
476
+
477
+ SemVer.prototype.compareBuild = function (other) {
478
+ if (!(other instanceof SemVer)) {
479
+ other = new SemVer(other, this.options)
480
+ }
481
+
482
+ var i = 0
483
+ do {
484
+ var a = this.build[i]
485
+ var b = other.build[i]
486
+ debug('prerelease compare', i, a, b)
487
+ if (a === undefined && b === undefined) {
488
+ return 0
489
+ } else if (b === undefined) {
490
+ return 1
491
+ } else if (a === undefined) {
492
+ return -1
493
+ } else if (a === b) {
494
+ continue
495
+ } else {
496
+ return compareIdentifiers(a, b)
497
+ }
498
+ } while (++i)
499
+ }
500
+
501
+ // preminor will bump the version up to the next minor release, and immediately
502
+ // down to pre-release. premajor and prepatch work the same way.
503
+ SemVer.prototype.inc = function (release, identifier) {
504
+ switch (release) {
505
+ case 'premajor':
506
+ this.prerelease.length = 0
507
+ this.patch = 0
508
+ this.minor = 0
509
+ this.major++
510
+ this.inc('pre', identifier)
511
+ break
512
+ case 'preminor':
513
+ this.prerelease.length = 0
514
+ this.patch = 0
515
+ this.minor++
516
+ this.inc('pre', identifier)
517
+ break
518
+ case 'prepatch':
519
+ // If this is already a prerelease, it will bump to the next version
520
+ // drop any prereleases that might already exist, since they are not
521
+ // relevant at this point.
522
+ this.prerelease.length = 0
523
+ this.inc('patch', identifier)
524
+ this.inc('pre', identifier)
525
+ break
526
+ // If the input is a non-prerelease version, this acts the same as
527
+ // prepatch.
528
+ case 'prerelease':
529
+ if (this.prerelease.length === 0) {
530
+ this.inc('patch', identifier)
531
+ }
532
+ this.inc('pre', identifier)
533
+ break
534
+
535
+ case 'major':
536
+ // If this is a pre-major version, bump up to the same major version.
537
+ // Otherwise increment major.
538
+ // 1.0.0-5 bumps to 1.0.0
539
+ // 1.1.0 bumps to 2.0.0
540
+ if (this.minor !== 0 ||
541
+ this.patch !== 0 ||
542
+ this.prerelease.length === 0) {
543
+ this.major++
544
+ }
545
+ this.minor = 0
546
+ this.patch = 0
547
+ this.prerelease = []
548
+ break
549
+ case 'minor':
550
+ // If this is a pre-minor version, bump up to the same minor version.
551
+ // Otherwise increment minor.
552
+ // 1.2.0-5 bumps to 1.2.0
553
+ // 1.2.1 bumps to 1.3.0
554
+ if (this.patch !== 0 || this.prerelease.length === 0) {
555
+ this.minor++
556
+ }
557
+ this.patch = 0
558
+ this.prerelease = []
559
+ break
560
+ case 'patch':
561
+ // If this is not a pre-release version, it will increment the patch.
562
+ // If it is a pre-release it will bump up to the same patch version.
563
+ // 1.2.0-5 patches to 1.2.0
564
+ // 1.2.0 patches to 1.2.1
565
+ if (this.prerelease.length === 0) {
566
+ this.patch++
567
+ }
568
+ this.prerelease = []
569
+ break
570
+ // This probably shouldn't be used publicly.
571
+ // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
572
+ case 'pre':
573
+ if (this.prerelease.length === 0) {
574
+ this.prerelease = [0]
575
+ } else {
576
+ var i = this.prerelease.length
577
+ while (--i >= 0) {
578
+ if (typeof this.prerelease[i] === 'number') {
579
+ this.prerelease[i]++
580
+ i = -2
581
+ }
582
+ }
583
+ if (i === -1) {
584
+ // didn't increment anything
585
+ this.prerelease.push(0)
586
+ }
587
+ }
588
+ if (identifier) {
589
+ // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
590
+ // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
591
+ if (this.prerelease[0] === identifier) {
592
+ if (isNaN(this.prerelease[1])) {
593
+ this.prerelease = [identifier, 0]
594
+ }
595
+ } else {
596
+ this.prerelease = [identifier, 0]
597
+ }
598
+ }
599
+ break
600
+
601
+ default:
602
+ throw new Error('invalid increment argument: ' + release)
603
+ }
604
+ this.format()
605
+ this.raw = this.version
606
+ return this
607
+ }
608
+
609
+ exports.inc = inc
610
+ function inc (version, release, loose, identifier) {
611
+ if (typeof (loose) === 'string') {
612
+ identifier = loose
613
+ loose = undefined
614
+ }
615
+
616
+ try {
617
+ return new SemVer(version, loose).inc(release, identifier).version
618
+ } catch (er) {
619
+ return null
620
+ }
621
+ }
622
+
623
+ exports.diff = diff
624
+ function diff (version1, version2) {
625
+ if (eq(version1, version2)) {
626
+ return null
627
+ } else {
628
+ var v1 = parse(version1)
629
+ var v2 = parse(version2)
630
+ var prefix = ''
631
+ if (v1.prerelease.length || v2.prerelease.length) {
632
+ prefix = 'pre'
633
+ var defaultResult = 'prerelease'
634
+ }
635
+ for (var key in v1) {
636
+ if (key === 'major' || key === 'minor' || key === 'patch') {
637
+ if (v1[key] !== v2[key]) {
638
+ return prefix + key
639
+ }
640
+ }
641
+ }
642
+ return defaultResult // may be undefined
643
+ }
644
+ }
645
+
646
+ exports.compareIdentifiers = compareIdentifiers
647
+
648
+ var numeric = /^[0-9]+$/
649
+ function compareIdentifiers (a, b) {
650
+ var anum = numeric.test(a)
651
+ var bnum = numeric.test(b)
652
+
653
+ if (anum && bnum) {
654
+ a = +a
655
+ b = +b
656
+ }
657
+
658
+ return a === b ? 0
659
+ : (anum && !bnum) ? -1
660
+ : (bnum && !anum) ? 1
661
+ : a < b ? -1
662
+ : 1
663
+ }
664
+
665
+ exports.rcompareIdentifiers = rcompareIdentifiers
666
+ function rcompareIdentifiers (a, b) {
667
+ return compareIdentifiers(b, a)
668
+ }
669
+
670
+ exports.major = major
671
+ function major (a, loose) {
672
+ return new SemVer(a, loose).major
673
+ }
674
+
675
+ exports.minor = minor
676
+ function minor (a, loose) {
677
+ return new SemVer(a, loose).minor
678
+ }
679
+
680
+ exports.patch = patch
681
+ function patch (a, loose) {
682
+ return new SemVer(a, loose).patch
683
+ }
684
+
685
+ exports.compare = compare
686
+ function compare (a, b, loose) {
687
+ return new SemVer(a, loose).compare(new SemVer(b, loose))
688
+ }
689
+
690
+ exports.compareLoose = compareLoose
691
+ function compareLoose (a, b) {
692
+ return compare(a, b, true)
693
+ }
694
+
695
+ exports.compareBuild = compareBuild
696
+ function compareBuild (a, b, loose) {
697
+ var versionA = new SemVer(a, loose)
698
+ var versionB = new SemVer(b, loose)
699
+ return versionA.compare(versionB) || versionA.compareBuild(versionB)
700
+ }
701
+
702
+ exports.rcompare = rcompare
703
+ function rcompare (a, b, loose) {
704
+ return compare(b, a, loose)
705
+ }
706
+
707
+ exports.sort = sort
708
+ function sort (list, loose) {
709
+ return list.sort(function (a, b) {
710
+ return exports.compareBuild(a, b, loose)
711
+ })
712
+ }
713
+
714
+ exports.rsort = rsort
715
+ function rsort (list, loose) {
716
+ return list.sort(function (a, b) {
717
+ return exports.compareBuild(b, a, loose)
718
+ })
719
+ }
720
+
721
+ exports.gt = gt
722
+ function gt (a, b, loose) {
723
+ return compare(a, b, loose) > 0
724
+ }
725
+
726
+ exports.lt = lt
727
+ function lt (a, b, loose) {
728
+ return compare(a, b, loose) < 0
729
+ }
730
+
731
+ exports.eq = eq
732
+ function eq (a, b, loose) {
733
+ return compare(a, b, loose) === 0
734
+ }
735
+
736
+ exports.neq = neq
737
+ function neq (a, b, loose) {
738
+ return compare(a, b, loose) !== 0
739
+ }
740
+
741
+ exports.gte = gte
742
+ function gte (a, b, loose) {
743
+ return compare(a, b, loose) >= 0
744
+ }
745
+
746
+ exports.lte = lte
747
+ function lte (a, b, loose) {
748
+ return compare(a, b, loose) <= 0
749
+ }
750
+
751
+ exports.cmp = cmp
752
+ function cmp (a, op, b, loose) {
753
+ switch (op) {
754
+ case '===':
755
+ if (typeof a === 'object')
756
+ a = a.version
757
+ if (typeof b === 'object')
758
+ b = b.version
759
+ return a === b
760
+
761
+ case '!==':
762
+ if (typeof a === 'object')
763
+ a = a.version
764
+ if (typeof b === 'object')
765
+ b = b.version
766
+ return a !== b
767
+
768
+ case '':
769
+ case '=':
770
+ case '==':
771
+ return eq(a, b, loose)
772
+
773
+ case '!=':
774
+ return neq(a, b, loose)
775
+
776
+ case '>':
777
+ return gt(a, b, loose)
778
+
779
+ case '>=':
780
+ return gte(a, b, loose)
781
+
782
+ case '<':
783
+ return lt(a, b, loose)
784
+
785
+ case '<=':
786
+ return lte(a, b, loose)
787
+
788
+ default:
789
+ throw new TypeError('Invalid operator: ' + op)
790
+ }
791
+ }
792
+
793
+ exports.Comparator = Comparator
794
+ function Comparator (comp, options) {
795
+ if (!options || typeof options !== 'object') {
796
+ options = {
797
+ loose: !!options,
798
+ includePrerelease: false
799
+ }
800
+ }
801
+
802
+ if (comp instanceof Comparator) {
803
+ if (comp.loose === !!options.loose) {
804
+ return comp
805
+ } else {
806
+ comp = comp.value
807
+ }
808
+ }
809
+
810
+ if (!(this instanceof Comparator)) {
811
+ return new Comparator(comp, options)
812
+ }
813
+
814
+ comp = comp.trim().split(/\s+/).join(' ')
815
+ debug('comparator', comp, options)
816
+ this.options = options
817
+ this.loose = !!options.loose
818
+ this.parse(comp)
819
+
820
+ if (this.semver === ANY) {
821
+ this.value = ''
822
+ } else {
823
+ this.value = this.operator + this.semver.version
824
+ }
825
+
826
+ debug('comp', this)
827
+ }
828
+
829
+ var ANY = {}
830
+ Comparator.prototype.parse = function (comp) {
831
+ var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]
832
+ var m = comp.match(r)
833
+
834
+ if (!m) {
835
+ throw new TypeError('Invalid comparator: ' + comp)
836
+ }
837
+
838
+ this.operator = m[1] !== undefined ? m[1] : ''
839
+ if (this.operator === '=') {
840
+ this.operator = ''
841
+ }
842
+
843
+ // if it literally is just '>' or '' then allow anything.
844
+ if (!m[2]) {
845
+ this.semver = ANY
846
+ } else {
847
+ this.semver = new SemVer(m[2], this.options.loose)
848
+ }
849
+ }
850
+
851
+ Comparator.prototype.toString = function () {
852
+ return this.value
853
+ }
854
+
855
+ Comparator.prototype.test = function (version) {
856
+ debug('Comparator.test', version, this.options.loose)
857
+
858
+ if (this.semver === ANY || version === ANY) {
859
+ return true
860
+ }
861
+
862
+ if (typeof version === 'string') {
863
+ try {
864
+ version = new SemVer(version, this.options)
865
+ } catch (er) {
866
+ return false
867
+ }
868
+ }
869
+
870
+ return cmp(version, this.operator, this.semver, this.options)
871
+ }
872
+
873
+ Comparator.prototype.intersects = function (comp, options) {
874
+ if (!(comp instanceof Comparator)) {
875
+ throw new TypeError('a Comparator is required')
876
+ }
877
+
878
+ if (!options || typeof options !== 'object') {
879
+ options = {
880
+ loose: !!options,
881
+ includePrerelease: false
882
+ }
883
+ }
884
+
885
+ var rangeTmp
886
+
887
+ if (this.operator === '') {
888
+ if (this.value === '') {
889
+ return true
890
+ }
891
+ rangeTmp = new Range(comp.value, options)
892
+ return satisfies(this.value, rangeTmp, options)
893
+ } else if (comp.operator === '') {
894
+ if (comp.value === '') {
895
+ return true
896
+ }
897
+ rangeTmp = new Range(this.value, options)
898
+ return satisfies(comp.semver, rangeTmp, options)
899
+ }
900
+
901
+ var sameDirectionIncreasing =
902
+ (this.operator === '>=' || this.operator === '>') &&
903
+ (comp.operator === '>=' || comp.operator === '>')
904
+ var sameDirectionDecreasing =
905
+ (this.operator === '<=' || this.operator === '<') &&
906
+ (comp.operator === '<=' || comp.operator === '<')
907
+ var sameSemVer = this.semver.version === comp.semver.version
908
+ var differentDirectionsInclusive =
909
+ (this.operator === '>=' || this.operator === '<=') &&
910
+ (comp.operator === '>=' || comp.operator === '<=')
911
+ var oppositeDirectionsLessThan =
912
+ cmp(this.semver, '<', comp.semver, options) &&
913
+ ((this.operator === '>=' || this.operator === '>') &&
914
+ (comp.operator === '<=' || comp.operator === '<'))
915
+ var oppositeDirectionsGreaterThan =
916
+ cmp(this.semver, '>', comp.semver, options) &&
917
+ ((this.operator === '<=' || this.operator === '<') &&
918
+ (comp.operator === '>=' || comp.operator === '>'))
919
+
920
+ return sameDirectionIncreasing || sameDirectionDecreasing ||
921
+ (sameSemVer && differentDirectionsInclusive) ||
922
+ oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
923
+ }
924
+
925
+ exports.Range = Range
926
+ function Range (range, options) {
927
+ if (!options || typeof options !== 'object') {
928
+ options = {
929
+ loose: !!options,
930
+ includePrerelease: false
931
+ }
932
+ }
933
+
934
+ if (range instanceof Range) {
935
+ if (range.loose === !!options.loose &&
936
+ range.includePrerelease === !!options.includePrerelease) {
937
+ return range
938
+ } else {
939
+ return new Range(range.raw, options)
940
+ }
941
+ }
942
+
943
+ if (range instanceof Comparator) {
944
+ return new Range(range.value, options)
945
+ }
946
+
947
+ if (!(this instanceof Range)) {
948
+ return new Range(range, options)
949
+ }
950
+
951
+ this.options = options
952
+ this.loose = !!options.loose
953
+ this.includePrerelease = !!options.includePrerelease
954
+
955
+ // First reduce all whitespace as much as possible so we do not have to rely
956
+ // on potentially slow regexes like \s*. This is then stored and used for
957
+ // future error messages as well.
958
+ this.raw = range
959
+ .trim()
960
+ .split(/\s+/)
961
+ .join(' ')
962
+
963
+ // First, split based on boolean or ||
964
+ this.set = this.raw.split('||').map(function (range) {
965
+ return this.parseRange(range.trim())
966
+ }, this).filter(function (c) {
967
+ // throw out any that are not relevant for whatever reason
968
+ return c.length
969
+ })
970
+
971
+ if (!this.set.length) {
972
+ throw new TypeError('Invalid SemVer Range: ' + this.raw)
973
+ }
974
+
975
+ this.format()
976
+ }
977
+
978
+ Range.prototype.format = function () {
979
+ this.range = this.set.map(function (comps) {
980
+ return comps.join(' ').trim()
981
+ }).join('||').trim()
982
+ return this.range
983
+ }
984
+
985
+ Range.prototype.toString = function () {
986
+ return this.range
987
+ }
988
+
989
+ Range.prototype.parseRange = function (range) {
990
+ var loose = this.options.loose
991
+ // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
992
+ var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]
993
+ range = range.replace(hr, hyphenReplace)
994
+ debug('hyphen replace', range)
995
+ // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
996
+ range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)
997
+ debug('comparator trim', range, safeRe[t.COMPARATORTRIM])
998
+
999
+ // `~ 1.2.3` => `~1.2.3`
1000
+ range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)
1001
+
1002
+ // `^ 1.2.3` => `^1.2.3`
1003
+ range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)
1004
+
1005
+ // normalize spaces
1006
+ range = range.split(/\s+/).join(' ')
1007
+
1008
+ // At this point, the range is completely trimmed and
1009
+ // ready to be split into comparators.
1010
+
1011
+ var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]
1012
+ var set = range.split(' ').map(function (comp) {
1013
+ return parseComparator(comp, this.options)
1014
+ }, this).join(' ').split(/\s+/)
1015
+ if (this.options.loose) {
1016
+ // in loose mode, throw out any that are not valid comparators
1017
+ set = set.filter(function (comp) {
1018
+ return !!comp.match(compRe)
1019
+ })
1020
+ }
1021
+ set = set.map(function (comp) {
1022
+ return new Comparator(comp, this.options)
1023
+ }, this)
1024
+
1025
+ return set
1026
+ }
1027
+
1028
+ Range.prototype.intersects = function (range, options) {
1029
+ if (!(range instanceof Range)) {
1030
+ throw new TypeError('a Range is required')
1031
+ }
1032
+
1033
+ return this.set.some(function (thisComparators) {
1034
+ return (
1035
+ isSatisfiable(thisComparators, options) &&
1036
+ range.set.some(function (rangeComparators) {
1037
+ return (
1038
+ isSatisfiable(rangeComparators, options) &&
1039
+ thisComparators.every(function (thisComparator) {
1040
+ return rangeComparators.every(function (rangeComparator) {
1041
+ return thisComparator.intersects(rangeComparator, options)
1042
+ })
1043
+ })
1044
+ )
1045
+ })
1046
+ )
1047
+ })
1048
+ }
1049
+
1050
+ // take a set of comparators and determine whether there
1051
+ // exists a version which can satisfy it
1052
+ function isSatisfiable (comparators, options) {
1053
+ var result = true
1054
+ var remainingComparators = comparators.slice()
1055
+ var testComparator = remainingComparators.pop()
1056
+
1057
+ while (result && remainingComparators.length) {
1058
+ result = remainingComparators.every(function (otherComparator) {
1059
+ return testComparator.intersects(otherComparator, options)
1060
+ })
1061
+
1062
+ testComparator = remainingComparators.pop()
1063
+ }
1064
+
1065
+ return result
1066
+ }
1067
+
1068
+ // Mostly just for testing and legacy API reasons
1069
+ exports.toComparators = toComparators
1070
+ function toComparators (range, options) {
1071
+ return new Range(range, options).set.map(function (comp) {
1072
+ return comp.map(function (c) {
1073
+ return c.value
1074
+ }).join(' ').trim().split(' ')
1075
+ })
1076
+ }
1077
+
1078
+ // comprised of xranges, tildes, stars, and gtlt's at this point.
1079
+ // already replaced the hyphen ranges
1080
+ // turn into a set of JUST comparators.
1081
+ function parseComparator (comp, options) {
1082
+ debug('comp', comp, options)
1083
+ comp = replaceCarets(comp, options)
1084
+ debug('caret', comp)
1085
+ comp = replaceTildes(comp, options)
1086
+ debug('tildes', comp)
1087
+ comp = replaceXRanges(comp, options)
1088
+ debug('xrange', comp)
1089
+ comp = replaceStars(comp, options)
1090
+ debug('stars', comp)
1091
+ return comp
1092
+ }
1093
+
1094
+ function isX (id) {
1095
+ return !id || id.toLowerCase() === 'x' || id === '*'
1096
+ }
1097
+
1098
+ // ~, ~> --> * (any, kinda silly)
1099
+ // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
1100
+ // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
1101
+ // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
1102
+ // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
1103
+ // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
1104
+ function replaceTildes (comp, options) {
1105
+ return comp.trim().split(/\s+/).map(function (comp) {
1106
+ return replaceTilde(comp, options)
1107
+ }).join(' ')
1108
+ }
1109
+
1110
+ function replaceTilde (comp, options) {
1111
+ var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]
1112
+ return comp.replace(r, function (_, M, m, p, pr) {
1113
+ debug('tilde', comp, _, M, m, p, pr)
1114
+ var ret
1115
+
1116
+ if (isX(M)) {
1117
+ ret = ''
1118
+ } else if (isX(m)) {
1119
+ ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
1120
+ } else if (isX(p)) {
1121
+ // ~1.2 == >=1.2.0 <1.3.0
1122
+ ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
1123
+ } else if (pr) {
1124
+ debug('replaceTilde pr', pr)
1125
+ ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
1126
+ ' <' + M + '.' + (+m + 1) + '.0'
1127
+ } else {
1128
+ // ~1.2.3 == >=1.2.3 <1.3.0
1129
+ ret = '>=' + M + '.' + m + '.' + p +
1130
+ ' <' + M + '.' + (+m + 1) + '.0'
1131
+ }
1132
+
1133
+ debug('tilde return', ret)
1134
+ return ret
1135
+ })
1136
+ }
1137
+
1138
+ // ^ --> * (any, kinda silly)
1139
+ // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
1140
+ // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
1141
+ // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
1142
+ // ^1.2.3 --> >=1.2.3 <2.0.0
1143
+ // ^1.2.0 --> >=1.2.0 <2.0.0
1144
+ function replaceCarets (comp, options) {
1145
+ return comp.trim().split(/\s+/).map(function (comp) {
1146
+ return replaceCaret(comp, options)
1147
+ }).join(' ')
1148
+ }
1149
+
1150
+ function replaceCaret (comp, options) {
1151
+ debug('caret', comp, options)
1152
+ var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]
1153
+ return comp.replace(r, function (_, M, m, p, pr) {
1154
+ debug('caret', comp, _, M, m, p, pr)
1155
+ var ret
1156
+
1157
+ if (isX(M)) {
1158
+ ret = ''
1159
+ } else if (isX(m)) {
1160
+ ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
1161
+ } else if (isX(p)) {
1162
+ if (M === '0') {
1163
+ ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
1164
+ } else {
1165
+ ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
1166
+ }
1167
+ } else if (pr) {
1168
+ debug('replaceCaret pr', pr)
1169
+ if (M === '0') {
1170
+ if (m === '0') {
1171
+ ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
1172
+ ' <' + M + '.' + m + '.' + (+p + 1)
1173
+ } else {
1174
+ ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
1175
+ ' <' + M + '.' + (+m + 1) + '.0'
1176
+ }
1177
+ } else {
1178
+ ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
1179
+ ' <' + (+M + 1) + '.0.0'
1180
+ }
1181
+ } else {
1182
+ debug('no pr')
1183
+ if (M === '0') {
1184
+ if (m === '0') {
1185
+ ret = '>=' + M + '.' + m + '.' + p +
1186
+ ' <' + M + '.' + m + '.' + (+p + 1)
1187
+ } else {
1188
+ ret = '>=' + M + '.' + m + '.' + p +
1189
+ ' <' + M + '.' + (+m + 1) + '.0'
1190
+ }
1191
+ } else {
1192
+ ret = '>=' + M + '.' + m + '.' + p +
1193
+ ' <' + (+M + 1) + '.0.0'
1194
+ }
1195
+ }
1196
+
1197
+ debug('caret return', ret)
1198
+ return ret
1199
+ })
1200
+ }
1201
+
1202
+ function replaceXRanges (comp, options) {
1203
+ debug('replaceXRanges', comp, options)
1204
+ return comp.split(/\s+/).map(function (comp) {
1205
+ return replaceXRange(comp, options)
1206
+ }).join(' ')
1207
+ }
1208
+
1209
+ function replaceXRange (comp, options) {
1210
+ comp = comp.trim()
1211
+ var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]
1212
+ return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
1213
+ debug('xRange', comp, ret, gtlt, M, m, p, pr)
1214
+ var xM = isX(M)
1215
+ var xm = xM || isX(m)
1216
+ var xp = xm || isX(p)
1217
+ var anyX = xp
1218
+
1219
+ if (gtlt === '=' && anyX) {
1220
+ gtlt = ''
1221
+ }
1222
+
1223
+ // if we're including prereleases in the match, then we need
1224
+ // to fix this to -0, the lowest possible prerelease value
1225
+ pr = options.includePrerelease ? '-0' : ''
1226
+
1227
+ if (xM) {
1228
+ if (gtlt === '>' || gtlt === '<') {
1229
+ // nothing is allowed
1230
+ ret = '<0.0.0-0'
1231
+ } else {
1232
+ // nothing is forbidden
1233
+ ret = '*'
1234
+ }
1235
+ } else if (gtlt && anyX) {
1236
+ // we know patch is an x, because we have any x at all.
1237
+ // replace X with 0
1238
+ if (xm) {
1239
+ m = 0
1240
+ }
1241
+ p = 0
1242
+
1243
+ if (gtlt === '>') {
1244
+ // >1 => >=2.0.0
1245
+ // >1.2 => >=1.3.0
1246
+ // >1.2.3 => >= 1.2.4
1247
+ gtlt = '>='
1248
+ if (xm) {
1249
+ M = +M + 1
1250
+ m = 0
1251
+ p = 0
1252
+ } else {
1253
+ m = +m + 1
1254
+ p = 0
1255
+ }
1256
+ } else if (gtlt === '<=') {
1257
+ // <=0.7.x is actually <0.8.0, since any 0.7.x should
1258
+ // pass. Similarly, <=7.x is actually <8.0.0, etc.
1259
+ gtlt = '<'
1260
+ if (xm) {
1261
+ M = +M + 1
1262
+ } else {
1263
+ m = +m + 1
1264
+ }
1265
+ }
1266
+
1267
+ ret = gtlt + M + '.' + m + '.' + p + pr
1268
+ } else if (xm) {
1269
+ ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
1270
+ } else if (xp) {
1271
+ ret = '>=' + M + '.' + m + '.0' + pr +
1272
+ ' <' + M + '.' + (+m + 1) + '.0' + pr
1273
+ }
1274
+
1275
+ debug('xRange return', ret)
1276
+
1277
+ return ret
1278
+ })
1279
+ }
1280
+
1281
+ // Because * is AND-ed with everything else in the comparator,
1282
+ // and '' means "any version", just remove the *s entirely.
1283
+ function replaceStars (comp, options) {
1284
+ debug('replaceStars', comp, options)
1285
+ // Looseness is ignored here. star is always as loose as it gets!
1286
+ return comp.trim().replace(safeRe[t.STAR], '')
1287
+ }
1288
+
1289
+ // This function is passed to string.replace(re[t.HYPHENRANGE])
1290
+ // M, m, patch, prerelease, build
1291
+ // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
1292
+ // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
1293
+ // 1.2 - 3.4 => >=1.2.0 <3.5.0
1294
+ function hyphenReplace ($0,
1295
+ from, fM, fm, fp, fpr, fb,
1296
+ to, tM, tm, tp, tpr, tb) {
1297
+ if (isX(fM)) {
1298
+ from = ''
1299
+ } else if (isX(fm)) {
1300
+ from = '>=' + fM + '.0.0'
1301
+ } else if (isX(fp)) {
1302
+ from = '>=' + fM + '.' + fm + '.0'
1303
+ } else {
1304
+ from = '>=' + from
1305
+ }
1306
+
1307
+ if (isX(tM)) {
1308
+ to = ''
1309
+ } else if (isX(tm)) {
1310
+ to = '<' + (+tM + 1) + '.0.0'
1311
+ } else if (isX(tp)) {
1312
+ to = '<' + tM + '.' + (+tm + 1) + '.0'
1313
+ } else if (tpr) {
1314
+ to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
1315
+ } else {
1316
+ to = '<=' + to
1317
+ }
1318
+
1319
+ return (from + ' ' + to).trim()
1320
+ }
1321
+
1322
+ // if ANY of the sets match ALL of its comparators, then pass
1323
+ Range.prototype.test = function (version) {
1324
+ if (!version) {
1325
+ return false
1326
+ }
1327
+
1328
+ if (typeof version === 'string') {
1329
+ try {
1330
+ version = new SemVer(version, this.options)
1331
+ } catch (er) {
1332
+ return false
1333
+ }
1334
+ }
1335
+
1336
+ for (var i = 0; i < this.set.length; i++) {
1337
+ if (testSet(this.set[i], version, this.options)) {
1338
+ return true
1339
+ }
1340
+ }
1341
+ return false
1342
+ }
1343
+
1344
+ function testSet (set, version, options) {
1345
+ for (var i = 0; i < set.length; i++) {
1346
+ if (!set[i].test(version)) {
1347
+ return false
1348
+ }
1349
+ }
1350
+
1351
+ if (version.prerelease.length && !options.includePrerelease) {
1352
+ // Find the set of versions that are allowed to have prereleases
1353
+ // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
1354
+ // That should allow `1.2.3-pr.2` to pass.
1355
+ // However, `1.2.4-alpha.notready` should NOT be allowed,
1356
+ // even though it's within the range set by the comparators.
1357
+ for (i = 0; i < set.length; i++) {
1358
+ debug(set[i].semver)
1359
+ if (set[i].semver === ANY) {
1360
+ continue
1361
+ }
1362
+
1363
+ if (set[i].semver.prerelease.length > 0) {
1364
+ var allowed = set[i].semver
1365
+ if (allowed.major === version.major &&
1366
+ allowed.minor === version.minor &&
1367
+ allowed.patch === version.patch) {
1368
+ return true
1369
+ }
1370
+ }
1371
+ }
1372
+
1373
+ // Version has a -pre, but it's not one of the ones we like.
1374
+ return false
1375
+ }
1376
+
1377
+ return true
1378
+ }
1379
+
1380
+ exports.satisfies = satisfies
1381
+ function satisfies (version, range, options) {
1382
+ try {
1383
+ range = new Range(range, options)
1384
+ } catch (er) {
1385
+ return false
1386
+ }
1387
+ return range.test(version)
1388
+ }
1389
+
1390
+ exports.maxSatisfying = maxSatisfying
1391
+ function maxSatisfying (versions, range, options) {
1392
+ var max = null
1393
+ var maxSV = null
1394
+ try {
1395
+ var rangeObj = new Range(range, options)
1396
+ } catch (er) {
1397
+ return null
1398
+ }
1399
+ versions.forEach(function (v) {
1400
+ if (rangeObj.test(v)) {
1401
+ // satisfies(v, range, options)
1402
+ if (!max || maxSV.compare(v) === -1) {
1403
+ // compare(max, v, true)
1404
+ max = v
1405
+ maxSV = new SemVer(max, options)
1406
+ }
1407
+ }
1408
+ })
1409
+ return max
1410
+ }
1411
+
1412
+ exports.minSatisfying = minSatisfying
1413
+ function minSatisfying (versions, range, options) {
1414
+ var min = null
1415
+ var minSV = null
1416
+ try {
1417
+ var rangeObj = new Range(range, options)
1418
+ } catch (er) {
1419
+ return null
1420
+ }
1421
+ versions.forEach(function (v) {
1422
+ if (rangeObj.test(v)) {
1423
+ // satisfies(v, range, options)
1424
+ if (!min || minSV.compare(v) === 1) {
1425
+ // compare(min, v, true)
1426
+ min = v
1427
+ minSV = new SemVer(min, options)
1428
+ }
1429
+ }
1430
+ })
1431
+ return min
1432
+ }
1433
+
1434
+ exports.minVersion = minVersion
1435
+ function minVersion (range, loose) {
1436
+ range = new Range(range, loose)
1437
+
1438
+ var minver = new SemVer('0.0.0')
1439
+ if (range.test(minver)) {
1440
+ return minver
1441
+ }
1442
+
1443
+ minver = new SemVer('0.0.0-0')
1444
+ if (range.test(minver)) {
1445
+ return minver
1446
+ }
1447
+
1448
+ minver = null
1449
+ for (var i = 0; i < range.set.length; ++i) {
1450
+ var comparators = range.set[i]
1451
+
1452
+ comparators.forEach(function (comparator) {
1453
+ // Clone to avoid manipulating the comparator's semver object.
1454
+ var compver = new SemVer(comparator.semver.version)
1455
+ switch (comparator.operator) {
1456
+ case '>':
1457
+ if (compver.prerelease.length === 0) {
1458
+ compver.patch++
1459
+ } else {
1460
+ compver.prerelease.push(0)
1461
+ }
1462
+ compver.raw = compver.format()
1463
+ /* fallthrough */
1464
+ case '':
1465
+ case '>=':
1466
+ if (!minver || gt(minver, compver)) {
1467
+ minver = compver
1468
+ }
1469
+ break
1470
+ case '<':
1471
+ case '<=':
1472
+ /* Ignore maximum versions */
1473
+ break
1474
+ /* istanbul ignore next */
1475
+ default:
1476
+ throw new Error('Unexpected operation: ' + comparator.operator)
1477
+ }
1478
+ })
1479
+ }
1480
+
1481
+ if (minver && range.test(minver)) {
1482
+ return minver
1483
+ }
1484
+
1485
+ return null
1486
+ }
1487
+
1488
+ exports.validRange = validRange
1489
+ function validRange (range, options) {
1490
+ try {
1491
+ // Return '*' instead of '' so that truthiness works.
1492
+ // This will throw if it's invalid anyway
1493
+ return new Range(range, options).range || '*'
1494
+ } catch (er) {
1495
+ return null
1496
+ }
1497
+ }
1498
+
1499
+ // Determine if version is less than all the versions possible in the range
1500
+ exports.ltr = ltr
1501
+ function ltr (version, range, options) {
1502
+ return outside(version, range, '<', options)
1503
+ }
1504
+
1505
+ // Determine if version is greater than all the versions possible in the range.
1506
+ exports.gtr = gtr
1507
+ function gtr (version, range, options) {
1508
+ return outside(version, range, '>', options)
1509
+ }
1510
+
1511
+ exports.outside = outside
1512
+ function outside (version, range, hilo, options) {
1513
+ version = new SemVer(version, options)
1514
+ range = new Range(range, options)
1515
+
1516
+ var gtfn, ltefn, ltfn, comp, ecomp
1517
+ switch (hilo) {
1518
+ case '>':
1519
+ gtfn = gt
1520
+ ltefn = lte
1521
+ ltfn = lt
1522
+ comp = '>'
1523
+ ecomp = '>='
1524
+ break
1525
+ case '<':
1526
+ gtfn = lt
1527
+ ltefn = gte
1528
+ ltfn = gt
1529
+ comp = '<'
1530
+ ecomp = '<='
1531
+ break
1532
+ default:
1533
+ throw new TypeError('Must provide a hilo val of "<" or ">"')
1534
+ }
1535
+
1536
+ // If it satisifes the range it is not outside
1537
+ if (satisfies(version, range, options)) {
1538
+ return false
1539
+ }
1540
+
1541
+ // From now on, variable terms are as if we're in "gtr" mode.
1542
+ // but note that everything is flipped for the "ltr" function.
1543
+
1544
+ for (var i = 0; i < range.set.length; ++i) {
1545
+ var comparators = range.set[i]
1546
+
1547
+ var high = null
1548
+ var low = null
1549
+
1550
+ comparators.forEach(function (comparator) {
1551
+ if (comparator.semver === ANY) {
1552
+ comparator = new Comparator('>=0.0.0')
1553
+ }
1554
+ high = high || comparator
1555
+ low = low || comparator
1556
+ if (gtfn(comparator.semver, high.semver, options)) {
1557
+ high = comparator
1558
+ } else if (ltfn(comparator.semver, low.semver, options)) {
1559
+ low = comparator
1560
+ }
1561
+ })
1562
+
1563
+ // If the edge version comparator has a operator then our version
1564
+ // isn't outside it
1565
+ if (high.operator === comp || high.operator === ecomp) {
1566
+ return false
1567
+ }
1568
+
1569
+ // If the lowest version comparator has an operator and our version
1570
+ // is less than it then it isn't higher than the range
1571
+ if ((!low.operator || low.operator === comp) &&
1572
+ ltefn(version, low.semver)) {
1573
+ return false
1574
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
1575
+ return false
1576
+ }
1577
+ }
1578
+ return true
1579
+ }
1580
+
1581
+ exports.prerelease = prerelease
1582
+ function prerelease (version, options) {
1583
+ var parsed = parse(version, options)
1584
+ return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
1585
+ }
1586
+
1587
+ exports.intersects = intersects
1588
+ function intersects (r1, r2, options) {
1589
+ r1 = new Range(r1, options)
1590
+ r2 = new Range(r2, options)
1591
+ return r1.intersects(r2)
1592
+ }
1593
+
1594
+ exports.coerce = coerce
1595
+ function coerce (version, options) {
1596
+ if (version instanceof SemVer) {
1597
+ return version
1598
+ }
1599
+
1600
+ if (typeof version === 'number') {
1601
+ version = String(version)
1602
+ }
1603
+
1604
+ if (typeof version !== 'string') {
1605
+ return null
1606
+ }
1607
+
1608
+ options = options || {}
1609
+
1610
+ var match = null
1611
+ if (!options.rtl) {
1612
+ match = version.match(safeRe[t.COERCE])
1613
+ } else {
1614
+ // Find the right-most coercible string that does not share
1615
+ // a terminus with a more left-ward coercible string.
1616
+ // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
1617
+ //
1618
+ // Walk through the string checking with a /g regexp
1619
+ // Manually set the index so as to pick up overlapping matches.
1620
+ // Stop when we get a match that ends at the string end, since no
1621
+ // coercible string can be more right-ward without the same terminus.
1622
+ var next
1623
+ while ((next = safeRe[t.COERCERTL].exec(version)) &&
1624
+ (!match || match.index + match[0].length !== version.length)
1625
+ ) {
1626
+ if (!match ||
1627
+ next.index + next[0].length !== match.index + match[0].length) {
1628
+ match = next
1629
+ }
1630
+ safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
1631
+ }
1632
+ // leave it in a clean state
1633
+ safeRe[t.COERCERTL].lastIndex = -1
1634
+ }
1635
+
1636
+ if (match === null) {
1637
+ return null
1638
+ }
1639
+
1640
+ return parse(match[2] +
1641
+ '.' + (match[3] || '0') +
1642
+ '.' + (match[4] || '0'), options)
1643
+ }