lebai_sdk 0.2.7 → 0.2.8

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/lebai_sdk_bg.js CHANGED
@@ -24,15 +24,6 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
27
  let WASM_VECTOR_LEN = 0;
37
28
 
38
29
  let cachedUint8Memory0 = null;
@@ -112,6 +103,15 @@ function getInt32Memory0() {
112
103
  return cachedInt32Memory0;
113
104
  }
114
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 lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
116
116
 
117
117
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -1343,11 +1343,6 @@ export function __wbindgen_object_drop_ref(arg0) {
1343
1343
  takeObject(arg0);
1344
1344
  };
1345
1345
 
1346
- export function __wbindgen_number_new(arg0) {
1347
- const ret = arg0;
1348
- return addHeapObject(ret);
1349
- };
1350
-
1351
1346
  export function __wbindgen_string_get(arg0, arg1) {
1352
1347
  const obj = getObject(arg1);
1353
1348
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1357,8 +1352,8 @@ export function __wbindgen_string_get(arg0, arg1) {
1357
1352
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1358
1353
  };
1359
1354
 
1360
- export function __wbindgen_string_new(arg0, arg1) {
1361
- const ret = getStringFromWasm0(arg0, arg1);
1355
+ export function __wbindgen_number_new(arg0) {
1356
+ const ret = arg0;
1362
1357
  return addHeapObject(ret);
1363
1358
  };
1364
1359
 
@@ -1367,6 +1362,11 @@ export function __wbg_robotsubscription_new(arg0) {
1367
1362
  return addHeapObject(ret);
1368
1363
  };
1369
1364
 
1365
+ export function __wbindgen_string_new(arg0, arg1) {
1366
+ const ret = getStringFromWasm0(arg0, arg1);
1367
+ return addHeapObject(ret);
1368
+ };
1369
+
1370
1370
  export function __wbg_robot_new(arg0) {
1371
1371
  const ret = Robot.__wrap(arg0);
1372
1372
  return addHeapObject(ret);
@@ -1789,32 +1789,32 @@ export function __wbindgen_memory() {
1789
1789
  return addHeapObject(ret);
1790
1790
  };
1791
1791
 
1792
- export function __wbindgen_closure_wrapper1782(arg0, arg1, arg2) {
1792
+ export function __wbindgen_closure_wrapper1781(arg0, arg1, arg2) {
1793
1793
  const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_50);
1794
1794
  return addHeapObject(ret);
1795
1795
  };
1796
1796
 
1797
- export function __wbindgen_closure_wrapper1784(arg0, arg1, arg2) {
1797
+ export function __wbindgen_closure_wrapper1783(arg0, arg1, arg2) {
1798
1798
  const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_53);
1799
1799
  return addHeapObject(ret);
1800
1800
  };
1801
1801
 
1802
- export function __wbindgen_closure_wrapper1786(arg0, arg1, arg2) {
1802
+ export function __wbindgen_closure_wrapper1785(arg0, arg1, arg2) {
1803
1803
  const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_53);
1804
1804
  return addHeapObject(ret);
1805
1805
  };
1806
1806
 
1807
- export function __wbindgen_closure_wrapper1788(arg0, arg1, arg2) {
1807
+ export function __wbindgen_closure_wrapper1787(arg0, arg1, arg2) {
1808
1808
  const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_53);
1809
1809
  return addHeapObject(ret);
1810
1810
  };
1811
1811
 
1812
- export function __wbindgen_closure_wrapper2447(arg0, arg1, arg2) {
1812
+ export function __wbindgen_closure_wrapper2446(arg0, arg1, arg2) {
1813
1813
  const ret = makeMutClosure(arg0, arg1, 860, __wbg_adapter_60);
1814
1814
  return addHeapObject(ret);
1815
1815
  };
1816
1816
 
1817
- export function __wbindgen_closure_wrapper2487(arg0, arg1, arg2) {
1817
+ export function __wbindgen_closure_wrapper2486(arg0, arg1, arg2) {
1818
1818
  const ret = makeMutClosure(arg0, arg1, 877, __wbg_adapter_63);
1819
1819
  return addHeapObject(ret);
1820
1820
  };
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "rise0chen<rise0chen@163.com>"
5
5
  ],
6
6
  "description": "lebai_sdk",
7
- "version": "0.2.7",
7
+ "version": "0.2.8",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "repository": {
10
10
  "type": "git",