@sun-asterisk/sunlint 1.3.13 → 1.3.14

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.
@@ -376,6 +376,26 @@ class OutputService {
376
376
  if (uploadResult.statusCode) {
377
377
  console.log(chalk.green(`📡 HTTP Status: ${uploadResult.statusCode}`));
378
378
  }
379
+ if (uploadResult.response) {
380
+ try {
381
+ const responseData = JSON.parse(uploadResult.response);
382
+ if (responseData.message) {
383
+ console.log(chalk.blue(`💬 Server response: ${responseData.message}`));
384
+ }
385
+ if (responseData.report_id) {
386
+ console.log(chalk.blue(`📝 Report ID: ${responseData.report_id}`));
387
+ }
388
+ if (responseData.repository) {
389
+ console.log(chalk.blue(`🏠 Repository: ${responseData.repository}`));
390
+ }
391
+ if (responseData.actor) {
392
+ console.log(chalk.blue(`👤 Submitted by: ${responseData.actor}`));
393
+ }
394
+ } catch (parseError) {
395
+ // If response is not JSON, show raw response
396
+ console.log(chalk.gray(`📄 Response: ${uploadResult.response.substring(0, 200)}...`));
397
+ }
398
+ }
379
399
  }
380
400
  } else {
381
401
  console.warn(chalk.yellow(`⚠️ Failed to upload report: ${uploadResult.error}`));
@@ -144,7 +144,7 @@ class UploadService {
144
144
  }
145
145
 
146
146
  curlOptions.push(
147
- `--data-binary @"${filePath}"`,
147
+ `--data @"${filePath}"`,
148
148
  `"${apiUrl}"`
149
149
  );
150
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sun-asterisk/sunlint",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "description": "☀️ SunLint - Multi-language static analysis tool for code quality and security | Sun* Engineering Standards",
5
5
  "main": "cli.js",
6
6
  "bin": {