xoev-xwasser 0.2.2 → 0.3.0

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/xoev_xwasser.js CHANGED
@@ -1,25 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextDecoder, TextEncoder } = require(`util`);
5
-
6
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
7
-
8
- cachedTextDecoder.decode();
9
-
10
- let cachedUint8Memory0 = null;
11
-
12
- function getUint8Memory0() {
13
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
14
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
15
- }
16
- return cachedUint8Memory0;
17
- }
18
-
19
- function getStringFromWasm0(ptr, len) {
20
- ptr = ptr >>> 0;
21
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
22
- }
4
+ const { TextEncoder, TextDecoder } = require(`util`);
23
5
 
24
6
  function isLikeNone(x) {
25
7
  return x === undefined || x === null;
@@ -45,6 +27,15 @@ function getInt32Memory0() {
45
27
 
46
28
  let WASM_VECTOR_LEN = 0;
47
29
 
30
+ let cachedUint8Memory0 = null;
31
+
32
+ function getUint8Memory0() {
33
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
34
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
35
+ }
36
+ return cachedUint8Memory0;
37
+ }
38
+
48
39
  let cachedTextEncoder = new TextEncoder('utf-8');
49
40
 
50
41
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -99,6 +90,15 @@ function passStringToWasm0(arg, malloc, realloc) {
99
90
  return ptr;
100
91
  }
101
92
 
93
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
94
+
95
+ cachedTextDecoder.decode();
96
+
97
+ function getStringFromWasm0(ptr, len) {
98
+ ptr = ptr >>> 0;
99
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
100
+ }
101
+
102
102
  let cachedBigInt64Memory0 = null;
103
103
 
104
104
  function getBigInt64Memory0() {
@@ -179,15 +179,15 @@ function takeFromExternrefTable0(idx) {
179
179
  return value;
180
180
  }
181
181
  /**
182
- * @param {QualityReport} data
182
+ * @param {VorgangTransportieren2010} data
183
183
  * @returns {string}
184
184
  */
185
- module.exports.create_quality_report_xml = function(data) {
185
+ module.exports.create_vorgang_transportieren_2010 = function(data) {
186
186
  let deferred2_0;
187
187
  let deferred2_1;
188
188
  try {
189
189
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
190
- wasm.create_quality_report_xml(retptr, data);
190
+ wasm.create_vorgang_transportieren_2010(retptr, data);
191
191
  var r0 = getInt32Memory0()[retptr / 4 + 0];
192
192
  var r1 = getInt32Memory0()[retptr / 4 + 1];
193
193
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -209,14 +209,14 @@ module.exports.create_quality_report_xml = function(data) {
209
209
 
210
210
  /**
211
211
  * @param {string} xml
212
- * @returns {QualityReport}
212
+ * @returns {VorgangTransportieren2010}
213
213
  */
214
- module.exports.parse_quality_report_xml = function(xml) {
214
+ module.exports.parse_vorgang_transportieren_2010 = function(xml) {
215
215
  try {
216
216
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
217
217
  const ptr0 = passStringToWasm0(xml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
218
218
  const len0 = WASM_VECTOR_LEN;
219
- wasm.parse_quality_report_xml(retptr, ptr0, len0);
219
+ wasm.parse_vorgang_transportieren_2010(retptr, ptr0, len0);
220
220
  var r0 = getInt32Memory0()[retptr / 4 + 0];
221
221
  var r1 = getInt32Memory0()[retptr / 4 + 1];
222
222
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -244,11 +244,6 @@ function handleError(f, args) {
244
244
  }
245
245
  }
246
246
 
247
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
248
- const ret = getStringFromWasm0(arg0, arg1);
249
- return ret;
250
- };
251
-
252
247
  module.exports.__wbindgen_is_undefined = function(arg0) {
253
248
  const ret = arg0 === undefined;
254
249
  return ret;
@@ -312,6 +307,11 @@ module.exports.__wbindgen_is_string = function(arg0) {
312
307
  return ret;
313
308
  };
314
309
 
310
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
311
+ const ret = getStringFromWasm0(arg0, arg1);
312
+ return ret;
313
+ };
314
+
315
315
  module.exports.__wbindgen_error_new = function(arg0, arg1) {
316
316
  const ret = new Error(getStringFromWasm0(arg0, arg1));
317
317
  return ret;
Binary file
Binary file