nuxt-ai-ready 0.4.3 → 0.4.4

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
@@ -4,7 +4,7 @@
4
4
  "nuxt": ">=4.0.0"
5
5
  },
6
6
  "configKey": "aiReady",
7
- "version": "0.4.3",
7
+ "version": "0.4.4",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -227,7 +227,13 @@ async function crawlSitemapEntries(state, nuxt, nitro, entries) {
227
227
  });
228
228
  if (!res)
229
229
  continue;
230
- const parsed = JSON.parse(res);
230
+ let parsed;
231
+ try {
232
+ parsed = JSON.parse(res);
233
+ } catch (err) {
234
+ logger.debug(`Skipping ${route}: Response is not JSON (likely HTML instead of markdown conversion)`);
235
+ continue;
236
+ }
231
237
  await processMarkdownRoute(state, nuxt, route, parsed, lastmod);
232
238
  crawled++;
233
239
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-ai-ready",
3
3
  "type": "module",
4
- "version": "0.4.3",
4
+ "version": "0.4.4",
5
5
  "description": "Best practice AI & LLM discoverability for Nuxt sites.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",