fleethub-core 1.6.2 → 1.7.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/node/fleethub_core.d.ts +305 -307
- package/node/fleethub_core.js +46 -46
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +305 -307
- package/pkg/fleethub_core_bg.js +46 -46
- package/pkg/fleethub_core_bg.wasm +0 -0
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { createEquipmentBonuses } from 'equipment-bonus';
|
|
2
2
|
import * as wasm from './fleethub_core_bg.wasm';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
heap.push(undefined, null, true, false);
|
|
4
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
cachedTextDecoder.decode();
|
|
11
9
|
|
|
12
10
|
let cachegetUint8Memory0 = null;
|
|
13
11
|
function getUint8Memory0() {
|
|
@@ -17,6 +15,41 @@ function getUint8Memory0() {
|
|
|
17
15
|
return cachegetUint8Memory0;
|
|
18
16
|
}
|
|
19
17
|
|
|
18
|
+
function getStringFromWasm0(ptr, len) {
|
|
19
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const heap = new Array(32).fill(undefined);
|
|
23
|
+
|
|
24
|
+
heap.push(undefined, null, true, false);
|
|
25
|
+
|
|
26
|
+
let heap_next = heap.length;
|
|
27
|
+
|
|
28
|
+
function addHeapObject(obj) {
|
|
29
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
30
|
+
const idx = heap_next;
|
|
31
|
+
heap_next = heap[idx];
|
|
32
|
+
|
|
33
|
+
heap[idx] = obj;
|
|
34
|
+
return idx;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getObject(idx) { return heap[idx]; }
|
|
38
|
+
|
|
39
|
+
function dropObject(idx) {
|
|
40
|
+
if (idx < 36) return;
|
|
41
|
+
heap[idx] = heap_next;
|
|
42
|
+
heap_next = idx;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function takeObject(idx) {
|
|
46
|
+
const ret = getObject(idx);
|
|
47
|
+
dropObject(idx);
|
|
48
|
+
return ret;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
let WASM_VECTOR_LEN = 0;
|
|
52
|
+
|
|
20
53
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
21
54
|
|
|
22
55
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
@@ -80,39 +113,6 @@ function getInt32Memory0() {
|
|
|
80
113
|
return cachegetInt32Memory0;
|
|
81
114
|
}
|
|
82
115
|
|
|
83
|
-
let heap_next = heap.length;
|
|
84
|
-
|
|
85
|
-
function dropObject(idx) {
|
|
86
|
-
if (idx < 36) return;
|
|
87
|
-
heap[idx] = heap_next;
|
|
88
|
-
heap_next = idx;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function takeObject(idx) {
|
|
92
|
-
const ret = getObject(idx);
|
|
93
|
-
dropObject(idx);
|
|
94
|
-
return ret;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
98
|
-
|
|
99
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
100
|
-
|
|
101
|
-
cachedTextDecoder.decode();
|
|
102
|
-
|
|
103
|
-
function getStringFromWasm0(ptr, len) {
|
|
104
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function addHeapObject(obj) {
|
|
108
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
109
|
-
const idx = heap_next;
|
|
110
|
-
heap_next = heap[idx];
|
|
111
|
-
|
|
112
|
-
heap[idx] = obj;
|
|
113
|
-
return idx;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
116
|
const u32CvtShim = new Uint32Array(2);
|
|
117
117
|
|
|
118
118
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
@@ -3236,11 +3236,15 @@ export class Ship {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
3238
|
|
|
3239
|
-
export function
|
|
3240
|
-
const ret =
|
|
3239
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
3240
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3241
3241
|
return addHeapObject(ret);
|
|
3242
3242
|
};
|
|
3243
3243
|
|
|
3244
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
3245
|
+
takeObject(arg0);
|
|
3246
|
+
};
|
|
3247
|
+
|
|
3244
3248
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3245
3249
|
const obj = getObject(arg1);
|
|
3246
3250
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3250,12 +3254,8 @@ export function __wbindgen_json_serialize(arg0, arg1) {
|
|
|
3250
3254
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3251
3255
|
};
|
|
3252
3256
|
|
|
3253
|
-
export function
|
|
3254
|
-
takeObject(arg0);
|
|
3255
|
-
};
|
|
3256
|
-
|
|
3257
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
3258
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
3257
|
+
export function __wbg_createEquipmentBonuses_6cd0de83fb0e4aaa(arg0, arg1) {
|
|
3258
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3259
3259
|
return addHeapObject(ret);
|
|
3260
3260
|
};
|
|
3261
3261
|
|
|
Binary file
|