@ship-safe/cli 1.0.1 → 1.0.2

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/dist/index.js +6 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -6873,7 +6873,12 @@ function collectFiles(rootDir, options) {
6873
6873
  ig.add(options.exclude);
6874
6874
  }
6875
6875
  function walk(dir) {
6876
- const entries = readdirSync(dir, { withFileTypes: true });
6876
+ let entries;
6877
+ try {
6878
+ entries = readdirSync(dir, { withFileTypes: true });
6879
+ } catch {
6880
+ return;
6881
+ }
6877
6882
  for (const entry of entries) {
6878
6883
  if (entry.isSymbolicLink()) continue;
6879
6884
  const fullPath = path2.join(dir, entry.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ship-safe/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Security scanner for AI-generated code — find vulnerabilities before you ship",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,8 +50,8 @@
50
50
  "@types/node": "^22",
51
51
  "tsup": "^8",
52
52
  "typescript": "^5.7",
53
- "@shipsafe/scanner": "0.1.0",
54
- "@shipsafe/shared": "0.1.0"
53
+ "@shipsafe/shared": "0.1.0",
54
+ "@shipsafe/scanner": "0.1.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsup",