nuxt-link-checker 2.0.1 → 2.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.
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "linkChecker",
8
- "version": "2.0.1"
8
+ "version": "2.0.2"
9
9
  }
package/dist/module.mjs CHANGED
@@ -525,9 +525,7 @@ function setupDevToolsUI(options, resolve, nuxt = useNuxt()) {
525
525
  ws.send("nuxt-link-checker:reset");
526
526
  },
527
527
  async applyLinkFixes(filepath, original, replacement) {
528
- filepath = resolve(filepath);
529
- if (!filepath.startsWith(nuxt.options.rootDir))
530
- return;
528
+ filepath = resolve(nuxt.options.rootDir, filepath);
531
529
  const contents = await readFile(filepath, "utf8");
532
530
  const diff = generateLinkDiff(contents, original, replacement);
533
531
  await writeFile(filepath, diff.code, "utf8");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-link-checker",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "packageManager": "pnpm@8.6.11",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",