@vaultcompass/vault-guard 1.4.0 → 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.
package/dist/cli-entry.js CHANGED
@@ -8,6 +8,12 @@ if (nodeMajor < 22) {
8
8
  'Some features may not work correctly.');
9
9
  }
10
10
  const program = (0, cli_1.buildCli)();
11
+ // npx (and some wrappers) forward a leading `--` into argv. Commander treats
12
+ // that as end-of-options, so `--format sarif` is ignored and text banners
13
+ // pollute machine-readable stdout. Drop a single leading separator.
14
+ if (process.argv[2] === '--') {
15
+ process.argv.splice(2, 1);
16
+ }
11
17
  // Parse arguments and execute command
12
18
  program.parseAsync().catch((error) => {
13
19
  // Handle errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaultcompass/vault-guard",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Block secrets at commit and in CI. Pre-commit hooks, SARIF output, and fast staged-file scans for AI-native workflows.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "dependencies": {
37
37
  "chalk": "^4.1.2",
38
38
  "commander": "^12.0.0",
39
- "@vaultcompass/vault-guard-telemetry": "1.4.0",
40
- "@vaultcompass/vault-guard-core": "1.4.0"
39
+ "@vaultcompass/vault-guard-core": "1.4.1",
40
+ "@vaultcompass/vault-guard-telemetry": "1.4.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/jest": "^30.0.0",