extract-from-sitemap 0.0.7 → 0.0.8

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/cli.js +1 -3
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -537,9 +537,7 @@ function generateCombinedLlmsTxt(allSources) {
537
537
  const description = file.description ? `: ${file.description}` : "";
538
538
 
539
539
  // If keepOriginalUrls is true, link to the original URL, otherwise link to the local file
540
- const link = source.keepOriginalUrls
541
- ? file.originalUrl
542
- : path.replace(".md", "");
540
+ const link = source.keepOriginalUrls ? file.originalUrl : path;
543
541
 
544
542
  combinedTxt += `- [${title}](${link}) (${file.tokens} tokens)${description}\n`;
545
543
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "extract-from-sitemap",
3
3
  "bin": "cli.js",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "main": "mod.js",
6
6
  "description": "A module and CLI that allows extracting all pages from a sitemap into markdown and a llms.txt, using Parallel.ai APIs.",
7
7
  "files": [