@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.
package/dist/index.mjs CHANGED
@@ -218,8 +218,8 @@ var getResourcePath = async (catalogDir, id, version) => {
218
218
  directory: dirname2(file.replace(catalogDir, ""))
219
219
  };
220
220
  };
221
- var toResource = async (catalogDir, file) => {
222
- const { data, content } = matter2.read(file);
221
+ var toResource = async (catalogDir, rawContents) => {
222
+ const { data, content } = matter2(rawContents);
223
223
  return {
224
224
  ...data,
225
225
  markdown: content.trim()