@paklo/core 0.5.0 → 0.6.0
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/azure/index.d.mts +15 -15
- package/dist/azure/index.mjs +5 -5
- package/dist/dependabot/index.d.mts +3 -3
- package/dist/dependabot/index.mjs +5 -5
- package/dist/{dependabot-C6dqpHHO.mjs → dependabot-B3kgBX3l.mjs} +8 -10
- package/dist/dependabot-B3kgBX3l.mjs.map +1 -0
- package/dist/environment/index.mjs +1 -1
- package/dist/{environment-Bn2AKsNP.mjs → environment-Bym4B757.mjs} +1 -1
- package/dist/{environment-Bn2AKsNP.mjs.map → environment-Bym4B757.mjs.map} +1 -1
- package/dist/github/index.d.mts +1 -1
- package/dist/github/index.mjs +3 -3
- package/dist/github/index.mjs.map +1 -1
- package/dist/http/index.d.mts +1 -1
- package/dist/http/index.mjs +2 -2
- package/dist/{http-BVlIr273.mjs → http-CVZgS8c2.mjs} +2 -2
- package/dist/http-CVZgS8c2.mjs.map +1 -0
- package/dist/{index-Djd8_Qnk.d.mts → index-CcnWCDDV.d.mts} +125 -38
- package/dist/{index-B5hYujx0.d.mts → index-Z81896Ma.d.mts} +2 -2
- package/dist/{job-CYxNnXAx.mjs → job-N2pOBjBO.mjs} +56 -7
- package/dist/job-N2pOBjBO.mjs.map +1 -0
- package/dist/keygen.d.mts +32 -36
- package/dist/keygen.mjs +43 -50
- package/dist/keygen.mjs.map +1 -1
- package/dist/{logger-BhxvmS3E.mjs → logger-SYCv5hwZ.mjs} +2 -2
- package/dist/{logger-BhxvmS3E.mjs.map → logger-SYCv5hwZ.mjs.map} +1 -1
- package/dist/logger.mjs +2 -2
- package/dist/usage.d.mts +6 -2
- package/dist/usage.mjs +3 -3
- package/dist/usage.mjs.map +1 -1
- package/package.json +5 -5
- package/dist/dependabot-C6dqpHHO.mjs.map +0 -1
- package/dist/http-BVlIr273.mjs.map +0 -1
- package/dist/job-CYxNnXAx.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as SecurityVulnerability } from "./index-
|
|
2
|
-
import { z } from "zod
|
|
1
|
+
import { p as SecurityVulnerability } from "./index-Z81896Ma.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
4
|
|
|
5
5
|
//#region src/dependabot/author.d.ts
|
|
@@ -113,11 +113,11 @@ type DependabotGroup = z.infer<typeof DependabotGroupSchema>;
|
|
|
113
113
|
declare const DependabotAllowConditionSchema: z.ZodObject<{
|
|
114
114
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
115
115
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
all: "all";
|
|
116
117
|
development: "development";
|
|
117
118
|
production: "production";
|
|
118
119
|
direct: "direct";
|
|
119
120
|
indirect: "indirect";
|
|
120
|
-
all: "all";
|
|
121
121
|
}>>;
|
|
122
122
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
123
123
|
all: "all";
|
|
@@ -209,6 +209,8 @@ declare const PackageEcosystemSchema: z.ZodEnum<{
|
|
|
209
209
|
vcpkg: "vcpkg";
|
|
210
210
|
helm: "helm";
|
|
211
211
|
julia: "julia";
|
|
212
|
+
bazel: "bazel";
|
|
213
|
+
opentofu: "opentofu";
|
|
212
214
|
"docker-compose": "docker-compose";
|
|
213
215
|
"dotnet-sdk": "dotnet-sdk";
|
|
214
216
|
mix: "mix";
|
|
@@ -225,10 +227,10 @@ declare const PackageEcosystemSchema: z.ZodEnum<{
|
|
|
225
227
|
}>;
|
|
226
228
|
type PackageEcosystem = z.infer<typeof PackageEcosystemSchema>;
|
|
227
229
|
declare const VersioningStrategySchema: z.ZodEnum<{
|
|
230
|
+
"lockfile-only": "lockfile-only";
|
|
228
231
|
auto: "auto";
|
|
229
232
|
increase: "increase";
|
|
230
233
|
"increase-if-necessary": "increase-if-necessary";
|
|
231
|
-
"lockfile-only": "lockfile-only";
|
|
232
234
|
widen: "widen";
|
|
233
235
|
}>;
|
|
234
236
|
type VersioningStrategy = z.infer<typeof VersioningStrategySchema>;
|
|
@@ -252,6 +254,8 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
252
254
|
vcpkg: "vcpkg";
|
|
253
255
|
helm: "helm";
|
|
254
256
|
julia: "julia";
|
|
257
|
+
bazel: "bazel";
|
|
258
|
+
opentofu: "opentofu";
|
|
255
259
|
"docker-compose": "docker-compose";
|
|
256
260
|
"dotnet-sdk": "dotnet-sdk";
|
|
257
261
|
mix: "mix";
|
|
@@ -272,11 +276,11 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
272
276
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
277
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
274
278
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
all: "all";
|
|
275
280
|
development: "development";
|
|
276
281
|
production: "production";
|
|
277
282
|
direct: "direct";
|
|
278
283
|
indirect: "indirect";
|
|
279
|
-
all: "all";
|
|
280
284
|
}>>;
|
|
281
285
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
282
286
|
all: "all";
|
|
@@ -374,22 +378,22 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
374
378
|
'target-branch': z.ZodOptional<z.ZodString>;
|
|
375
379
|
vendor: z.ZodOptional<z.ZodBoolean>;
|
|
376
380
|
'versioning-strategy': z.ZodOptional<z.ZodEnum<{
|
|
381
|
+
"lockfile-only": "lockfile-only";
|
|
377
382
|
auto: "auto";
|
|
378
383
|
increase: "increase";
|
|
379
384
|
"increase-if-necessary": "increase-if-necessary";
|
|
380
|
-
"lockfile-only": "lockfile-only";
|
|
381
385
|
widen: "widen";
|
|
382
386
|
}>>;
|
|
383
387
|
patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
384
388
|
'multi-ecosystem-group': z.ZodOptional<z.ZodString>;
|
|
385
389
|
}, z.core.$strip>, z.ZodTransform<{
|
|
386
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
390
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
387
391
|
directory?: string | undefined;
|
|
388
392
|
directories?: string[] | undefined;
|
|
389
393
|
'exclude-paths'?: string[] | undefined;
|
|
390
394
|
allow?: {
|
|
391
395
|
'dependency-name'?: string | undefined;
|
|
392
|
-
'dependency-type'?: "
|
|
396
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
393
397
|
'update-type'?: "all" | "security" | undefined;
|
|
394
398
|
}[] | undefined;
|
|
395
399
|
assignees?: string[] | undefined;
|
|
@@ -437,17 +441,17 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
437
441
|
} | undefined;
|
|
438
442
|
'target-branch'?: string | undefined;
|
|
439
443
|
vendor?: boolean | undefined;
|
|
440
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
444
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
441
445
|
patterns?: string[] | undefined;
|
|
442
446
|
'multi-ecosystem-group'?: string | undefined;
|
|
443
447
|
}, {
|
|
444
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
448
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
445
449
|
directory?: string | undefined;
|
|
446
450
|
directories?: string[] | undefined;
|
|
447
451
|
'exclude-paths'?: string[] | undefined;
|
|
448
452
|
allow?: {
|
|
449
453
|
'dependency-name'?: string | undefined;
|
|
450
|
-
'dependency-type'?: "
|
|
454
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
451
455
|
'update-type'?: "all" | "security" | undefined;
|
|
452
456
|
}[] | undefined;
|
|
453
457
|
assignees?: string[] | undefined;
|
|
@@ -495,7 +499,7 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
495
499
|
} | undefined;
|
|
496
500
|
'target-branch'?: string | undefined;
|
|
497
501
|
vendor?: boolean | undefined;
|
|
498
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
502
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
499
503
|
patterns?: string[] | undefined;
|
|
500
504
|
'multi-ecosystem-group'?: string | undefined;
|
|
501
505
|
}>>;
|
|
@@ -625,6 +629,8 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
625
629
|
vcpkg: "vcpkg";
|
|
626
630
|
helm: "helm";
|
|
627
631
|
julia: "julia";
|
|
632
|
+
bazel: "bazel";
|
|
633
|
+
opentofu: "opentofu";
|
|
628
634
|
"docker-compose": "docker-compose";
|
|
629
635
|
"dotnet-sdk": "dotnet-sdk";
|
|
630
636
|
mix: "mix";
|
|
@@ -645,11 +651,11 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
645
651
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
646
652
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
647
653
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
all: "all";
|
|
648
655
|
development: "development";
|
|
649
656
|
production: "production";
|
|
650
657
|
direct: "direct";
|
|
651
658
|
indirect: "indirect";
|
|
652
|
-
all: "all";
|
|
653
659
|
}>>;
|
|
654
660
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
655
661
|
all: "all";
|
|
@@ -747,22 +753,22 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
747
753
|
'target-branch': z.ZodOptional<z.ZodString>;
|
|
748
754
|
vendor: z.ZodOptional<z.ZodBoolean>;
|
|
749
755
|
'versioning-strategy': z.ZodOptional<z.ZodEnum<{
|
|
756
|
+
"lockfile-only": "lockfile-only";
|
|
750
757
|
auto: "auto";
|
|
751
758
|
increase: "increase";
|
|
752
759
|
"increase-if-necessary": "increase-if-necessary";
|
|
753
|
-
"lockfile-only": "lockfile-only";
|
|
754
760
|
widen: "widen";
|
|
755
761
|
}>>;
|
|
756
762
|
patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
757
763
|
'multi-ecosystem-group': z.ZodOptional<z.ZodString>;
|
|
758
764
|
}, z.core.$strip>, z.ZodTransform<{
|
|
759
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
765
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
760
766
|
directory?: string | undefined;
|
|
761
767
|
directories?: string[] | undefined;
|
|
762
768
|
'exclude-paths'?: string[] | undefined;
|
|
763
769
|
allow?: {
|
|
764
770
|
'dependency-name'?: string | undefined;
|
|
765
|
-
'dependency-type'?: "
|
|
771
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
766
772
|
'update-type'?: "all" | "security" | undefined;
|
|
767
773
|
}[] | undefined;
|
|
768
774
|
assignees?: string[] | undefined;
|
|
@@ -810,17 +816,17 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
810
816
|
} | undefined;
|
|
811
817
|
'target-branch'?: string | undefined;
|
|
812
818
|
vendor?: boolean | undefined;
|
|
813
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
819
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
814
820
|
patterns?: string[] | undefined;
|
|
815
821
|
'multi-ecosystem-group'?: string | undefined;
|
|
816
822
|
}, {
|
|
817
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
823
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
818
824
|
directory?: string | undefined;
|
|
819
825
|
directories?: string[] | undefined;
|
|
820
826
|
'exclude-paths'?: string[] | undefined;
|
|
821
827
|
allow?: {
|
|
822
828
|
'dependency-name'?: string | undefined;
|
|
823
|
-
'dependency-type'?: "
|
|
829
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
824
830
|
'update-type'?: "all" | "security" | undefined;
|
|
825
831
|
}[] | undefined;
|
|
826
832
|
assignees?: string[] | undefined;
|
|
@@ -868,7 +874,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
868
874
|
} | undefined;
|
|
869
875
|
'target-branch'?: string | undefined;
|
|
870
876
|
vendor?: boolean | undefined;
|
|
871
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
877
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
872
878
|
patterns?: string[] | undefined;
|
|
873
879
|
'multi-ecosystem-group'?: string | undefined;
|
|
874
880
|
}>>>;
|
|
@@ -944,13 +950,13 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
944
950
|
}, z.core.$strip>, z.ZodTransform<{
|
|
945
951
|
version: number;
|
|
946
952
|
updates: {
|
|
947
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
953
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
948
954
|
directory?: string | undefined;
|
|
949
955
|
directories?: string[] | undefined;
|
|
950
956
|
'exclude-paths'?: string[] | undefined;
|
|
951
957
|
allow?: {
|
|
952
958
|
'dependency-name'?: string | undefined;
|
|
953
|
-
'dependency-type'?: "
|
|
959
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
954
960
|
'update-type'?: "all" | "security" | undefined;
|
|
955
961
|
}[] | undefined;
|
|
956
962
|
assignees?: string[] | undefined;
|
|
@@ -998,7 +1004,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
998
1004
|
} | undefined;
|
|
999
1005
|
'target-branch'?: string | undefined;
|
|
1000
1006
|
vendor?: boolean | undefined;
|
|
1001
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
1007
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
1002
1008
|
patterns?: string[] | undefined;
|
|
1003
1009
|
'multi-ecosystem-group'?: string | undefined;
|
|
1004
1010
|
}[];
|
|
@@ -1045,13 +1051,13 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1045
1051
|
}, {
|
|
1046
1052
|
version: number;
|
|
1047
1053
|
updates: {
|
|
1048
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
1054
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
1049
1055
|
directory?: string | undefined;
|
|
1050
1056
|
directories?: string[] | undefined;
|
|
1051
1057
|
'exclude-paths'?: string[] | undefined;
|
|
1052
1058
|
allow?: {
|
|
1053
1059
|
'dependency-name'?: string | undefined;
|
|
1054
|
-
'dependency-type'?: "
|
|
1060
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
1055
1061
|
'update-type'?: "all" | "security" | undefined;
|
|
1056
1062
|
}[] | undefined;
|
|
1057
1063
|
assignees?: string[] | undefined;
|
|
@@ -1099,7 +1105,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1099
1105
|
} | undefined;
|
|
1100
1106
|
'target-branch'?: string | undefined;
|
|
1101
1107
|
vendor?: boolean | undefined;
|
|
1102
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
1108
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
1103
1109
|
patterns?: string[] | undefined;
|
|
1104
1110
|
'multi-ecosystem-group'?: string | undefined;
|
|
1105
1111
|
}[];
|
|
@@ -1185,11 +1191,15 @@ declare const DependabotProxyConfigSchema: z.ZodObject<{
|
|
|
1185
1191
|
type DependabotProxyConfig = z.infer<typeof DependabotProxyConfigSchema>;
|
|
1186
1192
|
declare const DependabotSourceProviderSchema: z.ZodEnum<{
|
|
1187
1193
|
azure: "azure";
|
|
1194
|
+
gitlab: "gitlab";
|
|
1195
|
+
bitbucket: "bitbucket";
|
|
1188
1196
|
}>;
|
|
1189
1197
|
type DependabotSourceProvider = z.infer<typeof DependabotSourceProviderSchema>;
|
|
1190
1198
|
declare const DependabotSourceSchema: z.ZodObject<{
|
|
1191
1199
|
provider: z.ZodEnum<{
|
|
1192
1200
|
azure: "azure";
|
|
1201
|
+
gitlab: "gitlab";
|
|
1202
|
+
bitbucket: "bitbucket";
|
|
1193
1203
|
}>;
|
|
1194
1204
|
repo: z.ZodString;
|
|
1195
1205
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1332,6 +1342,8 @@ declare const DependabotPackageManagerSchema: z.ZodEnum<{
|
|
|
1332
1342
|
vcpkg: "vcpkg";
|
|
1333
1343
|
helm: "helm";
|
|
1334
1344
|
julia: "julia";
|
|
1345
|
+
bazel: "bazel";
|
|
1346
|
+
opentofu: "opentofu";
|
|
1335
1347
|
}>;
|
|
1336
1348
|
type DependabotPackageManager = z.infer<typeof DependabotPackageManagerSchema>;
|
|
1337
1349
|
declare const DependabotCommandSchema: z.ZodEnum<{
|
|
@@ -1341,7 +1353,7 @@ declare const DependabotCommandSchema: z.ZodEnum<{
|
|
|
1341
1353
|
}>;
|
|
1342
1354
|
type DependabotCommand = z.infer<typeof DependabotCommandSchema>;
|
|
1343
1355
|
declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
1344
|
-
id: z.
|
|
1356
|
+
id: z.ZodString;
|
|
1345
1357
|
command: z.ZodOptional<z.ZodEnum<{
|
|
1346
1358
|
version: "version";
|
|
1347
1359
|
graph: "graph";
|
|
@@ -1374,6 +1386,8 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1374
1386
|
vcpkg: "vcpkg";
|
|
1375
1387
|
helm: "helm";
|
|
1376
1388
|
julia: "julia";
|
|
1389
|
+
bazel: "bazel";
|
|
1390
|
+
opentofu: "opentofu";
|
|
1377
1391
|
}>;
|
|
1378
1392
|
'allowed-updates': z.ZodArray<z.ZodObject<{
|
|
1379
1393
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1431,6 +1445,8 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1431
1445
|
source: z.ZodObject<{
|
|
1432
1446
|
provider: z.ZodEnum<{
|
|
1433
1447
|
azure: "azure";
|
|
1448
|
+
gitlab: "gitlab";
|
|
1449
|
+
bitbucket: "bitbucket";
|
|
1434
1450
|
}>;
|
|
1435
1451
|
repo: z.ZodString;
|
|
1436
1452
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1468,7 +1484,7 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1468
1484
|
type DependabotJobConfig = z.infer<typeof DependabotJobConfigSchema>;
|
|
1469
1485
|
declare const DependabotJobFileSchema: z.ZodObject<{
|
|
1470
1486
|
job: z.ZodObject<{
|
|
1471
|
-
id: z.
|
|
1487
|
+
id: z.ZodString;
|
|
1472
1488
|
command: z.ZodOptional<z.ZodEnum<{
|
|
1473
1489
|
version: "version";
|
|
1474
1490
|
graph: "graph";
|
|
@@ -1501,6 +1517,8 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1501
1517
|
vcpkg: "vcpkg";
|
|
1502
1518
|
helm: "helm";
|
|
1503
1519
|
julia: "julia";
|
|
1520
|
+
bazel: "bazel";
|
|
1521
|
+
opentofu: "opentofu";
|
|
1504
1522
|
}>;
|
|
1505
1523
|
'allowed-updates': z.ZodArray<z.ZodObject<{
|
|
1506
1524
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1558,6 +1576,8 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1558
1576
|
source: z.ZodObject<{
|
|
1559
1577
|
provider: z.ZodEnum<{
|
|
1560
1578
|
azure: "azure";
|
|
1579
|
+
gitlab: "gitlab";
|
|
1580
|
+
bitbucket: "bitbucket";
|
|
1561
1581
|
}>;
|
|
1562
1582
|
repo: z.ZodString;
|
|
1563
1583
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1610,6 +1630,62 @@ type FileUpdaterInput = FetchedFiles & {
|
|
|
1610
1630
|
declare function getBranchNameForUpdate(packageEcosystem: PackageEcosystem, targetBranchName: string | undefined, directory: string | undefined, dependencyGroupName: string | undefined, dependencies: DependabotExistingPR[], separator?: string): string;
|
|
1611
1631
|
declare function sanitizeRef(refParts: (string | undefined)[], separator: string): string;
|
|
1612
1632
|
//#endregion
|
|
1633
|
+
//#region src/dependabot/directory-key.d.ts
|
|
1634
|
+
/**
|
|
1635
|
+
* Options for creating a directory key that supports both naming conventions:
|
|
1636
|
+
* - `ecosystem` (standard format)
|
|
1637
|
+
* - `package-ecosystem` (alternative format for compatibility)
|
|
1638
|
+
*
|
|
1639
|
+
* Either a single `directory` or multiple `directories` can be specified.
|
|
1640
|
+
*/
|
|
1641
|
+
type MakeDirectoryKeyOptions = {
|
|
1642
|
+
/** The package ecosystem (e.g., 'npm', 'pip', 'bundler') */
|
|
1643
|
+
ecosystem: string;
|
|
1644
|
+
/** Single directory path (optional if directories is provided) */
|
|
1645
|
+
directory?: string | null;
|
|
1646
|
+
/** Multiple directory paths (optional if directory is provided) */
|
|
1647
|
+
directories?: string[];
|
|
1648
|
+
} | {
|
|
1649
|
+
/** The package ecosystem using alternative naming convention */
|
|
1650
|
+
'package-ecosystem': string;
|
|
1651
|
+
/** Single directory path (optional if directories is provided) */
|
|
1652
|
+
directory?: string | null;
|
|
1653
|
+
/** Multiple directory paths (optional if directory is provided) */
|
|
1654
|
+
directories?: string[];
|
|
1655
|
+
};
|
|
1656
|
+
/**
|
|
1657
|
+
* Creates a unique directory key by combining the ecosystem and directory information.
|
|
1658
|
+
*
|
|
1659
|
+
* The key format is: `{ecosystem}::{directory_info}`
|
|
1660
|
+
* - For single directory: `npm::/src/frontend`
|
|
1661
|
+
* - For multiple directories: `npm::/src/frontend,/src/backend`
|
|
1662
|
+
*
|
|
1663
|
+
* @param options - Configuration object containing ecosystem and directory information
|
|
1664
|
+
* @returns A unique string key in the format `{ecosystem}::{directories}`
|
|
1665
|
+
*
|
|
1666
|
+
* @example
|
|
1667
|
+
* ```typescript
|
|
1668
|
+
* // Single directory
|
|
1669
|
+
* const key1 = makeDirectoryKey({ ecosystem: 'npm', directory: '/src' });
|
|
1670
|
+
* // Returns: "npm::/src"
|
|
1671
|
+
*
|
|
1672
|
+
* // Multiple directories
|
|
1673
|
+
* const key2 = makeDirectoryKey({
|
|
1674
|
+
* ecosystem: 'pip',
|
|
1675
|
+
* directories: ['/backend', '/scripts']
|
|
1676
|
+
* });
|
|
1677
|
+
* // Returns: "pip::/backend,/scripts"
|
|
1678
|
+
*
|
|
1679
|
+
* // Using alternative naming convention
|
|
1680
|
+
* const key3 = makeDirectoryKey({
|
|
1681
|
+
* 'package-ecosystem': 'bundler',
|
|
1682
|
+
* directory: '/app'
|
|
1683
|
+
* });
|
|
1684
|
+
* // Returns: "bundler::/app"
|
|
1685
|
+
* ```
|
|
1686
|
+
*/
|
|
1687
|
+
declare function makeDirectoryKey(options: MakeDirectoryKeyOptions): string;
|
|
1688
|
+
//#endregion
|
|
1613
1689
|
//#region src/dependabot/experiments.d.ts
|
|
1614
1690
|
declare const DEFAULT_EXPERIMENTS: DependabotExperiments;
|
|
1615
1691
|
/**
|
|
@@ -1627,7 +1703,6 @@ type DependabotSourceInfo = {
|
|
|
1627
1703
|
'repository-slug': string;
|
|
1628
1704
|
};
|
|
1629
1705
|
type DependabotJobBuilderOutput = {
|
|
1630
|
-
jobId: number;
|
|
1631
1706
|
job: DependabotJobConfig;
|
|
1632
1707
|
credentials: DependabotCredential[];
|
|
1633
1708
|
};
|
|
@@ -1669,7 +1744,7 @@ declare class DependabotJobBuilder {
|
|
|
1669
1744
|
id,
|
|
1670
1745
|
command
|
|
1671
1746
|
}: {
|
|
1672
|
-
id?:
|
|
1747
|
+
id?: string;
|
|
1673
1748
|
command: DependabotJobConfig['command'];
|
|
1674
1749
|
}): DependabotJobBuilderOutput;
|
|
1675
1750
|
/**
|
|
@@ -1683,7 +1758,7 @@ declare class DependabotJobBuilder {
|
|
|
1683
1758
|
pullRequestToUpdate,
|
|
1684
1759
|
securityVulnerabilities
|
|
1685
1760
|
}: {
|
|
1686
|
-
id?:
|
|
1761
|
+
id?: string;
|
|
1687
1762
|
command: DependabotJobConfig['command'];
|
|
1688
1763
|
dependencyNamesToUpdate?: string[];
|
|
1689
1764
|
existingPullRequests: (DependabotExistingPR[] | DependabotExistingGroupPR)[];
|
|
@@ -1712,7 +1787,7 @@ declare function mapCredentials({
|
|
|
1712
1787
|
githubToken?: string;
|
|
1713
1788
|
registries?: Record<string, DependabotRegistry>;
|
|
1714
1789
|
}): DependabotCredential[];
|
|
1715
|
-
declare function makeRandomJobId():
|
|
1790
|
+
declare function makeRandomJobId(): string;
|
|
1716
1791
|
//#endregion
|
|
1717
1792
|
//#region src/dependabot/server.d.ts
|
|
1718
1793
|
declare const DependabotRequestTypeSchema: z.ZodEnum<{
|
|
@@ -1904,14 +1979,26 @@ type DependabotTokenType = 'job' | 'credentials';
|
|
|
1904
1979
|
* @param value - The authentication value (e.g., API key).
|
|
1905
1980
|
* @returns A promise that resolves to a boolean indicating whether the authentication was successful.
|
|
1906
1981
|
*/
|
|
1907
|
-
type AuthenticatorFunc = (type: DependabotTokenType, id:
|
|
1982
|
+
type AuthenticatorFunc = (type: DependabotTokenType, id: string, value: string) => Promise<boolean>;
|
|
1908
1983
|
/**
|
|
1909
1984
|
* Handler function for processing dependabot requests.
|
|
1910
1985
|
* @param id - The ID of the dependabot job.
|
|
1911
1986
|
* @param request - The dependabot request to handle.
|
|
1912
1987
|
* @returns A promise that resolves to the result of handling the request.
|
|
1913
1988
|
*/
|
|
1914
|
-
type HandlerFunc = (id:
|
|
1989
|
+
type HandlerFunc = (id: string, request: DependabotRequest) => Promise<boolean>;
|
|
1990
|
+
/**
|
|
1991
|
+
* Function for getting a dependabot job config by ID.
|
|
1992
|
+
* @param id - The ID of the dependabot job.
|
|
1993
|
+
* @returns A promise that resolves to the dependabot job config, or undefined if not found.
|
|
1994
|
+
*/
|
|
1995
|
+
type GetJobFunc = (id: string) => Promise<DependabotJobConfig | undefined>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Function for getting dependabot credentials by job ID.
|
|
1998
|
+
* @param id - The ID of the dependabot job.
|
|
1999
|
+
* @returns A promise that resolves to an array of dependabot credentials, or undefined if not found.
|
|
2000
|
+
*/
|
|
2001
|
+
type GetCredentialsFunc = (id: string) => Promise<DependabotCredential[] | undefined>;
|
|
1915
2002
|
type CreateApiServerAppOptions = {
|
|
1916
2003
|
/**
|
|
1917
2004
|
* Base path for the endpoints.
|
|
@@ -1921,9 +2008,9 @@ type CreateApiServerAppOptions = {
|
|
|
1921
2008
|
/** Handler function for authenticating requests. */
|
|
1922
2009
|
authenticate: AuthenticatorFunc;
|
|
1923
2010
|
/** Function for getting a dependabot job by ID. */
|
|
1924
|
-
getJob:
|
|
2011
|
+
getJob: GetJobFunc;
|
|
1925
2012
|
/** Function for getting dependabot credentials by job ID. */
|
|
1926
|
-
getCredentials:
|
|
2013
|
+
getCredentials: GetCredentialsFunc;
|
|
1927
2014
|
/** Handler function for processing the operations. */
|
|
1928
2015
|
handle: HandlerFunc;
|
|
1929
2016
|
};
|
|
@@ -2139,5 +2226,5 @@ declare const DependabotMetricSchema: z.ZodObject<{
|
|
|
2139
2226
|
}, z.core.$strip>;
|
|
2140
2227
|
type DependabotMetric = z.infer<typeof DependabotMetricSchema>;
|
|
2141
2228
|
//#endregion
|
|
2142
|
-
export {
|
|
2143
|
-
//# sourceMappingURL=index-
|
|
2229
|
+
export { sanitizeRef as $, DependabotGroup as $t, DependabotRequest as A, DependabotProxyConfig as At, mapAllowedUpdatesFromDependabotConfigToJobConfig as B, DependabotSourceProviderSchema as Bt, DependabotRecordUpdateJobUnknownError as C, extractPlaceholder as Cn, DependabotGroupRuleJobSchema as Ct, DependabotUpdatePullRequest as D, DependabotJobFileSchema as Dt, DependabotUpdateDependencyListSchema as E, GitAuthor as En, DependabotJobFile as Et, createApiServerApp as F, DependabotRequirementSourceSchema as Ft, mapPackageEcosystemToPackageManager as G, DependabotAllowCondition as Gt, mapExperiments as H, FetchedFiles as Ht, DependabotJobBuilder as I, DependabotSecurityAdvisory as It, mapVersionStrategyToRequirementsUpdateStrategy as J, DependabotCommitMessageSchema as Jt, mapSecurityAdvisories as K, DependabotAllowConditionSchema as Kt, DependabotJobBuilderOutput as L, DependabotSecurityAdvisorySchema as Lt, DependabotRequestType as M, DependabotRequirement as Mt, DependabotRequestTypeSchema as N, DependabotRequirementSchema as Nt, DependabotUpdatePullRequestSchema as O, DependabotPackageManager as Ot, DependabotTokenType as P, DependabotRequirementSource as Pt, getBranchNameForUpdate as Q, DependabotCooldownSchema as Qt, DependabotSourceInfo as R, DependabotSource as Rt, DependabotRecordUpdateJobErrorSchema as S, convertPlaceholder as Sn, DependabotGroupRuleJob as St, DependabotUpdateDependencyList as T, DEPENDABOT_DEFAULT_AUTHOR_NAME as Tn, DependabotJobConfigSchema as Tt, mapGroupsFromDependabotConfigToJobConfig as U, FileFetcherInput as Ut, mapCredentials as V, DependabotSourceSchema as Vt, mapIgnoreConditionsFromDependabotConfigToJobConfig as W, FileUpdaterInput as Wt, parseExperiments as X, DependabotConfigSchema as Xt, DEFAULT_EXPERIMENTS as Y, DependabotConfig as Yt, makeDirectoryKey as Z, DependabotCooldown as Zt, DependabotRecordEcosystemMeta as _, parseDependabotConfig as _n, DependabotExistingPRSchema as _t, DependabotDependencyFile as a, DependabotPullRequestBranchName as an, DependabotCommandSchema as at, DependabotRecordEcosystemVersionsSchema as b, validateConfiguration as bn, DependabotGroupJob as bt, DependabotEcosystemMetaSchema as c, DependabotSchedule as cn, DependabotCondition as ct, DependabotIncrementMetric as d, DependabotUpdateSchema as dn, DependabotCredentialSchema as dt, DependabotGroupSchema as en, CertificateAuthority as et, DependabotIncrementMetricSchema as f, POSSIBLE_CONFIG_FILE_PATHS as fn, DependabotDependency as ft, DependabotMetricSchema as g, VersioningStrategySchema as gn, DependabotExistingPR as gt, DependabotMetric as h, VersioningStrategy as hn, DependabotExistingGroupPRSchema as ht, DependabotCreatePullRequestSchema as i, DependabotMultiEcosystemGroupSchema as in, DependabotCommand as it, DependabotRequestSchema as j, DependabotProxyConfigSchema as jt, CreateApiServerAppOptions as k, DependabotPackageManagerSchema as kt, DependabotEcosystemVersionManager as l, DependabotScheduleSchema as ln, DependabotConditionSchema as lt, DependabotMarkAsProcessedSchema as m, PackageEcosystemSchema as mn, DependabotExistingGroupPR as mt, DependabotClosePullRequestSchema as n, DependabotIgnoreConditionSchema as nn, DependabotAllowed as nt, DependabotDependencyFileSchema as o, DependabotRegistry as on, DependabotCommitOptions as ot, DependabotMarkAsProcessed as p, PackageEcosystem as pn, DependabotDependencySchema as pt, mapSourceFromDependabotConfigToJobConfig as q, DependabotCommitMessage as qt, DependabotCreatePullRequest as r, DependabotMultiEcosystemGroup as rn, DependabotAllowedSchema as rt, DependabotEcosystemMeta as s, DependabotRegistrySchema as sn, DependabotCommitOptionsSchema as st, DependabotClosePullRequest as t, DependabotIgnoreCondition as tn, CertificateAuthoritySchema as tt, DependabotEcosystemVersionManagerSchema as u, DependabotUpdate as un, DependabotCredential as ut, DependabotRecordEcosystemMetaSchema as v, parseRegistries as vn, DependabotExperiments as vt, DependabotRecordUpdateJobUnknownErrorSchema as w, DEPENDABOT_DEFAULT_AUTHOR_EMAIL as wn, DependabotJobConfig as wt, DependabotRecordUpdateJobError as x, VariableFinderFn as xn, DependabotGroupJobSchema as xt, DependabotRecordEcosystemVersions as y, parseUpdates as yn, DependabotExperimentsSchema as yt, makeRandomJobId as z, DependabotSourceProvider as zt };
|
|
2230
|
+
//# sourceMappingURL=index-CcnWCDDV.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { Octokit } from "octokit";
|
|
3
3
|
|
|
4
4
|
//#region src/github/client.d.ts
|
|
@@ -166,4 +166,4 @@ declare class GitHubSecurityAdvisoryClient {
|
|
|
166
166
|
declare function filterVulnerabilities(securityVulnerabilities: SecurityVulnerability[]): SecurityVulnerability[];
|
|
167
167
|
//#endregion
|
|
168
168
|
export { createGitHubClient as _, PackageEcosystemSchema as a, SecurityAdvisoryIdentifierSchema as c, SecurityAdvisorySeverity as d, SecurityAdvisorySeveritySchema as f, getGhsaPackageEcosystemFromDependabotPackageManager as g, filterVulnerabilities as h, PackageEcosystem as i, SecurityAdvisoryIdentifierType as l, SecurityVulnerabilitySchema as m, GitHubSecurityAdvisoryClient as n, PackageSchema as o, SecurityVulnerability as p, Package as r, SecurityAdvisory as s, FirstPatchedVersion as t, SecurityAdvisorySchema as u };
|
|
169
|
-
//# sourceMappingURL=index-
|
|
169
|
+
//# sourceMappingURL=index-Z81896Ma.d.mts.map
|
|
@@ -1,6 +1,43 @@
|
|
|
1
|
-
import { z } from "zod
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import * as yaml from "js-yaml";
|
|
3
3
|
|
|
4
|
+
//#region src/dependabot/directory-key.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a unique directory key by combining the ecosystem and directory information.
|
|
7
|
+
*
|
|
8
|
+
* The key format is: `{ecosystem}::{directory_info}`
|
|
9
|
+
* - For single directory: `npm::/src/frontend`
|
|
10
|
+
* - For multiple directories: `npm::/src/frontend,/src/backend`
|
|
11
|
+
*
|
|
12
|
+
* @param options - Configuration object containing ecosystem and directory information
|
|
13
|
+
* @returns A unique string key in the format `{ecosystem}::{directories}`
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Single directory
|
|
18
|
+
* const key1 = makeDirectoryKey({ ecosystem: 'npm', directory: '/src' });
|
|
19
|
+
* // Returns: "npm::/src"
|
|
20
|
+
*
|
|
21
|
+
* // Multiple directories
|
|
22
|
+
* const key2 = makeDirectoryKey({
|
|
23
|
+
* ecosystem: 'pip',
|
|
24
|
+
* directories: ['/backend', '/scripts']
|
|
25
|
+
* });
|
|
26
|
+
* // Returns: "pip::/backend,/scripts"
|
|
27
|
+
*
|
|
28
|
+
* // Using alternative naming convention
|
|
29
|
+
* const key3 = makeDirectoryKey({
|
|
30
|
+
* 'package-ecosystem': 'bundler',
|
|
31
|
+
* directory: '/app'
|
|
32
|
+
* });
|
|
33
|
+
* // Returns: "bundler::/app"
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
function makeDirectoryKey(options) {
|
|
37
|
+
return `${"ecosystem" in options ? options.ecosystem : options["package-ecosystem"]}::${options.directory ?? options.directories.join(",")}`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
4
41
|
//#region src/dependabot/placeholder.ts
|
|
5
42
|
async function convertPlaceholder({ input, variableFinder }) {
|
|
6
43
|
if (!input) return void 0;
|
|
@@ -145,6 +182,7 @@ const DependabotCooldownSchema = z.object({
|
|
|
145
182
|
});
|
|
146
183
|
const DependabotPullRequestBranchNameSchema = z.object({ separator: z.string().optional() });
|
|
147
184
|
const PackageEcosystemSchema = z.enum([
|
|
185
|
+
"bazel",
|
|
148
186
|
"bun",
|
|
149
187
|
"bundler",
|
|
150
188
|
"cargo",
|
|
@@ -164,6 +202,7 @@ const PackageEcosystemSchema = z.enum([
|
|
|
164
202
|
"maven",
|
|
165
203
|
"npm",
|
|
166
204
|
"nuget",
|
|
205
|
+
"opentofu",
|
|
167
206
|
"pip",
|
|
168
207
|
"pip-compile",
|
|
169
208
|
"pipenv",
|
|
@@ -246,10 +285,14 @@ const DependabotConfigSchema = z.object({
|
|
|
246
285
|
}
|
|
247
286
|
const seen = /* @__PURE__ */ new Set();
|
|
248
287
|
for (const update of value.updates) {
|
|
249
|
-
const key =
|
|
288
|
+
const key = makeDirectoryKey(update);
|
|
250
289
|
if (seen.has(key)) addIssue(`Duplicate update configuration found for '${update["package-ecosystem"]}' and directory: '${update.directory ?? update.directories?.join(",")}'`);
|
|
251
290
|
seen.add(key);
|
|
252
291
|
}
|
|
292
|
+
const betaEcosystems = ["bazel", "opentofu"];
|
|
293
|
+
if (!value["enable-beta-ecosystems"]) {
|
|
294
|
+
for (const update of value.updates) if (betaEcosystems.includes(update["package-ecosystem"])) addIssue(`The package ecosystem '${update["package-ecosystem"]}' is currently in beta. To use it, set 'enable-beta-ecosystems' to true in the dependabot configuration.`);
|
|
295
|
+
}
|
|
253
296
|
return value;
|
|
254
297
|
});
|
|
255
298
|
function parseUpdates(config, configPath) {
|
|
@@ -349,7 +392,11 @@ const DependabotProxyConfigSchema = z.object({
|
|
|
349
392
|
all_credentials: DependabotCredentialSchema.array(),
|
|
350
393
|
ca: CertificateAuthoritySchema
|
|
351
394
|
});
|
|
352
|
-
const DependabotSourceProviderSchema = z.enum([
|
|
395
|
+
const DependabotSourceProviderSchema = z.enum([
|
|
396
|
+
"azure",
|
|
397
|
+
"gitlab",
|
|
398
|
+
"bitbucket"
|
|
399
|
+
]);
|
|
353
400
|
const DependabotSourceSchema = z.object({
|
|
354
401
|
provider: DependabotSourceProviderSchema,
|
|
355
402
|
repo: z.string(),
|
|
@@ -450,7 +497,9 @@ const DependabotPackageManagerSchema = z.enum([
|
|
|
450
497
|
"uv",
|
|
451
498
|
"vcpkg",
|
|
452
499
|
"helm",
|
|
453
|
-
"julia"
|
|
500
|
+
"julia",
|
|
501
|
+
"bazel",
|
|
502
|
+
"opentofu"
|
|
454
503
|
]);
|
|
455
504
|
const DependabotCommandSchema = z.enum([
|
|
456
505
|
"graph",
|
|
@@ -458,7 +507,7 @@ const DependabotCommandSchema = z.enum([
|
|
|
458
507
|
"recreate"
|
|
459
508
|
]);
|
|
460
509
|
const DependabotJobConfigSchema = z.object({
|
|
461
|
-
id: z.
|
|
510
|
+
id: z.string(),
|
|
462
511
|
command: DependabotCommandSchema.optional(),
|
|
463
512
|
"package-manager": DependabotPackageManagerSchema,
|
|
464
513
|
"allowed-updates": DependabotAllowedSchema.array(),
|
|
@@ -492,5 +541,5 @@ const DependabotJobConfigSchema = z.object({
|
|
|
492
541
|
const DependabotJobFileSchema = z.object({ job: DependabotJobConfigSchema });
|
|
493
542
|
|
|
494
543
|
//#endregion
|
|
495
|
-
export { DependabotScheduleSchema as A, extractPlaceholder as B, DependabotCommitMessageSchema as C, DependabotIgnoreConditionSchema as D, DependabotGroupSchema as E, parseDependabotConfig as F, parseRegistries as I, parseUpdates as L, POSSIBLE_CONFIG_FILE_PATHS as M, PackageEcosystemSchema as N, DependabotMultiEcosystemGroupSchema as O, VersioningStrategySchema as P, validateConfiguration as R, DependabotAllowConditionSchema as S, DependabotCooldownSchema as T, DependabotRequirementSchema as _, DependabotConditionSchema as a, DependabotSourceProviderSchema as b, DependabotExistingGroupPRSchema as c, DependabotGroupJobSchema as d, DependabotGroupRuleJobSchema as f, DependabotProxyConfigSchema as g, DependabotPackageManagerSchema as h, DependabotCommitOptionsSchema as i, DependabotUpdateSchema as j, DependabotRegistrySchema as k, DependabotExistingPRSchema as l, DependabotJobFileSchema as m, DependabotAllowedSchema as n, DependabotCredentialSchema as o, DependabotJobConfigSchema as p, DependabotCommandSchema as r, DependabotDependencySchema as s, CertificateAuthoritySchema as t, DependabotExperimentsSchema as u, DependabotRequirementSourceSchema as v, DependabotConfigSchema as w, DependabotSourceSchema as x, DependabotSecurityAdvisorySchema as y, convertPlaceholder as z };
|
|
496
|
-
//# sourceMappingURL=job-
|
|
544
|
+
export { DependabotScheduleSchema as A, extractPlaceholder as B, DependabotCommitMessageSchema as C, DependabotIgnoreConditionSchema as D, DependabotGroupSchema as E, parseDependabotConfig as F, parseRegistries as I, parseUpdates as L, POSSIBLE_CONFIG_FILE_PATHS as M, PackageEcosystemSchema as N, DependabotMultiEcosystemGroupSchema as O, VersioningStrategySchema as P, validateConfiguration as R, DependabotAllowConditionSchema as S, DependabotCooldownSchema as T, makeDirectoryKey as V, DependabotRequirementSchema as _, DependabotConditionSchema as a, DependabotSourceProviderSchema as b, DependabotExistingGroupPRSchema as c, DependabotGroupJobSchema as d, DependabotGroupRuleJobSchema as f, DependabotProxyConfigSchema as g, DependabotPackageManagerSchema as h, DependabotCommitOptionsSchema as i, DependabotUpdateSchema as j, DependabotRegistrySchema as k, DependabotExistingPRSchema as l, DependabotJobFileSchema as m, DependabotAllowedSchema as n, DependabotCredentialSchema as o, DependabotJobConfigSchema as p, DependabotCommandSchema as r, DependabotDependencySchema as s, CertificateAuthoritySchema as t, DependabotExperimentsSchema as u, DependabotRequirementSourceSchema as v, DependabotConfigSchema as w, DependabotSourceSchema as x, DependabotSecurityAdvisorySchema as y, convertPlaceholder as z };
|
|
545
|
+
//# sourceMappingURL=job-N2pOBjBO.mjs.map
|