mobbdev 1.0.59 → 1.0.60

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 +7 -7
  2. package/package.json +2 -1
package/dist/index.mjs CHANGED
@@ -414,7 +414,7 @@ var GetVulByNodesMetadataDocument = `
414
414
  path
415
415
  startLine
416
416
  vulnerabilityReportIssue {
417
- parsedIssueType
417
+ safeIssueType
418
418
  fixId
419
419
  category
420
420
  vulnerabilityReportIssueTags {
@@ -450,7 +450,7 @@ var GetVulByNodesMetadataDocument = `
450
450
  where: {fixId: {_is_null: true}, _or: [{category: {_eq: "Irrelevant"}}, {category: {_eq: "FalsePositive"}}]}
451
451
  ) {
452
452
  id
453
- parsedIssueType
453
+ safeIssueType
454
454
  fixId
455
455
  category
456
456
  vulnerabilityReportIssueTags {
@@ -7332,7 +7332,7 @@ async function postIssueComment(params) {
7332
7332
  vulnerabilityReportIssue: {
7333
7333
  vulnerabilityReportIssueTags,
7334
7334
  category,
7335
- parsedIssueType
7335
+ safeIssueType
7336
7336
  },
7337
7337
  vulnerabilityReportIssueId
7338
7338
  } = vulnerabilityReportIssueCodeNode;
@@ -7348,7 +7348,7 @@ Refresh the page in order to see the changes.`,
7348
7348
  const commentId = commentRes.data.id;
7349
7349
  const commentBody = buildIssueCommentBody({
7350
7350
  issueId: vulnerabilityReportIssueId,
7351
- issueType: parsedIssueType,
7351
+ issueType: safeIssueType,
7352
7352
  irrelevantIssueWithTags,
7353
7353
  commentId,
7354
7354
  commentUrl: commentRes.data.html_url,
@@ -7617,7 +7617,7 @@ async function addFixCommentsForPr({
7617
7617
  startLine: vulnerabilityReportIssueCodeNode.startLine,
7618
7618
  vulnerabilityReportIssue: {
7619
7619
  fixId: "",
7620
- parsedIssueType: vulnerabilityReportIssue.parsedIssueType,
7620
+ safeIssueType: vulnerabilityReportIssue.safeIssueType,
7621
7621
  vulnerabilityReportIssueTags: vulnerabilityReportIssue.vulnerabilityReportIssueTags,
7622
7622
  category: vulnerabilityReportIssue.category
7623
7623
  },
@@ -7841,7 +7841,7 @@ var VulnerabilityReportIssueCodeNodeZ = z27.object({
7841
7841
  vulnerabilityReportIssue: z27.object({
7842
7842
  fixId: z27.string(),
7843
7843
  category: ValidCategoriesZ,
7844
- parsedIssueType: z27.string(),
7844
+ safeIssueType: z27.string(),
7845
7845
  vulnerabilityReportIssueTags: z27.array(
7846
7846
  z27.object({
7847
7847
  tag: z27.nativeEnum(Vulnerability_Report_Issue_Tag_Enum)
@@ -7855,7 +7855,7 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z27.object({
7855
7855
  id: z27.string(),
7856
7856
  fixId: z27.string().nullable(),
7857
7857
  category: ValidCategoriesZ,
7858
- parsedIssueType: z27.string(),
7858
+ safeIssueType: z27.string(),
7859
7859
  codeNodes: z27.array(
7860
7860
  z27.object({
7861
7861
  path: z27.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
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",
@@ -16,6 +16,7 @@
16
16
  "test:github": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run github.test",
17
17
  "test:coverage": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --coverage",
18
18
  "test:watch": "TOKEN=$(../../scripts/login_auth0.sh) vitest",
19
+ "test:integration": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest watch integration.test",
19
20
  "lint": "eslint --cache --max-warnings 0 --ignore-path .eslintignore --ext .ts,.tsx,.jsx .",
20
21
  "lint:fix": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx .",
21
22
  "lint:fix:files": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx",