From bebd6320b70fca79c1a1cbdaaaea4f87c92f87fd Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sun, 28 Jan 2024 05:56:51 +0000
Subject: [PATCH] chore(deps-dev): bump tsx from 4.6.2 to 4.7.0 (#743)

---
 quartz/plugins/vfile.ts |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/quartz/plugins/vfile.ts b/quartz/plugins/vfile.ts
index 9df3192..5be2105 100644
--- a/quartz/plugins/vfile.ts
+++ b/quartz/plugins/vfile.ts
@@ -1,5 +1,12 @@
-import { Node } from 'hast'
-import { Data, VFile } from 'vfile/lib'
+import { Node, Parent } from "hast"
+import { Data, VFile } from "vfile"
 
 export type QuartzPluginData = Data
-export type ProcessedContent = [Node<QuartzPluginData>, VFile]
+export type ProcessedContent = [Node, VFile]
+
+export function defaultProcessedContent(vfileData: Partial<QuartzPluginData>): ProcessedContent {
+  const root: Parent = { type: "root", children: [] }
+  const vfile = new VFile("")
+  vfile.data = vfileData
+  return [root, vfile]
+}

--
Gitblit v1.10.0