git-ward 0.1.5 → 0.1.7

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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "ward"
3
- version = "0.1.5"
3
+ version = "0.1.7"
4
4
  edition = "2021"
5
5
  authors = ["awixor"]
6
6
  description = "Local-First Git Guard for preventing secret leaks"
package/bin/ward.js CHANGED
@@ -22,7 +22,6 @@ const runArgs = [
22
22
 
23
23
  const child = spawn(command, runArgs, {
24
24
  stdio: "inherit",
25
- shell: true,
26
25
  });
27
26
 
28
27
  child.on("exit", (code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-ward",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Local-First Git Guard for preventing secret leaks",
5
5
  "bin": {
6
6
  "ward": "./bin/ward.js",
package/src/git.rs CHANGED
@@ -14,6 +14,9 @@ else
14
14
  # Fallback to local npx if global command not found
15
15
  if [ -f "node_modules/.bin/ward" ]; then
16
16
  ./node_modules/.bin/ward scan
17
+ # Check if npx is available and try running via npx
18
+ elif command -v npx >/dev/null 2>&1; then
19
+ npx -y git-ward scan
17
20
  else
18
21
  echo "Ward not found in path or node_modules. Skipping scan."
19
22
  fi