@xleddyl/nuxt-cms 0.1.51 → 0.1.52

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xleddyl/nuxt-cms",
3
3
  "configKey": "cms",
4
- "version": "0.1.51",
4
+ "version": "0.1.52",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -904,7 +904,7 @@ async function loadCmsConfig(nuxt, resolver, configPathOption, i18n, logger) {
904
904
  `const pageRoutes = ${JSON.stringify(routesByEntry, null, 3)}`,
905
905
  ``,
906
906
  `for (const [name, routes] of Object.entries(pageRoutes)) {`,
907
- ` const entry = (config as Record<string, { pages?: unknown }>)[name]`,
907
+ ` const entry = Object(config)[name]`,
908
908
  ` if (entry) entry.pages = routes`,
909
909
  `}`,
910
910
  ``,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/nuxt-cms",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "Lightweight CMS that ships with your Nuxt app: runs on the Nitro server, content types defined in code, /cms admin panel, GraphQL API, SQLite or Postgres. No external CMS needed!",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",