html-to-markdown-wasm 2.5.6 → 2.6.2

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.
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmhtmlextraction_free: (a: number, b: number) => void;
5
+ export const __wbg_wasminlineimage_free: (a: number, b: number) => void;
6
+ export const __wbg_wasminlineimageconfig_free: (a: number, b: number) => void;
7
+ export const __wbg_wasminlineimagewarning_free: (a: number, b: number) => void;
8
+ export const convert: (a: number, b: number, c: number, d: number) => void;
9
+ export const convertWithInlineImages: (a: number, b: number, c: number, d: number, e: number) => void;
10
+ export const wasmhtmlextraction_inlineImages: (a: number, b: number) => void;
11
+ export const wasmhtmlextraction_markdown: (a: number, b: number) => void;
12
+ export const wasmhtmlextraction_warnings: (a: number, b: number) => void;
13
+ export const wasminlineimage_attributes: (a: number) => number;
14
+ export const wasminlineimage_data: (a: number) => number;
15
+ export const wasminlineimage_description: (a: number, b: number) => void;
16
+ export const wasminlineimage_dimensions: (a: number, b: number) => void;
17
+ export const wasminlineimage_filename: (a: number, b: number) => void;
18
+ export const wasminlineimage_format: (a: number, b: number) => void;
19
+ export const wasminlineimage_source: (a: number, b: number) => void;
20
+ export const wasminlineimageconfig_new: (a: number, b: number) => number;
21
+ export const wasminlineimageconfig_set_captureSvg: (a: number, b: number) => void;
22
+ export const wasminlineimageconfig_set_filenamePrefix: (a: number, b: number, c: number) => void;
23
+ export const wasminlineimageconfig_set_inferDimensions: (a: number, b: number) => void;
24
+ export const wasminlineimagewarning_index: (a: number) => number;
25
+ export const wasminlineimagewarning_message: (a: number, b: number) => void;
26
+ export const init: () => void;
27
+ export const __wbindgen_export: (a: number, b: number) => number;
28
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
29
+ export const __wbindgen_export3: (a: number) => void;
30
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
31
+ export const __wbindgen_add_to_stack_pointer: (a: number) => number;
32
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "html-to-markdown-wasm",
3
+ "type": "module",
4
+ "collaborators": [
5
+ "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
6
+ ],
7
+ "version": "2.6.2",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/Goldziher/html-to-markdown"
12
+ },
13
+ "files": [
14
+ "html_to_markdown_wasm_bg.wasm",
15
+ "html_to_markdown_wasm.js",
16
+ "html_to_markdown_wasm.d.ts"
17
+ ],
18
+ "main": "html_to_markdown_wasm.js",
19
+ "homepage": "https://github.com/Goldziher/html-to-markdown",
20
+ "types": "html_to_markdown_wasm.d.ts",
21
+ "sideEffects": [
22
+ "./snippets/*"
23
+ ]
24
+ }
package/package.json CHANGED
@@ -1,9 +1,27 @@
1
1
  {
2
2
  "name": "html-to-markdown-wasm",
3
- "version": "2.5.6",
3
+ "version": "2.6.2",
4
4
  "description": "High-performance HTML to Markdown converter - WebAssembly bindings",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "main": "dist/html_to_markdown_wasm.js",
6
+ "types": "dist/html_to_markdown_wasm.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/html_to_markdown_wasm.js",
10
+ "types": "./dist/html_to_markdown_wasm.d.ts",
11
+ "default": "./dist/html_to_markdown_wasm.js"
12
+ },
13
+ "./dist-node": {
14
+ "import": "./dist-node/html_to_markdown_wasm.js",
15
+ "require": "./dist-node/html_to_markdown_wasm.js",
16
+ "types": "./dist-node/html_to_markdown_wasm.d.ts"
17
+ },
18
+ "./dist-node/*": "./dist-node/*",
19
+ "./dist-web": {
20
+ "import": "./dist-web/html_to_markdown_wasm.js",
21
+ "types": "./dist-web/html_to_markdown_wasm.d.ts"
22
+ },
23
+ "./dist-web/*": "./dist-web/*"
24
+ },
7
25
  "repository": "https://github.com/Goldziher/html-to-markdown",
8
26
  "homepage": "https://github.com/Goldziher/html-to-markdown",
9
27
  "license": "MIT",
@@ -19,22 +37,10 @@
19
37
  ],
20
38
  "files": [
21
39
  "dist",
40
+ "dist-node",
41
+ "dist-web",
22
42
  "README.md"
23
43
  ],
24
- "devDependencies": {
25
- "@types/node": "^24.9.1",
26
- "tinybench": "^5.0.1",
27
- "tsx": "^4.20.6",
28
- "vitest": "^3.2.4",
29
- "wasm-pack": "^0.13.1"
30
- },
31
- "publishConfig": {
32
- "registry": "https://registry.npmjs.org/",
33
- "access": "public"
34
- },
35
- "dependencies": {
36
- "up": "^1.0.2"
37
- },
38
44
  "scripts": {
39
45
  "build": "wasm-pack build --target bundler --out-dir dist",
40
46
  "build:nodejs": "wasm-pack build --target nodejs --out-dir dist-node",
@@ -46,5 +52,19 @@
46
52
  "test:wasm-pack": "wasm-pack test --headless --chrome",
47
53
  "bench": "tsx benchmark.ts",
48
54
  "clean": "rm -rf dist dist-node dist-web node_modules pkg"
55
+ },
56
+ "devDependencies": {
57
+ "@types/node": "^24.10.0",
58
+ "tinybench": "^5.1.0",
59
+ "tsx": "^4.20.6",
60
+ "vitest": "^4.0.8",
61
+ "wasm-pack": "^0.13.1"
62
+ },
63
+ "publishConfig": {
64
+ "registry": "https://registry.npmjs.org/",
65
+ "access": "public"
66
+ },
67
+ "dependencies": {
68
+ "up": "^1.0.2"
49
69
  }
50
- }
70
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright 2024-2025 Na'aman Hirschfeld
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.