@mintlify/previewing 4.0.803 → 4.0.804

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.
@@ -1,7 +1,7 @@
1
+ import { parseFrontmatter } from '@mintlify/common';
1
2
  import crypto from 'crypto';
2
3
  import { promises as _promises } from 'fs';
3
4
  import fse from 'fs-extra';
4
- import matter from 'gray-matter';
5
5
  const { stat } = _promises;
6
6
  export const getFileExtension = (filename) => {
7
7
  return filename.substring(filename.lastIndexOf('.') + 1, filename.length) || filename;
@@ -20,7 +20,7 @@ export const readJsonFile = async (path) => {
20
20
  };
21
21
  export const shouldRegenerateNavForPage = async (filename, contentStr, frontmatterHashes) => {
22
22
  try {
23
- const { data: currentFrontmatter } = matter(contentStr);
23
+ const { attributes: currentFrontmatter } = parseFrontmatter(contentStr);
24
24
  const prevFrontmatterHash = frontmatterHashes.get(filename);
25
25
  const currentFrontmatterHash = crypto
26
26
  .createHash('md5')