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.
@@ -2,15 +2,11 @@ let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
4
  const { createEquipmentBonuses } = require(`equipment-bonus`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
- const heap = new Array(32).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
7
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
12
8
 
13
- let WASM_VECTOR_LEN = 0;
9
+ cachedTextDecoder.decode();
14
10
 
15
11
  let cachegetUint8Memory0 = null;
16
12
  function getUint8Memory0() {
@@ -20,6 +16,41 @@ function getUint8Memory0() {
20
16
  return cachegetUint8Memory0;
21
17
  }
22
18
 
19
+ function getStringFromWasm0(ptr, len) {
20
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
21
+ }
22
+
23
+ const heap = new Array(32).fill(undefined);
24
+
25
+ heap.push(undefined, null, true, false);
26
+
27
+ let heap_next = heap.length;
28
+
29
+ function addHeapObject(obj) {
30
+ if (heap_next === heap.length) heap.push(heap.length + 1);
31
+ const idx = heap_next;
32
+ heap_next = heap[idx];
33
+
34
+ heap[idx] = obj;
35
+ return idx;
36
+ }
37
+
38
+ function getObject(idx) { return heap[idx]; }
39
+
40
+ function dropObject(idx) {
41
+ if (idx < 36) return;
42
+ heap[idx] = heap_next;
43
+ heap_next = idx;
44
+ }
45
+
46
+ function takeObject(idx) {
47
+ const ret = getObject(idx);
48
+ dropObject(idx);
49
+ return ret;
50
+ }
51
+
52
+ let WASM_VECTOR_LEN = 0;
53
+
23
54
  let cachedTextEncoder = new TextEncoder('utf-8');
24
55
 
25
56
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -81,37 +112,6 @@ function getInt32Memory0() {
81
112
  return cachegetInt32Memory0;
82
113
  }
83
114
 
84
- let heap_next = heap.length;
85
-
86
- function dropObject(idx) {
87
- if (idx < 36) return;
88
- heap[idx] = heap_next;
89
- heap_next = idx;
90
- }
91
-
92
- function takeObject(idx) {
93
- const ret = getObject(idx);
94
- dropObject(idx);
95
- return ret;
96
- }
97
-
98
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
99
-
100
- cachedTextDecoder.decode();
101
-
102
- function getStringFromWasm0(ptr, len) {
103
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
104
- }
105
-
106
- function addHeapObject(obj) {
107
- if (heap_next === heap.length) heap.push(heap.length + 1);
108
- const idx = heap_next;
109
- heap_next = heap[idx];
110
-
111
- heap[idx] = obj;
112
- return idx;
113
- }
114
-
115
115
  const u32CvtShim = new Uint32Array(2);
116
116
 
117
117
  const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
@@ -3244,11 +3244,15 @@ class Ship {
3244
3244
  }
3245
3245
  module.exports.Ship = Ship;
3246
3246
 
3247
- module.exports.__wbg_createEquipmentBonuses_c085113c00faea8f = function(arg0, arg1) {
3248
- const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3247
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
3248
+ const ret = getStringFromWasm0(arg0, arg1);
3249
3249
  return addHeapObject(ret);
3250
3250
  };
3251
3251
 
3252
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
3253
+ takeObject(arg0);
3254
+ };
3255
+
3252
3256
  module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
3253
3257
  const obj = getObject(arg1);
3254
3258
  const ret = JSON.stringify(obj === undefined ? null : obj);
@@ -3258,12 +3262,8 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
3258
3262
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
3259
3263
  };
3260
3264
 
3261
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
3262
- takeObject(arg0);
3263
- };
3264
-
3265
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
3266
- const ret = getStringFromWasm0(arg0, arg1);
3265
+ module.exports.__wbg_createEquipmentBonuses_6cd0de83fb0e4aaa = function(arg0, arg1) {
3266
+ const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
3267
3267
  return addHeapObject(ret);
3268
3268
  };
3269
3269
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleethub-core",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "license": "UNLICENSED",
5
5
  "sideEffects": false,
6
6
  "exports": {