@kerebron/odt-wasm 0.3.2 → 0.4.1

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 CHANGED
@@ -3,10 +3,10 @@
3
3
  // deno-fmt-ignore-file
4
4
 
5
5
  export function echo(zip_data: Uint8Array): Uint8Array;
6
+ export function add(a: number, b: number): number;
7
+ export function parse_styles(xml_bytes: Uint8Array): any;
6
8
  export function unzip(zip_data: Uint8Array): any;
7
9
  export function parse_content(xml_bytes: Uint8Array): any;
8
- export function parse_styles(xml_bytes: Uint8Array): any;
9
- export function add(a: number, b: number): number;
10
10
  export class Greeter {
11
11
  free(): void;
12
12
  constructor(name: string);
@@ -200,13 +200,12 @@ export function echo(zip_data) {
200
200
  }
201
201
 
202
202
  /**
203
- * @param {Uint8Array} zip_data
204
- * @returns {any}
203
+ * @param {number} a
204
+ * @param {number} b
205
+ * @returns {number}
205
206
  */
206
- export function unzip(zip_data) {
207
- const ptr0 = passArray8ToWasm0(zip_data, wasm.__wbindgen_malloc);
208
- const len0 = WASM_VECTOR_LEN;
209
- const ret = wasm.unzip(ptr0, len0);
207
+ export function add(a, b) {
208
+ const ret = wasm.add(a, b);
210
209
  return ret;
211
210
  }
212
211
 
@@ -214,31 +213,32 @@ export function unzip(zip_data) {
214
213
  * @param {Uint8Array} xml_bytes
215
214
  * @returns {any}
216
215
  */
217
- export function parse_content(xml_bytes) {
216
+ export function parse_styles(xml_bytes) {
218
217
  const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
219
218
  const len0 = WASM_VECTOR_LEN;
220
- const ret = wasm.parse_content(ptr0, len0);
219
+ const ret = wasm.parse_styles(ptr0, len0);
221
220
  return ret;
222
221
  }
223
222
 
224
223
  /**
225
- * @param {Uint8Array} xml_bytes
224
+ * @param {Uint8Array} zip_data
226
225
  * @returns {any}
227
226
  */
228
- export function parse_styles(xml_bytes) {
229
- const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
227
+ export function unzip(zip_data) {
228
+ const ptr0 = passArray8ToWasm0(zip_data, wasm.__wbindgen_malloc);
230
229
  const len0 = WASM_VECTOR_LEN;
231
- const ret = wasm.parse_styles(ptr0, len0);
230
+ const ret = wasm.unzip(ptr0, len0);
232
231
  return ret;
233
232
  }
234
233
 
235
234
  /**
236
- * @param {number} a
237
- * @param {number} b
238
- * @returns {number}
235
+ * @param {Uint8Array} xml_bytes
236
+ * @returns {any}
239
237
  */
240
- export function add(a, b) {
241
- const ret = wasm.add(a, b);
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
242
  return ret;
243
243
  }
244
244
 
package/lib/rs_lib.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -10,6 +10,6 @@
10
10
  "import": "./lib/rs_lib.js"
11
11
  }
12
12
  },
13
- "version": "0.3.2",
13
+ "version": "0.4.1",
14
14
  "license": "MIT"
15
15
  }