grepleaks 1.3.8 → 1.4.1

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 +11 -8
  2. package/package.json +1 -1
package/bin/grepleaks.js CHANGED
@@ -142,7 +142,7 @@ async function sendScan(zipPath, apiKey) {
142
142
  const jobId = await submitScanJob(zipPath, apiKey);
143
143
 
144
144
  // Step 2: Poll for completion
145
- logInfo('Processing with AI analysis...');
145
+ logInfo('Processing with analysis...');
146
146
  const result = await pollForCompletion(jobId, apiKey);
147
147
 
148
148
  return result;
@@ -155,6 +155,9 @@ function submitScanJob(zipPath, apiKey) {
155
155
  const fileContent = fs.readFileSync(zipPath);
156
156
 
157
157
  const bodyParts = [
158
+ `--${boundary}\r\n`,
159
+ `Content-Disposition: form-data; name="source"\r\n\r\n`,
160
+ `terminal\r\n`,
158
161
  `--${boundary}\r\n`,
159
162
  `Content-Disposition: form-data; name="file"; filename="code.zip"\r\n`,
160
163
  `Content-Type: application/zip\r\n\r\n`,
@@ -366,7 +369,7 @@ When do you want to run security scans?
366
369
  logSuccess('Pre-commit and pre-push hooks installed');
367
370
  break;
368
371
  case '4':
369
- logInfo('No hooks installed. Run "npx grepleaks scan" manually.');
372
+ logInfo('No hooks installed. Run "grepleaks scan" manually.');
370
373
  break;
371
374
  default:
372
375
  logError('Invalid choice');
@@ -395,7 +398,7 @@ When do you want to run security scans?
395
398
  ${colors.green}${colors.bold}Setup complete!${colors.reset}
396
399
 
397
400
  Run a manual scan anytime with:
398
- ${colors.cyan}npx grepleaks scan${colors.reset}
401
+ ${colors.cyan}grepleaks scan${colors.reset}
399
402
  `);
400
403
  }
401
404
 
@@ -405,7 +408,7 @@ async function scan(apiKey) {
405
408
  apiKey = apiKey || config.apiKey || process.env.GREPLEAKS_API_KEY;
406
409
 
407
410
  if (!apiKey) {
408
- logError('No API key provided. Run "npx grepleaks init" or use --api-key');
411
+ logError('No API key provided. Run "grepleaks init" or use --api-key');
409
412
  process.exit(1);
410
413
  }
411
414
 
@@ -479,7 +482,7 @@ function help() {
479
482
  console.log(`
480
483
  ${colors.cyan}${colors.bold}Grepleaks CLI${colors.reset}
481
484
 
482
- Usage: npx grepleaks <command> [options]
485
+ Usage: grepleaks <command> [options]
483
486
 
484
487
  Commands:
485
488
  ${colors.cyan}init${colors.reset} Setup grepleaks in your project
@@ -490,9 +493,9 @@ Options:
490
493
  ${colors.cyan}--api-key${colors.reset} Your Grepleaks API key
491
494
 
492
495
  Examples:
493
- npx grepleaks init
494
- npx grepleaks scan
495
- npx grepleaks scan --api-key grpl_xxx
496
+ grepleaks init
497
+ grepleaks scan
498
+ grepleaks scan --api-key grpl_xxx
496
499
 
497
500
  Get your API key at: ${colors.cyan}${API_URL}${colors.reset}
498
501
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepleaks",
3
- "version": "1.3.8",
3
+ "version": "1.4.1",
4
4
  "description": "Security scanner for your code - detect vulnerabilities, secrets, and misconfigurations",
5
5
  "main": "bin/grepleaks.js",
6
6
  "bin": {