undocs 0.2.10 → 0.2.12

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.
@@ -34,9 +34,19 @@ export default (driverOpts) => {
34
34
  automdConfig = await loadConfig(docsConfig.dir, docsConfig.automd)
35
35
  }
36
36
  const res = await transform(val, automdConfig)
37
- if (res.hasChanged) {
37
+ if (res.hasChanged && !res.hasIssues) {
38
38
  _fs.setItem(key, res.contents).catch(console.error)
39
39
  }
40
+ if (res.hasIssues) {
41
+ console.warn(
42
+ `[undocs] [automd] Issues for updating \`${key}\`:`,
43
+ res.updates
44
+ .flatMap((u) => u.result.issues)
45
+ .map((i) => `\n - ${i}`)
46
+ .join('\n'),
47
+ )
48
+ return val // Fallback to original content
49
+ }
40
50
  return res.contents
41
51
  } else if (key.endsWith('.md$')) {
42
52
  return { mtime: new Date() }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undocs",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "repository": "unjs/undocs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@headlessui/vue": "^1.7.19",
34
34
  "@nuxt/content": "^2.12.0",
35
- "@nuxt/ui": "^2.14.0",
35
+ "@nuxt/ui": "~2.13.0",
36
36
  "@nuxt/ui-pro": "^1.0.0",
37
37
  "@nuxtjs/fontaine": "^0.4.1",
38
38
  "@nuxtjs/google-fonts": "^3.1.3",