mdream 1.0.2 → 1.0.4

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,6 +1,4 @@
1
1
  import { HtmlToMarkdownOptions, MdreamNapiResult } from "../napi/index.js";
2
-
3
- //#region src/browser.d.ts
4
2
  declare function htmlToMarkdown(html: string, options?: HtmlToMarkdownOptions): Promise<MdreamNapiResult>;
5
3
  declare function createMarkdownStream(options?: HtmlToMarkdownOptions): Promise<MarkdownStream>;
6
4
  declare class MarkdownStream {
@@ -10,5 +8,4 @@ declare class MarkdownStream {
10
8
  finish(): string;
11
9
  }
12
10
  declare function streamHtmlToMarkdown(htmlStream: ReadableStream<Uint8Array | string> | null, options?: HtmlToMarkdownOptions): AsyncIterable<string>;
13
- //#endregion
14
11
  export { MarkdownStream, createMarkdownStream, htmlToMarkdown, streamHtmlToMarkdown };
package/dist/browser.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import init, { MarkdownStream as MarkdownStream$1, htmlToMarkdownResult } from "../wasm/mdream_edge.js";
2
- //#region src/browser.ts
3
2
  let _initPromise;
4
3
  function ensureInit() {
5
4
  if (!_initPromise) _initPromise = init();
@@ -46,5 +45,4 @@ async function* streamHtmlToMarkdown(htmlStream, options) {
46
45
  reader.releaseLock();
47
46
  }
48
47
  }
49
- //#endregion
50
48
  export { MarkdownStream, createMarkdownStream, htmlToMarkdown, streamHtmlToMarkdown };
package/dist/edge.d.mts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { HtmlToMarkdownOptions } from "../napi/index.js";
2
-
3
- //#region src/edge.d.ts
4
2
  declare function htmlToMarkdown(html: string, options?: HtmlToMarkdownOptions): string;
5
3
  declare class MarkdownStream {
6
4
  private _inner;
@@ -9,5 +7,4 @@ declare class MarkdownStream {
9
7
  finish(): string;
10
8
  }
11
9
  declare function streamHtmlToMarkdown(htmlStream: ReadableStream<Uint8Array | string> | null, options?: HtmlToMarkdownOptions): AsyncIterable<string>;
12
- //#endregion
13
10
  export { MarkdownStream, htmlToMarkdown, streamHtmlToMarkdown };
package/dist/edge.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { MarkdownStream as MarkdownStream$1, htmlToMarkdownResult, initSync } from "../wasm/mdream_edge.js";
2
2
  import wasmModule from "../wasm/mdream_edge_bg.wasm";
3
- //#region src/edge.ts
4
3
  initSync({ module: wasmModule });
5
4
  function htmlToMarkdown(html, options) {
6
5
  return htmlToMarkdownResult(html, options || {}).markdown || "";
@@ -36,5 +35,4 @@ async function* streamHtmlToMarkdown(htmlStream, options) {
36
35
  reader.releaseLock();
37
36
  }
38
37
  }
39
- //#endregion
40
38
  export { MarkdownStream, htmlToMarkdown, streamHtmlToMarkdown };