@groma/scanner-go 0.2.2 → 0.2.3

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.
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groma/scanner-go",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Go project evidence through Go language tooling.",
5
5
  "private": false,
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -548,7 +548,7 @@ function run(command, args, root, { env = process.env, input } = {}) {
548
548
  maxBuffer: 64 * 1024 * 1024
549
549
  }, (error, stdout, stderr) => {
550
550
  if (error)
551
- reject(new Error(stderr.trim() || stdout.trim() || error.message));
551
+ reject(new Error(stderr.trim() || stdout.trim() || error.message, { cause: error }));
552
552
  else
553
553
  resolve(stdout);
554
554
  });