lebai_sdk 0.1.22 → 0.1.23

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,7 +24,11 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- let WASM_VECTOR_LEN = 0;
27
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
28
+
29
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
+
31
+ cachedTextDecoder.decode();
28
32
 
29
33
  let cachedUint8Memory0 = null;
30
34
 
@@ -35,6 +39,22 @@ function getUint8Memory0() {
35
39
  return cachedUint8Memory0;
36
40
  }
37
41
 
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
+ }
46
+
47
+ function addHeapObject(obj) {
48
+ if (heap_next === heap.length) heap.push(heap.length + 1);
49
+ const idx = heap_next;
50
+ heap_next = heap[idx];
51
+
52
+ heap[idx] = obj;
53
+ return idx;
54
+ }
55
+
56
+ let WASM_VECTOR_LEN = 0;
57
+
38
58
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
39
59
 
40
60
  let cachedTextEncoder = new lTextEncoder('utf-8');
@@ -103,26 +123,6 @@ function getInt32Memory0() {
103
123
  return cachedInt32Memory0;
104
124
  }
105
125
 
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
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
116
-
117
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
118
-
119
- cachedTextDecoder.decode();
120
-
121
- function getStringFromWasm0(ptr, len) {
122
- ptr = ptr >>> 0;
123
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
124
- }
125
-
126
126
  let cachedFloat64Memory0 = null;
127
127
 
128
128
  function getFloat64Memory0() {
@@ -1267,8 +1267,8 @@ export function __wbindgen_object_drop_ref(arg0) {
1267
1267
  takeObject(arg0);
1268
1268
  };
1269
1269
 
1270
- export function __wbg_robotsubscription_new(arg0) {
1271
- const ret = RobotSubscription.__wrap(arg0);
1270
+ export function __wbindgen_string_new(arg0, arg1) {
1271
+ const ret = getStringFromWasm0(arg0, arg1);
1272
1272
  return addHeapObject(ret);
1273
1273
  };
1274
1274
 
@@ -1286,13 +1286,13 @@ export function __wbindgen_number_new(arg0) {
1286
1286
  return addHeapObject(ret);
1287
1287
  };
1288
1288
 
1289
- export function __wbindgen_string_new(arg0, arg1) {
1290
- const ret = getStringFromWasm0(arg0, arg1);
1289
+ export function __wbg_robot_new(arg0) {
1290
+ const ret = Robot.__wrap(arg0);
1291
1291
  return addHeapObject(ret);
1292
1292
  };
1293
1293
 
1294
- export function __wbg_robot_new(arg0) {
1295
- const ret = Robot.__wrap(arg0);
1294
+ export function __wbg_robotsubscription_new(arg0) {
1295
+ const ret = RobotSubscription.__wrap(arg0);
1296
1296
  return addHeapObject(ret);
1297
1297
  };
1298
1298
 
@@ -1308,8 +1308,8 @@ export function __wbindgen_boolean_get(arg0) {
1308
1308
  return ret;
1309
1309
  };
1310
1310
 
1311
- export function __wbindgen_error_new(arg0, arg1) {
1312
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1311
+ export function __wbindgen_object_clone_ref(arg0) {
1312
+ const ret = getObject(arg0);
1313
1313
  return addHeapObject(ret);
1314
1314
  };
1315
1315
 
@@ -1360,16 +1360,16 @@ export function __wbindgen_is_undefined(arg0) {
1360
1360
  return ret;
1361
1361
  };
1362
1362
 
1363
+ export function __wbindgen_error_new(arg0, arg1) {
1364
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1365
+ return addHeapObject(ret);
1366
+ };
1367
+
1363
1368
  export function __wbindgen_is_string(arg0) {
1364
1369
  const ret = typeof(getObject(arg0)) === 'string';
1365
1370
  return ret;
1366
1371
  };
1367
1372
 
1368
- export function __wbindgen_object_clone_ref(arg0) {
1369
- const ret = getObject(arg0);
1370
- return addHeapObject(ret);
1371
- };
1372
-
1373
1373
  export function __wbg_readyState_13e55da5ad6d64e2(arg0) {
1374
1374
  const ret = getObject(arg0).readyState;
1375
1375
  return ret;
@@ -1470,12 +1470,12 @@ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1470
1470
  return ret;
1471
1471
  };
1472
1472
 
1473
- export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
1473
+ export function __wbg_getwithrefkey_3b3c46ba20582127(arg0, arg1) {
1474
1474
  const ret = getObject(arg0)[getObject(arg1)];
1475
1475
  return addHeapObject(ret);
1476
1476
  };
1477
1477
 
1478
- export function __wbg_set_841ac57cff3d672b(arg0, arg1, arg2) {
1478
+ export function __wbg_set_8761474ad72b9bf1(arg0, arg1, arg2) {
1479
1479
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1480
1480
  };
1481
1481
 
@@ -1708,33 +1708,33 @@ export function __wbindgen_memory() {
1708
1708
  return addHeapObject(ret);
1709
1709
  };
1710
1710
 
1711
- export function __wbindgen_closure_wrapper1698(arg0, arg1, arg2) {
1712
- const ret = makeMutClosure(arg0, arg1, 677, __wbg_adapter_48);
1711
+ export function __wbindgen_closure_wrapper1694(arg0, arg1, arg2) {
1712
+ const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_48);
1713
1713
  return addHeapObject(ret);
1714
1714
  };
1715
1715
 
1716
- export function __wbindgen_closure_wrapper1700(arg0, arg1, arg2) {
1717
- const ret = makeMutClosure(arg0, arg1, 677, __wbg_adapter_51);
1716
+ export function __wbindgen_closure_wrapper1696(arg0, arg1, arg2) {
1717
+ const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_51);
1718
1718
  return addHeapObject(ret);
1719
1719
  };
1720
1720
 
1721
- export function __wbindgen_closure_wrapper1702(arg0, arg1, arg2) {
1722
- const ret = makeMutClosure(arg0, arg1, 677, __wbg_adapter_48);
1721
+ export function __wbindgen_closure_wrapper1698(arg0, arg1, arg2) {
1722
+ const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_48);
1723
1723
  return addHeapObject(ret);
1724
1724
  };
1725
1725
 
1726
- export function __wbindgen_closure_wrapper1704(arg0, arg1, arg2) {
1727
- const ret = makeMutClosure(arg0, arg1, 677, __wbg_adapter_48);
1726
+ export function __wbindgen_closure_wrapper1700(arg0, arg1, arg2) {
1727
+ const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_48);
1728
1728
  return addHeapObject(ret);
1729
1729
  };
1730
1730
 
1731
- export function __wbindgen_closure_wrapper2450(arg0, arg1, arg2) {
1732
- const ret = makeMutClosure(arg0, arg1, 787, __wbg_adapter_58);
1731
+ export function __wbindgen_closure_wrapper2446(arg0, arg1, arg2) {
1732
+ const ret = makeMutClosure(arg0, arg1, 783, __wbg_adapter_58);
1733
1733
  return addHeapObject(ret);
1734
1734
  };
1735
1735
 
1736
- export function __wbindgen_closure_wrapper2499(arg0, arg1, arg2) {
1737
- const ret = makeMutClosure(arg0, arg1, 806, __wbg_adapter_61);
1736
+ export function __wbindgen_closure_wrapper2495(arg0, arg1, arg2) {
1737
+ const ret = makeMutClosure(arg0, arg1, 802, __wbg_adapter_61);
1738
1738
  return addHeapObject(ret);
1739
1739
  };
1740
1740
 
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.1.22",
7
+ "version": "0.1.23",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "repository": {
10
10
  "type": "git",