renovate 44.115.2 → 44.115.4

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 (98) hide show
  1. package/dist/config/defaults.d.ts +2 -3
  2. package/dist/config/global.d.ts +1 -2
  3. package/dist/config/options/env-options.d.ts +3 -4
  4. package/dist/config/options/index.d.ts +1 -2
  5. package/dist/config/types.d.ts +63 -63
  6. package/dist/config/utils.d.ts +1 -2
  7. package/dist/config/validation-helpers/types.d.ts +2 -3
  8. package/dist/config-validator.d.ts +1 -0
  9. package/dist/constants/category.d.ts +2 -3
  10. package/dist/constants/error-messages.d.ts +57 -58
  11. package/dist/constants/platforms.d.ts +2 -3
  12. package/dist/instrumentation/types.d.ts +13 -14
  13. package/dist/logger/err-serializer.d.ts +1 -2
  14. package/dist/logger/index.d.ts +13 -14
  15. package/dist/logger/renovate-logger.d.ts +1 -2
  16. package/dist/logger/types.d.ts +7 -7
  17. package/dist/manager-list.generated.d.ts +2 -3
  18. package/dist/modules/datasource/common.d.ts +8 -9
  19. package/dist/modules/datasource/index.d.ts +9 -9
  20. package/dist/modules/datasource/npm/schema.d.ts +5 -6
  21. package/dist/modules/datasource/types.d.ts +12 -13
  22. package/dist/modules/manager/custom/jsonata/types.d.ts +2 -3
  23. package/dist/modules/manager/custom/regex/types.d.ts +2 -3
  24. package/dist/modules/manager/custom/types.d.ts +3 -4
  25. package/dist/modules/manager/fingerprint.generated.d.ts +1 -2
  26. package/dist/modules/manager/fingerprint.generated.js +1 -1
  27. package/dist/modules/manager/fingerprint.generated.js.map +1 -1
  28. package/dist/modules/manager/gomod/line-parser.js +2 -2
  29. package/dist/modules/manager/gomod/line-parser.js.map +1 -1
  30. package/dist/modules/manager/index.d.ts +12 -12
  31. package/dist/modules/manager/types.d.ts +26 -27
  32. package/dist/modules/platform/bitbucket/index.d.ts +28 -29
  33. package/dist/modules/platform/bitbucket-server/index.d.ts +33 -34
  34. package/dist/modules/platform/bitbucket-server/types.d.ts +1 -2
  35. package/dist/modules/platform/github/schema.d.ts +3 -4
  36. package/dist/modules/platform/gitlab/code-owners.d.ts +1 -2
  37. package/dist/modules/platform/gitlab/index.d.ts +37 -37
  38. package/dist/modules/platform/gitlab/types.d.ts +2 -3
  39. package/dist/modules/platform/index.d.ts +5 -5
  40. package/dist/modules/platform/scm-manager/index.js +1 -5
  41. package/dist/modules/platform/scm-manager/index.js.map +1 -1
  42. package/dist/modules/platform/types.d.ts +31 -34
  43. package/dist/modules/versioning/generic.d.ts +1 -2
  44. package/dist/modules/versioning/index.d.ts +5 -5
  45. package/dist/modules/versioning/semver-coerced/index.d.ts +7 -7
  46. package/dist/modules/versioning/types.d.ts +11 -12
  47. package/dist/modules/versioning/ubuntu/index.d.ts +6 -6
  48. package/dist/proxy.d.ts +2 -3
  49. package/dist/renovate.d.ts +1 -0
  50. package/dist/types/base.d.ts +2 -3
  51. package/dist/types/branch-status.d.ts +1 -2
  52. package/dist/types/commit-message-json.d.ts +1 -2
  53. package/dist/types/git.d.ts +2 -3
  54. package/dist/types/host-rules.d.ts +3 -4
  55. package/dist/types/index.d.ts +5 -5
  56. package/dist/types/pr-state.d.ts +1 -2
  57. package/dist/types/skip-reason.d.ts +2 -3
  58. package/dist/types/versioning.d.ts +1 -2
  59. package/dist/util/cache/package/backend.d.ts +9 -7
  60. package/dist/util/cache/package/index.d.ts +7 -8
  61. package/dist/util/cache/package/namespaces.d.ts +2 -3
  62. package/dist/util/cache/repository/types.d.ts +10 -11
  63. package/dist/util/compress.d.ts +4 -5
  64. package/dist/util/exec/common.d.ts +2 -3
  65. package/dist/util/exec/common.js +1 -1
  66. package/dist/util/exec/common.js.map +1 -1
  67. package/dist/util/exec/exec-error.d.ts +2 -3
  68. package/dist/util/exec/types.d.ts +30 -27
  69. package/dist/util/exec/types.js.map +1 -1
  70. package/dist/util/git/config.d.ts +1 -2
  71. package/dist/util/git/index.d.ts +56 -56
  72. package/dist/util/git/private-key.d.ts +1 -2
  73. package/dist/util/git/types.d.ts +13 -13
  74. package/dist/util/host-rules.d.ts +14 -15
  75. package/dist/util/http/cache/types.d.ts +1 -2
  76. package/dist/util/http/errors.d.ts +1 -2
  77. package/dist/util/http/github.d.ts +6 -7
  78. package/dist/util/http/gitlab.d.ts +3 -4
  79. package/dist/util/http/http.d.ts +3 -4
  80. package/dist/util/http/legacy.d.ts +1 -2
  81. package/dist/util/http/types.d.ts +20 -21
  82. package/dist/util/merge-confidence/common.d.ts +1 -2
  83. package/dist/util/merge-confidence/types.d.ts +1 -2
  84. package/dist/util/result.d.ts +2 -3
  85. package/dist/util/s3.d.ts +3 -4
  86. package/dist/util/schema-utils/git.d.ts +2 -3
  87. package/dist/util/string-match.d.ts +9 -10
  88. package/dist/util/timestamp.d.ts +4 -5
  89. package/dist/util/url.d.ts +18 -19
  90. package/dist/versioning-list.generated.d.ts +2 -3
  91. package/dist/workers/global/autodiscover.d.ts +2 -3
  92. package/dist/workers/global/config/parse/index.d.ts +2 -3
  93. package/dist/workers/repository/init/types.d.ts +3 -4
  94. package/dist/workers/repository/result.d.ts +4 -5
  95. package/dist/workers/repository/update/pr/changelog/types.d.ts +7 -8
  96. package/dist/workers/types.d.ts +17 -18
  97. package/package.json +4 -4
  98. package/renovate-schema.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["git.initRepo"],"sources":["../../../../lib/modules/platform/scm-manager/index.ts"],"sourcesContent":["import { GlobalConfig } from '../../../config/global.ts';\nimport { logger } from '../../../logger/index.ts';\nimport type { BranchStatus } from '../../../types/index.ts';\nimport { coerceArray } from '../../../util/array.ts';\nimport * as git from '../../../util/git/index.ts';\nimport { getBaseUrl, setBaseUrl } from '../../../util/http/scm-manager.ts';\nimport { sanitize } from '../../../util/sanitize.ts';\nimport { ensureTrailingSlash } from '../../../util/url.ts';\nimport type {\n BranchStatusConfig,\n CreatePRConfig,\n EnsureCommentConfig,\n EnsureCommentRemovalConfigByContent,\n EnsureCommentRemovalConfigByTopic,\n EnsureIssueConfig,\n FindPRConfig,\n Issue,\n MergePRConfig,\n PlatformParams,\n PlatformResult,\n Pr,\n RepoParams,\n RepoResult,\n UpdatePrConfig,\n} from '../types.ts';\nimport { repoFingerprint } from '../util.ts';\nimport { smartTruncate } from '../utils/pr-body.ts';\nimport { mapPrFromScmToRenovate } from './mapper.ts';\nimport {\n createScmPr,\n getAllRepoPrs,\n getAllRepos,\n getCurrentUser,\n getDefaultBranch,\n getRepo,\n getRepoPr,\n updateScmPr,\n} from './scm-manager-helper.ts';\nimport { getRepoUrl, mapPrState, matchPrState, smartLinks } from './utils.ts';\n\ninterface SCMMRepoConfig {\n repository: string;\n prList: Pr[] | null;\n defaultBranch: string;\n ignorePrAuthor: boolean;\n}\n\nexport const id = 'scm-manager';\nexport const experimental = true;\n\nlet config: SCMMRepoConfig = {} as any;\n\nexport async function initPlatform({\n endpoint,\n token,\n}: PlatformParams): Promise<PlatformResult> {\n if (!endpoint) {\n throw new Error('Init: SCM-Manager endpoint not configured');\n }\n\n if (!token) {\n throw new Error('Init: SCM-Manager API token not configured');\n }\n\n const baseUrl = `${ensureTrailingSlash(endpoint)}api/v2`;\n setBaseUrl(baseUrl);\n\n try {\n const me = await getCurrentUser(token);\n const gitAuthor = `${me.displayName} <${me.mail}>`;\n const result = { endpoint: baseUrl, gitAuthor };\n\n logger.debug({ result }, 'Platform result');\n\n return result;\n } catch (err) {\n logger.debug(\n { err },\n 'Init: Error authenticating with SCM-Manager. Check your token',\n );\n throw new Error('Init: Authentication failure');\n }\n}\n\nexport async function initRepo({\n repository,\n gitUrl,\n}: RepoParams): Promise<RepoResult> {\n const repo = await getRepo(repository);\n const defaultBranch = await getDefaultBranch(repo);\n const url = getRepoUrl(repo, gitUrl, getBaseUrl());\n\n config = {} as any;\n config.repository = repository;\n config.defaultBranch = defaultBranch;\n config.ignorePrAuthor = GlobalConfig.get('ignorePrAuthor');\n\n await git.initRepo({\n ...config,\n url,\n });\n\n // Reset cached resources\n invalidatePrCache();\n\n const result = {\n defaultBranch: config.defaultBranch,\n isFork: false,\n repoFingerprint: repoFingerprint(config.repository, getBaseUrl()),\n };\n\n logger.debug({ result }, `Repo initialized`);\n\n return result;\n}\n\nexport async function getRepos(): Promise<string[]> {\n const repos = (await getAllRepos()).filter((repo) => repo.type === 'git');\n return repos.map((repo) => `${repo.namespace}/${repo.name}`);\n}\n\nexport async function getBranchPr(branchName: string): Promise<Pr | null> {\n return await findPr({ branchName, state: 'open' });\n}\n\nexport async function findPr({\n branchName,\n prTitle,\n state = 'all',\n}: FindPRConfig): Promise<Pr | null> {\n const inProgressPrs = await getPrList();\n const result = inProgressPrs.find(\n (pr) =>\n branchName === pr.sourceBranch &&\n (!prTitle || prTitle === pr.title) &&\n matchPrState(pr, state),\n );\n\n if (result) {\n logger.debug({ result }, `Found PR`);\n return result;\n }\n\n logger.debug(\n `Could not find PR with source branch ${branchName} and title ${\n prTitle ?? ''\n } and state ${state}`,\n );\n\n return null;\n}\n\nexport async function getPr(number: number): Promise<Pr | null> {\n const inProgressPrs = await getPrList();\n const cachedPr = inProgressPrs.find((pr) => pr.number === number);\n\n if (cachedPr) {\n logger.debug('Returning from cached PRs');\n return cachedPr;\n }\n\n try {\n const result = await getRepoPr(config.repository, number);\n logger.debug('Returning PR from API');\n return mapPrFromScmToRenovate(result);\n } catch (err) {\n logger.error({ err, number }, 'Can not find a PR with the given id');\n return null;\n }\n}\n\nexport async function getPrList(): Promise<Pr[]> {\n if (config.prList === null) {\n try {\n config.prList = (\n await getAllRepoPrs(config.repository, config.ignorePrAuthor)\n ).map((pr) => mapPrFromScmToRenovate(pr));\n } catch (error) {\n logger.error(error);\n }\n }\n\n return coerceArray(config.prList);\n}\n\nexport async function createPr({\n sourceBranch,\n targetBranch,\n prTitle,\n prBody,\n draftPR,\n}: CreatePRConfig): Promise<Pr> {\n const createdPr = await createScmPr(config.repository, {\n source: sourceBranch,\n target: targetBranch,\n title: prTitle,\n description: sanitize(prBody),\n status: draftPR ? 'DRAFT' : 'OPEN',\n });\n\n logger.debug(\n `PR created with title '${createdPr.title}' from source '${createdPr.source}' to target '${createdPr.target}'`,\n );\n\n return mapPrFromScmToRenovate(createdPr);\n}\n\nexport async function updatePr({\n number,\n prTitle,\n prBody,\n state,\n targetBranch,\n}: UpdatePrConfig): Promise<void> {\n await updateScmPr(config.repository, number, {\n title: prTitle,\n description: sanitize(prBody) ?? undefined,\n target: targetBranch,\n status: mapPrState(state),\n });\n\n logger.debug(`Updated PR #${number} with title ${prTitle}`);\n}\n\nexport function mergePr(_config: MergePRConfig): Promise<boolean> {\n logger.debug('Not implemented mergePr');\n return Promise.resolve(false);\n}\n\nexport function getBranchStatus(\n _branchName: string,\n _internalChecksAsSuccess: boolean,\n): Promise<BranchStatus> {\n logger.debug('Not implemented getBranchStatus');\n return Promise.resolve('red');\n}\n\nexport function setBranchStatus(\n _branchStatusConfig: BranchStatusConfig,\n): Promise<void> {\n logger.debug('Not implemented setBranchStatus');\n return Promise.resolve();\n}\n\nexport function getBranchStatusCheck(\n _branchName: string,\n _context: string | null | undefined,\n): Promise<BranchStatus | null> {\n logger.debug('Not implemented setBranchStatus');\n return Promise.resolve(null);\n}\n\nexport function addReviewers(\n _number: number,\n _reviewers: string[],\n): Promise<void> {\n logger.debug('Not implemented addReviewers');\n return Promise.resolve();\n}\n\nexport function addAssignees(\n _number: number,\n _assignees: string[],\n): Promise<void> {\n logger.debug('Not implemented addAssignees');\n return Promise.resolve();\n}\n\nexport function deleteLabel(_number: number, _label: string): Promise<void> {\n logger.debug('Not implemented deleteLabel');\n return Promise.resolve();\n}\n\nexport function getIssueList(): Promise<Issue[]> {\n logger.debug('Not implemented getIssueList');\n return Promise.resolve([]);\n}\n\nexport function findIssue(_title: string): Promise<Issue | null> {\n logger.debug('Not implemented findIssue');\n return Promise.resolve(null);\n}\n\nexport function ensureIssue(\n _config: EnsureIssueConfig,\n): Promise<'updated' | 'created' | null> {\n logger.debug('Not implemented ensureIssue');\n return Promise.resolve(null);\n}\n\nexport function ensureIssueClosing(_title: string): Promise<void> {\n logger.debug('Not implemented ensureIssueClosing');\n return Promise.resolve();\n}\n\nexport function ensureComment(_config: EnsureCommentConfig): Promise<boolean> {\n logger.debug('Not implemented ensureComment');\n return Promise.resolve(false);\n}\n\nexport function ensureCommentRemoval(\n _ensureCommentRemoval:\n EnsureCommentRemovalConfigByTopic | EnsureCommentRemovalConfigByContent,\n): Promise<void> {\n logger.debug('Not implemented ensureCommentRemoval');\n return Promise.resolve();\n}\n\nexport function massageMarkdown(prBody: string): string {\n return smartTruncate(smartLinks(prBody), maxBodyLength());\n}\n\nexport function getRepoForceRebase(): Promise<boolean> {\n return Promise.resolve(false);\n}\n\nexport function getRawFile(\n _fileName: string,\n _repoName?: string,\n _branchOrTag?: string,\n): Promise<string | null> {\n logger.debug('Not implemented getRawFile');\n return Promise.resolve(null);\n}\n\nexport function getJsonFile(\n _fileName: string,\n _repoName?: string,\n _branchOrTag?: string,\n): Promise<any> {\n logger.debug('Not implemented getJsonFile');\n return Promise.resolve(null);\n}\n\nexport function maxBodyLength(): number {\n return 200000;\n}\n\nexport function invalidatePrCache(): void {\n config.prList = null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,MAAa,KAAK;AAGlB,IAAI,SAAyB,CAAC;AAE9B,eAAsB,aAAa,EACjC,UACA,SAC0C;CAC1C,IAAI,CAAC,UACH,MAAM,IAAI,MAAM,2CAA2C;CAG7D,IAAI,CAAC,OACH,MAAM,IAAI,MAAM,4CAA4C;CAG9D,MAAM,UAAU,GAAG,oBAAoB,QAAQ,EAAE;CACjD,WAAW,OAAO;CAElB,IAAI;EACF,MAAM,KAAK,MAAM,eAAe,KAAK;EAErC,MAAM,SAAS;GAAE,UAAU;GAAS,WAAA,GADf,GAAG,YAAY,IAAI,GAAG,KAAK;EACF;EAE9C,OAAO,MAAM,EAAE,OAAO,GAAG,iBAAiB;EAE1C,OAAO;CACT,SAAS,KAAK;EACZ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O,QAAQ,QAAQ,IAAI;AAC7B;AAEA,SAAgB,YACd,WACA,WACA,cACc;CACd,OAAO,MAAM,6BAA6B;CAC1C,OAAO,QAAQ,QAAQ,IAAI;AAC7B;AAEA,SAAgB,gBAAwB;CACtC,OAAO;AACT;AAEA,SAAgB,oBAA0B;CACxC,OAAO,SAAS;AAClB"}
1
+ {"version":3,"file":"index.js","names":["git.initRepo"],"sources":["../../../../lib/modules/platform/scm-manager/index.ts"],"sourcesContent":["import { GlobalConfig } from '../../../config/global.ts';\nimport { logger } from '../../../logger/index.ts';\nimport type { BranchStatus } from '../../../types/index.ts';\nimport { coerceArray } from '../../../util/array.ts';\nimport * as git from '../../../util/git/index.ts';\nimport { getBaseUrl, setBaseUrl } from '../../../util/http/scm-manager.ts';\nimport { sanitize } from '../../../util/sanitize.ts';\nimport { ensureTrailingSlash } from '../../../util/url.ts';\nimport type {\n BranchStatusConfig,\n CreatePRConfig,\n EnsureCommentConfig,\n EnsureCommentRemovalConfigByContent,\n EnsureCommentRemovalConfigByTopic,\n EnsureIssueConfig,\n FindPRConfig,\n Issue,\n MergePRConfig,\n PlatformParams,\n PlatformResult,\n Pr,\n RepoParams,\n RepoResult,\n UpdatePrConfig,\n} from '../types.ts';\nimport { repoFingerprint } from '../util.ts';\nimport { smartTruncate } from '../utils/pr-body.ts';\nimport { mapPrFromScmToRenovate } from './mapper.ts';\nimport {\n createScmPr,\n getAllRepoPrs,\n getAllRepos,\n getCurrentUser,\n getDefaultBranch,\n getRepo,\n getRepoPr,\n updateScmPr,\n} from './scm-manager-helper.ts';\nimport { getRepoUrl, mapPrState, matchPrState, smartLinks } from './utils.ts';\n\ninterface SCMMRepoConfig {\n repository: string;\n prList: Pr[] | null;\n defaultBranch: string;\n ignorePrAuthor: boolean;\n}\n\nexport const id = 'scm-manager';\nexport const experimental = true;\n\nlet config: SCMMRepoConfig = {} as any;\n\nexport async function initPlatform({\n endpoint,\n token,\n}: PlatformParams): Promise<PlatformResult> {\n if (!endpoint) {\n throw new Error('Init: SCM-Manager endpoint not configured');\n }\n\n if (!token) {\n throw new Error('Init: SCM-Manager API token not configured');\n }\n\n const baseUrl = `${ensureTrailingSlash(endpoint)}api/v2`;\n setBaseUrl(baseUrl);\n\n try {\n const me = await getCurrentUser(token);\n const gitAuthor = `${me.displayName} <${me.mail}>`;\n const result = { endpoint: baseUrl, gitAuthor };\n\n logger.debug({ result }, 'Platform result');\n\n return result;\n } catch (err) {\n logger.debug(\n { err },\n 'Init: Error authenticating with SCM-Manager. Check your token',\n );\n throw new Error('Init: Authentication failure');\n }\n}\n\nexport async function initRepo({\n repository,\n gitUrl,\n}: RepoParams): Promise<RepoResult> {\n const repo = await getRepo(repository);\n const defaultBranch = await getDefaultBranch(repo);\n const url = getRepoUrl(repo, gitUrl, getBaseUrl());\n\n config = {} as any;\n config.repository = repository;\n config.defaultBranch = defaultBranch;\n config.ignorePrAuthor = GlobalConfig.get('ignorePrAuthor');\n\n await git.initRepo({\n ...config,\n url,\n });\n\n // Reset cached resources\n invalidatePrCache();\n\n const result = {\n defaultBranch: config.defaultBranch,\n isFork: false,\n repoFingerprint: repoFingerprint(config.repository, getBaseUrl()),\n };\n\n logger.debug({ result }, `Repo initialized`);\n\n return result;\n}\n\nexport async function getRepos(): Promise<string[]> {\n const repos = (await getAllRepos()).filter((repo) => repo.type === 'git');\n return repos.map((repo) => `${repo.namespace}/${repo.name}`);\n}\n\nexport async function getBranchPr(branchName: string): Promise<Pr | null> {\n return await findPr({ branchName, state: 'open' });\n}\n\nexport async function findPr({\n branchName,\n prTitle,\n state = 'all',\n}: FindPRConfig): Promise<Pr | null> {\n const inProgressPrs = await getPrList();\n const result = inProgressPrs.find(\n (pr) =>\n branchName === pr.sourceBranch &&\n (!prTitle || prTitle === pr.title) &&\n matchPrState(pr, state),\n );\n\n if (result) {\n logger.debug({ result }, `Found PR`);\n return result;\n }\n\n logger.debug(\n `Could not find PR with source branch ${branchName} and title ${\n prTitle ?? ''\n } and state ${state}`,\n );\n\n return null;\n}\n\nexport async function getPr(number: number): Promise<Pr | null> {\n const inProgressPrs = await getPrList();\n const cachedPr = inProgressPrs.find((pr) => pr.number === number);\n\n if (cachedPr) {\n logger.debug('Returning from cached PRs');\n return cachedPr;\n }\n\n try {\n const result = await getRepoPr(config.repository, number);\n logger.debug('Returning PR from API');\n return mapPrFromScmToRenovate(result);\n } catch (err) {\n logger.error({ err, number }, 'Can not find a PR with the given id');\n return null;\n }\n}\n\nexport async function getPrList(): Promise<Pr[]> {\n if (config.prList === null) {\n try {\n config.prList = (\n await getAllRepoPrs(config.repository, config.ignorePrAuthor)\n ).map((pr) => mapPrFromScmToRenovate(pr));\n } catch (error) {\n logger.error(error);\n }\n }\n\n return coerceArray(config.prList);\n}\n\nexport async function createPr({\n sourceBranch,\n targetBranch,\n prTitle,\n prBody,\n draftPR,\n}: CreatePRConfig): Promise<Pr> {\n const createdPr = await createScmPr(config.repository, {\n source: sourceBranch,\n target: targetBranch,\n title: prTitle,\n description: sanitize(prBody),\n status: draftPR ? 'DRAFT' : 'OPEN',\n });\n\n logger.debug(\n `PR created with title '${createdPr.title}' from source '${createdPr.source}' to target '${createdPr.target}'`,\n );\n\n return mapPrFromScmToRenovate(createdPr);\n}\n\nexport async function updatePr({\n number,\n prTitle,\n prBody,\n state,\n targetBranch,\n}: UpdatePrConfig): Promise<void> {\n await updateScmPr(config.repository, number, {\n title: prTitle,\n description: sanitize(prBody) ?? undefined,\n target: targetBranch,\n status: mapPrState(state),\n });\n\n logger.debug(`Updated PR #${number} with title ${prTitle}`);\n}\n\nexport function mergePr(_config: MergePRConfig): Promise<boolean> {\n logger.debug('Not implemented mergePr');\n return Promise.resolve(false);\n}\n\nexport function getBranchStatus(\n _branchName: string,\n _internalChecksAsSuccess: boolean,\n): Promise<BranchStatus> {\n logger.debug('Not implemented getBranchStatus');\n return Promise.resolve('red');\n}\n\nexport function setBranchStatus(\n _branchStatusConfig: BranchStatusConfig,\n): Promise<void> {\n logger.debug('Not implemented setBranchStatus');\n return Promise.resolve();\n}\n\nexport function getBranchStatusCheck(\n _branchName: string,\n _context: string,\n): Promise<BranchStatus | null> {\n logger.debug('Not implemented setBranchStatus');\n return Promise.resolve(null);\n}\n\nexport function addReviewers(\n _number: number,\n _reviewers: string[],\n): Promise<void> {\n logger.debug('Not implemented addReviewers');\n return Promise.resolve();\n}\n\nexport function addAssignees(\n _number: number,\n _assignees: string[],\n): Promise<void> {\n logger.debug('Not implemented addAssignees');\n return Promise.resolve();\n}\n\nexport function deleteLabel(_number: number, _label: string): Promise<void> {\n logger.debug('Not implemented deleteLabel');\n return Promise.resolve();\n}\n\nexport function getIssueList(): Promise<Issue[]> {\n logger.debug('Not implemented getIssueList');\n return Promise.resolve([]);\n}\n\nexport function findIssue(_title: string): Promise<Issue | null> {\n logger.debug('Not implemented findIssue');\n return Promise.resolve(null);\n}\n\nexport function ensureIssue(\n _config: EnsureIssueConfig,\n): Promise<'updated' | 'created' | null> {\n logger.debug('Not implemented ensureIssue');\n return Promise.resolve(null);\n}\n\nexport function ensureIssueClosing(_title: string): Promise<void> {\n logger.debug('Not implemented ensureIssueClosing');\n return Promise.resolve();\n}\n\nexport function ensureComment(_config: EnsureCommentConfig): Promise<boolean> {\n logger.debug('Not implemented ensureComment');\n return Promise.resolve(false);\n}\n\nexport function ensureCommentRemoval(\n _ensureCommentRemoval:\n EnsureCommentRemovalConfigByTopic | EnsureCommentRemovalConfigByContent,\n): Promise<void> {\n logger.debug('Not implemented ensureCommentRemoval');\n return Promise.resolve();\n}\n\nexport function massageMarkdown(prBody: string): string {\n return smartTruncate(smartLinks(prBody), maxBodyLength());\n}\n\nexport function getRawFile(\n _fileName: string,\n _repoName?: string,\n _branchOrTag?: string,\n): Promise<string | null> {\n logger.debug('Not implemented getRawFile');\n return Promise.resolve(null);\n}\n\nexport function getJsonFile(\n _fileName: string,\n _repoName?: string,\n _branchOrTag?: string,\n): Promise<any> {\n logger.debug('Not implemented getJsonFile');\n return Promise.resolve(null);\n}\n\nexport function maxBodyLength(): number {\n return 200000;\n}\n\nexport function invalidatePrCache(): void {\n config.prList = null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,MAAa,KAAK;AAGlB,IAAI,SAAyB,CAAC;AAE9B,eAAsB,aAAa,EACjC,UACA,SAC0C;CAC1C,IAAI,CAAC,UACH,MAAM,IAAI,MAAM,2CAA2C;CAG7D,IAAI,CAAC,OACH,MAAM,IAAI,MAAM,4CAA4C;CAG9D,MAAM,UAAU,GAAG,oBAAoB,QAAQ,EAAE;CACjD,WAAW,OAAO;CAElB,IAAI;EACF,MAAM,KAAK,MAAM,eAAe,KAAK;EAErC,MAAM,SAAS;GAAE,UAAU;GAAS,WAAA,GADf,GAAG,YAAY,IAAI,GAAG,KAAK;EACF;EAE9C,OAAO,MAAM,EAAE,OAAO,GAAG,iBAAiB;EAE1C,OAAO;CACT,SAAS,KAAK;EACZ,OAAO,MACL,EAAE,IAAI,GACN,+DACF;EACA,MAAM,IAAI,MAAM,8BAA8B;CAChD;AACF;AAEA,eAAsB,SAAS,EAC7B,YACA,UACkC;CAClC,MAAM,OAAO,MAAM,QAAQ,UAAU;CACrC,MAAM,gBAAgB,MAAM,iBAAiB,IAAI;CACjD,MAAM,MAAM,WAAW,MAAM,QAAQ,WAAW,CAAC;CAEjD,SAAS,CAAC;CACV,OAAO,aAAa;CACpB,OAAO,gBAAgB;CACvB,OAAO,iBAAiB,aAAa,IAAI,gBAAgB;CAEzD,MAAMA,WAAa;EACjB,GAAG;EACH;CACF,CAAC;CAGD,kBAAkB;CAElB,MAAM,SAAS;EACb,eAAe,OAAO;EACtB,QAAQ;EACR,iBAAiB,gBAAgB,OAAO,YAAY,WAAW,CAAC;CAClE;CAEA,OAAO,MAAM,EAAE,OAAO,GAAG,kBAAkB;CAE3C,OAAO;AACT;AAEA,eAAsB,WAA8B;CAElD,QADe,MAAM,YAAY,EAAA,CAAG,QAAQ,SAAS,KAAK,S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Q,IAAI;AAC7B;AAEA,SAAgB,YACd,SACuC;CACvC,OAAO,MAAM,6BAA6B;CAC1C,OAAO,QAAQ,QAAQ,IAAI;AAC7B;AAEA,SAAgB,mBAAmB,QAA+B;CAChE,OAAO,MAAM,oCAAoC;CACjD,OAAO,QAAQ,QAAQ;AACzB;AAEA,SAAgB,cAAc,SAAgD;CAC5E,OAAO,MAAM,+BAA+B;CAC5C,OAAO,QAAQ,QAAQ,KAAK;AAC9B;AAEA,SAAgB,qBACd,uBAEe;CACf,OAAO,MAAM,sCAAsC;CACnD,OAAO,QAAQ,QAAQ;AACzB;AAEA,SAAgB,gBAAgB,QAAwB;CACtD,OAAO,cAAc,WAAW,MAAM,GAAG,cAAc,CAAC;AAC1D;AAEA,SAAgB,WACd,WACA,WACA,cACwB;CACxB,OAAO,MAAM,4BAA4B;CACzC,OAAO,QAAQ,QAAQ,IAAI;AAC7B;AAEA,SAAgB,YACd,WACA,WACA,cACc;CACd,OAAO,MAAM,6BAA6B;CAC1C,OAAO,QAAQ,QAAQ,IAAI;AAC7B;AAEA,SAAgB,gBAAwB;CACtC,OAAO;AACT;AAEA,SAAgB,oBAA0B;CACxC,OAAO,SAAS;AAClB"}
@@ -7,8 +7,8 @@ import "../../types/index.js";
7
7
  import { MergeStrategy } from "../../config/types.js";
8
8
  import { DateTime } from "luxon";
9
9
  //#region lib/modules/platform/types.d.ts
10
- type VulnerabilityAlert = GithubVulnerabilityAlert;
11
- interface PlatformParams {
10
+ export type VulnerabilityAlert = GithubVulnerabilityAlert;
11
+ export interface PlatformParams {
12
12
  dryRun?: string;
13
13
  endpoint?: string;
14
14
  token?: string;
@@ -16,20 +16,20 @@ interface PlatformParams {
16
16
  password?: string;
17
17
  gitAuthor?: string;
18
18
  }
19
- interface PlatformResult {
19
+ export interface PlatformResult {
20
20
  endpoint: string;
21
21
  renovateUsername?: string;
22
22
  token?: string;
23
23
  gitAuthor?: string;
24
24
  hostRules?: HostRule[];
25
25
  }
26
- interface RepoResult {
26
+ export interface RepoResult {
27
27
  defaultBranch: string;
28
28
  isFork: boolean;
29
29
  repoFingerprint: string;
30
30
  }
31
- type GitUrlOption = 'default' | 'ssh' | 'endpoint';
32
- interface RepoParams {
31
+ export type GitUrlOption = 'default' | 'ssh' | 'endpoint';
32
+ export interface RepoParams {
33
33
  repository: string;
34
34
  gitUrl?: GitUrlOption;
35
35
  forkCreation?: boolean;
@@ -42,13 +42,13 @@ interface RepoParams {
42
42
  /** Azure only: work item type to use when creating issues. */
43
43
  azureWorkItemType?: string;
44
44
  }
45
- interface PrDebugData {
45
+ export interface PrDebugData {
46
46
  createdInVer: string;
47
47
  updatedInVer: string;
48
48
  targetBranch: string;
49
49
  labels?: string[];
50
50
  }
51
- interface PrBodyStruct {
51
+ export interface PrBodyStruct {
52
52
  hash: string;
53
53
  rawConfigHash?: string;
54
54
  rebaseRequested?: boolean;
@@ -57,7 +57,7 @@ interface PrBodyStruct {
57
57
  /**
58
58
  *
59
59
  */
60
- interface Pr {
60
+ export interface Pr {
61
61
  bodyStruct?: PrBodyStruct;
62
62
  sourceBranch: string;
63
63
  cannotMergeReason?: string;
@@ -77,7 +77,7 @@ interface Pr {
77
77
  /**
78
78
  * TODO: Proper typing
79
79
  */
80
- interface Issue {
80
+ export interface Issue {
81
81
  body?: string;
82
82
  number?: number;
83
83
  state?: string;
@@ -85,7 +85,7 @@ interface Issue {
85
85
  createdAt?: string;
86
86
  lastModified?: string;
87
87
  }
88
- interface PlatformPrOptions {
88
+ export interface PlatformPrOptions {
89
89
  autoApprove?: boolean;
90
90
  automergeCommitMessage?: string;
91
91
  automergeStrategy?: MergeStrategy;
@@ -96,7 +96,7 @@ interface PlatformPrOptions {
96
96
  usePlatformAutomerge?: boolean;
97
97
  forkModeDisallowMaintainerEdits?: boolean;
98
98
  }
99
- interface CreatePRConfig {
99
+ export interface CreatePRConfig {
100
100
  sourceBranch: string;
101
101
  targetBranch: string;
102
102
  prTitle: string;
@@ -106,7 +106,7 @@ interface CreatePRConfig {
106
106
  draftPR?: boolean;
107
107
  milestone?: number;
108
108
  }
109
- interface UpdatePrConfig {
109
+ export interface UpdatePrConfig {
110
110
  number: number;
111
111
  platformPrOptions?: PlatformPrOptions;
112
112
  prTitle: string;
@@ -133,11 +133,11 @@ interface UpdatePrConfig {
133
133
  */
134
134
  removeLabels?: string[] | null;
135
135
  }
136
- interface ReattemptPlatformAutomergeConfig {
136
+ export interface ReattemptPlatformAutomergeConfig {
137
137
  number: number;
138
138
  platformPrOptions?: PlatformPrOptions;
139
139
  }
140
- interface EnsureIssueConfig {
140
+ export interface EnsureIssueConfig {
141
141
  title: string;
142
142
  reuseTitle?: string;
143
143
  body: string;
@@ -146,16 +146,16 @@ interface EnsureIssueConfig {
146
146
  shouldReOpen?: boolean;
147
147
  confidential?: boolean;
148
148
  }
149
- interface StatusCheckConfig {
149
+ export interface StatusCheckConfig {
150
150
  context: string;
151
151
  description: string;
152
152
  state: BranchStatus;
153
153
  url?: string;
154
154
  }
155
- interface BranchStatusConfig extends StatusCheckConfig {
155
+ export interface BranchStatusConfig extends StatusCheckConfig {
156
156
  branchName: string;
157
157
  }
158
- interface FindPRConfig {
158
+ export interface FindPRConfig {
159
159
  branchName: string;
160
160
  prTitle?: string | null;
161
161
  state?: 'open' | 'closed' | '!open' | 'all';
@@ -163,31 +163,31 @@ interface FindPRConfig {
163
163
  targetBranch?: string | null;
164
164
  includeOtherAuthors?: boolean;
165
165
  }
166
- interface MergePRConfig {
166
+ export interface MergePRConfig {
167
167
  branchName?: string;
168
168
  id: number;
169
169
  strategy?: MergeStrategy;
170
170
  }
171
- interface EnsureCommentConfig {
171
+ export interface EnsureCommentConfig {
172
172
  number: number;
173
173
  topic: string | null;
174
174
  content: string;
175
175
  }
176
- interface EnsureCommentRemovalConfigByTopic {
176
+ export interface EnsureCommentRemovalConfigByTopic {
177
177
  type: 'by-topic';
178
178
  number: number;
179
179
  topic: string;
180
180
  }
181
- interface EnsureCommentRemovalConfigByContent {
181
+ export interface EnsureCommentRemovalConfigByContent {
182
182
  type: 'by-content';
183
183
  number: number;
184
184
  content: string;
185
185
  }
186
- type EnsureCommentRemovalConfig = EnsureCommentRemovalConfigByTopic | EnsureCommentRemovalConfigByContent;
187
- type EnsureIssueResult = 'updated' | 'created';
188
- type RepoSortMethod = 'alpha' | 'created' | 'created_at' | 'updated' | 'updated_at' | 'size' | 'id' | null;
189
- type SortMethod = 'asc' | 'desc' | null;
190
- interface AutodiscoverConfig {
186
+ export type EnsureCommentRemovalConfig = EnsureCommentRemovalConfigByTopic | EnsureCommentRemovalConfigByContent;
187
+ export type EnsureIssueResult = 'updated' | 'created';
188
+ export type RepoSortMethod = 'alpha' | 'created' | 'created_at' | 'updated' | 'updated_at' | 'size' | 'id' | null;
189
+ export type SortMethod = 'asc' | 'desc' | null;
190
+ export interface AutodiscoverConfig {
191
191
  topics?: string[];
192
192
  sort?: RepoSortMethod;
193
193
  order?: SortMethod;
@@ -195,13 +195,13 @@ interface AutodiscoverConfig {
195
195
  namespaces?: string[];
196
196
  projects?: string[];
197
197
  }
198
- interface FileOwnerRule {
198
+ export interface FileOwnerRule {
199
199
  usernames: string[];
200
200
  pattern: string;
201
201
  score: number;
202
202
  match: (path: string) => boolean;
203
203
  }
204
- interface Platform {
204
+ export interface Platform {
205
205
  /**
206
206
  * Whether this is an experimental Platform.
207
207
  *
@@ -247,9 +247,8 @@ interface Platform {
247
247
  */
248
248
  isPrInMergeQueue?(number: number): Promise<boolean>;
249
249
  deleteLabel(number: number, label: string): Promise<void>;
250
- addLabel?(number: number, label: string): Promise<void>;
251
250
  setBranchStatus(branchStatusConfig: BranchStatusConfig): Promise<void>;
252
- getBranchStatusCheck(branchName: string, context: string | null | undefined): Promise<BranchStatus | null>;
251
+ getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
253
252
  ensureCommentRemoval(ensureCommentRemoval: EnsureCommentRemovalConfigByTopic | EnsureCommentRemovalConfigByContent): Promise<void>;
254
253
  ensureComment(ensureComment: EnsureCommentConfig): Promise<boolean>;
255
254
  getPr(number: number): Promise<Pr | null>;
@@ -275,13 +274,12 @@ interface Platform {
275
274
  tryReuseAutoclosedPr?(pr: Pr, newTitle: string): Promise<Pr | null>;
276
275
  initPlatform(config: PlatformParams): Promise<PlatformResult>;
277
276
  filterUnavailableUsers?(users: string[]): Promise<string[]>;
278
- commitFiles?(config: CommitFilesConfig): Promise<LongCommitSha | null>;
279
277
  expandGroupMembers?(reviewersOrAssignees: string[]): Promise<string[]>;
280
278
  extractRulesFromCodeOwnersLines?(cleanedLines: string[]): FileOwnerRule[];
281
279
  maxBodyLength(): number;
282
280
  labelCharLimit?(): number;
283
281
  }
284
- interface PlatformScm {
282
+ export interface PlatformScm {
285
283
  isBranchBehindBase(branchName: string, baseBranch: string): Promise<boolean>;
286
284
  isBranchModified(branchName: string, baseBranch: string): Promise<boolean>;
287
285
  isBranchConflicted(baseBranch: string, branch: string): Promise<boolean>;
@@ -298,5 +296,4 @@ interface PlatformScm {
298
296
  syncForkWithUpstream?(baseBranch: string): Promise<void>;
299
297
  }
300
298
  //#endregion
301
- export { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureCommentRemovalConfigByContent, EnsureCommentRemovalConfigByTopic, EnsureIssueConfig, EnsureIssueResult, FileOwnerRule, FindPRConfig, GitUrlOption, Issue, MergePRConfig, Platform, PlatformParams, PlatformPrOptions, PlatformResult, PlatformScm, Pr, PrBodyStruct, PrDebugData, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, RepoSortMethod, SortMethod, StatusCheckConfig, UpdatePrConfig, VulnerabilityAlert };
302
299
  //# sourceMappingURL=types.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { GenericVersion, NewValueConfig, VersioningApi } from "./types.js";
2
2
  //#region lib/modules/versioning/generic.d.ts
3
- declare abstract class GenericVersioningApi<T extends GenericVersion = GenericVersion> implements VersioningApi {
3
+ export declare abstract class GenericVersioningApi<T extends GenericVersion = GenericVersion> implements VersioningApi {
4
4
  private _getSection;
5
5
  protected _compare(version: string, other: string): number;
6
6
  protected _compareOther(_left: T, _right: T): number;
@@ -24,5 +24,4 @@ declare abstract class GenericVersioningApi<T extends GenericVersion = GenericVe
24
24
  isSame(type: 'major' | 'minor' | 'patch', a: string, b: string): boolean;
25
25
  }
26
26
  //#endregion
27
- export { GenericVersioningApi };
28
27
  //# sourceMappingURL=generic.d.ts.map
@@ -1,13 +1,13 @@
1
1
  import { DistroDataFile, DistroInfoRecord, DistroInfoRecordWithVersion, DistroSchedule, GenericVersion, NewValueConfig, RangeComparator, VersionComparator, VersionParser, VersioningApi, VersioningApiConstructor } from "./types.js";
2
2
  import { index_d_exports } from "./semver-coerced/index.js";
3
3
  //#region lib/modules/versioning/index.d.ts
4
- declare const defaultVersioning: typeof index_d_exports;
5
- declare function getVersioningList(): string[];
4
+ export declare const defaultVersioning: typeof index_d_exports;
5
+ export declare function getVersioningList(): string[];
6
6
  /**
7
7
  * Get versioning map. Can be used to dynamically add new versioning type
8
8
  */
9
- declare function getVersionings(): Map<string, VersioningApi | VersioningApiConstructor>;
10
- declare function get(versioning: string | null | undefined): VersioningApi;
9
+ export declare function getVersionings(): Map<string, VersioningApi | VersioningApiConstructor>;
10
+ export declare function get(versioning: string | null | undefined): VersioningApi;
11
11
  //#endregion
12
- export { DistroDataFile, DistroInfoRecord, DistroInfoRecordWithVersion, DistroSchedule, GenericVersion, NewValueConfig, RangeComparator, VersionComparator, VersionParser, VersioningApi, VersioningApiConstructor, defaultVersioning, get, getVersioningList, getVersionings };
12
+ export { DistroDataFile, DistroInfoRecord, DistroInfoRecordWithVersion, DistroSchedule, GenericVersion, NewValueConfig, RangeComparator, VersionComparator, VersionParser, VersioningApi, VersioningApiConstructor };
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -2,13 +2,13 @@ import { VersioningApi } from "../types.js";
2
2
  declare namespace index_d_exports {
3
3
  export { api, api as default, displayName, getSatisfyingVersion, id, isVersion as isValid, isVersion, supportsRanges, urls };
4
4
  }
5
- declare const id = "semver-coerced";
6
- declare const displayName = "Coerced Semantic Versioning";
7
- declare const urls: string[];
8
- declare const supportsRanges = false;
5
+ export declare const id = "semver-coerced";
6
+ export declare const displayName = "Coerced Semantic Versioning";
7
+ export declare const urls: string[];
8
+ export declare const supportsRanges = false;
9
9
  declare function getSatisfyingVersion(versions: string[], range: string): string | null;
10
- declare function isVersion(input: string): boolean;
11
- declare const api: VersioningApi;
10
+ export declare function isVersion(input: string): boolean;
11
+ export declare const api: VersioningApi;
12
12
  //#endregion
13
- export { api, api as default, displayName, getSatisfyingVersion, id, index_d_exports, isVersion as isValid, isVersion, supportsRanges, urls };
13
+ export { api as default, getSatisfyingVersion, index_d_exports, isVersion as isValid };
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -2,15 +2,15 @@ import { RangeStrategy } from "../../types/versioning.js";
2
2
  import "../../types/index.js";
3
3
  import { SemVer } from "semver";
4
4
  //#region lib/modules/versioning/types.d.ts
5
- interface GenericVersion {
5
+ export interface GenericVersion {
6
6
  release: number[];
7
7
  /** prereleases are treated in the standard semver manner, if present */
8
8
  prerelease?: string;
9
9
  suffix?: string;
10
10
  }
11
- type VersionParser = (version: string) => GenericVersion;
12
- type VersionComparator = (version: string, other: string) => number;
13
- interface DistroSchedule {
11
+ export type VersionParser = (version: string) => GenericVersion;
12
+ export type VersionComparator = (version: string, other: string) => number;
13
+ export interface DistroSchedule {
14
14
  codename: string;
15
15
  series: string;
16
16
  created: string;
@@ -21,12 +21,12 @@ interface DistroSchedule {
21
21
  eol_lts?: string;
22
22
  eol_elts?: string;
23
23
  }
24
- type DistroDataFile = 'data/ubuntu-distro-info.json' | 'data/debian-distro-info.json';
25
- type DistroInfoRecord = Record<string, DistroSchedule>;
26
- type DistroInfoRecordWithVersion = {
24
+ export type DistroDataFile = 'data/ubuntu-distro-info.json' | 'data/debian-distro-info.json';
25
+ export type DistroInfoRecord = Record<string, DistroSchedule>;
26
+ export type DistroInfoRecordWithVersion = {
27
27
  version: string;
28
28
  } & DistroSchedule;
29
- interface NewValueConfig {
29
+ export interface NewValueConfig {
30
30
  currentValue: string;
31
31
  rangeStrategy: RangeStrategy;
32
32
  currentVersion?: string;
@@ -39,7 +39,7 @@ interface NewValueConfig {
39
39
  */
40
40
  allVersions?: Set<string>;
41
41
  }
42
- interface VersioningApi {
42
+ export interface VersioningApi {
43
43
  /**
44
44
  * Check whether the `input` is the valid version or range.
45
45
  *
@@ -154,15 +154,14 @@ interface VersioningApi {
154
154
  */
155
155
  isSame?(type: 'major' | 'minor' | 'patch', a: string, b: string): boolean;
156
156
  }
157
- type VersioningApiConstructor = new (config?: string) => VersioningApi;
157
+ export type VersioningApiConstructor = new (config?: string) => VersioningApi;
158
158
  /**
159
159
  * One term of a comparator range, such as the `<=` and the `1.2.3` of `<=1.2.3`.
160
160
  * The terms parsed from a single range are ANDed together.
161
161
  */
162
- interface RangeComparator {
162
+ export interface RangeComparator {
163
163
  operator: string;
164
164
  version: string;
165
165
  }
166
166
  //#endregion
167
- export { DistroDataFile, DistroInfoRecord, DistroInfoRecordWithVersion, DistroSchedule, GenericVersion, NewValueConfig, RangeComparator, VersionComparator, VersionParser, VersioningApi, VersioningApiConstructor };
168
167
  //# sourceMappingURL=types.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { VersioningApi } from "../types.js";
2
2
  //#region lib/modules/versioning/ubuntu/index.d.ts
3
- declare const id = "ubuntu";
4
- declare const displayName = "Ubuntu";
5
- declare const urls: string[];
6
- declare const supportsRanges = false;
7
- declare const api: VersioningApi;
3
+ export declare const id = "ubuntu";
4
+ export declare const displayName = "Ubuntu";
5
+ export declare const urls: string[];
6
+ export declare const supportsRanges = false;
7
+ export declare const api: VersioningApi;
8
8
  //#endregion
9
- export { api, api as default, displayName, id, supportsRanges, urls };
9
+ export { api as default };
10
10
  //# sourceMappingURL=index.d.ts.map
package/dist/proxy.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  //#region lib/proxy.d.ts
2
- declare function bootstrap(): void;
3
- declare function hasProxy(): boolean;
2
+ export declare function bootstrap(): void;
3
+ export declare function hasProxy(): boolean;
4
4
  //#endregion
5
- export { bootstrap, hasProxy };
6
5
  //# sourceMappingURL=proxy.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { require_punycode } from "./punycode.js";
2
2
  import "source-map-support/register.js";
3
+ //#endregion
3
4
  //# sourceMappingURL=renovate.d.ts.map
@@ -1,14 +1,13 @@
1
1
  import { PackageJson } from "type-fest";
2
2
  //#region lib/types/base.d.ts
3
- interface ModuleApi {
3
+ export interface ModuleApi {
4
4
  displayName?: string;
5
5
  url?: string;
6
6
  /** optional URLs to add to docs as references */
7
7
  urls?: string[];
8
8
  }
9
- type RenovatePackageJson = PackageJson & {
9
+ export type RenovatePackageJson = PackageJson & {
10
10
  version: string;
11
11
  };
12
12
  //#endregion
13
- export { ModuleApi, RenovatePackageJson };
14
13
  //# sourceMappingURL=base.d.ts.map
@@ -1,5 +1,4 @@
1
1
  //#region lib/types/branch-status.d.ts
2
- type BranchStatus = 'green' | 'yellow' | 'red';
2
+ export type BranchStatus = 'green' | 'yellow' | 'red';
3
3
  //#endregion
4
- export { BranchStatus };
5
4
  //# sourceMappingURL=branch-status.d.ts.map
@@ -1,9 +1,8 @@
1
1
  //#region lib/types/commit-message-json.d.ts
2
- interface CommitMessageJSON {
2
+ export interface CommitMessageJSON {
3
3
  body?: string;
4
4
  footer?: string;
5
5
  subject?: string;
6
6
  }
7
7
  //#endregion
8
- export { CommitMessageJSON };
9
8
  //# sourceMappingURL=commit-message-json.d.ts.map
@@ -1,6 +1,5 @@
1
1
  //#region lib/types/git.d.ts
2
- type GitProtocol = 'ssh' | 'http' | 'https';
3
- type GitOptions = Record<string, null | string | number>;
2
+ export type GitProtocol = 'ssh' | 'http' | 'https';
3
+ export type GitOptions = Record<string, null | string | number>;
4
4
  //#endregion
5
- export { GitOptions, GitProtocol };
6
5
  //# sourceMappingURL=git.d.ts.map
@@ -1,5 +1,5 @@
1
1
  //#region lib/types/host-rules.d.ts
2
- interface HostRule {
2
+ export interface HostRule {
3
3
  authType?: string;
4
4
  token?: string;
5
5
  username?: string;
@@ -41,7 +41,7 @@ interface HostRule {
41
41
  *
42
42
  * The administrator's own rules are resolved first, and an `allowInternal: false` of theirs vetoes every field below: inherited config can never re-grant a host the administrator refused, in any grant shape.
43
43
  */
44
- interface InternalHostGrant {
44
+ export interface InternalHostGrant {
45
45
  /**
46
46
  * The `allowInternal` value of the matching trusted rules, with the most specific rule winning, and the administrator's own rules winning over inherited config's. `undefined` when none of them set it.
47
47
  */
@@ -55,10 +55,9 @@ interface InternalHostGrant {
55
55
  */
56
56
  implicit: boolean;
57
57
  }
58
- type CombinedHostRule = Omit<HostRule, 'encrypted' | 'hostType' | 'matchHost' | 'resolvedHost' | 'readOnly' | 'allowInternal'> & {
58
+ export type CombinedHostRule = Omit<HostRule, 'encrypted' | 'hostType' | 'matchHost' | 'resolvedHost' | 'readOnly' | 'allowInternal'> & {
59
59
  /** computed by `find()` - see {@link InternalHostGrant} */
60
60
  internalHostGrant?: InternalHostGrant;
61
61
  };
62
62
  //#endregion
63
- export { CombinedHostRule, HostRule, InternalHostGrant };
64
63
  //# sourceMappingURL=host-rules.d.ts.map
@@ -11,15 +11,15 @@ import { SkipReason, StageName } from "./skip-reason.js";
11
11
  import { RangeStrategy } from "./versioning.js";
12
12
  import { MergeStrategy, RenovateSplit, UpdateType, ValidationMessage } from "../config/types.js";
13
13
  //#region lib/types/index.d.ts
14
- type AutoMergeType = 'branch' | 'pr' | 'pr-comment';
14
+ export type AutoMergeType = 'branch' | 'pr' | 'pr-comment';
15
15
  type Val = NonNullable<unknown>;
16
16
  /**
17
17
  * A type that can be null or undefined.
18
18
  *
19
19
  * @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#nullish-coalescing
20
20
  */
21
- type Nullish<T extends Val> = T | null | undefined;
22
- type MaybePromise<T> = T | Promise<T>;
21
+ export type Nullish<T extends Val> = T | null | undefined;
22
+ export type MaybePromise<T> = T | Promise<T>;
23
23
  /**
24
24
  * The Extends utility type ensures that U is a subset of T (typically a union).
25
25
  * This helps ensure that we get a typescript error should anything ever be removed
@@ -31,7 +31,7 @@ type MaybePromise<T> = T | Promise<T>;
31
31
  * @example
32
32
  * type IsBroken = Extends<AutoMergeType, 'pr' | 'branch' | 'oh-no' >; // This will give a typescript error
33
33
  */
34
- type Extends<T, U extends T> = U;
34
+ export type Extends<T, U extends T> = U;
35
35
  //#endregion
36
- export { AutoMergeType, type BranchCache, type BranchResult, type BranchStatus, type BranchUpgradeCache, type BunyanRecord, type CombinedHostRule, type CommitMessageJSON, Extends, type HostRule, type InternalHostGrant, MaybePromise, type MergeStrategy, type ModuleApi, Nullish, type PrBlockedBy, type PrState, type ProcessResult, type ProcessStatus, type RangeStrategy, type RenovatePackageJson, type RenovateSplit, type RepositoryResult, type SkipReason, type StageName, type UpdateType, type ValidationMessage };
36
+ export type { BranchCache, BranchResult, BranchStatus, BranchUpgradeCache, BunyanRecord, CombinedHostRule, CommitMessageJSON, HostRule, InternalHostGrant, MergeStrategy, ModuleApi, PrBlockedBy, PrState, ProcessResult, ProcessStatus, RangeStrategy, RenovatePackageJson, RenovateSplit, RepositoryResult, SkipReason, StageName, UpdateType, ValidationMessage };
37
37
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
1
  //#region lib/types/pr-state.d.ts
2
- type PrState = 'merged' | 'open' | 'closed' | 'all' | '!open';
2
+ export type PrState = 'merged' | 'open' | 'closed' | 'all' | '!open';
3
3
  //#endregion
4
- export { PrState };
5
4
  //# sourceMappingURL=pr-state.d.ts.map
@@ -1,5 +1,5 @@
1
1
  //#region lib/types/skip-reason.d.ts
2
- type SkipReason = 'contains-variable' | 'disabled' | 'empty' | 'file-dependency' | 'file' | 'git-dependency' | 'git-plugin' | 'ignored' | 'internal-error' | 'internal-package' | 'invalid-config' | 'invalid-dependency-specification' | 'invalid-name' | 'invalid-sha256' | 'invalid-url' | 'invalid-value' | 'invalid-version' | 'local-chart' | 'local-dependency' | 'local' | 'multiple-constraint-dep' | 'name-placeholder' | 'no-repository' | 'no-source-match' | 'no-source' | 'non-hex-dep-types' | 'not-a-version' | 'package-rules' | 'path-dependency' | 'placeholder-url' | 'unknown-engines' | 'unknown-registry' | 'unknown-volta' | 'unspecified-version' | 'unsupported-chart-type' | 'unsupported-datasource' | 'unsupported-remote' | 'unsupported-url' | 'unsupported-version' | 'unsupported' | 'unversioned-reference' | 'version-placeholder' | 'is-pinned' | 'missing-depname' | 'recursive-placeholder' | 'github-token-required' | 'inherited-dependency' |
2
+ export type SkipReason = 'contains-variable' | 'disabled' | 'empty' | 'file-dependency' | 'file' | 'git-dependency' | 'git-plugin' | 'ignored' | 'internal-error' | 'internal-package' | 'invalid-config' | 'invalid-dependency-specification' | 'invalid-name' | 'invalid-sha256' | 'invalid-url' | 'invalid-value' | 'invalid-version' | 'local-chart' | 'local-dependency' | 'local' | 'multiple-constraint-dep' | 'name-placeholder' | 'no-repository' | 'no-source-match' | 'no-source' | 'non-hex-dep-types' | 'not-a-version' | 'package-rules' | 'path-dependency' | 'placeholder-url' | 'unknown-engines' | 'unknown-registry' | 'unknown-volta' | 'unspecified-version' | 'unsupported-chart-type' | 'unsupported-datasource' | 'unsupported-remote' | 'unsupported-url' | 'unsupported-version' | 'unsupported' | 'unversioned-reference' | 'version-placeholder' | 'is-pinned' | 'missing-depname' | 'recursive-placeholder' | 'github-token-required' | 'inherited-dependency' |
3
3
  /**
4
4
  * The dependency has been detected as explicitly malicious.
5
5
  *
@@ -18,11 +18,10 @@ type SkipReason = 'contains-variable' | 'disabled' | 'empty' | 'file-dependency'
18
18
  * Renovate will not propose any routine updates: this reason is only removed to remediate a vulnerability, and only once a fixed version is known.
19
19
  */
20
20
  'lockfile-only';
21
- type StageName = 'current-timestamp' | 'datasource-merge' | 'extract' | 'lock-file-maintenance-merge' | 'lock-file-maintenance-merge-2' | 'lookup' | 'pre-lookup' | 'source-url' | 'update-type' | 'update-type-merge' |
21
+ export type StageName = 'current-timestamp' | 'datasource-merge' | 'extract' | 'lock-file-maintenance-merge' | 'lock-file-maintenance-merge-2' | 'lookup' | 'pre-lookup' | 'source-url' | 'update-type' | 'update-type-merge' |
22
22
  /**
23
23
  * The update was skipped during one of the Enrichment modules.
24
24
  */
25
25
  'enrichment';
26
26
  //#endregion
27
- export { SkipReason, StageName };
28
27
  //# sourceMappingURL=skip-reason.d.ts.map
@@ -1,5 +1,4 @@
1
1
  //#region lib/types/versioning.d.ts
2
- type RangeStrategy = 'auto' | 'bump' | 'future' | 'pin' | 'replace' | 'update-lockfile' | 'in-range-only' | 'widen';
2
+ export type RangeStrategy = 'auto' | 'bump' | 'future' | 'pin' | 'replace' | 'update-lockfile' | 'in-range-only' | 'widen';
3
3
  //#endregion
4
- export { RangeStrategy };
5
4
  //# sourceMappingURL=versioning.d.ts.map
@@ -1,12 +1,14 @@
1
1
  import { AllConfig } from "../../../config/types.js";
2
2
  import { PackageCacheNamespace } from "./namespaces.js";
3
- //#region lib/util/cache/package/backend.d.ts
3
+ declare namespace backend_d_exports {
4
+ export { destroy, get, getCacheType, init, set };
5
+ }
4
6
  declare let cacheType: 'redis' | 'sqlite' | 'file' | undefined;
5
- declare function getCacheType(): typeof cacheType;
6
- declare function init(config: AllConfig): Promise<void>;
7
- declare function get<T = unknown>(namespace: PackageCacheNamespace, key: string): Promise<T | undefined>;
8
- declare function set(namespace: PackageCacheNamespace, key: string, value: unknown, hardTtlMinutes: number): Promise<void>;
9
- declare function destroy(): Promise<void>;
7
+ export declare function getCacheType(): typeof cacheType;
8
+ export declare function init(config: AllConfig): Promise<void>;
9
+ export declare function get<T = unknown>(namespace: PackageCacheNamespace, key: string): Promise<T | undefined>;
10
+ export declare function set(namespace: PackageCacheNamespace, key: string, value: unknown, hardTtlMinutes: number): Promise<void>;
11
+ export declare function destroy(): Promise<void>;
10
12
  //#endregion
11
- export { destroy, get, getCacheType, init, set };
13
+ export { backend_d_exports };
12
14
  //# sourceMappingURL=backend.d.ts.map
@@ -1,20 +1,19 @@
1
1
  import { AllConfig } from "../../../config/types.js";
2
2
  import { PackageCacheNamespace } from "./namespaces.js";
3
- import { getCacheType as getCacheType$1 } from "./backend.js";
3
+ import { backend_d_exports, getCacheType as getCacheType$1 } from "./backend.js";
4
4
  //#region lib/util/cache/package/index.d.ts
5
- declare function getCacheType(): ReturnType<typeof getCacheType$1>;
6
- declare function get<T = any>(namespace: PackageCacheNamespace, key: string): Promise<T | undefined>;
5
+ export declare function getCacheType(): ReturnType<typeof getCacheType$1>;
6
+ export declare function get<T = any>(namespace: PackageCacheNamespace, key: string): Promise<T | undefined>;
7
7
  /**
8
8
  * Set cache value with user-defined TTL overrides.
9
9
  */
10
- declare function set(namespace: PackageCacheNamespace, key: string, value: unknown, hardTtlMinutes: number): Promise<void>;
10
+ export declare function set(namespace: PackageCacheNamespace, key: string, value: unknown, hardTtlMinutes: number): Promise<void>;
11
11
  /**
12
12
  * Set cache value ignoring user-defined TTL overrides.
13
13
  * This MUST NOT be used outside of cache implementation
14
14
  */
15
- declare function setWithRawTtl(namespace: PackageCacheNamespace, key: string, value: unknown, hardTtlMinutes: number): Promise<void>;
16
- declare function init(config: AllConfig): Promise<void>;
17
- declare function cleanup(_config: AllConfig): Promise<void>;
15
+ export declare function setWithRawTtl(namespace: PackageCacheNamespace, key: string, value: unknown, hardTtlMinutes: number): Promise<void>;
16
+ export declare function init(config: AllConfig): Promise<void>;
17
+ export declare function cleanup(_config: AllConfig): Promise<void>;
18
18
  //#endregion
19
- export { cleanup, get, getCacheType, init, set, setWithRawTtl };
20
19
  //# sourceMappingURL=index.d.ts.map