@kerebron/odt-wasm 0.4.10 → 0.4.12
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/lib/rs_lib.d.ts +2 -2
- package/lib/rs_lib.internal.js +21 -22
- package/lib/rs_lib.wasm +0 -0
- package/package.json +1 -1
package/lib/rs_lib.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// deno-lint-ignore-file
|
|
3
3
|
// deno-fmt-ignore-file
|
|
4
4
|
|
|
5
|
+
export function parse_content(xml_bytes: Uint8Array): any;
|
|
6
|
+
export function parse_styles(xml_bytes: Uint8Array): any;
|
|
5
7
|
export function echo(zip_data: Uint8Array): Uint8Array;
|
|
6
8
|
export function add(a: number, b: number): number;
|
|
7
|
-
export function parse_styles(xml_bytes: Uint8Array): any;
|
|
8
9
|
export function unzip(zip_data: Uint8Array): any;
|
|
9
|
-
export function parse_content(xml_bytes: Uint8Array): any;
|
|
10
10
|
export class Greeter {
|
|
11
11
|
free(): void;
|
|
12
12
|
constructor(name: string);
|
package/lib/rs_lib.internal.js
CHANGED
|
@@ -181,6 +181,27 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
181
181
|
WASM_VECTOR_LEN = arg.length;
|
|
182
182
|
return ptr;
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* @param {Uint8Array} xml_bytes
|
|
186
|
+
* @returns {any}
|
|
187
|
+
*/
|
|
188
|
+
export function parse_content(xml_bytes) {
|
|
189
|
+
const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
|
|
190
|
+
const len0 = WASM_VECTOR_LEN;
|
|
191
|
+
const ret = wasm.parse_content(ptr0, len0);
|
|
192
|
+
return ret;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param {Uint8Array} xml_bytes
|
|
197
|
+
* @returns {any}
|
|
198
|
+
*/
|
|
199
|
+
export function parse_styles(xml_bytes) {
|
|
200
|
+
const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
|
|
201
|
+
const len0 = WASM_VECTOR_LEN;
|
|
202
|
+
const ret = wasm.parse_styles(ptr0, len0);
|
|
203
|
+
return ret;
|
|
204
|
+
}
|
|
184
205
|
|
|
185
206
|
function getArrayU8FromWasm0(ptr, len) {
|
|
186
207
|
ptr = ptr >>> 0;
|
|
@@ -209,17 +230,6 @@ export function add(a, b) {
|
|
|
209
230
|
return ret;
|
|
210
231
|
}
|
|
211
232
|
|
|
212
|
-
/**
|
|
213
|
-
* @param {Uint8Array} xml_bytes
|
|
214
|
-
* @returns {any}
|
|
215
|
-
*/
|
|
216
|
-
export function parse_styles(xml_bytes) {
|
|
217
|
-
const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
|
|
218
|
-
const len0 = WASM_VECTOR_LEN;
|
|
219
|
-
const ret = wasm.parse_styles(ptr0, len0);
|
|
220
|
-
return ret;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
233
|
/**
|
|
224
234
|
* @param {Uint8Array} zip_data
|
|
225
235
|
* @returns {any}
|
|
@@ -231,17 +241,6 @@ export function unzip(zip_data) {
|
|
|
231
241
|
return ret;
|
|
232
242
|
}
|
|
233
243
|
|
|
234
|
-
/**
|
|
235
|
-
* @param {Uint8Array} xml_bytes
|
|
236
|
-
* @returns {any}
|
|
237
|
-
*/
|
|
238
|
-
export function parse_content(xml_bytes) {
|
|
239
|
-
const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
|
|
240
|
-
const len0 = WASM_VECTOR_LEN;
|
|
241
|
-
const ret = wasm.parse_content(ptr0, len0);
|
|
242
|
-
return ret;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
244
|
const GreeterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
246
245
|
? { register: () => {}, unregister: () => {} }
|
|
247
246
|
: new FinalizationRegistry((ptr) => wasm.__wbg_greeter_free(ptr >>> 0, 1));
|
package/lib/rs_lib.wasm
CHANGED
|
Binary file
|