renovate 43.5.0 → 43.5.2
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.
- package/dist/config/decrypt.js +2 -2
- package/dist/config/defaults.d.ts +8 -0
- package/dist/config/defaults.js +1 -1
- package/dist/config/migrate-validate.js +1 -1
- package/dist/config/migration.js +2 -2
- package/dist/config/migrations/migrations-service.js +1 -1
- package/dist/config/options/index.d.ts +7 -0
- package/dist/config/options/index.js +2 -2
- package/dist/config/presets/index.js +5 -5
- package/dist/config/types.d.ts +156 -2
- package/dist/config/utils.d.ts +5 -0
- package/dist/config/validation.js +4 -4
- package/dist/config-validator.js +4 -4
- package/dist/constants/category.d.ts +6 -0
- package/dist/constants/error-messages.d.ts +58 -0
- package/dist/constants/error-messages.js +27 -1
- package/dist/constants/error-messages.js.map +1 -1
- package/dist/instrumentation/index.js +1 -1
- package/dist/instrumentation/types.d.ts +76 -0
- package/dist/logger/err-serializer.d.ts +5 -0
- package/dist/logger/index.d.ts +27 -0
- package/dist/logger/index.js +22 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/logger/renovate-logger.d.ts +40 -0
- package/dist/logger/types.d.ts +33 -2
- package/dist/logger/types.js +1 -0
- package/dist/logger/utils.d.ts +18 -0
- package/dist/logger/utils.js +1 -1
- package/dist/manager-list.generated.d.ts +6 -0
- package/dist/modules/datasource/aws-eks-addon/index.js +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js +1 -1
- package/dist/modules/datasource/bitrise/index.js +1 -1
- package/dist/modules/datasource/conda/index.js +1 -1
- package/dist/modules/datasource/conda/prefix-dev.js +1 -1
- package/dist/modules/datasource/crate/index.js +2 -2
- package/dist/modules/datasource/custom/formats/toml.js +1 -1
- package/dist/modules/datasource/custom/formats/yaml.js +1 -1
- package/dist/modules/datasource/docker/common.js +3 -3
- package/dist/modules/datasource/docker/dockerhub-cache.js +1 -1
- package/dist/modules/datasource/docker/index.js +2 -2
- package/dist/modules/datasource/git-refs/base.js +1 -1
- package/dist/modules/datasource/go/base.js +1 -1
- package/dist/modules/datasource/index.js +6 -6
- package/dist/modules/datasource/jenkins-plugins/index.js +1 -1
- package/dist/modules/datasource/npm/get.js +1 -1
- package/dist/modules/datasource/npm/npmrc.js +1 -1
- package/dist/modules/datasource/npm/types.d.ts +44 -0
- package/dist/modules/datasource/npm/types.js +1 -0
- package/dist/modules/datasource/packagist/index.js +1 -1
- package/dist/modules/datasource/pypi/index.js +1 -1
- package/dist/modules/datasource/types.js +1 -0
- package/dist/modules/manager/argocd/extract.js +1 -1
- package/dist/modules/manager/azure-pipelines/extract.js +1 -1
- package/dist/modules/manager/bazel-module/bazelrc.js +1 -1
- package/dist/modules/manager/bazel-module/extract.js +1 -1
- package/dist/modules/manager/bun/artifacts.js +1 -1
- package/dist/modules/manager/bundler/artifacts.js +1 -1
- package/dist/modules/manager/cargo/artifacts.js +1 -1
- package/dist/modules/manager/cargo/extract.js +1 -1
- package/dist/modules/manager/cargo/locked-version.js +1 -1
- package/dist/modules/manager/circleci/extract.js +1 -1
- package/dist/modules/manager/cocoapods/artifacts.js +1 -1
- package/dist/modules/manager/composer/artifacts.js +1 -1
- package/dist/modules/manager/composer/utils.js +1 -1
- package/dist/modules/manager/copier/artifacts.js +1 -1
- package/dist/modules/manager/custom/jsonata/utils.js +1 -1
- package/dist/modules/manager/custom/regex/utils.js +1 -1
- package/dist/modules/manager/custom/types.d.ts +2 -1
- package/dist/modules/manager/devbox/artifacts.js +1 -1
- package/dist/modules/manager/devcontainer/extract.js +1 -1
- package/dist/modules/manager/fingerprint.generated.d.ts +5 -0
- package/dist/modules/manager/flux/extract.js +1 -1
- package/dist/modules/manager/git-submodules/extract.js +1 -1
- package/dist/modules/manager/git-submodules/update.js +2 -2
- package/dist/modules/manager/github-actions/extract.js +1 -1
- package/dist/modules/manager/gitlabci/extract.js +1 -1
- package/dist/modules/manager/gitlabci/schema.js +1 -1
- package/dist/modules/manager/gitlabci-include/extract.js +1 -1
- package/dist/modules/manager/gitlabci-include/schema.js +1 -1
- package/dist/modules/manager/glasskube/extract.js +1 -1
- package/dist/modules/manager/gleam/extract.js +1 -1
- package/dist/modules/manager/gleam/locked-version.js +1 -1
- package/dist/modules/manager/gomod/artifacts.js +4 -4
- package/dist/modules/manager/gradle/artifacts.js +1 -1
- package/dist/modules/manager/gradle/extract.js +1 -1
- package/dist/modules/manager/gradle-wrapper/utils.js +1 -1
- package/dist/modules/manager/helmfile/artifacts.js +2 -2
- package/dist/modules/manager/helmfile/utils.js +1 -1
- package/dist/modules/manager/helmv3/artifacts.js +2 -2
- package/dist/modules/manager/helmv3/common.js +1 -1
- package/dist/modules/manager/helmv3/extract.js +1 -1
- package/dist/modules/manager/index.d.ts +26 -0
- package/dist/modules/manager/index.js +15 -12
- package/dist/modules/manager/index.js.map +1 -1
- package/dist/modules/manager/jsonnet-bundler/artifacts.js +1 -1
- package/dist/modules/manager/maven-wrapper/artifacts.js +1 -1
- package/dist/modules/manager/mix/artifacts.js +1 -1
- package/dist/modules/manager/nix/artifacts.js +1 -1
- package/dist/modules/manager/npm/extract/index.js +1 -1
- package/dist/modules/manager/npm/extract/pnpm.js +2 -2
- package/dist/modules/manager/npm/post-update/index.js +2 -2
- package/dist/modules/manager/npm/post-update/npm.js +2 -2
- package/dist/modules/manager/npm/post-update/pnpm.js +2 -2
- package/dist/modules/manager/npm/post-update/yarn.js +3 -3
- package/dist/modules/manager/npm/update/dependency/index.js +1 -1
- package/dist/modules/manager/osgi/extract.js +1 -1
- package/dist/modules/manager/pep621/processors/uv.js +1 -1
- package/dist/modules/manager/pip-compile/artifacts.js +1 -1
- package/dist/modules/manager/pip-compile/common.js +2 -2
- package/dist/modules/manager/pip-compile/extract.js +1 -1
- package/dist/modules/manager/pipenv/artifacts.js +1 -1
- package/dist/modules/manager/pipenv/extract.js +1 -1
- package/dist/modules/manager/pixi/extract.js +1 -1
- package/dist/modules/manager/poetry/artifacts.js +2 -2
- package/dist/modules/manager/poetry/extract.js +1 -1
- package/dist/modules/manager/renovate-config-presets/index.js +1 -1
- package/dist/modules/manager/terraform/lockfile/hash.js +1 -1
- package/dist/modules/manager/types.d.ts +282 -6
- package/dist/modules/manager/types.js +1 -0
- package/dist/modules/platform/azure/index.js +1 -1
- package/dist/modules/platform/bitbucket/index.d.ts +91 -0
- package/dist/modules/platform/bitbucket/index.js +3 -3
- package/dist/modules/platform/bitbucket/pr-cache.js +1 -1
- package/dist/modules/platform/bitbucket-server/index.d.ts +94 -0
- package/dist/modules/platform/bitbucket-server/index.js +5 -5
- package/dist/modules/platform/bitbucket-server/pr-cache.js +1 -1
- package/dist/modules/platform/bitbucket-server/types.d.ts +10 -0
- package/dist/modules/platform/codecommit/codecommit-client.js +1 -1
- package/dist/modules/platform/forgejo/index.js +2 -2
- package/dist/modules/platform/forgejo/pr-cache.js +2 -2
- package/dist/modules/platform/gerrit/index.js +1 -1
- package/dist/modules/platform/gitea/index.js +2 -2
- package/dist/modules/platform/gitea/pr-cache.js +2 -2
- package/dist/modules/platform/github/api-cache.js +1 -1
- package/dist/modules/platform/github/index.js +5 -5
- package/dist/modules/platform/gitlab/code-owners.d.ts +7 -0
- package/dist/modules/platform/gitlab/index.d.ts +97 -0
- package/dist/modules/platform/gitlab/index.js +6 -6
- package/dist/modules/platform/gitlab/types.d.ts +15 -0
- package/dist/modules/platform/gitlab/utils.js +1 -1
- package/dist/modules/platform/types.js +1 -0
- package/dist/modules/versioning/node/index.js +1 -1
- package/dist/proxy.d.ts +6 -0
- package/dist/renovate.js +1 -1
- package/dist/types/base.d.ts +5 -2
- package/dist/types/commit-message-json.d.ts +9 -0
- package/dist/types/git.d.ts +6 -0
- package/dist/types/index.d.ts +6 -2
- package/dist/types/index.js +1 -0
- package/dist/types/pr-state.d.ts +5 -0
- package/dist/types/skip-reason.d.ts +6 -0
- package/dist/util/cache/package/index.d.ts +21 -0
- package/dist/util/cache/package/namespaces.d.ts +6 -0
- package/dist/util/cache/package/redis.d.ts +11 -0
- package/dist/util/cache/package/redis.js +1 -1
- package/dist/util/cache/package/ttl.js +1 -1
- package/dist/util/cache/package/with-cache.js +1 -1
- package/dist/util/cache/repository/http-cache.js +1 -1
- package/dist/util/cache/repository/impl/base.js +2 -2
- package/dist/util/cache/repository/index.js +1 -1
- package/dist/util/cache/repository/types.d.ts +171 -0
- package/dist/util/cache/repository/types.js +1 -0
- package/dist/util/check-token.js +1 -1
- package/dist/util/common.js +2 -2
- package/dist/util/compress.d.ts +6 -0
- package/dist/util/exec/common.d.ts +8 -0
- package/dist/util/exec/common.js +2 -2
- package/dist/util/exec/containerbase.js +1 -1
- package/dist/util/exec/docker/index.js +1 -1
- package/dist/util/exec/exec-error.d.ts +24 -0
- package/dist/util/exec/hermit.js +1 -1
- package/dist/util/exec/index.js +2 -2
- package/dist/util/exec/types.d.ts +73 -0
- package/dist/util/exec/types.js +1 -0
- package/dist/util/fs/index.js +2 -2
- package/dist/util/fs/util.js +1 -1
- package/dist/util/git/auth.js +1 -1
- package/dist/util/git/config.d.ts +8 -0
- package/dist/util/git/error.js +1 -1
- package/dist/util/git/index.d.ts +160 -0
- package/dist/util/git/index.js +8 -8
- package/dist/util/git/private-key.d.ts +5 -0
- package/dist/util/git/private-key.js +1 -1
- package/dist/util/git/span-processor.js +1 -1
- package/dist/util/git/types.d.ts +99 -2
- package/dist/util/github/graphql/cache-strategies/abstract-cache-strategy.js +1 -1
- package/dist/util/github/graphql/datasource-fetcher.js +1 -1
- package/dist/util/host-rules.js +1 -1
- package/dist/util/http/cache/package-http-cache-provider.js +1 -1
- package/dist/util/http/cache/types.d.ts +11 -0
- package/dist/util/http/errors.d.ts +5 -0
- package/dist/util/http/github.d.ts +53 -0
- package/dist/util/http/github.js +2 -2
- package/dist/util/http/gitlab.d.ts +19 -0
- package/dist/util/http/host-rules.js +3 -3
- package/dist/util/http/http.d.ts +99 -0
- package/dist/util/http/http.js +4 -4
- package/dist/util/http/legacy.d.ts +14 -0
- package/dist/util/http/types.d.ts +78 -0
- package/dist/util/http/types.js +1 -0
- package/dist/util/json-writer/editor-config.js +1 -1
- package/dist/util/merge-confidence/index.js +1 -1
- package/dist/util/regex.js +1 -1
- package/dist/util/s3.d.ts +12 -0
- package/dist/util/s3.js +1 -1
- package/dist/util/schema-utils/index.js +1 -1
- package/dist/util/template/index.js +1 -1
- package/dist/util/timestamp.d.ts +3 -1
- package/dist/util/url.d.ts +41 -0
- package/dist/workers/global/autodiscover.d.ts +8 -0
- package/dist/workers/global/autodiscover.js +1 -1
- package/dist/workers/global/config/parse/additional-config-file.js +1 -1
- package/dist/workers/global/config/parse/file.js +1 -1
- package/dist/workers/global/config/parse/index.d.ts +8 -0
- package/dist/workers/global/config/parse/index.js +17 -17
- package/dist/workers/global/config/parse/index.js.map +1 -1
- package/dist/workers/global/config/parse/util.js +2 -2
- package/dist/workers/global/index.js +7 -7
- package/dist/workers/global/initialize.js +1 -1
- package/dist/workers/repository/config-migration/branch/create.js +2 -2
- package/dist/workers/repository/config-migration/branch/index.js +1 -1
- package/dist/workers/repository/config-migration/branch/rebase.js +1 -1
- package/dist/workers/repository/config-migration/pr/index.js +1 -1
- package/dist/workers/repository/dependency-dashboard.js +1 -1
- package/dist/workers/repository/error-config.js +1 -1
- package/dist/workers/repository/extract/index.js +1 -1
- package/dist/workers/repository/finalize/prune.js +1 -1
- package/dist/workers/repository/index.js +4 -4
- package/dist/workers/repository/init/index.js +2 -2
- package/dist/workers/repository/init/inherited.js +6 -6
- package/dist/workers/repository/init/merge.js +7 -7
- package/dist/workers/repository/init/types.d.ts +17 -0
- package/dist/workers/repository/onboarding/branch/check.js +2 -2
- package/dist/workers/repository/onboarding/branch/config.js +1 -1
- package/dist/workers/repository/onboarding/branch/create.js +1 -1
- package/dist/workers/repository/onboarding/branch/index.js +1 -1
- package/dist/workers/repository/onboarding/branch/rebase.js +1 -1
- package/dist/workers/repository/onboarding/common.js +1 -1
- package/dist/workers/repository/onboarding/pr/index.js +2 -2
- package/dist/workers/repository/process/extract-update.d.ts +15 -0
- package/dist/workers/repository/process/extract-update.js +1 -1
- package/dist/workers/repository/process/fetch.js +3 -3
- package/dist/workers/repository/process/index.js +4 -4
- package/dist/workers/repository/process/lookup/filter.js +1 -1
- package/dist/workers/repository/process/lookup/utils.js +1 -1
- package/dist/workers/repository/process/write.d.ts +3 -0
- package/dist/workers/repository/process/write.js +1 -1
- package/dist/workers/repository/reconfigure/comment.js +1 -1
- package/dist/workers/repository/reconfigure/index.js +1 -1
- package/dist/workers/repository/reconfigure/utils.js +1 -1
- package/dist/workers/repository/result.d.ts +39 -0
- package/dist/workers/repository/update/branch/artifacts.js +1 -1
- package/dist/workers/repository/update/branch/auto-replace.js +1 -1
- package/dist/workers/repository/update/branch/automerge.js +1 -1
- package/dist/workers/repository/update/branch/bump-versions.js +1 -1
- package/dist/workers/repository/update/branch/commit.js +1 -1
- package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +3 -3
- package/dist/workers/repository/update/branch/handle-existing.js +1 -1
- package/dist/workers/repository/update/branch/index.js +2 -2
- package/dist/workers/repository/update/branch/status-checks.js +1 -1
- package/dist/workers/repository/update/pr/automerge.js +1 -1
- package/dist/workers/repository/update/pr/changelog/github/source.js +1 -1
- package/dist/workers/repository/update/pr/changelog/release-notes.js +1 -1
- package/dist/workers/repository/update/pr/changelog/types.d.ts +45 -0
- package/dist/workers/repository/update/pr/index.js +2 -2
- package/dist/workers/repository/update/pr/labels.js +1 -1
- package/dist/workers/repository/update/pr/participants.js +1 -1
- package/dist/workers/repository/update/pr/pr-reuse.js +1 -1
- package/dist/workers/repository/updates/branch-name.js +1 -1
- package/dist/workers/repository/updates/generate.js +2 -2
- package/dist/workers/types.d.ts +191 -0
- package/dist/workers/types.js +1 -0
- package/package.json +3 -3
- package/renovate-schema.json +2 -2
package/dist/config/decrypt.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getEnv } from "../util/env.js";
|
|
2
1
|
import { CONFIG_VALIDATION } from "../constants/error-messages.js";
|
|
2
|
+
import { getEnv } from "../util/env.js";
|
|
3
3
|
import { regEx } from "../util/regex.js";
|
|
4
|
+
import { GlobalConfig } from "./global.js";
|
|
4
5
|
import { addSecretForSanitizing } from "../util/sanitize.js";
|
|
5
6
|
import { logger } from "../logger/index.js";
|
|
6
7
|
import { ensureTrailingSlash, parseUrl, trimSlashes } from "../util/url.js";
|
|
7
|
-
import { GlobalConfig } from "./global.js";
|
|
8
8
|
import { tryDecryptBcPgp } from "./decrypt/bcpgp.js";
|
|
9
9
|
import { tryDecryptOpenPgp } from "./decrypt/openpgp.js";
|
|
10
10
|
import { DecryptedObject } from "./schema.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AllConfig, RenovateOptions } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region lib/config/defaults.d.ts
|
|
4
|
+
declare function getDefault(option: RenovateOptions): any;
|
|
5
|
+
declare function getConfig(): AllConfig;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getConfig, getDefault };
|
|
8
|
+
//# sourceMappingURL=defaults.d.ts.map
|
package/dist/config/defaults.js
CHANGED
|
@@ -2,8 +2,8 @@ import { logger } from "../logger/index.js";
|
|
|
2
2
|
import { massageConfig } from "./massage.js";
|
|
3
3
|
import { migrateConfig } from "./migration.js";
|
|
4
4
|
import { validateConfig } from "./validation.js";
|
|
5
|
-
import { isNonEmptyArray } from "@sindresorhus/is";
|
|
6
5
|
import { dequal } from "dequal";
|
|
6
|
+
import { isNonEmptyArray } from "@sindresorhus/is";
|
|
7
7
|
|
|
8
8
|
//#region lib/config/migrate-validate.ts
|
|
9
9
|
async function migrateAndValidate(config, input) {
|
package/dist/config/migration.js
CHANGED
|
@@ -2,11 +2,11 @@ import { regEx } from "../util/regex.js";
|
|
|
2
2
|
import { logger } from "../logger/index.js";
|
|
3
3
|
import { clone } from "../util/clone.js";
|
|
4
4
|
import { getOptions } from "./options/index.js";
|
|
5
|
-
import { mergeChildConfig } from "./utils.js";
|
|
6
5
|
import { MigrationsService } from "./migrations/migrations-service.js";
|
|
7
6
|
import "./migrations/index.js";
|
|
8
|
-
import {
|
|
7
|
+
import { mergeChildConfig } from "./utils.js";
|
|
9
8
|
import { dequal } from "dequal";
|
|
9
|
+
import { isArray, isBoolean, isNonEmptyArray, isNonEmptyObject, isObject, isString } from "@sindresorhus/is";
|
|
10
10
|
|
|
11
11
|
//#region lib/config/migration.ts
|
|
12
12
|
const options = getOptions();
|
|
@@ -56,8 +56,8 @@ import { UnpublishSafeMigration } from "./custom/unpublish-safe-migration.js";
|
|
|
56
56
|
import { UpdateLockFilesMigration } from "./custom/update-lock-files-migration.js";
|
|
57
57
|
import { UpgradeInRangeMigration } from "./custom/upgrade-in-range-migration.js";
|
|
58
58
|
import { VersionStrategyMigration } from "./custom/version-strategy-migration.js";
|
|
59
|
-
import { isRegExp } from "@sindresorhus/is";
|
|
60
59
|
import { dequal } from "dequal";
|
|
60
|
+
import { isRegExp } from "@sindresorhus/is";
|
|
61
61
|
|
|
62
62
|
//#region lib/config/migrations/migrations-service.ts
|
|
63
63
|
var MigrationsService = class MigrationsService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AllManagersListLiteral } from "../../manager-list.generated.js";
|
|
2
2
|
import { getCustomManagers } from "../../modules/manager/custom/index.js";
|
|
3
|
+
import { getVersioningList } from "../../modules/versioning/index.js";
|
|
3
4
|
import { getManagers } from "../../modules/manager/index.js";
|
|
4
|
-
import { AllManagersListLiteral } from "../../manager-list.generated.js";
|
|
5
5
|
import { getPlatformList } from "../../modules/platform/index.js";
|
|
6
6
|
import { supportedDatasources } from "../presets/internal/merge-confidence.preset.js";
|
|
7
7
|
import { UpdateTypesOptions } from "../types.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { get, set } from "../../util/cache/memory/index.js";
|
|
2
1
|
import { CONFIG_VALIDATION, PLATFORM_RATE_LIMIT_EXCEEDED } from "../../constants/error-messages.js";
|
|
2
|
+
import { get, set } from "../../util/cache/memory/index.js";
|
|
3
3
|
import { regEx } from "../../util/regex.js";
|
|
4
|
-
import { logger } from "../../logger/index.js";
|
|
5
4
|
import { GlobalConfig } from "../global.js";
|
|
6
|
-
import {
|
|
7
|
-
import { get as get$1, set as set$1 } from "../../util/cache/package/index.js";
|
|
5
|
+
import { logger } from "../../logger/index.js";
|
|
8
6
|
import { clone } from "../../util/clone.js";
|
|
9
7
|
import { compile } from "../../util/template/index.js";
|
|
8
|
+
import { ExternalHostError } from "../../types/errors/external-host-error.js";
|
|
9
|
+
import { get as get$1, set as set$1 } from "../../util/cache/package/index.js";
|
|
10
10
|
import { PRESET_DEP_NOT_FOUND, PRESET_INVALID, PRESET_INVALID_JSON, PRESET_NOT_FOUND, PRESET_PROHIBITED_SUBPRESET, PRESET_RENOVATE_CONFIG_NOT_FOUND } from "./util.js";
|
|
11
11
|
import { parsePreset } from "./parse.js";
|
|
12
|
-
import { mergeChildConfig } from "../utils.js";
|
|
13
12
|
import { massageConfig } from "../massage.js";
|
|
14
13
|
import { removedPresets } from "./common.js";
|
|
14
|
+
import { mergeChildConfig } from "../utils.js";
|
|
15
15
|
import { migrateConfig } from "../migration.js";
|
|
16
16
|
import { forgejo_exports } from "./forgejo/index.js";
|
|
17
17
|
import { gitea_exports } from "./gitea/index.js";
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
import { Category } from "../constants/category.js";
|
|
1
2
|
import { PlatformId } from "../constants/platforms.js";
|
|
2
3
|
import { LogLevelRemap } from "../logger/types.js";
|
|
4
|
+
import { ManagerName } from "../manager-list.generated.js";
|
|
3
5
|
import { HostRule } from "../types/host-rules.js";
|
|
6
|
+
import { SkipReason, StageName } from "../types/skip-reason.js";
|
|
4
7
|
import { RangeStrategy } from "../types/versioning.js";
|
|
5
8
|
import { AutoMergeType, Nullish } from "../types/index.js";
|
|
6
9
|
import { GitNoVerifyOption } from "../util/git/types.js";
|
|
7
10
|
import { MergeConfidence } from "../util/merge-confidence/types.js";
|
|
8
|
-
import "../util/timestamp.js";
|
|
11
|
+
import { Timestamp } from "../util/timestamp.js";
|
|
9
12
|
import { CustomManager } from "../modules/manager/custom/types.js";
|
|
10
13
|
import { RepoSortMethod, SortMethod } from "../modules/platform/types.js";
|
|
11
14
|
|
|
12
15
|
//#region lib/config/types.d.ts
|
|
16
|
+
type RenovateConfigStage = 'global' | 'inherit' | 'repository' | 'package' | 'branch' | 'pr';
|
|
17
|
+
type RenovateSplit = 'init' | 'onboarding' | 'extract' | 'lookup' | 'update';
|
|
13
18
|
type RepositoryCacheConfig = 'disabled' | 'enabled' | 'reset';
|
|
14
19
|
type RepositoryCacheType = 'local' | (string & {});
|
|
15
20
|
type DryRunConfig = 'extract' | 'lookup' | 'full';
|
|
@@ -408,6 +413,8 @@ interface AssigneesAndReviewersConfig {
|
|
|
408
413
|
filterUnavailableUsers?: boolean;
|
|
409
414
|
}
|
|
410
415
|
type UpdateType = 'major' | 'minor' | 'patch' | 'pin' | 'digest' | 'pinDigest' | 'lockFileMaintenance' | 'lockfileUpdate' | 'rollback' | 'bump' | 'replacement';
|
|
416
|
+
declare const UpdateTypesOptions: readonly ["major", "minor", "patch", "pin", "digest", "pinDigest", "lockFileMaintenance", "rollback", "replacement"];
|
|
417
|
+
type UpdateTypeOptions = (typeof UpdateTypesOptions)[number];
|
|
411
418
|
type FetchChangeLogsOptions = 'off' | 'branch' | 'pr';
|
|
412
419
|
type MatchStringsStrategy = 'any' | 'recursive' | 'combination';
|
|
413
420
|
type MergeStrategy = 'auto' | 'fast-forward' | 'merge-commit' | 'rebase' | 'rebase-merge' | 'squash';
|
|
@@ -447,9 +454,156 @@ interface ValidationMessage {
|
|
|
447
454
|
topic: string;
|
|
448
455
|
message: string;
|
|
449
456
|
}
|
|
457
|
+
type AllowedParents = '.' | 'bumpVersions' | 'customDatasources' | 'customManagers' | 'hostRules' | 'logLevelRemap' | 'packageRules' | 'postUpgradeTasks' | 'vulnerabilityAlerts' | 'toolSettings' | ManagerName | UpdateTypeOptions;
|
|
458
|
+
interface RenovateOptionBase {
|
|
459
|
+
/**
|
|
460
|
+
* If true, the option can only be configured by people with access to the Renovate instance.
|
|
461
|
+
* Furthermore, the option should be documented in docs/usage/self-hosted-configuration.md.
|
|
462
|
+
*/
|
|
463
|
+
globalOnly?: boolean;
|
|
464
|
+
inheritConfigSupport?: boolean;
|
|
465
|
+
allowedValues?: string[];
|
|
466
|
+
allowString?: boolean;
|
|
467
|
+
cli?: boolean;
|
|
468
|
+
description: string;
|
|
469
|
+
env?: false | string;
|
|
470
|
+
/**
|
|
471
|
+
* Do not validate object children
|
|
472
|
+
*/
|
|
473
|
+
freeChoice?: boolean;
|
|
474
|
+
mergeable?: boolean;
|
|
475
|
+
autogenerated?: boolean;
|
|
476
|
+
name: string;
|
|
477
|
+
parents?: AllowedParents[];
|
|
478
|
+
stage?: RenovateConfigStage;
|
|
479
|
+
experimental?: boolean;
|
|
480
|
+
experimentalDescription?: string;
|
|
481
|
+
experimentalIssues?: number[];
|
|
482
|
+
advancedUse?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* This is used to add a deprecation message in the docs
|
|
485
|
+
*/
|
|
486
|
+
deprecationMsg?: string;
|
|
487
|
+
/**
|
|
488
|
+
* For internal use only: add it to any config option that supports regex or glob matching
|
|
489
|
+
*/
|
|
490
|
+
patternMatch?: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* For internal use only: add it to any config option of type integer that supports negative integers
|
|
493
|
+
*/
|
|
494
|
+
allowNegative?: boolean;
|
|
495
|
+
/**
|
|
496
|
+
* Managers which support this option, leave undefined if all managers support it.
|
|
497
|
+
*/
|
|
498
|
+
supportedManagers?: string[];
|
|
499
|
+
/**
|
|
500
|
+
* Platforms which support this option, leave undefined if all platforms support it.
|
|
501
|
+
*/
|
|
502
|
+
supportedPlatforms?: PlatformId[];
|
|
503
|
+
/**
|
|
504
|
+
* Conditions that must be met for this option to be required.
|
|
505
|
+
*/
|
|
506
|
+
requiredIf?: RenovateRequiredOption[];
|
|
507
|
+
}
|
|
508
|
+
interface RenovateRequiredOption {
|
|
509
|
+
siblingProperties: {
|
|
510
|
+
property: string;
|
|
511
|
+
value: string;
|
|
512
|
+
}[];
|
|
513
|
+
}
|
|
514
|
+
interface RenovateArrayOption<T extends string | number | Record<string, unknown> = Record<string, unknown>> extends RenovateOptionBase {
|
|
515
|
+
default?: T[] | null;
|
|
516
|
+
mergeable?: boolean;
|
|
517
|
+
type: 'array';
|
|
518
|
+
subType?: 'string' | 'object' | 'number';
|
|
519
|
+
}
|
|
520
|
+
interface RenovateStringArrayOption extends RenovateArrayOption<string> {
|
|
521
|
+
format?: 'regex';
|
|
522
|
+
subType: 'string';
|
|
523
|
+
}
|
|
524
|
+
interface RenovateNumberArrayOption extends RenovateArrayOption<number> {
|
|
525
|
+
subType: 'number';
|
|
526
|
+
}
|
|
527
|
+
interface RenovateBooleanOption extends RenovateOptionBase {
|
|
528
|
+
default?: boolean | null;
|
|
529
|
+
type: 'boolean';
|
|
530
|
+
}
|
|
531
|
+
interface RenovateIntegerOption extends RenovateOptionBase {
|
|
532
|
+
default?: number | null;
|
|
533
|
+
type: 'integer';
|
|
534
|
+
}
|
|
535
|
+
interface RenovateStringOption extends RenovateOptionBase {
|
|
536
|
+
default?: string | null;
|
|
537
|
+
format?: 'regex';
|
|
538
|
+
replaceLineReturns?: boolean;
|
|
539
|
+
type: 'string';
|
|
540
|
+
}
|
|
541
|
+
interface RenovateObjectOption extends RenovateOptionBase {
|
|
542
|
+
default?: any;
|
|
543
|
+
additionalProperties?: Record<string, unknown> | boolean;
|
|
544
|
+
mergeable?: boolean;
|
|
545
|
+
type: 'object';
|
|
546
|
+
}
|
|
547
|
+
type RenovateOptions = RenovateStringOption | RenovateNumberArrayOption | RenovateStringArrayOption | RenovateIntegerOption | RenovateBooleanOption | RenovateArrayOption | RenovateObjectOption;
|
|
548
|
+
interface PackageRuleInputConfig extends RenovateConfig {
|
|
549
|
+
versioning?: string;
|
|
550
|
+
packageFile?: string;
|
|
551
|
+
lockFiles?: string[];
|
|
552
|
+
depType?: string;
|
|
553
|
+
depTypes?: string[];
|
|
554
|
+
depName?: string;
|
|
555
|
+
packageName?: string | null;
|
|
556
|
+
newValue?: string | null;
|
|
557
|
+
currentValue?: string | null;
|
|
558
|
+
currentVersion?: string;
|
|
559
|
+
lockedVersion?: string;
|
|
560
|
+
updateType?: UpdateType;
|
|
561
|
+
mergeConfidenceLevel?: MergeConfidence | undefined;
|
|
562
|
+
isBump?: boolean;
|
|
563
|
+
sourceUrl?: string | null;
|
|
564
|
+
categories?: string[];
|
|
565
|
+
baseBranch?: string;
|
|
566
|
+
manager?: string;
|
|
567
|
+
datasource?: string;
|
|
568
|
+
packageRules?: (PackageRule & PackageRuleInputConfig)[];
|
|
569
|
+
releaseTimestamp?: Timestamp | null;
|
|
570
|
+
repository?: string;
|
|
571
|
+
currentVersionAgeInDays?: number;
|
|
572
|
+
currentVersionTimestamp?: string;
|
|
573
|
+
enabled?: boolean;
|
|
574
|
+
skipReason?: SkipReason;
|
|
575
|
+
skipStage?: StageName;
|
|
576
|
+
}
|
|
450
577
|
interface ConfigMigration {
|
|
451
578
|
configMigration?: boolean;
|
|
452
579
|
}
|
|
580
|
+
interface MigratedConfig {
|
|
581
|
+
/**
|
|
582
|
+
* Indicates whether there was a migration applied to the configuration.
|
|
583
|
+
*
|
|
584
|
+
* @returns
|
|
585
|
+
* `false` if the configuration does not need migrating, and `migratedConfig` can be ignored
|
|
586
|
+
* `true` if the configuration was migrated, and if so, `migratedConfig` should be used instead of the provided config
|
|
587
|
+
*/
|
|
588
|
+
isMigrated: boolean;
|
|
589
|
+
migratedConfig: RenovateConfig;
|
|
590
|
+
}
|
|
591
|
+
interface MigratedRenovateConfig extends RenovateConfig {
|
|
592
|
+
endpoints?: HostRule[];
|
|
593
|
+
pathRules: PackageRule[];
|
|
594
|
+
packages: PackageRule[];
|
|
595
|
+
node?: RenovateConfig;
|
|
596
|
+
travis?: RenovateConfig;
|
|
597
|
+
gradle?: RenovateConfig;
|
|
598
|
+
}
|
|
599
|
+
interface ManagerConfig extends RenovateConfig {
|
|
600
|
+
manager: string;
|
|
601
|
+
categories?: Category[];
|
|
602
|
+
}
|
|
603
|
+
interface ValidationResult {
|
|
604
|
+
errors: ValidationMessage[];
|
|
605
|
+
warnings: ValidationMessage[];
|
|
606
|
+
}
|
|
453
607
|
interface BumpVersionConfig {
|
|
454
608
|
bumpType?: string;
|
|
455
609
|
filePatterns: string[];
|
|
@@ -461,5 +615,5 @@ interface ToolSettingsOptions {
|
|
|
461
615
|
jvmMemory?: number;
|
|
462
616
|
}
|
|
463
617
|
//#endregion
|
|
464
|
-
export { AllConfig, ConstraintsFilter, CustomDatasourceConfig, MatchStringsStrategy, MergeStrategy, PlatformCommitOptions, RenovateConfig, RepoGlobalConfig };
|
|
618
|
+
export { AllConfig, AllowedParents, AllowedUnsafeExecution, AssigneesAndReviewersConfig, BinarySource, BumpVersionConfig, ConfigMigration, ConstraintsFilter, CustomDatasourceConfig, CustomDatasourceFormats, DryRunConfig, ExecutionMode, FetchChangeLogsOptions, GlobalInheritableConfig, GlobalOnlyConfigLegacy, GroupConfig, LegacyAdminConfig, ManagerConfig, MatchStringsStrategy, MergeStrategy, MigratedConfig, MigratedRenovateConfig, MinimumReleaseAgeBehaviour, PackageRule, PackageRuleInputConfig, PlatformCommitOptions, PostUpgradeTasks, RecreateWhen, RenovateArrayOption, RenovateBooleanOption, RenovateConfig, RenovateConfigStage, RenovateIntegerOption, RenovateInternalConfig, RenovateNumberArrayOption, RenovateObjectOption, RenovateOptionBase, RenovateOptions, RenovateRepository, RenovateRequiredOption, RenovateSharedConfig, RenovateSplit, RenovateStringArrayOption, RenovateStringOption, RepoGlobalConfig, RepositoryCacheConfig, RepositoryCacheType, RequiredConfig, StatusCheckKey, ToolSettingsOptions, UpdateConfig, UpdateType, UpdateTypeOptions, UpdateTypesOptions, UseBaseBranchConfigType, ValidationMessage, ValidationResult, allowedStatusCheckStrings };
|
|
465
619
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { regEx } from "../util/regex.js";
|
|
2
|
+
import { getConfigFileNames } from "./app-strings.js";
|
|
3
|
+
import { GlobalConfig } from "./global.js";
|
|
2
4
|
import { getRegexPredicate, isRegexMatch, matchRegexOrGlobList } from "../util/string-match.js";
|
|
3
5
|
import { parseUrl } from "../util/url.js";
|
|
4
|
-
import { GlobalConfig } from "./global.js";
|
|
5
|
-
import { getExpression } from "../util/jsonata.js";
|
|
6
6
|
import { compile } from "../util/template/index.js";
|
|
7
|
-
import { getConfigFileNames } from "./app-strings.js";
|
|
8
7
|
import { isCustomManager } from "../modules/manager/custom/index.js";
|
|
8
|
+
import { getExpression } from "../util/jsonata.js";
|
|
9
9
|
import { allManagersList, getManagerList } from "../modules/manager/index.js";
|
|
10
10
|
import { supportedDatasources } from "./presets/internal/merge-confidence.preset.js";
|
|
11
11
|
import { allowedStatusCheckStrings } from "./types.js";
|
|
12
12
|
import { getOptions } from "./options/index.js";
|
|
13
13
|
import { migrateConfig } from "./migration.js";
|
|
14
|
-
import { resolveConfigPresets } from "./presets/index.js";
|
|
15
14
|
import { hasValidSchedule, hasValidTimezone } from "../workers/repository/update/branch/schedule.js";
|
|
15
|
+
import { resolveConfigPresets } from "./presets/index.js";
|
|
16
16
|
import { check } from "./validation-helpers/match-base-branches.js";
|
|
17
17
|
import { check as check$1 } from "./validation-helpers/regex-glob-matchers.js";
|
|
18
18
|
import { getParentName, isFalseGlobal, validateJSONataManagerFields, validateNumber, validatePlainObject, validateRegexManagerFields } from "./validation-helpers/utils.js";
|
package/dist/config-validator.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { require_punycode } from "./punycode.js";
|
|
3
3
|
import { pkg } from "./expose.js";
|
|
4
4
|
import { getEnv } from "./util/env.js";
|
|
5
|
-
import { logger } from "./logger/index.js";
|
|
6
|
-
import { GlobalConfig } from "./config/global.js";
|
|
7
5
|
import { getConfigFileNames } from "./config/app-strings.js";
|
|
6
|
+
import { GlobalConfig } from "./config/global.js";
|
|
7
|
+
import { logger } from "./logger/index.js";
|
|
8
8
|
import { massageConfig } from "./config/massage.js";
|
|
9
9
|
import { migrateConfig } from "./config/migration.js";
|
|
10
10
|
import { validateConfig } from "./config/validation.js";
|
|
11
11
|
import { getParsedContent } from "./workers/global/config/parse/util.js";
|
|
12
12
|
import { getConfig } from "./workers/global/config/parse/file.js";
|
|
13
13
|
import { parseConfigs } from "./workers/global/config/parse/index.js";
|
|
14
|
+
import { Command, CommanderError } from "commander";
|
|
14
15
|
import "source-map-support/register.js";
|
|
15
|
-
import fs from "fs-extra";
|
|
16
16
|
import { dequal } from "dequal";
|
|
17
|
-
import
|
|
17
|
+
import fs from "fs-extra";
|
|
18
18
|
|
|
19
19
|
//#region lib/config-validator.ts
|
|
20
20
|
var import_punycode = require_punycode();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region lib/constants/category.d.ts
|
|
2
|
+
declare const Categories: readonly ["ansible", "batect", "bazel", "c", "cd", "ci", "custom", "dart", "docker", "dotnet", "elixir", "golang", "haskell", "helm", "iac", "java", "js", "kubernetes", "node", "perl", "php", "python", "ruby", "rust", "swift", "terraform"];
|
|
3
|
+
type Category = (typeof Categories)[number];
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Category };
|
|
6
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//#region lib/constants/error-messages.d.ts
|
|
2
|
+
declare const SYSTEM_INSUFFICIENT_DISK_SPACE = "disk-space";
|
|
3
|
+
declare const SYSTEM_INSUFFICIENT_MEMORY = "out-of-memory";
|
|
4
|
+
declare const SystemErrors: readonly ["disk-space", "out-of-memory"];
|
|
5
|
+
declare const PLATFORM_AUTHENTICATION_ERROR = "authentication-error";
|
|
6
|
+
declare const PLATFORM_BAD_CREDENTIALS = "bad-credentials";
|
|
7
|
+
declare const PLATFORM_GPG_FAILED = "gpg-failed";
|
|
8
|
+
declare const PLATFORM_INTEGRATION_UNAUTHORIZED = "integration-unauthorized";
|
|
9
|
+
declare const PLATFORM_NOT_FOUND = "platform-not-found";
|
|
10
|
+
declare const PLATFORM_RATE_LIMIT_EXCEEDED = "rate-limit-exceeded";
|
|
11
|
+
declare const PLATFORM_UNKNOWN_ERROR = "platform-unknown-error";
|
|
12
|
+
declare const PlatformErrors: readonly ["authentication-error", "bad-credentials", "gpg-failed", "integration-unauthorized", "platform-not-found", "rate-limit-exceeded", "platform-unknown-error"];
|
|
13
|
+
declare const CONFIG_VALIDATION = "config-validation";
|
|
14
|
+
declare const CONFIG_PRESETS_INVALID = "config-presets-invalid";
|
|
15
|
+
declare const CONFIG_SECRETS_EXPOSED = "config-secrets-exposed";
|
|
16
|
+
declare const CONFIG_SECRETS_INVALID = "config-secrets-invalid";
|
|
17
|
+
declare const CONFIG_VARIABLES_INVALID = "config-variables-invalid";
|
|
18
|
+
declare const CONFIG_GIT_URL_UNAVAILABLE = "config-git-url-unavailable";
|
|
19
|
+
declare const CONFIG_INHERIT_NOT_FOUND = "config-inherit-not-found";
|
|
20
|
+
declare const CONFIG_INHERIT_PARSE_ERROR = "config-inherit-parse-error";
|
|
21
|
+
declare const ConfigErrors: readonly ["config-validation", "config-presets-invalid", "config-secrets-exposed", "config-secrets-invalid", "config-variables-invalid", "config-git-url-unavailable", "config-inherit-not-found", "config-inherit-parse-error"];
|
|
22
|
+
declare const REPOSITORY_ACCESS_FORBIDDEN = "forbidden";
|
|
23
|
+
declare const REPOSITORY_ARCHIVED = "archived";
|
|
24
|
+
declare const REPOSITORY_BLOCKED = "blocked";
|
|
25
|
+
declare const REPOSITORY_CANNOT_FORK = "cannot-fork";
|
|
26
|
+
declare const REPOSITORY_DISABLED = "disabled";
|
|
27
|
+
declare const REPOSITORY_CLOSED_ONBOARDING = "disabled-closed-onboarding";
|
|
28
|
+
declare const REPOSITORY_DISABLED_BY_CONFIG = "disabled-by-config";
|
|
29
|
+
declare const REPOSITORY_NO_CONFIG = "disabled-no-config";
|
|
30
|
+
declare const REPOSITORY_EMPTY = "empty";
|
|
31
|
+
declare const REPOSITORY_FORK_MISSING = "fork-missing";
|
|
32
|
+
declare const REPOSITORY_FORK_MODE_FORKED = "fork-mode-forked";
|
|
33
|
+
declare const REPOSITORY_FORKED = "fork";
|
|
34
|
+
declare const REPOSITORY_MIRRORED = "mirror";
|
|
35
|
+
declare const REPOSITORY_NOT_FOUND = "not-found";
|
|
36
|
+
declare const REPOSITORY_NO_PACKAGE_FILES = "no-package-files";
|
|
37
|
+
declare const REPOSITORY_RENAMED = "renamed";
|
|
38
|
+
declare const REPOSITORY_UNINITIATED = "uninitiated";
|
|
39
|
+
/** cause repo to be considered as disabled */
|
|
40
|
+
declare const RepositoryErrors: readonly ["forbidden", "archived", "blocked", "cannot-fork", "disabled", "disabled-closed-onboarding", "disabled-by-config", "disabled-no-config", "empty", "fork-missing", "fork-mode-forked", "fork", "mirror", "not-found", "no-package-files", "renamed", "uninitiated"];
|
|
41
|
+
declare const REPOSITORY_CHANGED = "repository-changed";
|
|
42
|
+
declare const TEMPORARY_ERROR = "temporary-error";
|
|
43
|
+
declare const NO_VULNERABILITY_ALERTS = "no-vulnerability-alerts";
|
|
44
|
+
declare const TemporaryErrors: readonly ["repository-changed", "temporary-error", "no-vulnerability-alerts"];
|
|
45
|
+
declare const MANAGER_LOCKFILE_ERROR = "lockfile-error";
|
|
46
|
+
declare const FILE_ACCESS_VIOLATION_ERROR = "file-access-violation-error";
|
|
47
|
+
declare const EXTERNAL_HOST_ERROR = "external-host-error";
|
|
48
|
+
declare const IGNORABLE_HOST_ERROR = "ignorable-host-error";
|
|
49
|
+
declare const HOST_DISABLED = "host-disabled";
|
|
50
|
+
declare const WORKER_FILE_UPDATE_FAILED = "update-failure";
|
|
51
|
+
declare const BUNDLER_INVALID_CREDENTIALS = "bundler-credentials";
|
|
52
|
+
declare const UNKNOWN_ERROR = "unknown-error";
|
|
53
|
+
declare const INVALID_PATH = "invalid-path";
|
|
54
|
+
declare const PAGE_NOT_FOUND_ERROR = "page-not-found";
|
|
55
|
+
declare const MISSING_API_CREDENTIALS = "missing-api-credentials";
|
|
56
|
+
//#endregion
|
|
57
|
+
export { BUNDLER_INVALID_CREDENTIALS, CONFIG_GIT_URL_UNAVAILABLE, CONFIG_INHERIT_NOT_FOUND, CONFIG_INHERIT_PARSE_ERROR, CONFIG_PRESETS_INVALID, CONFIG_SECRETS_EXPOSED, CONFIG_SECRETS_INVALID, CONFIG_VALIDATION, CONFIG_VARIABLES_INVALID, ConfigErrors, EXTERNAL_HOST_ERROR, FILE_ACCESS_VIOLATION_ERROR, HOST_DISABLED, IGNORABLE_HOST_ERROR, INVALID_PATH, MANAGER_LOCKFILE_ERROR, MISSING_API_CREDENTIALS, NO_VULNERABILITY_ALERTS, PAGE_NOT_FOUND_ERROR, PLATFORM_AUTHENTICATION_ERROR, PLATFORM_BAD_CREDENTIALS, PLATFORM_GPG_FAILED, PLATFORM_INTEGRATION_UNAUTHORIZED, PLATFORM_NOT_FOUND, PLATFORM_RATE_LIMIT_EXCEEDED, PLATFORM_UNKNOWN_ERROR, PlatformErrors, REPOSITORY_ACCESS_FORBIDDEN, REPOSITORY_ARCHIVED, REPOSITORY_BLOCKED, REPOSITORY_CANNOT_FORK, REPOSITORY_CHANGED, REPOSITORY_CLOSED_ONBOARDING, REPOSITORY_DISABLED, REPOSITORY_DISABLED_BY_CONFIG, REPOSITORY_EMPTY, REPOSITORY_FORKED, REPOSITORY_FORK_MISSING, REPOSITORY_FORK_MODE_FORKED, REPOSITORY_MIRRORED, REPOSITORY_NOT_FOUND, REPOSITORY_NO_CONFIG, REPOSITORY_NO_PACKAGE_FILES, REPOSITORY_RENAMED, REPOSITORY_UNINITIATED, RepositoryErrors, SYSTEM_INSUFFICIENT_DISK_SPACE, SYSTEM_INSUFFICIENT_MEMORY, SystemErrors, TEMPORARY_ERROR, TemporaryErrors, UNKNOWN_ERROR, WORKER_FILE_UPDATE_FAILED };
|
|
58
|
+
//# sourceMappingURL=error-messages.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//#region lib/constants/error-messages.ts
|
|
2
2
|
const SYSTEM_INSUFFICIENT_DISK_SPACE = "disk-space";
|
|
3
3
|
const SYSTEM_INSUFFICIENT_MEMORY = "out-of-memory";
|
|
4
|
+
const SystemErrors = [SYSTEM_INSUFFICIENT_DISK_SPACE, SYSTEM_INSUFFICIENT_MEMORY];
|
|
4
5
|
const PLATFORM_AUTHENTICATION_ERROR = "authentication-error";
|
|
5
6
|
const PLATFORM_BAD_CREDENTIALS = "bad-credentials";
|
|
6
7
|
const PLATFORM_GPG_FAILED = "gpg-failed";
|
|
@@ -8,6 +9,15 @@ const PLATFORM_INTEGRATION_UNAUTHORIZED = "integration-unauthorized";
|
|
|
8
9
|
const PLATFORM_NOT_FOUND = "platform-not-found";
|
|
9
10
|
const PLATFORM_RATE_LIMIT_EXCEEDED = "rate-limit-exceeded";
|
|
10
11
|
const PLATFORM_UNKNOWN_ERROR = "platform-unknown-error";
|
|
12
|
+
const PlatformErrors = [
|
|
13
|
+
PLATFORM_AUTHENTICATION_ERROR,
|
|
14
|
+
PLATFORM_BAD_CREDENTIALS,
|
|
15
|
+
PLATFORM_GPG_FAILED,
|
|
16
|
+
PLATFORM_INTEGRATION_UNAUTHORIZED,
|
|
17
|
+
PLATFORM_NOT_FOUND,
|
|
18
|
+
PLATFORM_RATE_LIMIT_EXCEEDED,
|
|
19
|
+
PLATFORM_UNKNOWN_ERROR
|
|
20
|
+
];
|
|
11
21
|
const CONFIG_VALIDATION = "config-validation";
|
|
12
22
|
const CONFIG_PRESETS_INVALID = "config-presets-invalid";
|
|
13
23
|
const CONFIG_SECRETS_EXPOSED = "config-secrets-exposed";
|
|
@@ -16,6 +26,16 @@ const CONFIG_VARIABLES_INVALID = "config-variables-invalid";
|
|
|
16
26
|
const CONFIG_GIT_URL_UNAVAILABLE = "config-git-url-unavailable";
|
|
17
27
|
const CONFIG_INHERIT_NOT_FOUND = "config-inherit-not-found";
|
|
18
28
|
const CONFIG_INHERIT_PARSE_ERROR = "config-inherit-parse-error";
|
|
29
|
+
const ConfigErrors = [
|
|
30
|
+
CONFIG_VALIDATION,
|
|
31
|
+
CONFIG_PRESETS_INVALID,
|
|
32
|
+
CONFIG_SECRETS_EXPOSED,
|
|
33
|
+
CONFIG_SECRETS_INVALID,
|
|
34
|
+
CONFIG_VARIABLES_INVALID,
|
|
35
|
+
CONFIG_GIT_URL_UNAVAILABLE,
|
|
36
|
+
CONFIG_INHERIT_NOT_FOUND,
|
|
37
|
+
CONFIG_INHERIT_PARSE_ERROR
|
|
38
|
+
];
|
|
19
39
|
const REPOSITORY_ACCESS_FORBIDDEN = "forbidden";
|
|
20
40
|
const REPOSITORY_ARCHIVED = "archived";
|
|
21
41
|
const REPOSITORY_BLOCKED = "blocked";
|
|
@@ -56,9 +76,15 @@ const RepositoryErrors = [
|
|
|
56
76
|
const REPOSITORY_CHANGED = "repository-changed";
|
|
57
77
|
const TEMPORARY_ERROR = "temporary-error";
|
|
58
78
|
const NO_VULNERABILITY_ALERTS = "no-vulnerability-alerts";
|
|
79
|
+
const TemporaryErrors = [
|
|
80
|
+
REPOSITORY_CHANGED,
|
|
81
|
+
TEMPORARY_ERROR,
|
|
82
|
+
NO_VULNERABILITY_ALERTS
|
|
83
|
+
];
|
|
59
84
|
const MANAGER_LOCKFILE_ERROR = "lockfile-error";
|
|
60
85
|
const FILE_ACCESS_VIOLATION_ERROR = "file-access-violation-error";
|
|
61
86
|
const EXTERNAL_HOST_ERROR = "external-host-error";
|
|
87
|
+
const IGNORABLE_HOST_ERROR = "ignorable-host-error";
|
|
62
88
|
const HOST_DISABLED = "host-disabled";
|
|
63
89
|
const WORKER_FILE_UPDATE_FAILED = "update-failure";
|
|
64
90
|
const BUNDLER_INVALID_CREDENTIALS = "bundler-credentials";
|
|
@@ -68,5 +94,5 @@ const PAGE_NOT_FOUND_ERROR = "page-not-found";
|
|
|
68
94
|
const MISSING_API_CREDENTIALS = "missing-api-credentials";
|
|
69
95
|
|
|
70
96
|
//#endregion
|
|
71
|
-
export { BUNDLER_INVALID_CREDENTIALS, CONFIG_GIT_URL_UNAVAILABLE, CONFIG_INHERIT_NOT_FOUND, CONFIG_INHERIT_PARSE_ERROR, CONFIG_PRESETS_INVALID, CONFIG_SECRETS_EXPOSED, CONFIG_SECRETS_INVALID, CONFIG_VALIDATION, CONFIG_VARIABLES_INVALID, EXTERNAL_HOST_ERROR, FILE_ACCESS_VIOLATION_ERROR, HOST_DISABLED, INVALID_PATH, MANAGER_LOCKFILE_ERROR, MISSING_API_CREDENTIALS, NO_VULNERABILITY_ALERTS, PAGE_NOT_FOUND_ERROR, PLATFORM_AUTHENTICATION_ERROR, PLATFORM_BAD_CREDENTIALS, PLATFORM_GPG_FAILED, PLATFORM_INTEGRATION_UNAUTHORIZED, PLATFORM_NOT_FOUND, PLATFORM_RATE_LIMIT_EXCEEDED, PLATFORM_UNKNOWN_ERROR, REPOSITORY_ACCESS_FORBIDDEN, REPOSITORY_ARCHIVED, REPOSITORY_BLOCKED, REPOSITORY_CANNOT_FORK, REPOSITORY_CHANGED, REPOSITORY_CLOSED_ONBOARDING, REPOSITORY_DISABLED, REPOSITORY_DISABLED_BY_CONFIG, REPOSITORY_EMPTY, REPOSITORY_FORKED, REPOSITORY_FORK_MISSING, REPOSITORY_FORK_MODE_FORKED, REPOSITORY_MIRRORED, REPOSITORY_NOT_FOUND, REPOSITORY_NO_CONFIG, REPOSITORY_NO_PACKAGE_FILES, REPOSITORY_RENAMED, REPOSITORY_UNINITIATED, RepositoryErrors, SYSTEM_INSUFFICIENT_DISK_SPACE, SYSTEM_INSUFFICIENT_MEMORY, TEMPORARY_ERROR, UNKNOWN_ERROR, WORKER_FILE_UPDATE_FAILED };
|
|
97
|
+
export { BUNDLER_INVALID_CREDENTIALS, CONFIG_GIT_URL_UNAVAILABLE, CONFIG_INHERIT_NOT_FOUND, CONFIG_INHERIT_PARSE_ERROR, CONFIG_PRESETS_INVALID, CONFIG_SECRETS_EXPOSED, CONFIG_SECRETS_INVALID, CONFIG_VALIDATION, CONFIG_VARIABLES_INVALID, ConfigErrors, EXTERNAL_HOST_ERROR, FILE_ACCESS_VIOLATION_ERROR, HOST_DISABLED, IGNORABLE_HOST_ERROR, INVALID_PATH, MANAGER_LOCKFILE_ERROR, MISSING_API_CREDENTIALS, NO_VULNERABILITY_ALERTS, PAGE_NOT_FOUND_ERROR, PLATFORM_AUTHENTICATION_ERROR, PLATFORM_BAD_CREDENTIALS, PLATFORM_GPG_FAILED, PLATFORM_INTEGRATION_UNAUTHORIZED, PLATFORM_NOT_FOUND, PLATFORM_RATE_LIMIT_EXCEEDED, PLATFORM_UNKNOWN_ERROR, PlatformErrors, REPOSITORY_ACCESS_FORBIDDEN, REPOSITORY_ARCHIVED, REPOSITORY_BLOCKED, REPOSITORY_CANNOT_FORK, REPOSITORY_CHANGED, REPOSITORY_CLOSED_ONBOARDING, REPOSITORY_DISABLED, REPOSITORY_DISABLED_BY_CONFIG, REPOSITORY_EMPTY, REPOSITORY_FORKED, REPOSITORY_FORK_MISSING, REPOSITORY_FORK_MODE_FORKED, REPOSITORY_MIRRORED, REPOSITORY_NOT_FOUND, REPOSITORY_NO_CONFIG, REPOSITORY_NO_PACKAGE_FILES, REPOSITORY_RENAMED, REPOSITORY_UNINITIATED, RepositoryErrors, SYSTEM_INSUFFICIENT_DISK_SPACE, SYSTEM_INSUFFICIENT_MEMORY, SystemErrors, TEMPORARY_ERROR, TemporaryErrors, UNKNOWN_ERROR, WORKER_FILE_UPDATE_FAILED };
|
|
72
98
|
//# sourceMappingURL=error-messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-messages.js","names":[],"sources":["../../lib/constants/error-messages.ts"],"sourcesContent":["// System error\nexport const SYSTEM_INSUFFICIENT_DISK_SPACE = 'disk-space';\nexport const SYSTEM_INSUFFICIENT_MEMORY = 'out-of-memory';\n\nexport const SystemErrors = [\n SYSTEM_INSUFFICIENT_DISK_SPACE,\n SYSTEM_INSUFFICIENT_MEMORY,\n] as const;\n\n// Platform Error\nexport const PLATFORM_AUTHENTICATION_ERROR = 'authentication-error';\nexport const PLATFORM_BAD_CREDENTIALS = 'bad-credentials';\nexport const PLATFORM_GPG_FAILED = 'gpg-failed';\nexport const PLATFORM_INTEGRATION_UNAUTHORIZED = 'integration-unauthorized';\nexport const PLATFORM_NOT_FOUND = 'platform-not-found';\nexport const PLATFORM_RATE_LIMIT_EXCEEDED = 'rate-limit-exceeded';\nexport const PLATFORM_UNKNOWN_ERROR = 'platform-unknown-error';\n\nexport const PlatformErrors = [\n PLATFORM_AUTHENTICATION_ERROR,\n PLATFORM_BAD_CREDENTIALS,\n PLATFORM_GPG_FAILED,\n PLATFORM_INTEGRATION_UNAUTHORIZED,\n PLATFORM_NOT_FOUND,\n PLATFORM_RATE_LIMIT_EXCEEDED,\n PLATFORM_UNKNOWN_ERROR,\n] as const;\n\n// Config Error\nexport const CONFIG_VALIDATION = 'config-validation';\nexport const CONFIG_PRESETS_INVALID = 'config-presets-invalid';\nexport const CONFIG_SECRETS_EXPOSED = 'config-secrets-exposed';\nexport const CONFIG_SECRETS_INVALID = 'config-secrets-invalid';\nexport const CONFIG_VARIABLES_INVALID = 'config-variables-invalid';\nexport const CONFIG_GIT_URL_UNAVAILABLE = 'config-git-url-unavailable';\nexport const CONFIG_INHERIT_NOT_FOUND = 'config-inherit-not-found';\nexport const CONFIG_INHERIT_PARSE_ERROR = 'config-inherit-parse-error';\n\nexport const ConfigErrors = [\n CONFIG_VALIDATION,\n CONFIG_PRESETS_INVALID,\n CONFIG_SECRETS_EXPOSED,\n CONFIG_SECRETS_INVALID,\n CONFIG_VARIABLES_INVALID,\n CONFIG_GIT_URL_UNAVAILABLE,\n CONFIG_INHERIT_NOT_FOUND,\n CONFIG_INHERIT_PARSE_ERROR,\n] as const;\n\n// Repository Errors - causes repo to be considered as disabled\nexport const REPOSITORY_ACCESS_FORBIDDEN = 'forbidden';\nexport const REPOSITORY_ARCHIVED = 'archived';\nexport const REPOSITORY_BLOCKED = 'blocked';\nexport const REPOSITORY_CANNOT_FORK = 'cannot-fork';\nexport const REPOSITORY_DISABLED = 'disabled';\nexport const REPOSITORY_CLOSED_ONBOARDING = 'disabled-closed-onboarding';\nexport const REPOSITORY_DISABLED_BY_CONFIG = 'disabled-by-config';\nexport const REPOSITORY_NO_CONFIG = 'disabled-no-config';\nexport const REPOSITORY_EMPTY = 'empty';\nexport const REPOSITORY_FORK_MISSING = 'fork-missing';\nexport const REPOSITORY_FORK_MODE_FORKED = 'fork-mode-forked';\nexport const REPOSITORY_FORKED = 'fork';\nexport const REPOSITORY_MIRRORED = 'mirror';\nexport const REPOSITORY_NOT_FOUND = 'not-found';\nexport const REPOSITORY_NO_PACKAGE_FILES = 'no-package-files';\nexport const REPOSITORY_RENAMED = 'renamed';\nexport const REPOSITORY_UNINITIATED = 'uninitiated';\n\n/** cause repo to be considered as disabled */\nexport const RepositoryErrors = [\n REPOSITORY_ACCESS_FORBIDDEN,\n REPOSITORY_ARCHIVED,\n REPOSITORY_BLOCKED,\n REPOSITORY_CANNOT_FORK,\n REPOSITORY_DISABLED,\n REPOSITORY_CLOSED_ONBOARDING,\n REPOSITORY_DISABLED_BY_CONFIG,\n REPOSITORY_NO_CONFIG,\n REPOSITORY_EMPTY,\n REPOSITORY_FORK_MISSING,\n REPOSITORY_FORK_MODE_FORKED,\n REPOSITORY_FORKED,\n REPOSITORY_MIRRORED,\n REPOSITORY_NOT_FOUND,\n REPOSITORY_NO_PACKAGE_FILES,\n REPOSITORY_RENAMED,\n REPOSITORY_UNINITIATED,\n] as const;\n\n// Temporary Error\nexport const REPOSITORY_CHANGED = 'repository-changed';\nexport const TEMPORARY_ERROR = 'temporary-error';\nexport const NO_VULNERABILITY_ALERTS = 'no-vulnerability-alerts';\n\nexport const TemporaryErrors = [\n REPOSITORY_CHANGED,\n TEMPORARY_ERROR,\n NO_VULNERABILITY_ALERTS,\n] as const;\n\n// Manager Error\nexport const MANAGER_LOCKFILE_ERROR = 'lockfile-error';\nexport const FILE_ACCESS_VIOLATION_ERROR = 'file-access-violation-error';\n\n// Host error\nexport const EXTERNAL_HOST_ERROR = 'external-host-error';\nexport const IGNORABLE_HOST_ERROR = 'ignorable-host-error';\nexport const HOST_DISABLED = 'host-disabled';\n\n// Worker Error\nexport const WORKER_FILE_UPDATE_FAILED = 'update-failure';\n\n// Bundler Error\nexport const BUNDLER_INVALID_CREDENTIALS = 'bundler-credentials';\n\n// Unknown Error\nexport const UNKNOWN_ERROR = 'unknown-error';\n\n// PATH Error\nexport const INVALID_PATH = 'invalid-path';\n\n// PAGE NOT FOUND\nexport const PAGE_NOT_FOUND_ERROR = 'page-not-found';\n\n// Missing API required credentials\nexport const MISSING_API_CREDENTIALS = 'missing-api-credentials';\n"],"mappings":";AACA,MAAa,iCAAiC;AAC9C,MAAa,6BAA6B;
|
|
1
|
+
{"version":3,"file":"error-messages.js","names":[],"sources":["../../lib/constants/error-messages.ts"],"sourcesContent":["// System error\nexport const SYSTEM_INSUFFICIENT_DISK_SPACE = 'disk-space';\nexport const SYSTEM_INSUFFICIENT_MEMORY = 'out-of-memory';\n\nexport const SystemErrors = [\n SYSTEM_INSUFFICIENT_DISK_SPACE,\n SYSTEM_INSUFFICIENT_MEMORY,\n] as const;\n\n// Platform Error\nexport const PLATFORM_AUTHENTICATION_ERROR = 'authentication-error';\nexport const PLATFORM_BAD_CREDENTIALS = 'bad-credentials';\nexport const PLATFORM_GPG_FAILED = 'gpg-failed';\nexport const PLATFORM_INTEGRATION_UNAUTHORIZED = 'integration-unauthorized';\nexport const PLATFORM_NOT_FOUND = 'platform-not-found';\nexport const PLATFORM_RATE_LIMIT_EXCEEDED = 'rate-limit-exceeded';\nexport const PLATFORM_UNKNOWN_ERROR = 'platform-unknown-error';\n\nexport const PlatformErrors = [\n PLATFORM_AUTHENTICATION_ERROR,\n PLATFORM_BAD_CREDENTIALS,\n PLATFORM_GPG_FAILED,\n PLATFORM_INTEGRATION_UNAUTHORIZED,\n PLATFORM_NOT_FOUND,\n PLATFORM_RATE_LIMIT_EXCEEDED,\n PLATFORM_UNKNOWN_ERROR,\n] as const;\n\n// Config Error\nexport const CONFIG_VALIDATION = 'config-validation';\nexport const CONFIG_PRESETS_INVALID = 'config-presets-invalid';\nexport const CONFIG_SECRETS_EXPOSED = 'config-secrets-exposed';\nexport const CONFIG_SECRETS_INVALID = 'config-secrets-invalid';\nexport const CONFIG_VARIABLES_INVALID = 'config-variables-invalid';\nexport const CONFIG_GIT_URL_UNAVAILABLE = 'config-git-url-unavailable';\nexport const CONFIG_INHERIT_NOT_FOUND = 'config-inherit-not-found';\nexport const CONFIG_INHERIT_PARSE_ERROR = 'config-inherit-parse-error';\n\nexport const ConfigErrors = [\n CONFIG_VALIDATION,\n CONFIG_PRESETS_INVALID,\n CONFIG_SECRETS_EXPOSED,\n CONFIG_SECRETS_INVALID,\n CONFIG_VARIABLES_INVALID,\n CONFIG_GIT_URL_UNAVAILABLE,\n CONFIG_INHERIT_NOT_FOUND,\n CONFIG_INHERIT_PARSE_ERROR,\n] as const;\n\n// Repository Errors - causes repo to be considered as disabled\nexport const REPOSITORY_ACCESS_FORBIDDEN = 'forbidden';\nexport const REPOSITORY_ARCHIVED = 'archived';\nexport const REPOSITORY_BLOCKED = 'blocked';\nexport const REPOSITORY_CANNOT_FORK = 'cannot-fork';\nexport const REPOSITORY_DISABLED = 'disabled';\nexport const REPOSITORY_CLOSED_ONBOARDING = 'disabled-closed-onboarding';\nexport const REPOSITORY_DISABLED_BY_CONFIG = 'disabled-by-config';\nexport const REPOSITORY_NO_CONFIG = 'disabled-no-config';\nexport const REPOSITORY_EMPTY = 'empty';\nexport const REPOSITORY_FORK_MISSING = 'fork-missing';\nexport const REPOSITORY_FORK_MODE_FORKED = 'fork-mode-forked';\nexport const REPOSITORY_FORKED = 'fork';\nexport const REPOSITORY_MIRRORED = 'mirror';\nexport const REPOSITORY_NOT_FOUND = 'not-found';\nexport const REPOSITORY_NO_PACKAGE_FILES = 'no-package-files';\nexport const REPOSITORY_RENAMED = 'renamed';\nexport const REPOSITORY_UNINITIATED = 'uninitiated';\n\n/** cause repo to be considered as disabled */\nexport const RepositoryErrors = [\n REPOSITORY_ACCESS_FORBIDDEN,\n REPOSITORY_ARCHIVED,\n REPOSITORY_BLOCKED,\n REPOSITORY_CANNOT_FORK,\n REPOSITORY_DISABLED,\n REPOSITORY_CLOSED_ONBOARDING,\n REPOSITORY_DISABLED_BY_CONFIG,\n REPOSITORY_NO_CONFIG,\n REPOSITORY_EMPTY,\n REPOSITORY_FORK_MISSING,\n REPOSITORY_FORK_MODE_FORKED,\n REPOSITORY_FORKED,\n REPOSITORY_MIRRORED,\n REPOSITORY_NOT_FOUND,\n REPOSITORY_NO_PACKAGE_FILES,\n REPOSITORY_RENAMED,\n REPOSITORY_UNINITIATED,\n] as const;\n\n// Temporary Error\nexport const REPOSITORY_CHANGED = 'repository-changed';\nexport const TEMPORARY_ERROR = 'temporary-error';\nexport const NO_VULNERABILITY_ALERTS = 'no-vulnerability-alerts';\n\nexport const TemporaryErrors = [\n REPOSITORY_CHANGED,\n TEMPORARY_ERROR,\n NO_VULNERABILITY_ALERTS,\n] as const;\n\n// Manager Error\nexport const MANAGER_LOCKFILE_ERROR = 'lockfile-error';\nexport const FILE_ACCESS_VIOLATION_ERROR = 'file-access-violation-error';\n\n// Host error\nexport const EXTERNAL_HOST_ERROR = 'external-host-error';\nexport const IGNORABLE_HOST_ERROR = 'ignorable-host-error';\nexport const HOST_DISABLED = 'host-disabled';\n\n// Worker Error\nexport const WORKER_FILE_UPDATE_FAILED = 'update-failure';\n\n// Bundler Error\nexport const BUNDLER_INVALID_CREDENTIALS = 'bundler-credentials';\n\n// Unknown Error\nexport const UNKNOWN_ERROR = 'unknown-error';\n\n// PATH Error\nexport const INVALID_PATH = 'invalid-path';\n\n// PAGE NOT FOUND\nexport const PAGE_NOT_FOUND_ERROR = 'page-not-found';\n\n// Missing API required credentials\nexport const MISSING_API_CREDENTIALS = 'missing-api-credentials';\n"],"mappings":";AACA,MAAa,iCAAiC;AAC9C,MAAa,6BAA6B;AAE1C,MAAa,eAAe,CAC1B,gCACA,2BACD;AAGD,MAAa,gCAAgC;AAC7C,MAAa,2BAA2B;AACxC,MAAa,sBAAsB;AACnC,MAAa,oCAAoC;AACjD,MAAa,qBAAqB;AAClC,MAAa,+BAA+B;AAC5C,MAAa,yBAAyB;AAEtC,MAAa,iBAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAGD,MAAa,oBAAoB;AACjC,MAAa,yBAAyB;AACtC,MAAa,yBAAyB;AACtC,MAAa,yBAAyB;AACtC,MAAa,2BAA2B;AACxC,MAAa,6BAA6B;AAC1C,MAAa,2BAA2B;AACxC,MAAa,6BAA6B;AAE1C,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAGD,MAAa,8BAA8B;AAC3C,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;AAClC,MAAa,yBAAyB;AACtC,MAAa,sBAAsB;AACnC,MAAa,+BAA+B;AAC5C,MAAa,gCAAgC;AAC7C,MAAa,uBAAuB;AACpC,MAAa,mBAAmB;AAChC,MAAa,0BAA0B;AACvC,MAAa,8BAA8B;AAC3C,MAAa,oBAAoB;AACjC,MAAa,sBAAsB;AACnC,MAAa,uBAAuB;AACpC,MAAa,8BAA8B;AAC3C,MAAa,qBAAqB;AAClC,MAAa,yBAAyB;;AAGtC,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAGD,MAAa,qBAAqB;AAClC,MAAa,kBAAkB;AAC/B,MAAa,0BAA0B;AAEvC,MAAa,kBAAkB;CAC7B;CACA;CACA;CACD;AAGD,MAAa,yBAAyB;AACtC,MAAa,8BAA8B;AAG3C,MAAa,sBAAsB;AACnC,MAAa,uBAAuB;AACpC,MAAa,gBAAgB;AAG7B,MAAa,4BAA4B;AAGzC,MAAa,8BAA8B;AAG3C,MAAa,gBAAgB;AAG7B,MAAa,eAAe;AAG5B,MAAa,uBAAuB;AAGpC,MAAa,0BAA0B"}
|
|
@@ -2,6 +2,7 @@ import { pkg } from "../expose.js";
|
|
|
2
2
|
import { getEnv } from "../util/env.js";
|
|
3
3
|
import { GitOperationSpanProcessor } from "../util/git/span-processor.js";
|
|
4
4
|
import { isTraceDebuggingEnabled, isTraceSendingEnabled, isTracingEnabled, massageThrowable } from "./utils.js";
|
|
5
|
+
import { isPromise } from "@sindresorhus/is";
|
|
5
6
|
import { ClientRequest } from "node:http";
|
|
6
7
|
import * as api from "@opentelemetry/api";
|
|
7
8
|
import { ProxyTracerProvider, SpanStatusCode } from "@opentelemetry/api";
|
|
@@ -19,7 +20,6 @@ import { detectResources, envDetector, resourceFromAttributes } from "@opentelem
|
|
|
19
20
|
import { BatchSpanProcessor, ConsoleSpanExporter, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
20
21
|
import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node";
|
|
21
22
|
import { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from "@opentelemetry/semantic-conventions";
|
|
22
|
-
import { isPromise } from "@sindresorhus/is";
|
|
23
23
|
|
|
24
24
|
//#region lib/instrumentation/index.ts
|
|
25
25
|
let instrumentations = [];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { BunyanRecord } from "../logger/types.js";
|
|
2
|
+
import { GitOperationType } from "../util/git/types.js";
|
|
3
|
+
import { PackageFile } from "../modules/manager/types.js";
|
|
4
|
+
import { RenovateSplit } from "../config/types.js";
|
|
5
|
+
import { BranchCache } from "../util/cache/repository/types.js";
|
|
6
|
+
import { Attributes, SpanKind, SpanOptions } from "@opentelemetry/api";
|
|
7
|
+
|
|
8
|
+
//#region lib/instrumentation/types.d.ts
|
|
9
|
+
type RenovateSpanOptions = {
|
|
10
|
+
attributes?: RenovateSpanAttributes;
|
|
11
|
+
} & SpanOptions;
|
|
12
|
+
type RenovateSpanAttributes = {
|
|
13
|
+
[ATTR_RENOVATE_SPLIT]?: RenovateSplit;
|
|
14
|
+
[ATTR_VCS_GIT_OPERATION_TYPE]?: GitOperationType;
|
|
15
|
+
} & Attributes;
|
|
16
|
+
/**
|
|
17
|
+
* The instrumentation parameters.
|
|
18
|
+
*/
|
|
19
|
+
interface SpanParameters {
|
|
20
|
+
/**
|
|
21
|
+
* The name of the span
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Attributes which should be added to the span
|
|
26
|
+
*/
|
|
27
|
+
attributes?: RenovateSpanAttributes | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Should this span be added to the root span or to the current active span
|
|
30
|
+
*/
|
|
31
|
+
ignoreParentSpan?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Type of span this represents. Default: SpanKind.Internal
|
|
34
|
+
*/
|
|
35
|
+
kind?: SpanKind;
|
|
36
|
+
}
|
|
37
|
+
interface Report {
|
|
38
|
+
problems: BunyanRecord[];
|
|
39
|
+
repositories: Record<string, RepoReport>;
|
|
40
|
+
}
|
|
41
|
+
interface RepoReport {
|
|
42
|
+
problems: BunyanRecord[];
|
|
43
|
+
branches: Partial<BranchCache>[];
|
|
44
|
+
packageFiles: Record<string, PackageFile[]>;
|
|
45
|
+
libYearsWithStatus?: LibYearsWithStatus;
|
|
46
|
+
}
|
|
47
|
+
interface LibYearsWithStatus {
|
|
48
|
+
libYears: LibYears;
|
|
49
|
+
dependencyStatus: DependencyStatus;
|
|
50
|
+
}
|
|
51
|
+
interface LibYears {
|
|
52
|
+
total: number;
|
|
53
|
+
managers: Record<string, number>;
|
|
54
|
+
}
|
|
55
|
+
interface DependencyStatus {
|
|
56
|
+
outdated: number;
|
|
57
|
+
total: number;
|
|
58
|
+
}
|
|
59
|
+
declare const ATTR_RENOVATE_SPLIT = "renovate.split";
|
|
60
|
+
/**
|
|
61
|
+
* the Git Version Control System (VCS)'s Operation Type
|
|
62
|
+
*
|
|
63
|
+
* @see GitOperationType
|
|
64
|
+
* @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
declare const ATTR_VCS_GIT_OPERATION_TYPE = "vcs.git.operation.type";
|
|
68
|
+
/**
|
|
69
|
+
* the Git Version Control System (VCS)'s subcommand
|
|
70
|
+
*
|
|
71
|
+
* @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/vcs/
|
|
72
|
+
* */
|
|
73
|
+
declare const ATTR_VCS_GIT_SUBCOMMAND = "vcs.git.subcommand";
|
|
74
|
+
//#endregion
|
|
75
|
+
export { ATTR_RENOVATE_SPLIT, ATTR_VCS_GIT_OPERATION_TYPE, ATTR_VCS_GIT_SUBCOMMAND, DependencyStatus, LibYears, LibYearsWithStatus, RenovateSpanAttributes, RenovateSpanOptions, Report, SpanParameters };
|
|
76
|
+
//# sourceMappingURL=types.d.ts.map
|