renovate 42.3.0 → 42.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (732) hide show
  1. package/dist/config/decrypt.js +13 -14
  2. package/dist/config/decrypt.js.map +1 -1
  3. package/dist/config/massage.js +6 -7
  4. package/dist/config/massage.js.map +1 -1
  5. package/dist/config/migrate-validate.js +3 -3
  6. package/dist/config/migrate-validate.js.map +1 -1
  7. package/dist/config/migration.js +19 -20
  8. package/dist/config/migration.js.map +1 -1
  9. package/dist/config/migrations/base/abstract-migration.js +5 -6
  10. package/dist/config/migrations/base/abstract-migration.js.map +1 -1
  11. package/dist/config/migrations/custom/automerge-major-migration.js +2 -3
  12. package/dist/config/migrations/custom/automerge-major-migration.js.map +1 -1
  13. package/dist/config/migrations/custom/automerge-migration.js +4 -5
  14. package/dist/config/migrations/custom/automerge-migration.js.map +1 -1
  15. package/dist/config/migrations/custom/automerge-minor-migration.js +2 -3
  16. package/dist/config/migrations/custom/automerge-minor-migration.js.map +1 -1
  17. package/dist/config/migrations/custom/automerge-patch-migration.js +2 -3
  18. package/dist/config/migrations/custom/automerge-patch-migration.js.map +1 -1
  19. package/dist/config/migrations/custom/automerge-type-migration.js +2 -3
  20. package/dist/config/migrations/custom/automerge-type-migration.js.map +1 -1
  21. package/dist/config/migrations/custom/base-branch-migration.js +3 -4
  22. package/dist/config/migrations/custom/base-branch-migration.js.map +1 -1
  23. package/dist/config/migrations/custom/branch-name-migration.js +2 -3
  24. package/dist/config/migrations/custom/branch-name-migration.js.map +1 -1
  25. package/dist/config/migrations/custom/branch-prefix-migration.js +2 -3
  26. package/dist/config/migrations/custom/branch-prefix-migration.js.map +1 -1
  27. package/dist/config/migrations/custom/compatibility-migration.js +2 -3
  28. package/dist/config/migrations/custom/compatibility-migration.js.map +1 -1
  29. package/dist/config/migrations/custom/composer-ignore-platform-reqs-migration.js +2 -3
  30. package/dist/config/migrations/custom/composer-ignore-platform-reqs-migration.js.map +1 -1
  31. package/dist/config/migrations/custom/custom-managers-migration.js +2 -3
  32. package/dist/config/migrations/custom/custom-managers-migration.js.map +1 -1
  33. package/dist/config/migrations/custom/datasource-migration.js +2 -3
  34. package/dist/config/migrations/custom/datasource-migration.js.map +1 -1
  35. package/dist/config/migrations/custom/dep-types-migration.js +4 -5
  36. package/dist/config/migrations/custom/dep-types-migration.js.map +1 -1
  37. package/dist/config/migrations/custom/enabled-managers-migration.js +2 -3
  38. package/dist/config/migrations/custom/enabled-managers-migration.js.map +1 -1
  39. package/dist/config/migrations/custom/extends-migration.js +4 -5
  40. package/dist/config/migrations/custom/extends-migration.js.map +1 -1
  41. package/dist/config/migrations/custom/fetch-release-notes-migration.js +2 -3
  42. package/dist/config/migrations/custom/fetch-release-notes-migration.js.map +1 -1
  43. package/dist/config/migrations/custom/file-match-migration.js +3 -4
  44. package/dist/config/migrations/custom/file-match-migration.js.map +1 -1
  45. package/dist/config/migrations/custom/host-rules-migration.js +6 -7
  46. package/dist/config/migrations/custom/host-rules-migration.js.map +1 -1
  47. package/dist/config/migrations/custom/ignore-npmrc-file-migration.js +2 -3
  48. package/dist/config/migrations/custom/ignore-npmrc-file-migration.js.map +1 -1
  49. package/dist/config/migrations/custom/include-forks-migration.js +2 -3
  50. package/dist/config/migrations/custom/include-forks-migration.js.map +1 -1
  51. package/dist/config/migrations/custom/match-datasources-migration.js +2 -3
  52. package/dist/config/migrations/custom/match-datasources-migration.js.map +1 -1
  53. package/dist/config/migrations/custom/match-managers-migration.js +2 -3
  54. package/dist/config/migrations/custom/match-managers-migration.js.map +1 -1
  55. package/dist/config/migrations/custom/match-strings-migration.js +2 -3
  56. package/dist/config/migrations/custom/match-strings-migration.js.map +1 -1
  57. package/dist/config/migrations/custom/package-files-migration.js +6 -7
  58. package/dist/config/migrations/custom/package-files-migration.js.map +1 -1
  59. package/dist/config/migrations/custom/package-rules-migration.js +15 -16
  60. package/dist/config/migrations/custom/package-rules-migration.js.map +1 -1
  61. package/dist/config/migrations/custom/packages-migration.js +3 -4
  62. package/dist/config/migrations/custom/packages-migration.js.map +1 -1
  63. package/dist/config/migrations/custom/path-rules-migration.js +3 -4
  64. package/dist/config/migrations/custom/path-rules-migration.js.map +1 -1
  65. package/dist/config/migrations/custom/pin-versions-migration.js +2 -3
  66. package/dist/config/migrations/custom/pin-versions-migration.js.map +1 -1
  67. package/dist/config/migrations/custom/platform-commit-migration.js +2 -3
  68. package/dist/config/migrations/custom/platform-commit-migration.js.map +1 -1
  69. package/dist/config/migrations/custom/post-update-options-migration.js +2 -3
  70. package/dist/config/migrations/custom/post-update-options-migration.js.map +1 -1
  71. package/dist/config/migrations/custom/rebase-stale-prs-migration.js +2 -3
  72. package/dist/config/migrations/custom/rebase-stale-prs-migration.js.map +1 -1
  73. package/dist/config/migrations/custom/recreate-closed-migration.js +2 -3
  74. package/dist/config/migrations/custom/recreate-closed-migration.js.map +1 -1
  75. package/dist/config/migrations/custom/renovate-fork-migration.js +2 -3
  76. package/dist/config/migrations/custom/renovate-fork-migration.js.map +1 -1
  77. package/dist/config/migrations/custom/schedule-migration.js +4 -4
  78. package/dist/config/migrations/custom/schedule-migration.js.map +1 -1
  79. package/dist/config/migrations/custom/semantic-commits-migration.js +2 -3
  80. package/dist/config/migrations/custom/semantic-commits-migration.js.map +1 -1
  81. package/dist/config/migrations/custom/semantic-prefix-migration.js +2 -3
  82. package/dist/config/migrations/custom/semantic-prefix-migration.js.map +1 -1
  83. package/dist/config/migrations/custom/stability-days-migration.js +2 -3
  84. package/dist/config/migrations/custom/stability-days-migration.js.map +1 -1
  85. package/dist/config/migrations/custom/suppress-notifications-migration.js +2 -3
  86. package/dist/config/migrations/custom/suppress-notifications-migration.js.map +1 -1
  87. package/dist/config/migrations/custom/unpublish-safe-migration.js +2 -3
  88. package/dist/config/migrations/custom/unpublish-safe-migration.js.map +1 -1
  89. package/dist/config/migrations/migrations-service.js +2 -3
  90. package/dist/config/migrations/migrations-service.js.map +1 -1
  91. package/dist/config/presets/github/index.js +2 -3
  92. package/dist/config/presets/github/index.js.map +1 -1
  93. package/dist/config/presets/gitlab/index.js +2 -3
  94. package/dist/config/presets/gitlab/index.js.map +1 -1
  95. package/dist/config/presets/index.js +8 -8
  96. package/dist/config/presets/index.js.map +1 -1
  97. package/dist/config/presets/parse.js +2 -3
  98. package/dist/config/presets/parse.js.map +1 -1
  99. package/dist/config/secrets.js +3 -4
  100. package/dist/config/secrets.js.map +1 -1
  101. package/dist/config/validation-helpers/match-base-branches.js +2 -3
  102. package/dist/config/validation-helpers/match-base-branches.js.map +1 -1
  103. package/dist/config/validation-helpers/regex-glob-matchers.js +2 -3
  104. package/dist/config/validation-helpers/regex-glob-matchers.js.map +1 -1
  105. package/dist/config/validation-helpers/utils.js +6 -6
  106. package/dist/config/validation-helpers/utils.js.map +1 -1
  107. package/dist/config/validation.js +29 -29
  108. package/dist/config/validation.js.map +1 -1
  109. package/dist/instrumentation/reporting.js +7 -8
  110. package/dist/instrumentation/reporting.js.map +1 -1
  111. package/dist/instrumentation/utils.js +2 -3
  112. package/dist/instrumentation/utils.js.map +1 -1
  113. package/dist/logger/err-serializer.js +2 -2
  114. package/dist/logger/err-serializer.js.map +1 -1
  115. package/dist/logger/index.js +3 -3
  116. package/dist/logger/index.js.map +1 -1
  117. package/dist/logger/renovate-logger.js +4 -5
  118. package/dist/logger/renovate-logger.js.map +1 -1
  119. package/dist/logger/utils.js +19 -19
  120. package/dist/logger/utils.js.map +1 -1
  121. package/dist/modules/datasource/aws-eks-addon/index.js +2 -2
  122. package/dist/modules/datasource/aws-eks-addon/index.js.map +1 -1
  123. package/dist/modules/datasource/bazel/index.js +2 -2
  124. package/dist/modules/datasource/bazel/index.js.map +1 -1
  125. package/dist/modules/datasource/bitrise/index.js +2 -2
  126. package/dist/modules/datasource/bitrise/index.js.map +1 -1
  127. package/dist/modules/datasource/common.js +4 -4
  128. package/dist/modules/datasource/common.js.map +1 -1
  129. package/dist/modules/datasource/conan/index.js +3 -3
  130. package/dist/modules/datasource/conan/index.js.map +1 -1
  131. package/dist/modules/datasource/custom/formats/html.js +2 -5
  132. package/dist/modules/datasource/custom/formats/html.js.map +1 -1
  133. package/dist/modules/datasource/custom/index.js +2 -3
  134. package/dist/modules/datasource/custom/index.js.map +1 -1
  135. package/dist/modules/datasource/custom/utils.js +4 -4
  136. package/dist/modules/datasource/custom/utils.js.map +1 -1
  137. package/dist/modules/datasource/dart-version/index.js +2 -3
  138. package/dist/modules/datasource/dart-version/index.js.map +1 -1
  139. package/dist/modules/datasource/deno/index.js +2 -2
  140. package/dist/modules/datasource/deno/index.js.map +1 -1
  141. package/dist/modules/datasource/docker/common.js +5 -5
  142. package/dist/modules/datasource/docker/common.js.map +1 -1
  143. package/dist/modules/datasource/docker/index.js +6 -6
  144. package/dist/modules/datasource/docker/index.js.map +1 -1
  145. package/dist/modules/datasource/endoflife-date/index.js +2 -2
  146. package/dist/modules/datasource/endoflife-date/index.js.map +1 -1
  147. package/dist/modules/datasource/galaxy/index.js +2 -2
  148. package/dist/modules/datasource/galaxy/index.js.map +1 -1
  149. package/dist/modules/datasource/galaxy-collection/index.js +2 -2
  150. package/dist/modules/datasource/galaxy-collection/index.js.map +1 -1
  151. package/dist/modules/datasource/git-refs/base.js +2 -2
  152. package/dist/modules/datasource/git-refs/base.js.map +1 -1
  153. package/dist/modules/datasource/github-release-attachments/index.js +2 -2
  154. package/dist/modules/datasource/github-release-attachments/index.js.map +1 -1
  155. package/dist/modules/datasource/github-releases/index.js +2 -3
  156. package/dist/modules/datasource/github-releases/index.js.map +1 -1
  157. package/dist/modules/datasource/github-tags/index.js +2 -3
  158. package/dist/modules/datasource/github-tags/index.js.map +1 -1
  159. package/dist/modules/datasource/go/goproxy-parser.js +3 -3
  160. package/dist/modules/datasource/go/goproxy-parser.js.map +1 -1
  161. package/dist/modules/datasource/go/index.js +2 -2
  162. package/dist/modules/datasource/go/index.js.map +1 -1
  163. package/dist/modules/datasource/go/releases-goproxy.js +3 -3
  164. package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
  165. package/dist/modules/datasource/hackage/index.js +2 -2
  166. package/dist/modules/datasource/hackage/index.js.map +1 -1
  167. package/dist/modules/datasource/hex/schema.js +2 -3
  168. package/dist/modules/datasource/hex/schema.js.map +1 -1
  169. package/dist/modules/datasource/hexpm-bob/index.js +2 -2
  170. package/dist/modules/datasource/hexpm-bob/index.js.map +1 -1
  171. package/dist/modules/datasource/index.js +14 -14
  172. package/dist/modules/datasource/index.js.map +1 -1
  173. package/dist/modules/datasource/jsr/index.js +2 -2
  174. package/dist/modules/datasource/jsr/index.js.map +1 -1
  175. package/dist/modules/datasource/jsr/util.js +3 -4
  176. package/dist/modules/datasource/jsr/util.js.map +1 -1
  177. package/dist/modules/datasource/metadata.js +5 -5
  178. package/dist/modules/datasource/metadata.js.map +1 -1
  179. package/dist/modules/datasource/npm/get.js +2 -2
  180. package/dist/modules/datasource/npm/get.js.map +1 -1
  181. package/dist/modules/datasource/npm/npmrc.js +7 -7
  182. package/dist/modules/datasource/npm/npmrc.js.map +1 -1
  183. package/dist/modules/datasource/nuget/v3.js +2 -2
  184. package/dist/modules/datasource/nuget/v3.js.map +1 -1
  185. package/dist/modules/datasource/packagist/index.js +2 -2
  186. package/dist/modules/datasource/packagist/index.js.map +1 -1
  187. package/dist/modules/datasource/packagist/schema.js +3 -4
  188. package/dist/modules/datasource/packagist/schema.js.map +1 -1
  189. package/dist/modules/datasource/pypi/index.js +2 -2
  190. package/dist/modules/datasource/pypi/index.js.map +1 -1
  191. package/dist/modules/datasource/repology/index.js +3 -3
  192. package/dist/modules/datasource/repology/index.js.map +1 -1
  193. package/dist/modules/datasource/rubygems/schema.js +5 -6
  194. package/dist/modules/datasource/rubygems/schema.js.map +1 -1
  195. package/dist/modules/datasource/util.js +2 -3
  196. package/dist/modules/datasource/util.js.map +1 -1
  197. package/dist/modules/manager/argocd/extract.js +3 -4
  198. package/dist/modules/manager/argocd/extract.js.map +1 -1
  199. package/dist/modules/manager/asdf/extract.js +2 -3
  200. package/dist/modules/manager/asdf/extract.js.map +1 -1
  201. package/dist/modules/manager/bazel/artifacts.js +2 -2
  202. package/dist/modules/manager/bazel/artifacts.js.map +1 -1
  203. package/dist/modules/manager/bazel/common.js +4 -5
  204. package/dist/modules/manager/bazel/common.js.map +1 -1
  205. package/dist/modules/manager/bazel/rules/http.js +3 -4
  206. package/dist/modules/manager/bazel/rules/http.js.map +1 -1
  207. package/dist/modules/manager/bazel/rules/maven.js +2 -3
  208. package/dist/modules/manager/bazel/rules/maven.js.map +1 -1
  209. package/dist/modules/manager/bazel-module/parser/starlark.js +2 -3
  210. package/dist/modules/manager/bazel-module/parser/starlark.js.map +1 -1
  211. package/dist/modules/manager/bazel-module/rules.js +3 -3
  212. package/dist/modules/manager/bazel-module/rules.js.map +1 -1
  213. package/dist/modules/manager/bitrise/utils.js +3 -4
  214. package/dist/modules/manager/bitrise/utils.js.map +1 -1
  215. package/dist/modules/manager/buildpacks/extract.js +2 -3
  216. package/dist/modules/manager/buildpacks/extract.js.map +1 -1
  217. package/dist/modules/manager/bun/artifacts.js +2 -2
  218. package/dist/modules/manager/bun/artifacts.js.map +1 -1
  219. package/dist/modules/manager/bun/extract.js +2 -3
  220. package/dist/modules/manager/bun/extract.js.map +1 -1
  221. package/dist/modules/manager/bundler/artifacts.js +3 -3
  222. package/dist/modules/manager/bundler/artifacts.js.map +1 -1
  223. package/dist/modules/manager/bundler/extract.js +5 -6
  224. package/dist/modules/manager/bundler/extract.js.map +1 -1
  225. package/dist/modules/manager/cargo/extract.js +3 -4
  226. package/dist/modules/manager/cargo/extract.js.map +1 -1
  227. package/dist/modules/manager/composer/artifacts.js +3 -3
  228. package/dist/modules/manager/composer/artifacts.js.map +1 -1
  229. package/dist/modules/manager/composer/utils.js +3 -4
  230. package/dist/modules/manager/composer/utils.js.map +1 -1
  231. package/dist/modules/manager/conan/extract.js +2 -3
  232. package/dist/modules/manager/conan/extract.js.map +1 -1
  233. package/dist/modules/manager/copier/artifacts.js +1 -1
  234. package/dist/modules/manager/copier/artifacts.js.map +1 -1
  235. package/dist/modules/manager/copier/utils.js +3 -4
  236. package/dist/modules/manager/copier/utils.js.map +1 -1
  237. package/dist/modules/manager/crow/extract.js +2 -3
  238. package/dist/modules/manager/crow/extract.js.map +1 -1
  239. package/dist/modules/manager/custom/jsonata/index.js +2 -3
  240. package/dist/modules/manager/custom/jsonata/index.js.map +1 -1
  241. package/dist/modules/manager/custom/jsonata/utils.js +3 -3
  242. package/dist/modules/manager/custom/jsonata/utils.js.map +1 -1
  243. package/dist/modules/manager/custom/regex/index.js +2 -3
  244. package/dist/modules/manager/custom/regex/index.js.map +1 -1
  245. package/dist/modules/manager/custom/regex/strategies.js +4 -5
  246. package/dist/modules/manager/custom/regex/strategies.js.map +1 -1
  247. package/dist/modules/manager/custom/regex/utils.js +2 -2
  248. package/dist/modules/manager/custom/regex/utils.js.map +1 -1
  249. package/dist/modules/manager/custom/utils.js +6 -7
  250. package/dist/modules/manager/custom/utils.js.map +1 -1
  251. package/dist/modules/manager/deps-edn/extract.js +13 -14
  252. package/dist/modules/manager/deps-edn/extract.js.map +1 -1
  253. package/dist/modules/manager/deps-edn/parser.js +2 -2
  254. package/dist/modules/manager/deps-edn/parser.js.map +1 -1
  255. package/dist/modules/manager/devbox/artifacts.js +2 -2
  256. package/dist/modules/manager/devbox/artifacts.js.map +1 -1
  257. package/dist/modules/manager/docker-compose/extract.js +3 -4
  258. package/dist/modules/manager/docker-compose/extract.js.map +1 -1
  259. package/dist/modules/manager/docker-compose/schema.js +2 -3
  260. package/dist/modules/manager/docker-compose/schema.js.map +1 -1
  261. package/dist/modules/manager/dockerfile/extract.js +5 -5
  262. package/dist/modules/manager/dockerfile/extract.js.map +1 -1
  263. package/dist/modules/manager/fingerprint.generated.js +6 -6
  264. package/dist/modules/manager/fingerprint.generated.js.map +1 -1
  265. package/dist/modules/manager/fleet/extract.js +2 -3
  266. package/dist/modules/manager/fleet/extract.js.map +1 -1
  267. package/dist/modules/manager/flux/extract.js +2 -3
  268. package/dist/modules/manager/flux/extract.js.map +1 -1
  269. package/dist/modules/manager/glasskube/extract.js +2 -3
  270. package/dist/modules/manager/glasskube/extract.js.map +1 -1
  271. package/dist/modules/manager/gleam/artifacts.js +3 -4
  272. package/dist/modules/manager/gleam/artifacts.js.map +1 -1
  273. package/dist/modules/manager/gomod/artifacts.js +2 -2
  274. package/dist/modules/manager/gomod/artifacts.js.map +1 -1
  275. package/dist/modules/manager/gradle/artifacts.js +2 -2
  276. package/dist/modules/manager/gradle/artifacts.js.map +1 -1
  277. package/dist/modules/manager/gradle/extract/catalog.js +5 -5
  278. package/dist/modules/manager/gradle/extract/catalog.js.map +1 -1
  279. package/dist/modules/manager/gradle-wrapper/artifacts.js +2 -2
  280. package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
  281. package/dist/modules/manager/helm-requirements/extract.js +2 -3
  282. package/dist/modules/manager/helm-requirements/extract.js.map +1 -1
  283. package/dist/modules/manager/helmfile/artifacts.js +2 -3
  284. package/dist/modules/manager/helmfile/artifacts.js.map +1 -1
  285. package/dist/modules/manager/helmfile/extract.js +4 -5
  286. package/dist/modules/manager/helmfile/extract.js.map +1 -1
  287. package/dist/modules/manager/helmsman/extract.js +4 -5
  288. package/dist/modules/manager/helmsman/extract.js.map +1 -1
  289. package/dist/modules/manager/helmv3/artifacts.js +4 -4
  290. package/dist/modules/manager/helmv3/artifacts.js.map +1 -1
  291. package/dist/modules/manager/helmv3/extract.js +4 -5
  292. package/dist/modules/manager/helmv3/extract.js.map +1 -1
  293. package/dist/modules/manager/helmv3/oci.js +3 -4
  294. package/dist/modules/manager/helmv3/oci.js.map +1 -1
  295. package/dist/modules/manager/homebrew/extract.js +1 -1
  296. package/dist/modules/manager/homebrew/extract.js.map +1 -1
  297. package/dist/modules/manager/jenkins/extract.js +3 -3
  298. package/dist/modules/manager/jenkins/extract.js.map +1 -1
  299. package/dist/modules/manager/kotlin-script/extract.js +3 -4
  300. package/dist/modules/manager/kotlin-script/extract.js.map +1 -1
  301. package/dist/modules/manager/kubernetes/extract.js +4 -4
  302. package/dist/modules/manager/kubernetes/extract.js.map +1 -1
  303. package/dist/modules/manager/kustomize/artifacts.js +8 -8
  304. package/dist/modules/manager/kustomize/artifacts.js.map +1 -1
  305. package/dist/modules/manager/kustomize/extract.js +8 -8
  306. package/dist/modules/manager/kustomize/extract.js.map +1 -1
  307. package/dist/modules/manager/maven/extract.js +4 -4
  308. package/dist/modules/manager/maven/extract.js.map +1 -1
  309. package/dist/modules/manager/maven/update.js +2 -2
  310. package/dist/modules/manager/maven/update.js.map +1 -1
  311. package/dist/modules/manager/maven-wrapper/artifacts.js +2 -2
  312. package/dist/modules/manager/maven-wrapper/artifacts.js.map +1 -1
  313. package/dist/modules/manager/mise/backends.js +9 -10
  314. package/dist/modules/manager/mise/backends.js.map +1 -1
  315. package/dist/modules/manager/mise/extract.js +7 -8
  316. package/dist/modules/manager/mise/extract.js.map +1 -1
  317. package/dist/modules/manager/mix/artifacts.js +3 -3
  318. package/dist/modules/manager/mix/artifacts.js.map +1 -1
  319. package/dist/modules/manager/nix/artifacts.js +2 -2
  320. package/dist/modules/manager/nix/artifacts.js.map +1 -1
  321. package/dist/modules/manager/npm/detect.js +2 -2
  322. package/dist/modules/manager/npm/detect.js.map +1 -1
  323. package/dist/modules/manager/npm/extract/common/dependency.js +2 -2
  324. package/dist/modules/manager/npm/extract/common/dependency.js.map +1 -1
  325. package/dist/modules/manager/npm/extract/common/overrides.js +3 -4
  326. package/dist/modules/manager/npm/extract/common/overrides.js.map +1 -1
  327. package/dist/modules/manager/npm/extract/common/package-file.js +8 -9
  328. package/dist/modules/manager/npm/extract/common/package-file.js.map +1 -1
  329. package/dist/modules/manager/npm/extract/index.js +10 -10
  330. package/dist/modules/manager/npm/extract/index.js.map +1 -1
  331. package/dist/modules/manager/npm/extract/pnpm.js +7 -7
  332. package/dist/modules/manager/npm/extract/pnpm.js.map +1 -1
  333. package/dist/modules/manager/npm/extract/post/locked-versions.js +3 -3
  334. package/dist/modules/manager/npm/extract/post/locked-versions.js.map +1 -1
  335. package/dist/modules/manager/npm/extract/post/monorepo.js +3 -4
  336. package/dist/modules/manager/npm/extract/post/monorepo.js.map +1 -1
  337. package/dist/modules/manager/npm/extract/yarn.js +2 -3
  338. package/dist/modules/manager/npm/extract/yarn.js.map +1 -1
  339. package/dist/modules/manager/npm/extract/yarnrc.js +2 -3
  340. package/dist/modules/manager/npm/extract/yarnrc.js.map +1 -1
  341. package/dist/modules/manager/npm/post-update/index.js +6 -6
  342. package/dist/modules/manager/npm/post-update/index.js.map +1 -1
  343. package/dist/modules/manager/npm/post-update/npm.js +4 -4
  344. package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
  345. package/dist/modules/manager/npm/post-update/pnpm.js +3 -3
  346. package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
  347. package/dist/modules/manager/npm/post-update/rules.js +2 -2
  348. package/dist/modules/manager/npm/post-update/rules.js.map +1 -1
  349. package/dist/modules/manager/npm/post-update/utils.js +2 -2
  350. package/dist/modules/manager/npm/post-update/utils.js.map +1 -1
  351. package/dist/modules/manager/npm/post-update/yarn.js +3 -3
  352. package/dist/modules/manager/npm/post-update/yarn.js.map +1 -1
  353. package/dist/modules/manager/npm/update/dependency/index.js +2 -3
  354. package/dist/modules/manager/npm/update/dependency/index.js.map +1 -1
  355. package/dist/modules/manager/npm/update/dependency/pnpm.js +2 -3
  356. package/dist/modules/manager/npm/update/dependency/pnpm.js.map +1 -1
  357. package/dist/modules/manager/npm/update/dependency/yarn.js +3 -4
  358. package/dist/modules/manager/npm/update/dependency/yarn.js.map +1 -1
  359. package/dist/modules/manager/nuget/config-formatter.js +2 -2
  360. package/dist/modules/manager/nuget/config-formatter.js.map +1 -1
  361. package/dist/modules/manager/nuget/extract.js +4 -4
  362. package/dist/modules/manager/nuget/extract.js.map +1 -1
  363. package/dist/modules/manager/nuget/package-tree.js +2 -2
  364. package/dist/modules/manager/nuget/package-tree.js.map +1 -1
  365. package/dist/modules/manager/ocb/extract.js +2 -3
  366. package/dist/modules/manager/ocb/extract.js.map +1 -1
  367. package/dist/modules/manager/osgi/extract.js +4 -4
  368. package/dist/modules/manager/osgi/extract.js.map +1 -1
  369. package/dist/modules/manager/pep621/artifacts.js +3 -4
  370. package/dist/modules/manager/pep621/artifacts.js.map +1 -1
  371. package/dist/modules/manager/pep621/processors/uv.js +2 -3
  372. package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
  373. package/dist/modules/manager/pep621/schema.d.ts +1 -1
  374. package/dist/modules/manager/pep621/schema.js +1 -0
  375. package/dist/modules/manager/pep621/schema.js.map +1 -1
  376. package/dist/modules/manager/pep621/utils.js +8 -10
  377. package/dist/modules/manager/pep621/utils.js.map +1 -1
  378. package/dist/modules/manager/pep723/schema.js +2 -3
  379. package/dist/modules/manager/pep723/schema.js.map +1 -1
  380. package/dist/modules/manager/pip-compile/common.js +3 -3
  381. package/dist/modules/manager/pip-compile/common.js.map +1 -1
  382. package/dist/modules/manager/pip_requirements/artifacts.js +2 -3
  383. package/dist/modules/manager/pip_requirements/artifacts.js.map +1 -1
  384. package/dist/modules/manager/pip_requirements/extract.js +2 -3
  385. package/dist/modules/manager/pip_requirements/extract.js.map +1 -1
  386. package/dist/modules/manager/pipenv/artifacts.js +3 -4
  387. package/dist/modules/manager/pipenv/artifacts.js.map +1 -1
  388. package/dist/modules/manager/pipenv/extract.js +6 -7
  389. package/dist/modules/manager/pipenv/extract.js.map +1 -1
  390. package/dist/modules/manager/pixi/artifacts.js +2 -3
  391. package/dist/modules/manager/pixi/artifacts.js.map +1 -1
  392. package/dist/modules/manager/pixi/extract.js +2 -3
  393. package/dist/modules/manager/pixi/extract.js.map +1 -1
  394. package/dist/modules/manager/poetry/artifacts.js +4 -5
  395. package/dist/modules/manager/poetry/artifacts.js.map +1 -1
  396. package/dist/modules/manager/poetry/extract.js +2 -3
  397. package/dist/modules/manager/poetry/extract.js.map +1 -1
  398. package/dist/modules/manager/poetry/schema.d.ts +4 -0
  399. package/dist/modules/manager/poetry/schema.js +5 -1
  400. package/dist/modules/manager/poetry/schema.js.map +1 -1
  401. package/dist/modules/manager/pre-commit/extract.js +4 -5
  402. package/dist/modules/manager/pre-commit/extract.js.map +1 -1
  403. package/dist/modules/manager/pub/artifacts.js +3 -4
  404. package/dist/modules/manager/pub/artifacts.js.map +1 -1
  405. package/dist/modules/manager/pub/extract.js +8 -11
  406. package/dist/modules/manager/pub/extract.js.map +1 -1
  407. package/dist/modules/manager/renovate-config-presets/extract.js +4 -5
  408. package/dist/modules/manager/renovate-config-presets/extract.js.map +1 -1
  409. package/dist/modules/manager/tekton/extract.js +9 -10
  410. package/dist/modules/manager/tekton/extract.js.map +1 -1
  411. package/dist/modules/manager/terraform/base.js +2 -3
  412. package/dist/modules/manager/terraform/base.js.map +1 -1
  413. package/dist/modules/manager/terraform/extract.js +2 -2
  414. package/dist/modules/manager/terraform/extract.js.map +1 -1
  415. package/dist/modules/manager/terraform/extractors/others/modules.js +3 -4
  416. package/dist/modules/manager/terraform/extractors/others/modules.js.map +1 -1
  417. package/dist/modules/manager/terraform/extractors/others/providers.js +3 -4
  418. package/dist/modules/manager/terraform/extractors/others/providers.js.map +1 -1
  419. package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js +7 -8
  420. package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js.map +1 -1
  421. package/dist/modules/manager/terraform/extractors/resources/helm-release.js +5 -6
  422. package/dist/modules/manager/terraform/extractors/resources/helm-release.js.map +1 -1
  423. package/dist/modules/manager/terraform/extractors/resources/terraform-workspace.js +3 -4
  424. package/dist/modules/manager/terraform/extractors/resources/terraform-workspace.js.map +1 -1
  425. package/dist/modules/manager/terraform/extractors/terraform-block/required-provider.js +4 -5
  426. package/dist/modules/manager/terraform/extractors/terraform-block/required-provider.js.map +1 -1
  427. package/dist/modules/manager/terraform/extractors/terraform-block/terraform-version.js +3 -3
  428. package/dist/modules/manager/terraform/extractors/terraform-block/terraform-version.js.map +1 -1
  429. package/dist/modules/manager/terraform/lockfile/index.js +2 -2
  430. package/dist/modules/manager/terraform/lockfile/index.js.map +1 -1
  431. package/dist/modules/manager/terraform/lockfile/util.js +2 -3
  432. package/dist/modules/manager/terraform/lockfile/util.js.map +1 -1
  433. package/dist/modules/manager/terraform/util.js +2 -3
  434. package/dist/modules/manager/terraform/util.js.map +1 -1
  435. package/dist/modules/manager/tflint-plugin/plugins.js +2 -3
  436. package/dist/modules/manager/tflint-plugin/plugins.js.map +1 -1
  437. package/dist/modules/manager/travis/extract.js +5 -6
  438. package/dist/modules/manager/travis/extract.js.map +1 -1
  439. package/dist/modules/manager/woodpecker/extract.js +2 -3
  440. package/dist/modules/manager/woodpecker/extract.js.map +1 -1
  441. package/dist/modules/platform/azure/index.js +2 -2
  442. package/dist/modules/platform/azure/index.js.map +1 -1
  443. package/dist/modules/platform/bitbucket/index.js +5 -5
  444. package/dist/modules/platform/bitbucket/index.js.map +1 -1
  445. package/dist/modules/platform/bitbucket-server/pr-cache.js +3 -3
  446. package/dist/modules/platform/bitbucket-server/pr-cache.js.map +1 -1
  447. package/dist/modules/platform/bitbucket-server/utils.js +2 -2
  448. package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
  449. package/dist/modules/platform/codecommit/codecommit-client.js +2 -2
  450. package/dist/modules/platform/codecommit/codecommit-client.js.map +1 -1
  451. package/dist/modules/platform/forgejo/index.js +5 -5
  452. package/dist/modules/platform/forgejo/index.js.map +1 -1
  453. package/dist/modules/platform/forgejo/pr-cache.js +1 -1
  454. package/dist/modules/platform/forgejo/pr-cache.js.map +1 -1
  455. package/dist/modules/platform/forgejo/utils.js +2 -2
  456. package/dist/modules/platform/forgejo/utils.js.map +1 -1
  457. package/dist/modules/platform/gitea/index.js +5 -5
  458. package/dist/modules/platform/gitea/index.js.map +1 -1
  459. package/dist/modules/platform/gitea/pr-cache.js +1 -1
  460. package/dist/modules/platform/gitea/pr-cache.js.map +1 -1
  461. package/dist/modules/platform/gitea/utils.js +2 -2
  462. package/dist/modules/platform/gitea/utils.js.map +1 -1
  463. package/dist/modules/platform/github/common.js +4 -5
  464. package/dist/modules/platform/github/common.js.map +1 -1
  465. package/dist/modules/platform/github/index.js +5 -5
  466. package/dist/modules/platform/github/index.js.map +1 -1
  467. package/dist/modules/platform/github/pr.js +2 -3
  468. package/dist/modules/platform/github/pr.js.map +1 -1
  469. package/dist/modules/platform/gitlab/http.js +2 -3
  470. package/dist/modules/platform/gitlab/http.js.map +1 -1
  471. package/dist/modules/platform/gitlab/index.js +3 -3
  472. package/dist/modules/platform/gitlab/index.js.map +1 -1
  473. package/dist/modules/platform/gitlab/utils.js +3 -3
  474. package/dist/modules/platform/gitlab/utils.js.map +1 -1
  475. package/dist/modules/platform/pr-body.js +2 -3
  476. package/dist/modules/platform/pr-body.js.map +1 -1
  477. package/dist/modules/versioning/composer/index.js +2 -3
  478. package/dist/modules/versioning/composer/index.js.map +1 -1
  479. package/dist/modules/versioning/generic.js +5 -6
  480. package/dist/modules/versioning/generic.js.map +1 -1
  481. package/dist/modules/versioning/gradle/compare.js +3 -4
  482. package/dist/modules/versioning/gradle/compare.js.map +1 -1
  483. package/dist/modules/versioning/ivy/parse.js +1 -1
  484. package/dist/modules/versioning/ivy/parse.js.map +1 -1
  485. package/dist/modules/versioning/maven/index.js +1 -1
  486. package/dist/modules/versioning/maven/index.js.map +1 -1
  487. package/dist/modules/versioning/nixpkgs/index.js +6 -7
  488. package/dist/modules/versioning/nixpkgs/index.js.map +1 -1
  489. package/dist/modules/versioning/npm/range.js +2 -2
  490. package/dist/modules/versioning/npm/range.js.map +1 -1
  491. package/dist/modules/versioning/nuget/index.js +1 -1
  492. package/dist/modules/versioning/nuget/index.js.map +1 -1
  493. package/dist/modules/versioning/rpm/index.js +4 -5
  494. package/dist/modules/versioning/rpm/index.js.map +1 -1
  495. package/dist/modules/versioning/schema.js +2 -2
  496. package/dist/modules/versioning/schema.js.map +1 -1
  497. package/dist/modules/versioning/semver-coerced/index.js +3 -3
  498. package/dist/modules/versioning/semver-coerced/index.js.map +1 -1
  499. package/dist/modules/versioning/semver-partial/index.js +4 -4
  500. package/dist/modules/versioning/semver-partial/index.js.map +1 -1
  501. package/dist/proxy.js +3 -4
  502. package/dist/proxy.js.map +1 -1
  503. package/dist/util/array.js +4 -5
  504. package/dist/util/array.js.map +1 -1
  505. package/dist/util/assign-keys.js +2 -3
  506. package/dist/util/assign-keys.js.map +1 -1
  507. package/dist/util/cache/package/decorator.js +6 -6
  508. package/dist/util/cache/package/decorator.js.map +1 -1
  509. package/dist/util/cache/package/ttl.js +4 -5
  510. package/dist/util/cache/package/ttl.js.map +1 -1
  511. package/dist/util/cache/repository/impl/base.js +3 -4
  512. package/dist/util/cache/repository/impl/base.js.map +1 -1
  513. package/dist/util/cache/repository/impl/s3.js +2 -3
  514. package/dist/util/cache/repository/impl/s3.js.map +1 -1
  515. package/dist/util/exec/common.js +2 -3
  516. package/dist/util/exec/common.js.map +1 -1
  517. package/dist/util/exec/containerbase.js +2 -2
  518. package/dist/util/exec/containerbase.js.map +1 -1
  519. package/dist/util/exec/docker/index.js +5 -5
  520. package/dist/util/exec/docker/index.js.map +1 -1
  521. package/dist/util/exec/index.js +2 -2
  522. package/dist/util/exec/index.js.map +1 -1
  523. package/dist/util/exec/utils.js +3 -4
  524. package/dist/util/exec/utils.js.map +1 -1
  525. package/dist/util/filter-map.js +2 -3
  526. package/dist/util/filter-map.js.map +1 -1
  527. package/dist/util/fs/index.js +3 -3
  528. package/dist/util/fs/index.js.map +1 -1
  529. package/dist/util/git/auth.js +2 -3
  530. package/dist/util/git/auth.js.map +1 -1
  531. package/dist/util/git/behind-base-branch-cache.js +2 -1
  532. package/dist/util/git/behind-base-branch-cache.js.map +1 -1
  533. package/dist/util/git/config.js +3 -4
  534. package/dist/util/git/config.js.map +1 -1
  535. package/dist/util/git/conflicts-cache.js +2 -1
  536. package/dist/util/git/conflicts-cache.js.map +1 -1
  537. package/dist/util/git/index.js +5 -5
  538. package/dist/util/git/index.js.map +1 -1
  539. package/dist/util/git/private-key.js +2 -2
  540. package/dist/util/git/private-key.js.map +1 -1
  541. package/dist/util/github/graphql/datasource-fetcher.js +2 -1
  542. package/dist/util/github/graphql/datasource-fetcher.js.map +1 -1
  543. package/dist/util/host-rules.js +6 -6
  544. package/dist/util/host-rules.js.map +1 -1
  545. package/dist/util/http/auth.js +3 -4
  546. package/dist/util/http/auth.js.map +1 -1
  547. package/dist/util/http/bitbucket-server.js +2 -3
  548. package/dist/util/http/bitbucket-server.js.map +1 -1
  549. package/dist/util/http/bitbucket.js +3 -4
  550. package/dist/util/http/bitbucket.js.map +1 -1
  551. package/dist/util/http/cache/package-http-cache-provider.js +2 -2
  552. package/dist/util/http/cache/package-http-cache-provider.js.map +1 -1
  553. package/dist/util/http/forgejo.js +3 -4
  554. package/dist/util/http/forgejo.js.map +1 -1
  555. package/dist/util/http/gitea.js +3 -4
  556. package/dist/util/http/gitea.js.map +1 -1
  557. package/dist/util/http/github.js +10 -10
  558. package/dist/util/http/github.js.map +1 -1
  559. package/dist/util/http/gitlab.js +4 -5
  560. package/dist/util/http/gitlab.js.map +1 -1
  561. package/dist/util/http/host-rules.js +10 -10
  562. package/dist/util/http/host-rules.js.map +1 -1
  563. package/dist/util/http/http.js +5 -5
  564. package/dist/util/http/http.js.map +1 -1
  565. package/dist/util/http/rate-limits.js +3 -3
  566. package/dist/util/http/rate-limits.js.map +1 -1
  567. package/dist/util/http/retry-after.js +3 -4
  568. package/dist/util/http/retry-after.js.map +1 -1
  569. package/dist/util/interpolator.js +8 -9
  570. package/dist/util/interpolator.js.map +1 -1
  571. package/dist/util/merge-confidence/index.js +5 -5
  572. package/dist/util/merge-confidence/index.js.map +1 -1
  573. package/dist/util/number.js +2 -3
  574. package/dist/util/number.js.map +1 -1
  575. package/dist/util/package-rules/base-branches.js +3 -4
  576. package/dist/util/package-rules/base-branches.js.map +1 -1
  577. package/dist/util/package-rules/categories.js +3 -4
  578. package/dist/util/package-rules/categories.js.map +1 -1
  579. package/dist/util/package-rules/current-age.js +3 -4
  580. package/dist/util/package-rules/current-age.js.map +1 -1
  581. package/dist/util/package-rules/current-value.js +2 -3
  582. package/dist/util/package-rules/current-value.js.map +1 -1
  583. package/dist/util/package-rules/current-version.js +5 -5
  584. package/dist/util/package-rules/current-version.js.map +1 -1
  585. package/dist/util/package-rules/datasources.js +3 -4
  586. package/dist/util/package-rules/datasources.js.map +1 -1
  587. package/dist/util/package-rules/dep-names.js +3 -4
  588. package/dist/util/package-rules/dep-names.js.map +1 -1
  589. package/dist/util/package-rules/dep-types.js +2 -3
  590. package/dist/util/package-rules/dep-types.js.map +1 -1
  591. package/dist/util/package-rules/files.js +4 -5
  592. package/dist/util/package-rules/files.js.map +1 -1
  593. package/dist/util/package-rules/index.js +6 -6
  594. package/dist/util/package-rules/index.js.map +1 -1
  595. package/dist/util/package-rules/managers.js +3 -4
  596. package/dist/util/package-rules/managers.js.map +1 -1
  597. package/dist/util/package-rules/merge-confidence.js +5 -6
  598. package/dist/util/package-rules/merge-confidence.js.map +1 -1
  599. package/dist/util/package-rules/new-value.js +2 -3
  600. package/dist/util/package-rules/new-value.js.map +1 -1
  601. package/dist/util/package-rules/package-names.js +2 -3
  602. package/dist/util/package-rules/package-names.js.map +1 -1
  603. package/dist/util/package-rules/repositories.js +3 -4
  604. package/dist/util/package-rules/repositories.js.map +1 -1
  605. package/dist/util/package-rules/sourceurls.js +2 -3
  606. package/dist/util/package-rules/sourceurls.js.map +1 -1
  607. package/dist/util/package-rules/update-types.js +2 -3
  608. package/dist/util/package-rules/update-types.js.map +1 -1
  609. package/dist/util/pretty-time.js +4 -4
  610. package/dist/util/pretty-time.js.map +1 -1
  611. package/dist/util/regex.js +2 -3
  612. package/dist/util/regex.js.map +1 -1
  613. package/dist/util/s3.js +2 -3
  614. package/dist/util/s3.js.map +1 -1
  615. package/dist/util/sanitize.js +2 -3
  616. package/dist/util/sanitize.js.map +1 -1
  617. package/dist/util/string-match.js +2 -3
  618. package/dist/util/string-match.js.map +1 -1
  619. package/dist/util/template/index.js +6 -6
  620. package/dist/util/template/index.js.map +1 -1
  621. package/dist/util/url.js +5 -5
  622. package/dist/util/url.js.map +1 -1
  623. package/dist/workers/global/autodiscover.js +3 -4
  624. package/dist/workers/global/autodiscover.js.map +1 -1
  625. package/dist/workers/global/config/parse/additional-config-file.js +4 -4
  626. package/dist/workers/global/config/parse/additional-config-file.js.map +1 -1
  627. package/dist/workers/global/config/parse/coersions.js +2 -2
  628. package/dist/workers/global/config/parse/coersions.js.map +1 -1
  629. package/dist/workers/global/config/parse/env.js +2 -2
  630. package/dist/workers/global/config/parse/env.js.map +1 -1
  631. package/dist/workers/global/config/parse/file.js +5 -5
  632. package/dist/workers/global/config/parse/file.js.map +1 -1
  633. package/dist/workers/global/config/parse/index.js +6 -7
  634. package/dist/workers/global/config/parse/index.js.map +1 -1
  635. package/dist/workers/global/config/parse/util.js +2 -2
  636. package/dist/workers/global/config/parse/util.js.map +1 -1
  637. package/dist/workers/global/index.js +5 -5
  638. package/dist/workers/global/index.js.map +1 -1
  639. package/dist/workers/global/limits.js +6 -7
  640. package/dist/workers/global/limits.js.map +1 -1
  641. package/dist/workers/repository/config-migration/branch/index.js +2 -3
  642. package/dist/workers/repository/config-migration/branch/index.js.map +1 -1
  643. package/dist/workers/repository/config-migration/branch/migrated-data.js +2 -2
  644. package/dist/workers/repository/config-migration/branch/migrated-data.js.map +1 -1
  645. package/dist/workers/repository/config-migration/pr/index.js +3 -3
  646. package/dist/workers/repository/config-migration/pr/index.js.map +1 -1
  647. package/dist/workers/repository/dependency-dashboard.js +10 -10
  648. package/dist/workers/repository/dependency-dashboard.js.map +1 -1
  649. package/dist/workers/repository/extract/index.js +2 -3
  650. package/dist/workers/repository/extract/index.js.map +1 -1
  651. package/dist/workers/repository/extract/manager-files.js +2 -3
  652. package/dist/workers/repository/extract/manager-files.js.map +1 -1
  653. package/dist/workers/repository/extract/supersedes.js +4 -5
  654. package/dist/workers/repository/extract/supersedes.js.map +1 -1
  655. package/dist/workers/repository/finalize/prune.js +2 -3
  656. package/dist/workers/repository/finalize/prune.js.map +1 -1
  657. package/dist/workers/repository/init/inherited.js +5 -5
  658. package/dist/workers/repository/init/inherited.js.map +1 -1
  659. package/dist/workers/repository/init/merge.js +13 -13
  660. package/dist/workers/repository/init/merge.js.map +1 -1
  661. package/dist/workers/repository/model/commit-message.js +2 -3
  662. package/dist/workers/repository/model/commit-message.js.map +1 -1
  663. package/dist/workers/repository/onboarding/branch/check.js +2 -1
  664. package/dist/workers/repository/onboarding/branch/check.js.map +1 -1
  665. package/dist/workers/repository/onboarding/branch/index.js +3 -4
  666. package/dist/workers/repository/onboarding/branch/index.js.map +1 -1
  667. package/dist/workers/repository/onboarding/branch/onboarding-branch-cache.js +7 -8
  668. package/dist/workers/repository/onboarding/branch/onboarding-branch-cache.js.map +1 -1
  669. package/dist/workers/repository/onboarding/pr/config-description.js +2 -5
  670. package/dist/workers/repository/onboarding/pr/config-description.js.map +1 -1
  671. package/dist/workers/repository/onboarding/pr/index.js +3 -3
  672. package/dist/workers/repository/onboarding/pr/index.js.map +1 -1
  673. package/dist/workers/repository/package-files.js +8 -9
  674. package/dist/workers/repository/package-files.js.map +1 -1
  675. package/dist/workers/repository/process/extract-update.js +2 -2
  676. package/dist/workers/repository/process/extract-update.js.map +1 -1
  677. package/dist/workers/repository/process/fetch.js +3 -3
  678. package/dist/workers/repository/process/fetch.js.map +1 -1
  679. package/dist/workers/repository/process/lookup/current.js +2 -3
  680. package/dist/workers/repository/process/lookup/current.js.map +1 -1
  681. package/dist/workers/repository/process/lookup/filter-checks.js +4 -5
  682. package/dist/workers/repository/process/lookup/filter-checks.js.map +1 -1
  683. package/dist/workers/repository/process/lookup/generate.js +2 -3
  684. package/dist/workers/repository/process/lookup/generate.js.map +1 -1
  685. package/dist/workers/repository/process/lookup/index.js +15 -16
  686. package/dist/workers/repository/process/lookup/index.js.map +1 -1
  687. package/dist/workers/repository/process/lookup/utils.js +7 -7
  688. package/dist/workers/repository/process/lookup/utils.js.map +1 -1
  689. package/dist/workers/repository/process/vulnerabilities.js +11 -11
  690. package/dist/workers/repository/process/vulnerabilities.js.map +1 -1
  691. package/dist/workers/repository/process/write.js +2 -3
  692. package/dist/workers/repository/process/write.js.map +1 -1
  693. package/dist/workers/repository/reconfigure/comment.js +2 -5
  694. package/dist/workers/repository/reconfigure/comment.js.map +1 -1
  695. package/dist/workers/repository/reconfigure/utils.js +2 -3
  696. package/dist/workers/repository/reconfigure/utils.js.map +1 -1
  697. package/dist/workers/repository/reconfigure/validate.js +2 -3
  698. package/dist/workers/repository/reconfigure/validate.js.map +1 -1
  699. package/dist/workers/repository/update/branch/auto-replace.js +4 -5
  700. package/dist/workers/repository/update/branch/auto-replace.js.map +1 -1
  701. package/dist/workers/repository/update/branch/commit.js +3 -4
  702. package/dist/workers/repository/update/branch/commit.js.map +1 -1
  703. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +12 -5
  704. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
  705. package/dist/workers/repository/update/branch/get-updated.js +8 -9
  706. package/dist/workers/repository/update/branch/get-updated.js.map +1 -1
  707. package/dist/workers/repository/update/branch/index.js +3 -3
  708. package/dist/workers/repository/update/branch/index.js.map +1 -1
  709. package/dist/workers/repository/update/branch/schedule.js +2 -2
  710. package/dist/workers/repository/update/branch/schedule.js.map +1 -1
  711. package/dist/workers/repository/update/pr/body/notes.js +2 -2
  712. package/dist/workers/repository/update/pr/body/notes.js.map +1 -1
  713. package/dist/workers/repository/update/pr/changelog/bitbucket/index.js +2 -2
  714. package/dist/workers/repository/update/pr/changelog/bitbucket/index.js.map +1 -1
  715. package/dist/workers/repository/update/pr/changelog/index.js +3 -3
  716. package/dist/workers/repository/update/pr/changelog/index.js.map +1 -1
  717. package/dist/workers/repository/update/pr/changelog/release-notes.js +4 -4
  718. package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
  719. package/dist/workers/repository/update/pr/changelog/source.js +8 -8
  720. package/dist/workers/repository/update/pr/changelog/source.js.map +1 -1
  721. package/dist/workers/repository/update/pr/code-owners.js +2 -2
  722. package/dist/workers/repository/update/pr/code-owners.js.map +1 -1
  723. package/dist/workers/repository/update/pr/index.js +7 -8
  724. package/dist/workers/repository/update/pr/index.js.map +1 -1
  725. package/dist/workers/repository/update/pr/labels.js +4 -4
  726. package/dist/workers/repository/update/pr/labels.js.map +1 -1
  727. package/dist/workers/repository/update/pr/participants.js +4 -5
  728. package/dist/workers/repository/update/pr/participants.js.map +1 -1
  729. package/dist/workers/repository/updates/generate.js +4 -4
  730. package/dist/workers/repository/updates/generate.js.map +1 -1
  731. package/package.json +5 -5
  732. package/renovate-schema.json +2 -2
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.options = void 0;
4
4
  exports.validateConfigSecretsAndVariables = validateConfigSecretsAndVariables;
5
5
  exports.applySecretsAndVariablesToConfig = applySecretsAndVariablesToConfig;
6
- const tslib_1 = require("tslib");
7
- const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
6
+ const is_1 = require("@sindresorhus/is");
8
7
  const interpolator_1 = require("../util/interpolator");
9
8
  const regex_1 = require("../util/regex");
10
9
  const sanitize_1 = require("../util/sanitize");
@@ -28,7 +27,7 @@ function validateNestedInterpolatedValues(config, key) {
28
27
  (0, interpolator_1.validateInterpolatedValues)(config[key], exports.options[key]);
29
28
  if (config.repositories) {
30
29
  for (const repository of config.repositories) {
31
- if (is_1.default.plainObject(repository)) {
30
+ if ((0, is_1.isPlainObject)(repository)) {
32
31
  (0, interpolator_1.validateInterpolatedValues)(repository[key], exports.options[key]);
33
32
  }
34
33
  }
@@ -46,7 +45,7 @@ function applySecretsAndVariablesToConfig(applyConfig) {
46
45
  const secrets = applyConfig.secrets ?? config.secrets;
47
46
  const variables = applyConfig.variables ?? config.variables;
48
47
  // Add all secrets to be sanitized
49
- if (is_1.default.plainObject(secrets)) {
48
+ if ((0, is_1.isPlainObject)(secrets)) {
50
49
  for (const secret of Object.values(secrets)) {
51
50
  (0, sanitize_1.addSecretForSanitizing)(secret);
52
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../lib/config/secrets.ts"],"names":[],"mappings":";;;AA0CA,8EAKC;AAaD,4EA2BC;;AAvFD,kEAAkC;AAElC,uDAG8B;AAC9B,yCAAsC;AACtC,+CAA0D;AAG1D,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAC5C,MAAM,SAAS,GAAG,IAAA,aAAK,EAAC,IAAI,WAAW,GAAG,CAAC,CAAC;AAC5C,MAAM,mBAAmB,GAAG,IAAA,aAAK,EAAC,iBAAiB,WAAW,MAAM,EAAE,GAAG,CAAC,CAAC;AAC3E,MAAM,qBAAqB,GAAG,IAAA,aAAK,EAAC,mBAAmB,WAAW,MAAM,EAAE,GAAG,CAAC,CAAC;AAElE,QAAA,OAAO,GAAyD;IAC3E,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,SAAS;QACT,aAAa,EAAE,mBAAmB;KACnC;IACD,SAAS,EAAE;QACT,IAAI,EAAE,WAAW;QACjB,SAAS;QACT,aAAa,EAAE,qBAAqB;KACrC;CACF,CAAC;AAEF,SAAS,gCAAgC,CACvC,MAAiB,EACjB,GAAM;IAEN,IAAA,yCAA0B,EAAC,MAAM,CAAC,GAAG,CAAC,EAAE,eAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACtD,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;QACxB,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;YAC7C,IAAI,YAAE,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC/B,IAAA,yCAA0B,EAAC,UAAU,CAAC,GAAG,CAAC,EAAE,eAAO,CAAC,GAAG,CAAC,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAgB,iCAAiC,CAC/C,MAAsB;IAEtB,gCAAgC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpD,gCAAgC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC;AAUD;;GAEG;AACH,SAAgB,gCAAgC,CAC9C,WAA2C;IAE3C,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,WAAW,CAAC;IAC/D,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC;IACtD,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC;IAE5D,kCAAkC;IAClC,IAAI,YAAE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5C,IAAA,iCAAsB,EAAC,MAAM,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,MAAM,cAAc,GAAG,IAAA,gDAAiC,EACtD,MAAM,EACN,SAAS,IAAI,EAAE,EACf,eAAO,CAAC,SAAS,EACjB,eAAe,CAChB,CAAC;IAEF,OAAO,IAAA,gDAAiC,EACtC,cAAc,EACd,OAAO,IAAI,EAAE,EACb,eAAO,CAAC,OAAO,EACf,aAAa,CACd,CAAC;AACJ,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport type { InterpolatorOptions } from '../util/interpolator';\nimport {\n replaceInterpolatedValuesInObject,\n validateInterpolatedValues,\n} from '../util/interpolator';\nimport { regEx } from '../util/regex';\nimport { addSecretForSanitizing } from '../util/sanitize';\nimport type { AllConfig, RenovateConfig } from './types';\n\nconst namePattern = '[A-Za-z][A-Za-z0-9_]*';\nconst nameRegex = regEx(`^${namePattern}$`);\nconst secretTemplateRegex = regEx(`{{ secrets\\\\.(${namePattern}) }}`, 'g');\nconst variableTemplateRegex = regEx(`{{ variables\\\\.(${namePattern}) }}`, 'g');\n\nexport const options: Record<'secrets' | 'variables', InterpolatorOptions> = {\n secrets: {\n name: 'secrets',\n nameRegex,\n templateRegex: secretTemplateRegex,\n },\n variables: {\n name: 'variables',\n nameRegex,\n templateRegex: variableTemplateRegex,\n },\n};\n\nfunction validateNestedInterpolatedValues<T extends 'secrets' | 'variables'>(\n config: AllConfig,\n key: T,\n): void {\n validateInterpolatedValues(config[key], options[key]);\n if (config.repositories) {\n for (const repository of config.repositories) {\n if (is.plainObject(repository)) {\n validateInterpolatedValues(repository[key], options[key]);\n }\n }\n }\n}\n\nexport function validateConfigSecretsAndVariables(\n config: RenovateConfig,\n): void {\n validateNestedInterpolatedValues(config, 'secrets');\n validateNestedInterpolatedValues(config, 'variables');\n}\n\ninterface ApplySecretsAndVariablesConfig {\n config: RenovateConfig;\n secrets?: RenovateConfig['secrets'];\n variables?: RenovateConfig['variables'];\n deleteSecrets?: boolean;\n deleteVariables?: boolean;\n}\n\n/**\n * Applies both variables and secrets to the Renovate config by interpolating values\n */\nexport function applySecretsAndVariablesToConfig(\n applyConfig: ApplySecretsAndVariablesConfig,\n): RenovateConfig {\n const { config, deleteSecrets, deleteVariables } = applyConfig;\n const secrets = applyConfig.secrets ?? config.secrets;\n const variables = applyConfig.variables ?? config.variables;\n\n // Add all secrets to be sanitized\n if (is.plainObject(secrets)) {\n for (const secret of Object.values(secrets)) {\n addSecretForSanitizing(secret);\n }\n }\n\n const configWithVars = replaceInterpolatedValuesInObject(\n config,\n variables ?? {},\n options.variables,\n deleteVariables,\n );\n\n return replaceInterpolatedValuesInObject(\n configWithVars,\n secrets ?? {},\n options.secrets,\n deleteSecrets,\n );\n}\n"]}
1
+ {"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../lib/config/secrets.ts"],"names":[],"mappings":";;;AA0CA,8EAKC;AAaD,4EA2BC;AAvFD,yCAAiD;AAEjD,uDAG8B;AAC9B,yCAAsC;AACtC,+CAA0D;AAG1D,MAAM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AAO,IAAI,MAAM,CAAC,OAAO,CAAC;IACtD,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC;IAE5D,kCAAkC;IAClC,IAAI,IAAA,kBAAa,EAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5C,IAAA,iCAAsB,EAAC,MAAM,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,MAAM,cAAc,GAAG,IAAA,gDAAiC,EACtD,MAAM,EACN,SAAS,IAAI,EAAE,EACf,eAAO,CAAC,SAAS,EACjB,eAAe,CAChB,CAAC;IAEF,OAAO,IAAA,gDAAiC,EACtC,cAAc,EACd,OAAO,IAAI,EAAE,EACb,eAAO,CAAC,OAAO,EACf,aAAa,CACd,CAAC;AACJ,CAAC","sourcesContent":["import { isPlainObject } from '@sindresorhus/is';\nimport type { InterpolatorOptions } from '../util/interpolator';\nimport {\n replaceInterpolatedValuesInObject,\n validateInterpolatedValues,\n} from '../util/interpolator';\nimport { regEx } from '../util/regex';\nimport { addSecretForSanitizing } from '../util/sanitize';\nimport type { AllConfig, RenovateConfig } from './types';\n\nconst namePattern = '[A-Za-z][A-Za-z0-9_]*';\nconst nameRegex = regEx(`^${namePattern}$`);\nconst secretTemplateRegex = regEx(`{{ secrets\\\\.(${namePattern}) }}`, 'g');\nconst variableTemplateRegex = regEx(`{{ variables\\\\.(${namePattern}) }}`, 'g');\n\nexport const options: Record<'secrets' | 'variables', InterpolatorOptions> = {\n secrets: {\n name: 'secrets',\n nameRegex,\n templateRegex: secretTemplateRegex,\n },\n variables: {\n name: 'variables',\n nameRegex,\n templateRegex: variableTemplateRegex,\n },\n};\n\nfunction validateNestedInterpolatedValues<T extends 'secrets' | 'variables'>(\n config: AllConfig,\n key: T,\n): void {\n validateInterpolatedValues(config[key], options[key]);\n if (config.repositories) {\n for (const repository of config.repositories) {\n if (isPlainObject(repository)) {\n validateInterpolatedValues(repository[key], options[key]);\n }\n }\n }\n}\n\nexport function validateConfigSecretsAndVariables(\n config: RenovateConfig,\n): void {\n validateNestedInterpolatedValues(config, 'secrets');\n validateNestedInterpolatedValues(config, 'variables');\n}\n\ninterface ApplySecretsAndVariablesConfig {\n config: RenovateConfig;\n secrets?: RenovateConfig['secrets'];\n variables?: RenovateConfig['variables'];\n deleteSecrets?: boolean;\n deleteVariables?: boolean;\n}\n\n/**\n * Applies both variables and secrets to the Renovate config by interpolating values\n */\nexport function applySecretsAndVariablesToConfig(\n applyConfig: ApplySecretsAndVariablesConfig,\n): RenovateConfig {\n const { config, deleteSecrets, deleteVariables } = applyConfig;\n const secrets = applyConfig.secrets ?? config.secrets;\n const variables = applyConfig.variables ?? config.variables;\n\n // Add all secrets to be sanitized\n if (isPlainObject(secrets)) {\n for (const secret of Object.values(secrets)) {\n addSecretForSanitizing(secret);\n }\n }\n\n const configWithVars = replaceInterpolatedValuesInObject(\n config,\n variables ?? {},\n options.variables,\n deleteVariables,\n );\n\n return replaceInterpolatedValuesInObject(\n configWithVars,\n secrets ?? {},\n options.secrets,\n deleteSecrets,\n );\n}\n"]}
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.check = check;
4
- const tslib_1 = require("tslib");
5
- const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
4
+ const is_1 = require("@sindresorhus/is");
6
5
  /**
7
6
  * Only if type condition or context condition violated then errors array will be mutated to store metadata
8
7
  */
9
8
  function check({ resolvedRule, currentPath, baseBranchPatterns, }) {
10
9
  const warnings = [];
11
10
  if (Array.isArray(resolvedRule.matchBaseBranches)) {
12
- if (!is_1.default.nonEmptyArray(baseBranchPatterns)) {
11
+ if (!(0, is_1.isNonEmptyArray)(baseBranchPatterns)) {
13
12
  warnings.push({
14
13
  topic: 'Configuration Error',
15
14
  message: `${currentPath}: You must configure baseBranchPatterns in order to use them inside matchBaseBranches.`,
@@ -1 +1 @@
1
- {"version":3,"file":"match-base-branches.js","sourceRoot":"","sources":["../../../lib/config/validation-helpers/match-base-branches.ts"],"names":[],"mappings":";;AAOA,sBAgBC;;AAvBD,kEAAkC;AAIlC;;GAEG;AACH,SAAgB,KAAK,CAAC,EACpB,YAAY,EACZ,WAAW,EACX,kBAAkB,GACI;IACtB,MAAM,QAAQ,GAAwB,EAAE,CAAC;IACzC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,YAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC1C,QAAQ,CAAC,IAAI,CAAC;gBACZ,KAAK,EAAE,qBAAqB;gBAC5B,OAAO,EAAE,GAAG,WAAW,wFAAwF;aAChH,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport type { ValidationMessage } from '../types';\nimport type { CheckBaseBranchesArgs } from './types';\n\n/**\n * Only if type condition or context condition violated then errors array will be mutated to store metadata\n */\nexport function check({\n resolvedRule,\n currentPath,\n baseBranchPatterns,\n}: CheckBaseBranchesArgs): ValidationMessage[] {\n const warnings: ValidationMessage[] = [];\n if (Array.isArray(resolvedRule.matchBaseBranches)) {\n if (!is.nonEmptyArray(baseBranchPatterns)) {\n warnings.push({\n topic: 'Configuration Error',\n message: `${currentPath}: You must configure baseBranchPatterns in order to use them inside matchBaseBranches.`,\n });\n }\n }\n\n return warnings;\n}\n"]}
1
+ {"version":3,"file":"match-base-branches.js","sourceRoot":"","sources":["../../../lib/config/validation-helpers/match-base-branches.ts"],"names":[],"mappings":";;AAOA,sBAgBC;AAvBD,yCAAmD;AAInD;;GAEG;AACH,SAAgB,KAAK,CAAC,EACpB,YAAY,EACZ,WAAW,EACX,kBAAkB,GACI;IACtB,MAAM,QAAQ,GAAwB,EAAE,CAAC;IACzC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,IAAA,oBAAe,EAAC,kBAAkB,CAAC,EAAE,CAAC;YACzC,QAAQ,CAAC,IAAI,CAAC;gBACZ,KAAK,EAAE,qBAAqB;gBAC5B,OAAO,EAAE,GAAG,WAAW,wFAAwF;aAChH,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { isNonEmptyArray } from '@sindresorhus/is';\nimport type { ValidationMessage } from '../types';\nimport type { CheckBaseBranchesArgs } from './types';\n\n/**\n * Only if type condition or context condition violated then errors array will be mutated to store metadata\n */\nexport function check({\n resolvedRule,\n currentPath,\n baseBranchPatterns,\n}: CheckBaseBranchesArgs): ValidationMessage[] {\n const warnings: ValidationMessage[] = [];\n if (Array.isArray(resolvedRule.matchBaseBranches)) {\n if (!isNonEmptyArray(baseBranchPatterns)) {\n warnings.push({\n topic: 'Configuration Error',\n message: `${currentPath}: You must configure baseBranchPatterns in order to use them inside matchBaseBranches.`,\n });\n }\n }\n\n return warnings;\n}\n"]}
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.check = check;
4
- const tslib_1 = require("tslib");
5
- const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
4
+ const is_1 = require("@sindresorhus/is");
6
5
  const string_match_1 = require("../../util/string-match");
7
6
  /**
8
7
  * Only if type condition or context condition violated then errors array will be mutated to store metadata
9
8
  */
10
9
  function check({ val: matchers, currentPath, }) {
11
10
  const res = [];
12
- if (is_1.default.array(matchers, is_1.default.string)) {
11
+ if ((0, is_1.isArray)(matchers, is_1.isString)) {
13
12
  if ((matchers.includes('*') || matchers.includes('**')) &&
14
13
  matchers.length > 1) {
15
14
  res.push({
@@ -1 +1 @@
1
- {"version":3,"file":"regex-glob-matchers.js","sourceRoot":"","sources":["../../../lib/config/validation-helpers/regex-glob-matchers.ts"],"names":[],"mappings":";;AAQA,sBAqCC;;AA7CD,kEAAkC;AAClC,0DAA0E;AAI1E;;GAEG;AACH,SAAgB,KAAK,CAAC,EACpB,GAAG,EAAE,QAAQ,EACb,WAAW,GACM;IACjB,MAAM,GAAG,GAAwB,EAAE,CAAC;IAEpC,IAAI,YAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAE,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,IACE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnD,QAAQ,CAAC,MAAM,GAAG,CAAC,EACnB,CAAC;YACD,GAAG,CAAC,IAAI,CAAC;gBACP,KAAK,EAAE,qBAAqB;gBAC5B,OAAO,EAAE,GAAG,WAAW,+GAA+G;aACvI,CAAC,CAAC;QACL,CAAC;QACD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,yBAAyB;YACzB,8CAA8C;YAC9C,sCAAsC;YACtC,IAAI,IAAA,2BAAY,EAAC,OAAO,CAAC,EAAE,CAAC;gBAC1B,IAAI,CAAC,IAAA,gCAAiB,EAAC,OAAO,CAAC,EAAE,CAAC;oBAChC,GAAG,CAAC,IAAI,CAAC;wBACP,KAAK,EAAE,qBAAqB;wBAC5B,OAAO,EAAE,qCAAqC,WAAW,KAAK,OAAO,EAAE;qBACxE,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,GAAG,WAAW,sDAAsD,OAAO,QAAQ,GAAG;SAChG,CAAC,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { getRegexPredicate, isRegexMatch } from '../../util/string-match';\nimport type { ValidationMessage } from '../types';\nimport type { CheckMatcherArgs } from './types';\n\n/**\n * Only if type condition or context condition violated then errors array will be mutated to store metadata\n */\nexport function check({\n val: matchers,\n currentPath,\n}: CheckMatcherArgs): ValidationMessage[] {\n const res: ValidationMessage[] = [];\n\n if (is.array(matchers, is.string)) {\n if (\n (matchers.includes('*') || matchers.includes('**')) &&\n matchers.length > 1\n ) {\n res.push({\n topic: 'Configuration Error',\n message: `${currentPath}: Your input contains * or ** along with other patterns. Please remove them, as * or ** matches all patterns.`,\n });\n }\n for (const matcher of matchers) {\n // Validate regex pattern\n // No need to validate if the string is a glob\n // minimatch allows any string as glob\n if (isRegexMatch(matcher)) {\n if (!getRegexPredicate(matcher)) {\n res.push({\n topic: 'Configuration Error',\n message: `Failed to parse regex pattern for ${currentPath}: ${matcher}`,\n });\n }\n }\n }\n } else {\n res.push({\n topic: 'Configuration Error',\n message: `${currentPath}: should be an array of strings. You have included ${typeof matchers}.`,\n });\n }\n\n return res;\n}\n"]}
1
+ {"version":3,"file":"regex-glob-matchers.js","sourceRoot":"","sources":["../../../lib/config/validation-helpers/regex-glob-matchers.ts"],"names":[],"mappings":";;AAQA,sBAqCC;AA7CD,yCAAqD;AACrD,0DAA0E;AAI1E;;GAEG;AACH,SAAgB,KAAK,CAAC,EACpB,GAAG,EAAE,QAAQ,EACb,WAAW,GACM;IACjB,MAAM,GAAG,GAAwB,EAAE,CAAC;IAEpC,IAAI,IAAA,YAAO,EAAC,QAAQ,EAAE,aAAQ,CAAC,EAAE,CAAC;QAChC,IACE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnD,QAAQ,CAAC,MAAM,GAAG,CAAC,EACnB,CAAC;YACD,GAAG,CAAC,IAAI,CAAC;gBACP,KAAK,EAAE,qBAAqB;gBAC5B,OAAO,EAAE,GAAG,WAAW,+GAA+G;aACvI,CAAC,CAAC;QACL,CAAC;QACD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,yBAAyB;YACzB,8CAA8C;YAC9C,sCAAsC;YACtC,IAAI,IAAA,2BAAY,EAAC,OAAO,CAAC,EAAE,CAAC;gBAC1B,IAAI,CAAC,IAAA,gCAAiB,EAAC,OAAO,CAAC,EAAE,CAAC;oBAChC,GAAG,CAAC,IAAI,CAAC;wBACP,KAAK,EAAE,qBAAqB;wBAC5B,OAAO,EAAE,qCAAqC,WAAW,KAAK,OAAO,EAAE;qBACxE,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,GAAG,WAAW,sDAAsD,OAAO,QAAQ,GAAG;SAChG,CAAC,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { isArray, isString } from '@sindresorhus/is';\nimport { getRegexPredicate, isRegexMatch } from '../../util/string-match';\nimport type { ValidationMessage } from '../types';\nimport type { CheckMatcherArgs } from './types';\n\n/**\n * Only if type condition or context condition violated then errors array will be mutated to store metadata\n */\nexport function check({\n val: matchers,\n currentPath,\n}: CheckMatcherArgs): ValidationMessage[] {\n const res: ValidationMessage[] = [];\n\n if (isArray(matchers, isString)) {\n if (\n (matchers.includes('*') || matchers.includes('**')) &&\n matchers.length > 1\n ) {\n res.push({\n topic: 'Configuration Error',\n message: `${currentPath}: Your input contains * or ** along with other patterns. Please remove them, as * or ** matches all patterns.`,\n });\n }\n for (const matcher of matchers) {\n // Validate regex pattern\n // No need to validate if the string is a glob\n // minimatch allows any string as glob\n if (isRegexMatch(matcher)) {\n if (!getRegexPredicate(matcher)) {\n res.push({\n topic: 'Configuration Error',\n message: `Failed to parse regex pattern for ${currentPath}: ${matcher}`,\n });\n }\n }\n }\n } else {\n res.push({\n topic: 'Configuration Error',\n message: `${currentPath}: should be an array of strings. You have included ${typeof matchers}.`,\n });\n }\n\n return res;\n}\n"]}
@@ -7,7 +7,7 @@ exports.isFalseGlobal = isFalseGlobal;
7
7
  exports.validateRegexManagerFields = validateRegexManagerFields;
8
8
  exports.validateJSONataManagerFields = validateJSONataManagerFields;
9
9
  const tslib_1 = require("tslib");
10
- const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
10
+ const is_1 = require("@sindresorhus/is");
11
11
  const jsonata_1 = tslib_1.__importDefault(require("jsonata"));
12
12
  const logger_1 = require("../../logger");
13
13
  const regex_1 = require("../../util/regex");
@@ -22,7 +22,7 @@ function getParentName(parentPath) {
22
22
  }
23
23
  function validatePlainObject(val) {
24
24
  for (const [key, value] of Object.entries(val)) {
25
- if (!is_1.default.string(value)) {
25
+ if (!(0, is_1.isString)(value)) {
26
26
  return key;
27
27
  }
28
28
  }
@@ -31,7 +31,7 @@ function validatePlainObject(val) {
31
31
  function validateNumber(key, val, allowsNegative, currentPath, subKey) {
32
32
  const errors = [];
33
33
  const path = `${currentPath}${subKey ? '.' + subKey : ''}`;
34
- if (is_1.default.number(val)) {
34
+ if ((0, is_1.isNumber)(val)) {
35
35
  if (val < 0 && !allowsNegative) {
36
36
  errors.push({
37
37
  topic: 'Configuration Error',
@@ -69,7 +69,7 @@ function hasField(customManager, field) {
69
69
  customManager.matchStrings?.some((matchString) => matchString.includes(fieldStr)));
70
70
  }
71
71
  function validateRegexManagerFields(customManager, currentPath, errors) {
72
- if (is_1.default.nonEmptyArray(customManager.matchStrings)) {
72
+ if ((0, is_1.isNonEmptyArray)(customManager.matchStrings)) {
73
73
  for (const matchString of customManager.matchStrings) {
74
74
  try {
75
75
  (0, regex_1.regEx)(matchString);
@@ -107,13 +107,13 @@ function validateRegexManagerFields(customManager, currentPath, errors) {
107
107
  }
108
108
  }
109
109
  function validateJSONataManagerFields(customManager, currentPath, errors) {
110
- if (!is_1.default.nonEmptyString(customManager.fileFormat)) {
110
+ if (!(0, is_1.isNonEmptyString)(customManager.fileFormat)) {
111
111
  errors.push({
112
112
  topic: 'Configuration Error',
113
113
  message: 'Each JSONata manager must contain a fileFormat field.',
114
114
  });
115
115
  }
116
- if (is_1.default.nonEmptyArray(customManager.matchStrings)) {
116
+ if ((0, is_1.isNonEmptyArray)(customManager.matchStrings)) {
117
117
  for (const matchString of customManager.matchStrings) {
118
118
  try {
119
119
  (0, jsonata_1.default)(matchString);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../lib/config/validation-helpers/utils.ts"],"names":[],"mappings":";;AAQA,sCAQC;AAED,kDASC;AAED,wCA0BC;AAOD,sCAeC;AAcD,gEA6CC;AAED,oEAmDC;;AA7LD,kEAAkC;AAClC,8DAA8B;AAC9B,yCAAsC;AAGtC,4CAAyC;AAGzC,SAAgB,aAAa,CAAC,UAA8B;IAC1D,OAAO,UAAU;QACf,CAAC,CAAC,UAAU;aACP,OAAO,CAAC,IAAA,aAAK,EAAC,eAAe,CAAC,EAAE,EAAE,CAAC;aACnC,OAAO,CAAC,IAAA,aAAK,EAAC,UAAU,CAAC,EAAE,EAAE,CAAC;aAC9B,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,EAAG;QACX,CAAC,CAAC,GAAG,CAAC;AACV,CAAC;AAED,SAAgB,mBAAmB,CACjC,GAA4B;IAE5B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,IAAI,CAAC,YAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YACtB,OAAO,GAAG,CAAC;QACb,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,cAAc,CAC5B,GAAW,EACX,GAAY,EACZ,cAAuB,EACvB,WAAoB,EACpB,MAAe;IAEf,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,GAAG,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG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H,CAAC;IAED,MAAM,UAAU,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC9C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;QAChE,MAAM,CAAC,IAAI,CAAC;YACV,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,sFAAsF;SAChG,CAAC,CAAC;IACL,CAAC;AACH,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport jsonata from 'jsonata';\nimport { logger } from '../../logger';\nimport type { RegexManagerTemplates } from '../../modules/manager/custom/regex/types';\nimport type { CustomManager } from '../../modules/manager/custom/types';\nimport { regEx } from '../../util/regex';\nimport type { ValidationMessage } from '../types';\n\nexport function getParentName(parentPath: string | undefined): string {\n return parentPath\n ? parentPath\n .replace(regEx(/\\.?encrypted$/), '')\n .replace(regEx(/\\[\\d+\\]$/), '')\n .split('.')\n .pop()!\n : '.';\n}\n\nexport function validatePlainObject(\n val: Record<string, unknown>,\n): true | string {\n for (const [key, value] of Object.entries(val)) {\n if (!is.string(value)) {\n return key;\n }\n }\n return true;\n}\n\nexport function validateNumber(\n key: string,\n val: unknown,\n allowsNegative: boolean,\n currentPath?: string,\n subKey?: string,\n): ValidationMessage[] {\n const errors: ValidationMessage[] = [];\n const path = `${currentPath}${subKey ? '.' + subKey : ''}`;\n if (is.number(val)) {\n if (val < 0 && !allowsNegative) {\n errors.push({\n topic: 'Configuration Error',\n message: `Configuration option \\`${path}\\` should be a positive integer. Found negative value instead.`,\n });\n }\n } else {\n errors.push({\n topic: 'Configuration Error',\n message: `Configuration option \\`${path}\\` should be an integer. Found: ${JSON.stringify(\n val,\n )} (${typeof val}).`,\n });\n }\n\n return errors;\n}\n\n/** An option is a false global if it has the same name as a global only option\n * but is actually just the field of a non global option or field an children of the non global option\n * eg. token: it's global option used as the bot's token as well and\n * also it can be the token used for a platform inside the hostRules configuration\n */\nexport function isFalseGlobal(\n optionName: string,\n parentPath?: string,\n): boolean {\n if (parentPath?.includes('hostRules')) {\n if (\n optionName === 'token' ||\n optionName === 'username' ||\n optionName === 'password'\n ) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction hasField(customManager: CustomManager, field: string): boolean {\n const templateField = `${field}Template` as keyof RegexManagerTemplates;\n const fieldStr =\n customManager.customType === 'regex' ? `(?<${field}>` : field;\n return !!(\n customManager[templateField] ??\n customManager.matchStrings?.some((matchString) =>\n matchString.includes(fieldStr),\n )\n );\n}\n\nexport function validateRegexManagerFields(\n customManager: CustomManager,\n currentPath: string,\n errors: ValidationMessage[],\n): void {\n if (is.nonEmptyArray(customManager.matchStrings)) {\n for (const matchString of customManager.matchStrings) {\n try {\n regEx(matchString);\n } catch (err) {\n logger.debug(\n { err },\n 'customManager.matchStrings regEx validation error',\n );\n errors.push({\n topic: 'Configuration Error',\n message: `Invalid regExp for ${currentPath}: \\`${matchString}\\``,\n });\n }\n }\n } else {\n errors.push({\n topic: 'Configuration Error',\n message:\n 'Each Custom Manager `matchStrings` array must have at least one item.',\n });\n }\n\n const mandatoryFields = ['currentValue', 'datasource'];\n for (const field of mandatoryFields) {\n if (!hasField(customManager, field)) {\n errors.push({\n topic: 'Configuration Error',\n message: `Regex Managers must contain ${field}Template configuration or regex group named ${field}`,\n });\n }\n }\n\n const nameFields = ['depName', 'packageName'];\n if (!nameFields.some((field) => hasField(customManager, field))) {\n errors.push({\n topic: 'Configuration Error',\n message: `Regex Managers must contain depName or packageName regex groups or templates`,\n });\n }\n}\n\nexport function validateJSONataManagerFields(\n customManager: CustomManager,\n currentPath: string,\n errors: ValidationMessage[],\n): void {\n if (!is.nonEmptyString(customManager.fileFormat)) {\n errors.push({\n topic: 'Configuration Error',\n message: 'Each JSONata manager must contain a fileFormat field.',\n });\n }\n\n if (is.nonEmptyArray(customManager.matchStrings)) {\n for (const matchString of customManager.matchStrings) {\n try {\n jsonata(matchString);\n } catch (err) {\n logger.debug(\n { err },\n 'customManager.matchStrings JSONata query validation error',\n );\n errors.push({\n topic: 'Configuration Error',\n message: `Invalid JSONata query for ${currentPath}: \\`${matchString}\\``,\n });\n }\n }\n } else {\n errors.push({\n topic: 'Configuration Error',\n message: `Each Custom Manager must contain a non-empty matchStrings array`,\n });\n }\n\n const mandatoryFields = ['currentValue', 'datasource'];\n for (const field of mandatoryFields) {\n if (!hasField(customManager, field)) {\n errors.push({\n topic: 'Configuration Error',\n message: `JSONata Managers must contain ${field}Template configuration or ${field} in the query `,\n });\n }\n }\n\n const nameFields = ['depName', 'packageName'];\n if (!nameFields.some((field) => hasField(customManager, field))) {\n errors.push({\n topic: 'Configuration Error',\n message: `JSONata Managers must contain depName or packageName in the query or their templates`,\n });\n }\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../lib/config/validation-helpers/utils.ts"],"names":[],"mappings":";;AAaA,sCAQC;AAED,kDASC;AAED,wCA0BC;AAOD,sCAeC;AAcD,gEA6CC;AAED,oEAmDC;;AAlMD,yCAK0B;AAC1B,8DAA8B;AAC9B,yCAAsC;AAGtC,4CAAyC;AAGzC,SAAgB,aAAa,CAAC,UAA8B;IAC1D,OAAO,UAAU;QACf,CAAC,CAAC,UAAU;aACP,OAAO,CAAC,IAAA,aAAK,EAAC,eAAe,CAAC,EAAE,EAAE,CAAC;aACnC,OAAO,CAAC,IAAA,aAAK,EAAC,UAAU,CAAC,EAAE,EAAE,CAAC;aAC9B,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,EAAG;QACX,CAAC,CAAC,GAAG,CAAC;AACV,CAAC;AAED,SAAgB,mBAAmB,CACjC,GAA4B;IAE5B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,IAAI,CAAC,IAAA,aAAQ,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,GAAG,CAAC;QACb,CAAC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AE,CAAC;QACpC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;YACpC,MAAM,CAAC,IAAI,CAAC;gBACV,KAAK,EAAE,qBAAqB;gBAC5B,OAAO,EAAE,iCAAiC,KAAK,6BAA6B,KAAK,gBAAgB;aAClG,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,MAAM,UAAU,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC9C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;QAChE,MAAM,CAAC,IAAI,CAAC;YACV,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,sFAAsF;SAChG,CAAC,CAAC;IACL,CAAC;AACH,CAAC","sourcesContent":["import {\n isNonEmptyArray,\n isNonEmptyString,\n isNumber,\n isString,\n} from '@sindresorhus/is';\nimport jsonata from 'jsonata';\nimport { logger } from '../../logger';\nimport type { RegexManagerTemplates } from '../../modules/manager/custom/regex/types';\nimport type { CustomManager } from '../../modules/manager/custom/types';\nimport { regEx } from '../../util/regex';\nimport type { ValidationMessage } from '../types';\n\nexport function getParentName(parentPath: string | undefined): string {\n return parentPath\n ? parentPath\n .replace(regEx(/\\.?encrypted$/), '')\n .replace(regEx(/\\[\\d+\\]$/), '')\n .split('.')\n .pop()!\n : '.';\n}\n\nexport function validatePlainObject(\n val: Record<string, unknown>,\n): true | string {\n for (const [key, value] of Object.entries(val)) {\n if (!isString(value)) {\n return key;\n }\n }\n return true;\n}\n\nexport function validateNumber(\n key: string,\n val: unknown,\n allowsNegative: boolean,\n currentPath?: string,\n subKey?: string,\n): ValidationMessage[] {\n const errors: ValidationMessage[] = [];\n const path = `${currentPath}${subKey ? '.' + subKey : ''}`;\n if (isNumber(val)) {\n if (val < 0 && !allowsNegative) {\n errors.push({\n topic: 'Configuration Error',\n message: `Configuration option \\`${path}\\` should be a positive integer. Found negative value instead.`,\n });\n }\n } else {\n errors.push({\n topic: 'Configuration Error',\n message: `Configuration option \\`${path}\\` should be an integer. Found: ${JSON.stringify(\n val,\n )} (${typeof val}).`,\n });\n }\n\n return errors;\n}\n\n/** An option is a false global if it has the same name as a global only option\n * but is actually just the field of a non global option or field an children of the non global option\n * eg. token: it's global option used as the bot's token as well and\n * also it can be the token used for a platform inside the hostRules configuration\n */\nexport function isFalseGlobal(\n optionName: string,\n parentPath?: string,\n): boolean {\n if (parentPath?.includes('hostRules')) {\n if (\n optionName === 'token' ||\n optionName === 'username' ||\n optionName === 'password'\n ) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction hasField(customManager: CustomManager, field: string): boolean {\n const templateField = `${field}Template` as keyof RegexManagerTemplates;\n const fieldStr =\n customManager.customType === 'regex' ? `(?<${field}>` : field;\n return !!(\n customManager[templateField] ??\n customManager.matchStrings?.some((matchString) =>\n matchString.includes(fieldStr),\n )\n );\n}\n\nexport function validateRegexManagerFields(\n customManager: CustomManager,\n currentPath: string,\n errors: ValidationMessage[],\n): void {\n if (isNonEmptyArray(customManager.matchStrings)) {\n for (const matchString of customManager.matchStrings) {\n try {\n regEx(matchString);\n } catch (err) {\n logger.debug(\n { err },\n 'customManager.matchStrings regEx validation error',\n );\n errors.push({\n topic: 'Configuration Error',\n message: `Invalid regExp for ${currentPath}: \\`${matchString}\\``,\n });\n }\n }\n } else {\n errors.push({\n topic: 'Configuration Error',\n message:\n 'Each Custom Manager `matchStrings` array must have at least one item.',\n });\n }\n\n const mandatoryFields = ['currentValue', 'datasource'];\n for (const field of mandatoryFields) {\n if (!hasField(customManager, field)) {\n errors.push({\n topic: 'Configuration Error',\n message: `Regex Managers must contain ${field}Template configuration or regex group named ${field}`,\n });\n }\n }\n\n const nameFields = ['depName', 'packageName'];\n if (!nameFields.some((field) => hasField(customManager, field))) {\n errors.push({\n topic: 'Configuration Error',\n message: `Regex Managers must contain depName or packageName regex groups or templates`,\n });\n }\n}\n\nexport function validateJSONataManagerFields(\n customManager: CustomManager,\n currentPath: string,\n errors: ValidationMessage[],\n): void {\n if (!isNonEmptyString(customManager.fileFormat)) {\n errors.push({\n topic: 'Configuration Error',\n message: 'Each JSONata manager must contain a fileFormat field.',\n });\n }\n\n if (isNonEmptyArray(customManager.matchStrings)) {\n for (const matchString of customManager.matchStrings) {\n try {\n jsonata(matchString);\n } catch (err) {\n logger.debug(\n { err },\n 'customManager.matchStrings JSONata query validation error',\n );\n errors.push({\n topic: 'Configuration Error',\n message: `Invalid JSONata query for ${currentPath}: \\`${matchString}\\``,\n });\n }\n }\n } else {\n errors.push({\n topic: 'Configuration Error',\n message: `Each Custom Manager must contain a non-empty matchStrings array`,\n });\n }\n\n const mandatoryFields = ['currentValue', 'datasource'];\n for (const field of mandatoryFields) {\n if (!hasField(customManager, field)) {\n errors.push({\n topic: 'Configuration Error',\n message: `JSONata Managers must contain ${field}Template configuration or ${field} in the query `,\n });\n }\n }\n\n const nameFields = ['depName', 'packageName'];\n if (!nameFields.some((field) => hasField(customManager, field))) {\n errors.push({\n topic: 'Configuration Error',\n message: `JSONata Managers must contain depName or packageName in the query or their templates`,\n });\n }\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateConfig = validateConfig;
4
4
  const tslib_1 = require("tslib");
5
- const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
5
+ const is_1 = tslib_1.__importStar(require("@sindresorhus/is"));
6
6
  const manager_1 = require("../modules/manager");
7
7
  const custom_1 = require("../modules/manager/custom");
8
8
  const jsonata_1 = require("../util/jsonata");
@@ -140,7 +140,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
140
140
  }
141
141
  if (key === 'enabledManagers' && val) {
142
142
  const unsupportedManagers = getUnsupportedEnabledManagers(val);
143
- if (is_1.default.nonEmptyArray(unsupportedManagers)) {
143
+ if ((0, is_1.isNonEmptyArray)(unsupportedManagers)) {
144
144
  errors.push({
145
145
  topic: 'Configuration Error',
146
146
  message: `The following managers configured in enabledManagers are not supported: "${unsupportedManagers.join(', ')}"`,
@@ -242,9 +242,9 @@ async function validateConfig(configType, config, isPreset, parentPath) {
242
242
  errors.push(...(0, utils_1.validateNumber)(key, val, allowsNegative, currentPath));
243
243
  }
244
244
  else if (type === 'array' && val) {
245
- if (is_1.default.array(val)) {
245
+ if ((0, is_1.isArray)(val)) {
246
246
  for (const [subIndex, subval] of val.entries()) {
247
- if (is_1.default.object(subval)) {
247
+ if ((0, is_1.isObject)(subval)) {
248
248
  const subValidation = await validateConfig(configType, subval, isPreset, `${currentPath}[${subIndex}]`);
249
249
  warnings = warnings.concat(subValidation.warnings);
250
250
  errors = errors.concat(subValidation.errors);
@@ -258,7 +258,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
258
258
  }
259
259
  if (key === 'extends') {
260
260
  for (const subval of val) {
261
- if (is_1.default.string(subval)) {
261
+ if ((0, is_1.isString)(subval)) {
262
262
  if (parentName === 'packageRules' &&
263
263
  subval.startsWith('group:')) {
264
264
  warnings.push({
@@ -307,7 +307,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
307
307
  ];
308
308
  if (key === 'packageRules') {
309
309
  for (const [subIndex, packageRule] of val.entries()) {
310
- if (is_1.default.object(packageRule)) {
310
+ if ((0, is_1.isObject)(packageRule)) {
311
311
  const resolvedRule = (0, migration_1.migrateConfig)({
312
312
  packageRules: [
313
313
  await (0, presets_1.resolveConfigPresets)(packageRule, config),
@@ -350,7 +350,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
350
350
  'separateMultipleMinor',
351
351
  'versioning',
352
352
  ];
353
- if (is_1.default.nonEmptyArray(resolvedRule.matchUpdateTypes)) {
353
+ if ((0, is_1.isNonEmptyArray)(resolvedRule.matchUpdateTypes)) {
354
354
  for (const option of preLookupOptions) {
355
355
  if (resolvedRule[option] !== undefined) {
356
356
  const message = `${currentPath}[${subIndex}]: packageRules cannot combine both matchUpdateTypes and ${option}. Rule: ${JSON.stringify(packageRule)}`;
@@ -396,9 +396,9 @@ async function validateConfig(configType, config, isPreset, parentPath) {
396
396
  message: `Custom Manager contains disallowed fields: ${disallowedKeys.join(', ')}`,
397
397
  });
398
398
  }
399
- else if (is_1.default.nonEmptyString(customManager.customType) &&
399
+ else if ((0, is_1.isNonEmptyString)(customManager.customType) &&
400
400
  (0, custom_1.isCustomManager)(customManager.customType)) {
401
- if (is_1.default.nonEmptyArray(customManager.managerFilePatterns)) {
401
+ if ((0, is_1.isNonEmptyArray)(customManager.managerFilePatterns)) {
402
402
  switch (customManager.customType) {
403
403
  case 'regex':
404
404
  (0, utils_1.validateRegexManagerFields)(customManager, currentPath, errors);
@@ -416,8 +416,8 @@ async function validateConfig(configType, config, isPreset, parentPath) {
416
416
  }
417
417
  }
418
418
  else {
419
- if (is_1.default.emptyString(customManager.customType) ||
420
- is_1.default.undefined(customManager.customType)) {
419
+ if ((0, is_1.isEmptyString)(customManager.customType) ||
420
+ (0, is_1.isUndefined)(customManager.customType)) {
421
421
  errors.push({
422
422
  topic: 'Configuration Error',
423
423
  message: `Each Custom Manager must contain a non-empty customType string`,
@@ -466,7 +466,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
466
466
  key === 'matchCurrentValue') &&
467
467
  // TODO: can be undefined ? #22198
468
468
  !rulesRe.test(parentPath) && // Inside a packageRule
469
- (is_1.default.string(parentPath) || !isPreset) // top level in a preset
469
+ ((0, is_1.isString)(parentPath) || !isPreset) // top level in a preset
470
470
  ) {
471
471
  errors.push({
472
472
  topic: 'Configuration Error',
@@ -482,7 +482,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
482
482
  }
483
483
  }
484
484
  else if (type === 'string') {
485
- if (!is_1.default.string(val)) {
485
+ if (!(0, is_1.isString)(val)) {
486
486
  errors.push({
487
487
  topic: 'Configuration Error',
488
488
  message: `Configuration option \`${currentPath}\` should be a string`,
@@ -492,7 +492,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
492
492
  else if (type === 'object' &&
493
493
  currentPath !== 'compatibility' &&
494
494
  key !== 'constraints') {
495
- if (is_1.default.plainObject(val)) {
495
+ if ((0, is_1.isPlainObject)(val)) {
496
496
  if (key === 'registryAliases') {
497
497
  const res = (0, utils_1.validatePlainObject)(val);
498
498
  if (res !== true) {
@@ -507,7 +507,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
507
507
  ? (config.allowedEnv ?? [])
508
508
  : global_1.GlobalConfig.get('allowedEnv', []);
509
509
  for (const [envVarName, envVarValue] of Object.entries(val)) {
510
- if (!is_1.default.string(envVarValue)) {
510
+ if (!(0, is_1.isString)(envVarValue)) {
511
511
  errors.push({
512
512
  topic: 'Configuration Error',
513
513
  message: `Invalid env variable value: \`${currentPath}.${envVarName}\` must be a string.`,
@@ -529,7 +529,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
529
529
  message: `Invalid \`${currentPath}.${key}.${statusCheckKey}\` configuration: key is not allowed.`,
530
530
  });
531
531
  }
532
- if (!(is_1.default.string(statusCheckValue) || null === statusCheckValue)) {
532
+ if (!((0, is_1.isString)(statusCheckValue) || null === statusCheckValue)) {
533
533
  errors.push({
534
534
  topic: 'Configuration Error',
535
535
  message: `Invalid \`${currentPath}.${statusCheckKey}\` configuration: status check is not a string.`,
@@ -546,7 +546,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
546
546
  'transformTemplates',
547
547
  ];
548
548
  for (const [customDatasourceName, customDatasourceValue,] of Object.entries(val)) {
549
- if (!is_1.default.plainObject(customDatasourceValue)) {
549
+ if (!(0, is_1.isPlainObject)(customDatasourceValue)) {
550
550
  errors.push({
551
551
  topic: 'Configuration Error',
552
552
  message: `Invalid \`${currentPath}.${customDatasourceName}\` configuration: customDatasource is not an object`,
@@ -561,7 +561,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
561
561
  });
562
562
  }
563
563
  else if (subKey === 'transformTemplates') {
564
- if (!is_1.default.array(subValue, is_1.default.string)) {
564
+ if (!(0, is_1.isArray)(subValue, is_1.isString)) {
565
565
  errors.push({
566
566
  topic: 'Configuration Error',
567
567
  message: `Invalid \`${currentPath}.${subKey}\` configuration: is not an array of string`,
@@ -569,14 +569,14 @@ async function validateConfig(configType, config, isPreset, parentPath) {
569
569
  }
570
570
  }
571
571
  else if (subKey === 'description') {
572
- if (!(is_1.default.string(subValue) || is_1.default.array(subValue, is_1.default.string))) {
572
+ if (!((0, is_1.isString)(subValue) || (0, is_1.isArray)(subValue, is_1.isString))) {
573
573
  errors.push({
574
574
  topic: 'Configuration Error',
575
575
  message: `Invalid \`${currentPath}.${subKey}\` configuration: is not an array of strings`,
576
576
  });
577
577
  }
578
578
  }
579
- else if (!is_1.default.string(subValue)) {
579
+ else if (!(0, is_1.isString)(subValue)) {
580
580
  errors.push({
581
581
  topic: 'Configuration Error',
582
582
  message: `Invalid \`${currentPath}.${subKey}\` configuration: is a string`,
@@ -605,12 +605,12 @@ async function validateConfig(configType, config, isPreset, parentPath) {
605
605
  }
606
606
  }
607
607
  }
608
- if (key === 'hostRules' && is_1.default.array(val)) {
608
+ if (key === 'hostRules' && (0, is_1.isArray)(val)) {
609
609
  const allowedHeaders = configType === 'global'
610
610
  ? (config.allowedHeaders ?? [])
611
611
  : global_1.GlobalConfig.get('allowedHeaders', []);
612
612
  for (const rule of val) {
613
- if (is_1.default.nonEmptyString(rule.matchHost)) {
613
+ if ((0, is_1.isNonEmptyString)(rule.matchHost)) {
614
614
  if (rule.matchHost.includes('://')) {
615
615
  if ((0, url_1.parseUrl)(rule.matchHost) === null) {
616
616
  errors.push({
@@ -620,7 +620,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
620
620
  }
621
621
  }
622
622
  }
623
- else if (is_1.default.emptyString(rule.matchHost)) {
623
+ else if ((0, is_1.isEmptyString)(rule.matchHost)) {
624
624
  errors.push({
625
625
  topic: 'Configuration Error',
626
626
  message: 'Invalid value for hostRules matchHost. It cannot be an empty string.',
@@ -630,7 +630,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
630
630
  continue;
631
631
  }
632
632
  for (const [header, value] of Object.entries(rule.headers)) {
633
- if (!is_1.default.string(value)) {
633
+ if (!(0, is_1.isString)(value)) {
634
634
  errors.push({
635
635
  topic: 'Configuration Error',
636
636
  message: `Invalid hostRules headers value configuration: header must be a string.`,
@@ -645,7 +645,7 @@ async function validateConfig(configType, config, isPreset, parentPath) {
645
645
  }
646
646
  }
647
647
  }
648
- if (key === 'matchJsonata' && is_1.default.array(val, is_1.default.string)) {
648
+ if (key === 'matchJsonata' && (0, is_1.isArray)(val, is_1.isString)) {
649
649
  for (const expression of val) {
650
650
  const res = (0, jsonata_1.getExpression)(expression);
651
651
  if (res instanceof Error) {
@@ -680,7 +680,7 @@ async function validateGlobalConfig(key, val, type, warnings, errors, currentPat
680
680
  }
681
681
  if (val !== null) {
682
682
  if (type === 'string') {
683
- if (is_1.default.string(val)) {
683
+ if ((0, is_1.isString)(val)) {
684
684
  if (key === 'onboardingConfigFileName' &&
685
685
  !(0, app_strings_1.getConfigFileNames)().includes(val)) {
686
686
  warnings.push({
@@ -725,7 +725,7 @@ async function validateGlobalConfig(key, val, type, warnings, errors, currentPat
725
725
  }
726
726
  if (key === 'reportType' &&
727
727
  ['s3', 'file'].includes(val) &&
728
- !is_1.default.string(config.reportPath)) {
728
+ !(0, is_1.isString)(config.reportPath)) {
729
729
  errors.push({
730
730
  topic: 'Configuration Error',
731
731
  message: `reportType '${val}' requires a configured reportPath`,
@@ -752,7 +752,7 @@ async function validateGlobalConfig(key, val, type, warnings, errors, currentPat
752
752
  }
753
753
  }
754
754
  else if (type === 'array') {
755
- if (is_1.default.array(val)) {
755
+ if ((0, is_1.isArray)(val)) {
756
756
  if (isRegexOrGlobOption(key)) {
757
757
  warnings.push(...regexOrGlobValidator.check({
758
758
  val,
@@ -790,7 +790,7 @@ async function validateGlobalConfig(key, val, type, warnings, errors, currentPat
790
790
  }
791
791
  }
792
792
  else if (type === 'object') {
793
- if (is_1.default.plainObject(val)) {
793
+ if ((0, is_1.isPlainObject)(val)) {
794
794
  if (key === 'onboardingConfig') {
795
795
  const subValidation = await validateConfig('repo', val);
796
796
  for (const warning of subValidation.warnings.concat(subValidation.errors)) {