mdream 1.5.11 → 1.5.13
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/iife.js +21 -21
- package/package.json +15 -15
- package/wasm/mdream_edge.js +25 -21
- package/wasm/mdream_edge_bg.wasm +0 -0
- package/wasm/package.json +1 -1
- package/wasm-bundler/mdream_edge_bg.js +20 -20
- package/wasm-bundler/mdream_edge_bg.wasm +0 -0
- package/wasm-bundler/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdream",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.13",
|
|
5
5
|
"description": "Ultra-performant HTML to Markdown Convertor Optimized for LLMs and llm.txt artifacts.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
"browser": "./dist/browser.mjs",
|
|
58
58
|
"dependencies": {},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@mdream/rust-android-arm64": "1.5.
|
|
61
|
-
"@mdream/rust-
|
|
62
|
-
"@mdream/rust-
|
|
63
|
-
"@mdream/rust-
|
|
64
|
-
"@mdream/rust-darwin-
|
|
65
|
-
"@mdream/rust-linux-
|
|
66
|
-
"@mdream/rust-linux-
|
|
67
|
-
"@mdream/rust-
|
|
68
|
-
"@mdream/rust-
|
|
69
|
-
"@mdream/rust-linux-x64-musl": "1.5.
|
|
70
|
-
"@mdream/rust-wasm32-wasi": "1.5.
|
|
71
|
-
"@mdream/rust-win32-arm64-msvc": "1.5.
|
|
72
|
-
"@mdream/rust-win32-x64-msvc": "1.5.
|
|
60
|
+
"@mdream/rust-android-arm64": "1.5.13",
|
|
61
|
+
"@mdream/rust-freebsd-x64": "1.5.13",
|
|
62
|
+
"@mdream/rust-linux-arm-gnueabihf": "1.5.13",
|
|
63
|
+
"@mdream/rust-linux-arm64-gnu": "1.5.13",
|
|
64
|
+
"@mdream/rust-darwin-x64": "1.5.13",
|
|
65
|
+
"@mdream/rust-linux-arm64-musl": "1.5.13",
|
|
66
|
+
"@mdream/rust-linux-x64-gnu": "1.5.13",
|
|
67
|
+
"@mdream/rust-android-arm-eabi": "1.5.13",
|
|
68
|
+
"@mdream/rust-darwin-arm64": "1.5.13",
|
|
69
|
+
"@mdream/rust-linux-x64-musl": "1.5.13",
|
|
70
|
+
"@mdream/rust-wasm32-wasi": "1.5.13",
|
|
71
|
+
"@mdream/rust-win32-arm64-msvc": "1.5.13",
|
|
72
|
+
"@mdream/rust-win32-x64-msvc": "1.5.13"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@mdream/js": "1.5.
|
|
75
|
+
"@mdream/js": "1.5.13"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"flame": "pnpm build && unbuild bench/bundle && clinic flame -- node bench/bundle/dist/string.mjs 10",
|
package/wasm/mdream_edge.js
CHANGED
|
@@ -76,7 +76,7 @@ export function __mdreamTakePanicMessage() {
|
|
|
76
76
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
77
77
|
let v1;
|
|
78
78
|
if (r0 !== 0) {
|
|
79
|
-
v1 = getStringFromWasm0(r0, r1)
|
|
79
|
+
v1 = getStringFromWasm0(r0, r1);
|
|
80
80
|
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
81
81
|
}
|
|
82
82
|
return v1;
|
|
@@ -127,26 +127,26 @@ export function install_panic_hook() {
|
|
|
127
127
|
function __wbg_get_imports() {
|
|
128
128
|
const import0 = {
|
|
129
129
|
__proto__: null,
|
|
130
|
-
|
|
130
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
131
131
|
const v = getObject(arg0);
|
|
132
132
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
133
133
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
134
134
|
},
|
|
135
|
-
|
|
135
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
136
136
|
const ret = getObject(arg0) === null;
|
|
137
137
|
return ret;
|
|
138
138
|
},
|
|
139
|
-
|
|
139
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
140
140
|
const ret = getObject(arg0) === undefined;
|
|
141
141
|
return ret;
|
|
142
142
|
},
|
|
143
|
-
|
|
143
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
144
144
|
const obj = getObject(arg1);
|
|
145
145
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
146
146
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
147
147
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
150
150
|
const obj = getObject(arg1);
|
|
151
151
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
152
152
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -154,46 +154,46 @@ function __wbg_get_imports() {
|
|
|
154
154
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
155
155
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
156
156
|
},
|
|
157
|
-
|
|
157
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
158
158
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
159
159
|
},
|
|
160
|
-
|
|
160
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
161
161
|
const ret = Object.entries(getObject(arg0));
|
|
162
162
|
return addHeapObject(ret);
|
|
163
163
|
},
|
|
164
|
-
|
|
164
|
+
__wbg_from_74f3d90e0ff11240: function(arg0) {
|
|
165
165
|
const ret = Array.from(getObject(arg0));
|
|
166
166
|
return addHeapObject(ret);
|
|
167
167
|
},
|
|
168
|
-
|
|
169
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
170
|
-
return addHeapObject(ret);
|
|
171
|
-
},
|
|
172
|
-
__wbg_get_52a8a619f7b88df6: function() { return handleError(function (arg0, arg1) {
|
|
168
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
173
169
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
174
170
|
return addHeapObject(ret);
|
|
175
171
|
}, arguments); },
|
|
176
|
-
|
|
172
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
173
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
174
|
+
return addHeapObject(ret);
|
|
175
|
+
},
|
|
176
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
177
177
|
const ret = Array.isArray(getObject(arg0));
|
|
178
178
|
return ret;
|
|
179
179
|
},
|
|
180
|
-
|
|
180
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
181
181
|
const ret = getObject(arg0).length;
|
|
182
182
|
return ret;
|
|
183
183
|
},
|
|
184
|
-
|
|
184
|
+
__wbg_new_116be93542d39019: function() {
|
|
185
185
|
const ret = new Array();
|
|
186
186
|
return addHeapObject(ret);
|
|
187
187
|
},
|
|
188
|
-
|
|
188
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
189
189
|
const ret = new Object();
|
|
190
190
|
return addHeapObject(ret);
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
__wbg_push_adb0107829f02d75: function(arg0, arg1) {
|
|
193
193
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
194
194
|
return ret;
|
|
195
195
|
},
|
|
196
|
-
|
|
196
|
+
__wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
197
197
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
198
198
|
return ret;
|
|
199
199
|
}, arguments); },
|
|
@@ -359,11 +359,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
359
359
|
|
|
360
360
|
async function __wbg_load(module, imports) {
|
|
361
361
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
362
|
+
if (!module.ok) {
|
|
363
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
364
|
+
}
|
|
365
|
+
|
|
362
366
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
363
367
|
try {
|
|
364
368
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
365
369
|
} catch (e) {
|
|
366
|
-
const validResponse =
|
|
370
|
+
const validResponse = expectedResponseType(module.type);
|
|
367
371
|
|
|
368
372
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
369
373
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/wasm/mdream_edge_bg.wasm
CHANGED
|
Binary file
|
package/wasm/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export function __mdreamTakePanicMessage() {
|
|
|
74
74
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
75
75
|
let v1;
|
|
76
76
|
if (r0 !== 0) {
|
|
77
|
-
v1 = getStringFromWasm0(r0, r1)
|
|
77
|
+
v1 = getStringFromWasm0(r0, r1);
|
|
78
78
|
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
79
79
|
}
|
|
80
80
|
return v1;
|
|
@@ -122,26 +122,26 @@ export function htmlToMarkdownResult(html, options) {
|
|
|
122
122
|
export function install_panic_hook() {
|
|
123
123
|
wasm.install_panic_hook();
|
|
124
124
|
}
|
|
125
|
-
export function
|
|
125
|
+
export function __wbg___wbindgen_boolean_get_c9c83ebd41b34df3(arg0) {
|
|
126
126
|
const v = getObject(arg0);
|
|
127
127
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
128
128
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
129
129
|
}
|
|
130
|
-
export function
|
|
130
|
+
export function __wbg___wbindgen_is_null_7d13f41e1a2d5140(arg0) {
|
|
131
131
|
const ret = getObject(arg0) === null;
|
|
132
132
|
return ret;
|
|
133
133
|
}
|
|
134
|
-
export function
|
|
134
|
+
export function __wbg___wbindgen_is_undefined_6cff064c44e0d823(arg0) {
|
|
135
135
|
const ret = getObject(arg0) === undefined;
|
|
136
136
|
return ret;
|
|
137
137
|
}
|
|
138
|
-
export function
|
|
138
|
+
export function __wbg___wbindgen_number_get_136b9679cab35cfb(arg0, arg1) {
|
|
139
139
|
const obj = getObject(arg1);
|
|
140
140
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
141
141
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
142
142
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
143
143
|
}
|
|
144
|
-
export function
|
|
144
|
+
export function __wbg___wbindgen_string_get_d154f1e671052120(arg0, arg1) {
|
|
145
145
|
const obj = getObject(arg1);
|
|
146
146
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
147
147
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -149,46 +149,46 @@ export function __wbg___wbindgen_string_get_fa2687d531ed17a5(arg0, arg1) {
|
|
|
149
149
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
150
150
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
151
151
|
}
|
|
152
|
-
export function
|
|
152
|
+
export function __wbg___wbindgen_throw_bb96b2010945f0bc(arg0, arg1) {
|
|
153
153
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
154
154
|
}
|
|
155
|
-
export function
|
|
155
|
+
export function __wbg_entries_7774d489e1da5f4f(arg0) {
|
|
156
156
|
const ret = Object.entries(getObject(arg0));
|
|
157
157
|
return addHeapObject(ret);
|
|
158
158
|
}
|
|
159
|
-
export function
|
|
159
|
+
export function __wbg_from_74f3d90e0ff11240(arg0) {
|
|
160
160
|
const ret = Array.from(getObject(arg0));
|
|
161
161
|
return addHeapObject(ret);
|
|
162
162
|
}
|
|
163
|
-
export function
|
|
164
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
165
|
-
return addHeapObject(ret);
|
|
166
|
-
}
|
|
167
|
-
export function __wbg_get_52a8a619f7b88df6() { return handleError(function (arg0, arg1) {
|
|
163
|
+
export function __wbg_get_971a0c45d172643f() { return handleError(function (arg0, arg1) {
|
|
168
164
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
169
165
|
return addHeapObject(ret);
|
|
170
166
|
}, arguments); }
|
|
171
|
-
export function
|
|
167
|
+
export function __wbg_get_c0c8f8d7da0c03dd(arg0, arg1) {
|
|
168
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
169
|
+
return addHeapObject(ret);
|
|
170
|
+
}
|
|
171
|
+
export function __wbg_isArray_6339f732981044bf(arg0) {
|
|
172
172
|
const ret = Array.isArray(getObject(arg0));
|
|
173
173
|
return ret;
|
|
174
174
|
}
|
|
175
|
-
export function
|
|
175
|
+
export function __wbg_length_ecfa2c63d3d0d82c(arg0) {
|
|
176
176
|
const ret = getObject(arg0).length;
|
|
177
177
|
return ret;
|
|
178
178
|
}
|
|
179
|
-
export function
|
|
179
|
+
export function __wbg_new_116be93542d39019() {
|
|
180
180
|
const ret = new Array();
|
|
181
181
|
return addHeapObject(ret);
|
|
182
182
|
}
|
|
183
|
-
export function
|
|
183
|
+
export function __wbg_new_ebe3e0f6837f0879() {
|
|
184
184
|
const ret = new Object();
|
|
185
185
|
return addHeapObject(ret);
|
|
186
186
|
}
|
|
187
|
-
export function
|
|
187
|
+
export function __wbg_push_adb0107829f02d75(arg0, arg1) {
|
|
188
188
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
189
189
|
return ret;
|
|
190
190
|
}
|
|
191
|
-
export function
|
|
191
|
+
export function __wbg_set_8155bb79a948541b() { return handleError(function (arg0, arg1, arg2) {
|
|
192
192
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
193
193
|
return ret;
|
|
194
194
|
}, arguments); }
|
|
Binary file
|