vde-open 0.1.7 → 0.1.9

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.
@@ -4,8 +4,8 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>vde-open</title>
7
- <script type="module" crossorigin src="/assets/index-D_AZ0n--.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-BfusO5QE.css">
7
+ <script type="module" crossorigin src="/assets/index-DIyamSNh.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-Cnw68UWf.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -1,5 +1,5 @@
1
- import { a as ParseLimitError, o as analyzeDocument } from "../rendering-rules-DiE2jI7I.js";
2
- import { n as scanReferences, t as renderDocument } from "../render-BJnuEfHt.js";
1
+ import { d as analyzeDocument, u as ParseLimitError } from "../html-static-BDV6MgA7.js";
2
+ import { n as scanReferences, t as renderDocument } from "../render-BX3arVZj.js";
3
3
  import { n as measureHeap, t as collectGarbage } from "../heap-C3qHm7SE.js";
4
4
  import { parentPort } from "node:worker_threads";
5
5
  //#region src/workers/parse-worker.ts
@@ -15,9 +15,10 @@ async function run(request) {
15
15
  }
16
16
  if (request.op === "analyze") return analyzeDocument(request.text, request.format);
17
17
  if (request.op === "scan") return scanReferences(request.kind, request.text);
18
- if (request.op === "print") {
19
- printModule ??= import("../print-CR5-GDjQ.js");
20
- return (await printModule).renderPrintDocument(request.input);
18
+ if (request.op === "print" || request.op === "printHtml") {
19
+ printModule ??= import("../print-Cfa1Ytrj.js");
20
+ const printer = await printModule;
21
+ return request.op === "print" ? printer.renderPrintDocument(request.input) : printer.renderHtmlPrintDocument(request.input);
21
22
  }
22
23
  return renderDocument(request.input);
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vde-open",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "A local document viewer shared by agents and people: open Markdown and HTML documents, search and read them from the CLI, and ask the person questions.",
5
5
  "keywords": [
6
6
  "agent",