grepleaks 1.0.3 β†’ 1.0.4

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/bin/grepleaks.js +12 -12
  2. package/package.json +1 -1
package/bin/grepleaks.js CHANGED
@@ -9,7 +9,7 @@ const readline = require('readline');
9
9
  const { exec } = require('child_process');
10
10
  const archiver = require('archiver');
11
11
 
12
- const VERSION = '1.0.3';
12
+ const VERSION = '1.0.4';
13
13
  const API_URL = 'https://grepleaks.com/api/v1';
14
14
  const WEB_URL = 'https://grepleaks.com';
15
15
  const CONFIG_DIR = path.join(os.homedir(), '.grepleaks');
@@ -564,29 +564,30 @@ function generateMarkdownReport(result) {
564
564
  title = title.substring(0, 77) + '...';
565
565
  }
566
566
 
567
- md += `<details>\n<summary><strong>${title}</strong></summary>\n\n`;
567
+ md += `#### ${i + 1}. ${title}\n\n`;
568
568
 
569
569
  // Location
570
570
  if (v.location) {
571
- md += `πŸ“ **${lang === 'fr' ? 'Emplacement' : 'Location'}:** \`${v.location}\`\n\n`;
571
+ md += `- **${lang === 'fr' ? 'Fichier' : 'File'}:** \`${v.location}\`\n`;
572
572
  }
573
573
 
574
574
  // CVE
575
575
  if (v.cve) {
576
- md += `πŸ”– **CVE:** [${v.cve}](https://nvd.nist.gov/vuln/detail/${v.cve})\n\n`;
576
+ md += `- **CVE:** [${v.cve}](https://nvd.nist.gov/vuln/detail/${v.cve})\n`;
577
577
  }
578
578
 
579
579
  // Package info
580
580
  if (v.package_name) {
581
- md += `πŸ“¦ **Package:** \`${v.package_name}\``;
581
+ md += `- **Package:** \`${v.package_name}\``;
582
582
  if (v.current_version) md += ` v${v.current_version}`;
583
583
  md += `\n`;
584
584
  if (v.fixed_version) {
585
- md += `βœ… **${lang === 'fr' ? 'Correction' : 'Fix'}:** ${lang === 'fr' ? 'Mettre Γ  jour vers' : 'Upgrade to'} v${v.fixed_version}\n`;
585
+ md += `- **${lang === 'fr' ? 'Correction' : 'Fix'}:** ${lang === 'fr' ? 'Mettre Γ  jour vers' : 'Upgrade to'} v${v.fixed_version}\n`;
586
586
  }
587
- md += `\n`;
588
587
  }
589
588
 
589
+ md += `\n`;
590
+
590
591
  // Code snippet
591
592
  if (v.code_snippet) {
592
593
  md += `**${lang === 'fr' ? 'Code concernΓ©' : 'Affected code'}:**\n\`\`\`\n${v.code_snippet}\n\`\`\`\n\n`;
@@ -595,22 +596,21 @@ function generateMarkdownReport(result) {
595
596
  // Recommendation
596
597
  const rec = v.llm_recommendation || v.recommendation;
597
598
  if (rec) {
598
- md += `πŸ’‘ **${t('reportRecommendation')}**\n\n${rec}\n\n`;
599
+ md += `**${t('reportRecommendation')}:** ${rec}\n\n`;
599
600
  }
600
601
 
601
602
  // Reference
602
603
  if (v.reference_url) {
603
- md += `πŸ”— [${lang === 'fr' ? 'Plus d\'informations' : 'Learn more'}](${v.reference_url})\n\n`;
604
+ md += `[${lang === 'fr' ? 'Plus d\'informations' : 'Learn more'}](${v.reference_url})\n\n`;
604
605
  }
605
606
 
606
- md += `</details>\n\n`;
607
+ md += `---\n\n`;
607
608
  }
608
609
  }
609
610
  }
610
611
 
611
612
  // Footer
612
- md += `---\n\n`;
613
- md += `<sub>${t('reportGeneratedBy')} [grepleaks](https://grepleaks.com) ${scoreEmoji}</sub>\n`;
613
+ md += `*${t('reportGeneratedBy')} [grepleaks](https://grepleaks.com)*\n`;
614
614
 
615
615
  return md;
616
616
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepleaks",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Security scanner for your code - detect vulnerabilities, secrets, and misconfigurations",
5
5
  "main": "bin/grepleaks.js",
6
6
  "bin": {