mktcms 0.3.1 → 0.3.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mktcms",
3
3
  "configKey": "mktcms",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -8,8 +8,9 @@ const querySchema = z.object({
8
8
  path: z.string().min(1)
9
9
  });
10
10
  function findFrontmatterSchema(filePath, schemas) {
11
+ const filePathWithSlashesInsteadOfColons = filePath.replace(/:/g, "/");
11
12
  for (const pattern in schemas) {
12
- if (minimatch(filePath, pattern)) {
13
+ if (minimatch(filePathWithSlashesInsteadOfColons, pattern)) {
13
14
  return schemas[pattern];
14
15
  }
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mktcms",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Simple CMS module for Nuxt",
5
5
  "repository": "mktcode/mktcms",
6
6
  "license": "MIT",