mobbdev 1.2.56 → 1.2.58

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.
@@ -1445,8 +1445,16 @@ var init_analysis = __esm({
1445
1445
  originalUrl: z3.string(),
1446
1446
  reference: z3.string(),
1447
1447
  commitSha: z3.string(),
1448
- isKnownBranch: z3.boolean().nullable()
1449
- }),
1448
+ isKnownBranch: z3.boolean().nullish().default(true)
1449
+ }).nullable().transform(
1450
+ (repo) => repo ?? {
1451
+ name: null,
1452
+ originalUrl: "",
1453
+ reference: "",
1454
+ commitSha: "",
1455
+ isKnownBranch: true
1456
+ }
1457
+ ),
1450
1458
  vulnerabilityReport: z3.object({
1451
1459
  id: z3.string().uuid(),
1452
1460
  vendor: z3.nativeEnum(Vulnerability_Report_Vendor_Enum),
@@ -1937,7 +1945,15 @@ var init_types = __esm({
1937
1945
  reference: z7.string(),
1938
1946
  commitSha: z7.string(),
1939
1947
  isKnownBranch: z7.boolean().nullish().default(true)
1940
- }),
1948
+ }).nullable().transform(
1949
+ (repo) => repo ?? {
1950
+ name: null,
1951
+ originalUrl: "",
1952
+ reference: "",
1953
+ commitSha: "",
1954
+ isKnownBranch: true
1955
+ }
1956
+ ),
1941
1957
  vulnerabilityReportIssuesFixedCount: z7.object({
1942
1958
  vulnerabilityReportIssues_aggregate: z7.object({
1943
1959
  aggregate: z7.object({ count: z7.number() })
@@ -1958,7 +1974,7 @@ var init_types = __esm({
1958
1974
  file: z7.object({
1959
1975
  id: z7.string().uuid(),
1960
1976
  path: z7.string()
1961
- }),
1977
+ }).nullable(),
1962
1978
  pending: z7.object({
1963
1979
  aggregate: z7.object({
1964
1980
  count: z7.number()
@@ -2159,7 +2175,13 @@ var init_types = __esm({
2159
2175
  originalUrl: z7.string(),
2160
2176
  reference: z7.string(),
2161
2177
  name: z7.string()
2162
- }),
2178
+ }).nullable().transform(
2179
+ (repo) => repo ?? {
2180
+ originalUrl: "",
2181
+ reference: "",
2182
+ name: ""
2183
+ }
2184
+ ),
2163
2185
  createdByUser: z7.object({
2164
2186
  email: z7.string()
2165
2187
  }).nullable(),
@@ -2700,7 +2722,7 @@ function parseCommitLine(line) {
2700
2722
  message: parts[6]
2701
2723
  };
2702
2724
  }
2703
- var PrepareGitBlameMessageZ, PrepareGitBlameResponseMessageZ, CommitMetadataZ, LineToCommitMapZ, CommitMetadataMapZ, BlameInfoZ, LineRangeZ, PrContextZ, PrepareCommitBlameMessageZ, BlameLineInfoZ, FileBlameDataZ, ChunkFetchResultZ, FileBlameResponseEntryZ, CommitBlameDataZ, CommitInfoZ, GitIdentityZ, COMMIT_LOG_FORMAT, CommitDataZ, PrDiffDataZ, PrStatsZ, CommitsManifestZ, BlameLineEntryZ, BlameLinesDataZ, PrepareCommitBlameResponseMessageZ;
2725
+ var PrepareGitBlameMessageZ, PrepareGitBlameResponseMessageZ, CommitMetadataZ, LineToCommitMapZ, CommitMetadataMapZ, BlameInfoZ, LineRangeZ, PrContextZ, PrepareCommitBlameMessageZ, BlameLineInfoZ, FileBlameDataZ, ChunkFetchResultZ, FileBlameResponseEntryZ, CommitBlameDataZ, CommitInfoZ, GitIdentityZ, COMMIT_LOG_FORMAT, CommitDataZ, PrDiffDataZ, PrStatsZ, CommitsManifestZ, BlameLineEntryZ, BlameLinesDataZ, PrepareCommitBlameResponseMessageZ, VulnerabilityAttributionMessageZ;
2704
2726
  var init_gitBlameTypes = __esm({
2705
2727
  "src/utils/blame/gitBlameTypes.ts"() {
2706
2728
  "use strict";
@@ -2875,6 +2897,11 @@ var init_gitBlameTypes = __esm({
2875
2897
  /** User email passed through from request for single commit blame attribution analysis trigger. */
2876
2898
  userEmail: z19.string().optional()
2877
2899
  });
2900
+ VulnerabilityAttributionMessageZ = z19.object({
2901
+ fixReportId: z19.string().uuid(),
2902
+ vulnerabilityAttributionRequestId: z19.string().uuid(),
2903
+ userEmail: z19.string()
2904
+ });
2878
2905
  }
2879
2906
  });
2880
2907
 
@@ -7323,6 +7350,9 @@ async function sanitizeDataWithCounts(obj) {
7323
7350
  return { sanitizedData, counts };
7324
7351
  }
7325
7352
 
7353
+ // src/utils/with-timeout.ts
7354
+ import { setTimeout as delay } from "timers/promises";
7355
+
7326
7356
  // src/features/analysis/upload-file.ts
7327
7357
  import Debug7 from "debug";
7328
7358
  import fetch3, { File, fileFrom, FormData } from "node-fetch";