@eventcatalog/sdk 2.6.6 → 2.6.7

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.
@@ -222,8 +222,8 @@ var getResourcePath = async (catalogDir, id, version) => {
222
222
  directory: dirname2(file.replace(catalogDir, ""))
223
223
  };
224
224
  };
225
- var toResource = async (catalogDir, file) => {
226
- const { data, content } = matter2.read(file);
225
+ var toResource = async (catalogDir, rawContents) => {
226
+ const { data, content } = matter2(rawContents);
227
227
  return {
228
228
  ...data,
229
229
  markdown: content.trim()