@exploitlens/verify 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
+ import { realpathSync } from "node:fs";
4
5
  import { fileURLToPath as fileURLToPath2 } from "node:url";
5
6
 
6
7
  // ../verifier/src/safe-read.ts
@@ -1963,7 +1964,14 @@ ${USAGE}`);
1963
1964
  }
1964
1965
  return report.ok ? 0 : 1;
1965
1966
  }
1966
- var isDirectRun = process.argv[1] !== void 0 && fileURLToPath2(import.meta.url) === process.argv[1];
1967
+ var isDirectRun = (() => {
1968
+ if (process.argv[1] === void 0) return false;
1969
+ try {
1970
+ return realpathSync(process.argv[1]) === fileURLToPath2(import.meta.url);
1971
+ } catch {
1972
+ return false;
1973
+ }
1974
+ })();
1967
1975
  if (isDirectRun) {
1968
1976
  run(process.argv.slice(2)).then(
1969
1977
  (code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exploitlens/verify",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Verify an ExploitLens Fix Receipt offline. Re-hashes every file and re-derives the verdict from the evidence. Reads your files, runs nothing.",
5
5
  "keywords": [
6
6
  "ethereum",