mobbdev 1.0.186 → 1.0.188
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/index.mjs +37 -12
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1766,6 +1766,7 @@ var IssueType_Enum = /* @__PURE__ */ ((IssueType_Enum2) => {
|
|
|
1766
1766
|
IssueType_Enum2["Pt"] = "PT";
|
|
1767
1767
|
IssueType_Enum2["RaceConditionFormatFlaw"] = "RACE_CONDITION_FORMAT_FLAW";
|
|
1768
1768
|
IssueType_Enum2["Redos"] = "REDOS";
|
|
1769
|
+
IssueType_Enum2["RedundantNilErrorCheck"] = "REDUNDANT_NIL_ERROR_CHECK";
|
|
1769
1770
|
IssueType_Enum2["RegexInjection"] = "REGEX_INJECTION";
|
|
1770
1771
|
IssueType_Enum2["RegexMissingTimeout"] = "REGEX_MISSING_TIMEOUT";
|
|
1771
1772
|
IssueType_Enum2["RequestParametersBoundViaInput"] = "REQUEST_PARAMETERS_BOUND_VIA_INPUT";
|
|
@@ -2918,7 +2919,8 @@ var fixDetailsData = {
|
|
|
2918
2919
|
["SPRING_DEFAULT_PERMIT" /* SpringDefaultPermit */]: void 0,
|
|
2919
2920
|
["RETURN_IN_INIT" /* ReturnInInit */]: void 0,
|
|
2920
2921
|
["ACTION_NOT_PINNED_TO_COMMIT_SHA" /* ActionNotPinnedToCommitSha */]: void 0,
|
|
2921
|
-
["DJANGO_BLANK_FIELD_NEEDS_NULL_OR_DEFAULT" /* DjangoBlankFieldNeedsNullOrDefault */]: void 0
|
|
2922
|
+
["DJANGO_BLANK_FIELD_NEEDS_NULL_OR_DEFAULT" /* DjangoBlankFieldNeedsNullOrDefault */]: void 0,
|
|
2923
|
+
["REDUNDANT_NIL_ERROR_CHECK" /* RedundantNilErrorCheck */]: void 0
|
|
2922
2924
|
};
|
|
2923
2925
|
|
|
2924
2926
|
// src/features/analysis/scm/shared/src/getIssueType.ts
|
|
@@ -3057,7 +3059,8 @@ var issueTypeMap = {
|
|
|
3057
3059
|
["SPRING_DEFAULT_PERMIT" /* SpringDefaultPermit */]: "Spring Default Permit",
|
|
3058
3060
|
["RETURN_IN_INIT" /* ReturnInInit */]: "Return in Init",
|
|
3059
3061
|
["ACTION_NOT_PINNED_TO_COMMIT_SHA" /* ActionNotPinnedToCommitSha */]: "Action Not Pinned to Commit Sha",
|
|
3060
|
-
["DJANGO_BLANK_FIELD_NEEDS_NULL_OR_DEFAULT" /* DjangoBlankFieldNeedsNullOrDefault */]: "Django Blank Field Needs Null or Default"
|
|
3062
|
+
["DJANGO_BLANK_FIELD_NEEDS_NULL_OR_DEFAULT" /* DjangoBlankFieldNeedsNullOrDefault */]: "Django Blank Field Needs Null or Default",
|
|
3063
|
+
["REDUNDANT_NIL_ERROR_CHECK" /* RedundantNilErrorCheck */]: "Redundant Nil Error Check"
|
|
3061
3064
|
};
|
|
3062
3065
|
var issueTypeZ = z.nativeEnum(IssueType_Enum);
|
|
3063
3066
|
var getIssueTypeFriendlyString = (issueType) => {
|
|
@@ -5412,9 +5415,7 @@ var VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.merge(
|
|
|
5412
5415
|
);
|
|
5413
5416
|
var VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.merge(
|
|
5414
5417
|
z11.object({
|
|
5415
|
-
codeFilePath: z11.string().nullable()
|
|
5416
|
-
//TODO: REMOVE THIS once we flush out all the reports that don't have codeFilePath
|
|
5417
|
-
codeNodes: z11.array(z11.object({ path: z11.string() }))
|
|
5418
|
+
codeFilePath: z11.string().nullable()
|
|
5418
5419
|
})
|
|
5419
5420
|
);
|
|
5420
5421
|
var GetReportIssuesQueryZ = z11.object({
|
|
@@ -7622,14 +7623,38 @@ function getOctoKit(options) {
|
|
|
7622
7623
|
//to debug the performance of these API calls.
|
|
7623
7624
|
log: GITHUB_API_TOKEN ? console : void 0,
|
|
7624
7625
|
request: {
|
|
7625
|
-
fetch: getFetch(baseUrl)
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
enabled: false
|
|
7626
|
+
fetch: getFetch(baseUrl),
|
|
7627
|
+
timeout: 1e4
|
|
7628
|
+
// 10 second timeout
|
|
7629
7629
|
},
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7630
|
+
retry: options?.isEnableRetries ? {
|
|
7631
|
+
doNotRetry: [400, 401, 403, 404, 422],
|
|
7632
|
+
// Don't retry on these status codes
|
|
7633
|
+
retries: 3
|
|
7634
|
+
// Retry up to 3 times
|
|
7635
|
+
} : { enabled: false },
|
|
7636
|
+
throttle: options?.isEnableRetries ? {
|
|
7637
|
+
onRateLimit: (retryAfter, options2, octokit, retryCount) => {
|
|
7638
|
+
octokit.log.warn(
|
|
7639
|
+
`Request quota exhausted for request ${options2.method} ${options2.url}`
|
|
7640
|
+
);
|
|
7641
|
+
if (retryCount === 0) {
|
|
7642
|
+
octokit.log.info(`Retrying after ${retryAfter} seconds!`);
|
|
7643
|
+
return true;
|
|
7644
|
+
}
|
|
7645
|
+
return false;
|
|
7646
|
+
},
|
|
7647
|
+
onSecondaryRateLimit: (retryAfter, options2, octokit, retryCount) => {
|
|
7648
|
+
octokit.log.warn(
|
|
7649
|
+
`SecondaryRateLimit detected for request ${options2.method} ${options2.url}`
|
|
7650
|
+
);
|
|
7651
|
+
if (retryCount === 0) {
|
|
7652
|
+
octokit.log.info(`Retrying after ${retryAfter} seconds!`);
|
|
7653
|
+
return true;
|
|
7654
|
+
}
|
|
7655
|
+
return false;
|
|
7656
|
+
}
|
|
7657
|
+
} : { enabled: false }
|
|
7633
7658
|
});
|
|
7634
7659
|
}
|
|
7635
7660
|
function isGithubActionActionToken(token) {
|