mobbdev 0.0.189 → 0.0.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +11 -11
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1230,7 +1230,7 @@ var GetProjectMembersDataZ = z3.object({
1230
1230
  )
1231
1231
  })
1232
1232
  });
1233
- var RepoArgs = z3.object({
1233
+ var RepoArgsZ = z3.object({
1234
1234
  originalUrl: z3.string().url(),
1235
1235
  branch: z3.string(),
1236
1236
  commitSha: z3.string()
@@ -1718,25 +1718,25 @@ var getCommitDescription = ({
1718
1718
  guidances,
1719
1719
  fixUrl
1720
1720
  }) => {
1721
- const parseIssueTypeRes = z6.nativeEnum(IssueType_Enum).safeParse(issueType);
1722
- if (!parseIssueTypeRes.success) {
1723
- return "";
1724
- }
1725
- const staticData = fixDetailsData[parseIssueTypeRes.data];
1726
- if (!staticData) {
1727
- return "";
1728
- }
1729
1721
  const issueTypeString = getIssueTypeFriendlyString(issueType);
1730
1722
  let description = `This change fixes a **${severity} severity** (${severityToEmoji[severity]}) **${issueTypeString}** issue reported by **${capitalizeFirstLetter(
1731
1723
  vendor
1732
1724
  )}**.
1733
1725
 
1734
- ## Issue description
1726
+ `;
1727
+ const parseIssueTypeRes = z6.nativeEnum(IssueType_Enum).safeParse(issueType);
1728
+ if (issueType && parseIssueTypeRes.success) {
1729
+ const staticData = fixDetailsData[parseIssueTypeRes.data];
1730
+ if (staticData) {
1731
+ description += `## Issue description
1735
1732
  ${staticData.issueDescription}
1736
1733
 
1737
1734
  ## Fix instructions
1738
1735
  ${staticData.fixInstructions}
1739
-
1736
+ `;
1737
+ }
1738
+ }
1739
+ description += `
1740
1740
  ${guidances.map(({ guidance }) => `## Additional actions required
1741
1741
  ${guidance}
1742
1742
  `).join("")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.js",