xoev-xwasser 0.2.2 → 0.4.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/README.md +1 -1
- package/package.json +5 -4
- package/xoev_xwasser.d.ts +606 -664
- package/xoev_xwasser.js +81 -30
- package/xoev_xwasser_bg.wasm +0 -0
- package/xwasser-v050.xsdb.bin +0 -0
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 {
|
|
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 {
|
|
182
|
+
* @param {VorgangTransportieren2010} data
|
|
183
183
|
* @returns {string}
|
|
184
184
|
*/
|
|
185
|
-
module.exports.
|
|
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.
|
|
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,65 @@ module.exports.create_quality_report_xml = function(data) {
|
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* @param {string} xml
|
|
212
|
-
* @returns {
|
|
212
|
+
* @returns {VorgangTransportieren2010}
|
|
213
213
|
*/
|
|
214
|
-
module.exports.
|
|
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.
|
|
219
|
+
wasm.parse_vorgang_transportieren_2010(retptr, ptr0, len0);
|
|
220
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
221
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
222
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
223
|
+
if (r2) {
|
|
224
|
+
throw takeFromExternrefTable0(r1);
|
|
225
|
+
}
|
|
226
|
+
return takeFromExternrefTable0(r0);
|
|
227
|
+
} finally {
|
|
228
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @param {AdministrationQuittung0020} data
|
|
234
|
+
* @returns {string}
|
|
235
|
+
*/
|
|
236
|
+
module.exports.create_administration_quittung_0020 = function(data) {
|
|
237
|
+
let deferred2_0;
|
|
238
|
+
let deferred2_1;
|
|
239
|
+
try {
|
|
240
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
241
|
+
wasm.create_administration_quittung_0020(retptr, data);
|
|
242
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
243
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
244
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
245
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
246
|
+
var ptr1 = r0;
|
|
247
|
+
var len1 = r1;
|
|
248
|
+
if (r3) {
|
|
249
|
+
ptr1 = 0; len1 = 0;
|
|
250
|
+
throw takeFromExternrefTable0(r2);
|
|
251
|
+
}
|
|
252
|
+
deferred2_0 = ptr1;
|
|
253
|
+
deferred2_1 = len1;
|
|
254
|
+
return getStringFromWasm0(ptr1, len1);
|
|
255
|
+
} finally {
|
|
256
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
257
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @param {string} xml
|
|
263
|
+
* @returns {AdministrationQuittung0020}
|
|
264
|
+
*/
|
|
265
|
+
module.exports.parse_administration_quittung_0020 = function(xml) {
|
|
266
|
+
try {
|
|
267
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
268
|
+
const ptr0 = passStringToWasm0(xml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
269
|
+
const len0 = WASM_VECTOR_LEN;
|
|
270
|
+
wasm.parse_administration_quittung_0020(retptr, ptr0, len0);
|
|
220
271
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
221
272
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
222
273
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -244,11 +295,6 @@ function handleError(f, args) {
|
|
|
244
295
|
}
|
|
245
296
|
}
|
|
246
297
|
|
|
247
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
248
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
249
|
-
return ret;
|
|
250
|
-
};
|
|
251
|
-
|
|
252
298
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
253
299
|
const ret = arg0 === undefined;
|
|
254
300
|
return ret;
|
|
@@ -312,6 +358,11 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
312
358
|
return ret;
|
|
313
359
|
};
|
|
314
360
|
|
|
361
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
362
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
363
|
+
return ret;
|
|
364
|
+
};
|
|
365
|
+
|
|
315
366
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
316
367
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
317
368
|
return ret;
|
package/xoev_xwasser_bg.wasm
CHANGED
|
Binary file
|
|
Binary file
|