lebai_sdk 0.2.2 → 0.2.3

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
@@ -4,6 +4,26 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
 
7
+ const heap = new Array(128).fill(undefined);
8
+
9
+ heap.push(undefined, null, true, false);
10
+
11
+ function getObject(idx) { return heap[idx]; }
12
+
13
+ let heap_next = heap.length;
14
+
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
19
+ }
20
+
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
26
+
7
27
  const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
8
28
 
9
29
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -24,12 +44,6 @@ function getStringFromWasm0(ptr, len) {
24
44
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
25
45
  }
26
46
 
27
- const heap = new Array(128).fill(undefined);
28
-
29
- heap.push(undefined, null, true, false);
30
-
31
- let heap_next = heap.length;
32
-
33
47
  function addHeapObject(obj) {
34
48
  if (heap_next === heap.length) heap.push(heap.length + 1);
35
49
  const idx = heap_next;
@@ -39,20 +53,6 @@ function addHeapObject(obj) {
39
53
  return idx;
40
54
  }
41
55
 
42
- function getObject(idx) { return heap[idx]; }
43
-
44
- function dropObject(idx) {
45
- if (idx < 132) return;
46
- heap[idx] = heap_next;
47
- heap_next = idx;
48
- }
49
-
50
- function takeObject(idx) {
51
- const ret = getObject(idx);
52
- dropObject(idx);
53
- return ret;
54
- }
55
-
56
56
  let WASM_VECTOR_LEN = 0;
57
57
 
58
58
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
@@ -230,20 +230,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
230
230
 
231
231
  return real;
232
232
  }
233
- function __wbg_adapter_48(arg0, arg1, arg2) {
234
- wasm.wasm_bindgen__convert__closures__invoke1_mut__ha058cea286b456c0(arg0, arg1, addHeapObject(arg2));
233
+ function __wbg_adapter_50(arg0, arg1, arg2) {
234
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h39f6c5e0caad03ff(arg0, arg1, addHeapObject(arg2));
235
235
  }
236
236
 
237
- function __wbg_adapter_53(arg0, arg1) {
238
- wasm.wasm_bindgen__convert__closures__invoke0_mut__h13c1a8ec7e32e4a9(arg0, arg1);
237
+ function __wbg_adapter_57(arg0, arg1) {
238
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__h76085e88dce8648a(arg0, arg1);
239
239
  }
240
240
 
241
- function __wbg_adapter_58(arg0, arg1, arg2) {
242
- wasm.wasm_bindgen__convert__closures__invoke1_mut__ha115c950321e3dff(arg0, arg1, addHeapObject(arg2));
241
+ function __wbg_adapter_60(arg0, arg1, arg2) {
242
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h4b729089db212974(arg0, arg1, addHeapObject(arg2));
243
243
  }
244
244
 
245
- function __wbg_adapter_61(arg0, arg1) {
246
- wasm.wasm_bindgen__convert__closures__invoke0_mut__h2729bc9fd6ad6c60(arg0, arg1);
245
+ function __wbg_adapter_63(arg0, arg1) {
246
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__ha850d9f91d6e6a3b(arg0, arg1);
247
247
  }
248
248
 
249
249
  let cachedUint32Memory0 = null;
@@ -350,8 +350,8 @@ function getArrayU8FromWasm0(ptr, len) {
350
350
  ptr = ptr >>> 0;
351
351
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
352
352
  }
353
- function __wbg_adapter_249(arg0, arg1, arg2, arg3) {
354
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h1c52eb2f9f0daf09(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
353
+ function __wbg_adapter_251(arg0, arg1, arg2, arg3) {
354
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h92bdcc50b96f9003(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
355
355
  }
356
356
 
357
357
  /**
@@ -1312,17 +1312,12 @@ export class RobotSubscription {
1312
1312
  }
1313
1313
  }
1314
1314
 
1315
- export function __wbindgen_string_new(arg0, arg1) {
1316
- const ret = getStringFromWasm0(arg0, arg1);
1317
- return addHeapObject(ret);
1318
- };
1319
-
1320
1315
  export function __wbindgen_object_drop_ref(arg0) {
1321
1316
  takeObject(arg0);
1322
1317
  };
1323
1318
 
1324
- export function __wbindgen_number_new(arg0) {
1325
- const ret = arg0;
1319
+ export function __wbindgen_string_new(arg0, arg1) {
1320
+ const ret = getStringFromWasm0(arg0, arg1);
1326
1321
  return addHeapObject(ret);
1327
1322
  };
1328
1323
 
@@ -1335,6 +1330,11 @@ export function __wbindgen_string_get(arg0, arg1) {
1335
1330
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1336
1331
  };
1337
1332
 
1333
+ export function __wbindgen_number_new(arg0) {
1334
+ const ret = arg0;
1335
+ return addHeapObject(ret);
1336
+ };
1337
+
1338
1338
  export function __wbg_robotsubscription_new(arg0) {
1339
1339
  const ret = RobotSubscription.__wrap(arg0);
1340
1340
  return addHeapObject(ret);
@@ -1345,12 +1345,43 @@ export function __wbg_robot_new(arg0) {
1345
1345
  return addHeapObject(ret);
1346
1346
  };
1347
1347
 
1348
+ export function __wbindgen_boolean_get(arg0) {
1349
+ const v = getObject(arg0);
1350
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1351
+ return ret;
1352
+ };
1353
+
1348
1354
  export function __wbindgen_is_object(arg0) {
1349
1355
  const val = getObject(arg0);
1350
1356
  const ret = typeof(val) === 'object' && val !== null;
1351
1357
  return ret;
1352
1358
  };
1353
1359
 
1360
+ export function __wbindgen_as_number(arg0) {
1361
+ const ret = +getObject(arg0);
1362
+ return ret;
1363
+ };
1364
+
1365
+ export function __wbindgen_object_clone_ref(arg0) {
1366
+ const ret = getObject(arg0);
1367
+ return addHeapObject(ret);
1368
+ };
1369
+
1370
+ export function __wbindgen_cb_drop(arg0) {
1371
+ const obj = takeObject(arg0).original;
1372
+ if (obj.cnt-- == 1) {
1373
+ obj.a = 0;
1374
+ return true;
1375
+ }
1376
+ const ret = false;
1377
+ return ret;
1378
+ };
1379
+
1380
+ export function __wbindgen_error_new(arg0, arg1) {
1381
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1382
+ return addHeapObject(ret);
1383
+ };
1384
+
1354
1385
  export function __wbindgen_is_undefined(arg0) {
1355
1386
  const ret = getObject(arg0) === undefined;
1356
1387
  return ret;
@@ -1368,12 +1399,6 @@ export function __wbindgen_number_get(arg0, arg1) {
1368
1399
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1369
1400
  };
1370
1401
 
1371
- export function __wbindgen_boolean_get(arg0) {
1372
- const v = getObject(arg0);
1373
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1374
- return ret;
1375
- };
1376
-
1377
1402
  export function __wbindgen_is_bigint(arg0) {
1378
1403
  const ret = typeof(getObject(arg0)) === 'bigint';
1379
1404
  return ret;
@@ -1394,26 +1419,6 @@ export function __wbindgen_bigint_from_u64(arg0) {
1394
1419
  return addHeapObject(ret);
1395
1420
  };
1396
1421
 
1397
- export function __wbindgen_cb_drop(arg0) {
1398
- const obj = takeObject(arg0).original;
1399
- if (obj.cnt-- == 1) {
1400
- obj.a = 0;
1401
- return true;
1402
- }
1403
- const ret = false;
1404
- return ret;
1405
- };
1406
-
1407
- export function __wbindgen_error_new(arg0, arg1) {
1408
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1409
- return addHeapObject(ret);
1410
- };
1411
-
1412
- export function __wbindgen_object_clone_ref(arg0) {
1413
- const ret = getObject(arg0);
1414
- return addHeapObject(ret);
1415
- };
1416
-
1417
1422
  export function __wbindgen_is_string(arg0) {
1418
1423
  const ret = typeof(getObject(arg0)) === 'string';
1419
1424
  return ret;
@@ -1519,12 +1524,12 @@ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1519
1524
  return ret;
1520
1525
  };
1521
1526
 
1522
- export function __wbg_getwithrefkey_3b3c46ba20582127(arg0, arg1) {
1527
+ export function __wbg_getwithrefkey_4a92a5eca60879b9(arg0, arg1) {
1523
1528
  const ret = getObject(arg0)[getObject(arg1)];
1524
1529
  return addHeapObject(ret);
1525
1530
  };
1526
1531
 
1527
- export function __wbg_set_8761474ad72b9bf1(arg0, arg1, arg2) {
1532
+ export function __wbg_set_9182712abebf82ef(arg0, arg1, arg2) {
1528
1533
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1529
1534
  };
1530
1535
 
@@ -1676,7 +1681,7 @@ export function __wbg_new_60f57089c7563e81(arg0, arg1) {
1676
1681
  const a = state0.a;
1677
1682
  state0.a = 0;
1678
1683
  try {
1679
- return __wbg_adapter_249(a, state0.b, arg0, arg1);
1684
+ return __wbg_adapter_251(a, state0.b, arg0, arg1);
1680
1685
  } finally {
1681
1686
  state0.a = a;
1682
1687
  }
@@ -1757,33 +1762,33 @@ export function __wbindgen_memory() {
1757
1762
  return addHeapObject(ret);
1758
1763
  };
1759
1764
 
1760
- export function __wbindgen_closure_wrapper1731(arg0, arg1, arg2) {
1761
- const ret = makeMutClosure(arg0, arg1, 701, __wbg_adapter_48);
1765
+ export function __wbindgen_closure_wrapper1755(arg0, arg1, arg2) {
1766
+ const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_50);
1762
1767
  return addHeapObject(ret);
1763
1768
  };
1764
1769
 
1765
- export function __wbindgen_closure_wrapper1733(arg0, arg1, arg2) {
1766
- const ret = makeMutClosure(arg0, arg1, 701, __wbg_adapter_48);
1770
+ export function __wbindgen_closure_wrapper1757(arg0, arg1, arg2) {
1771
+ const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_50);
1767
1772
  return addHeapObject(ret);
1768
1773
  };
1769
1774
 
1770
- export function __wbindgen_closure_wrapper1735(arg0, arg1, arg2) {
1771
- const ret = makeMutClosure(arg0, arg1, 701, __wbg_adapter_53);
1775
+ export function __wbindgen_closure_wrapper1759(arg0, arg1, arg2) {
1776
+ const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_50);
1772
1777
  return addHeapObject(ret);
1773
1778
  };
1774
1779
 
1775
- export function __wbindgen_closure_wrapper1737(arg0, arg1, arg2) {
1776
- const ret = makeMutClosure(arg0, arg1, 701, __wbg_adapter_48);
1780
+ export function __wbindgen_closure_wrapper1761(arg0, arg1, arg2) {
1781
+ const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_57);
1777
1782
  return addHeapObject(ret);
1778
1783
  };
1779
1784
 
1780
- export function __wbindgen_closure_wrapper2471(arg0, arg1, arg2) {
1781
- const ret = makeMutClosure(arg0, arg1, 811, __wbg_adapter_58);
1785
+ export function __wbindgen_closure_wrapper2500(arg0, arg1, arg2) {
1786
+ const ret = makeMutClosure(arg0, arg1, 833, __wbg_adapter_60);
1782
1787
  return addHeapObject(ret);
1783
1788
  };
1784
1789
 
1785
- export function __wbindgen_closure_wrapper2520(arg0, arg1, arg2) {
1786
- const ret = makeMutClosure(arg0, arg1, 830, __wbg_adapter_61);
1790
+ export function __wbindgen_closure_wrapper2554(arg0, arg1, arg2) {
1791
+ const ret = makeMutClosure(arg0, arg1, 849, __wbg_adapter_63);
1787
1792
  return addHeapObject(ret);
1788
1793
  };
1789
1794
 
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.2",
7
+ "version": "0.2.3",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "repository": {
10
10
  "type": "git",