ancient-fences 0.3.0 → 0.3.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/package.json +1 -1
  2. package/src/walk.mjs +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ancient-fences",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Finds the code you wrote because of someone else's bug, and checks whether that bug is still there.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/walk.mjs CHANGED
@@ -78,11 +78,15 @@ export async function* walkFiles(root, { includeGenerated = false, skipped = []
78
78
  continue;
79
79
  }
80
80
  const generated = looksGenerated(e.name, text);
81
+ // One spelling of a path, whatever the operating system uses. A report
82
+ // that says app\\pwa\\lib on one machine and app/pwa/lib on another is
83
+ // the same report, and code that matches on "/" only works on one of them.
84
+ const path = relative(root, full).replace(/\\/g, '/');
81
85
  if (generated && !includeGenerated) {
82
- skipped.push({ path: relative(root, full), why: generated });
86
+ skipped.push({ path, why: generated });
83
87
  continue;
84
88
  }
85
- yield { path: relative(root, full), text };
89
+ yield { path, text };
86
90
  }
87
91
  }
88
92
  }