lebai_sdk 0.1.15 → 0.1.16

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
@@ -8,19 +8,10 @@ const heap = new Array(128).fill(undefined);
8
8
 
9
9
  heap.push(undefined, null, true, false);
10
10
 
11
- let heap_next = heap.length;
12
-
13
- function addHeapObject(obj) {
14
- if (heap_next === heap.length) heap.push(heap.length + 1);
15
- const idx = heap_next;
16
- heap_next = heap[idx];
17
-
18
- heap[idx] = obj;
19
- return idx;
20
- }
21
-
22
11
  function getObject(idx) { return heap[idx]; }
23
12
 
13
+ let heap_next = heap.length;
14
+
24
15
  function dropObject(idx) {
25
16
  if (idx < 132) return;
26
17
  heap[idx] = heap_next;
@@ -123,6 +114,15 @@ function getStringFromWasm0(ptr, len) {
123
114
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
124
115
  }
125
116
 
117
+ function addHeapObject(obj) {
118
+ if (heap_next === heap.length) heap.push(heap.length + 1);
119
+ const idx = heap_next;
120
+ heap_next = heap[idx];
121
+
122
+ heap[idx] = obj;
123
+ return idx;
124
+ }
125
+
126
126
  let cachedFloat64Memory0 = null;
127
127
 
128
128
  function getFloat64Memory0() {
@@ -1219,11 +1219,6 @@ export class RobotSubscription {
1219
1219
  }
1220
1220
  }
1221
1221
 
1222
- export function __wbindgen_number_new(arg0) {
1223
- const ret = arg0;
1224
- return addHeapObject(ret);
1225
- };
1226
-
1227
1222
  export function __wbindgen_object_drop_ref(arg0) {
1228
1223
  takeObject(arg0);
1229
1224
  };
@@ -1237,13 +1232,18 @@ export function __wbindgen_string_get(arg0, arg1) {
1237
1232
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1238
1233
  };
1239
1234
 
1240
- export function __wbg_robot_new(arg0) {
1241
- const ret = Robot.__wrap(arg0);
1235
+ export function __wbindgen_string_new(arg0, arg1) {
1236
+ const ret = getStringFromWasm0(arg0, arg1);
1242
1237
  return addHeapObject(ret);
1243
1238
  };
1244
1239
 
1245
- export function __wbindgen_string_new(arg0, arg1) {
1246
- const ret = getStringFromWasm0(arg0, arg1);
1240
+ export function __wbindgen_number_new(arg0) {
1241
+ const ret = arg0;
1242
+ return addHeapObject(ret);
1243
+ };
1244
+
1245
+ export function __wbg_robot_new(arg0) {
1246
+ const ret = Robot.__wrap(arg0);
1247
1247
  return addHeapObject(ret);
1248
1248
  };
1249
1249
 
@@ -1258,6 +1258,12 @@ export function __wbindgen_is_object(arg0) {
1258
1258
  return ret;
1259
1259
  };
1260
1260
 
1261
+ export function __wbindgen_boolean_get(arg0) {
1262
+ const v = getObject(arg0);
1263
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1264
+ return ret;
1265
+ };
1266
+
1261
1267
  export function __wbindgen_cb_drop(arg0) {
1262
1268
  const obj = takeObject(arg0).original;
1263
1269
  if (obj.cnt-- == 1) {
@@ -1273,12 +1279,6 @@ export function __wbindgen_error_new(arg0, arg1) {
1273
1279
  return addHeapObject(ret);
1274
1280
  };
1275
1281
 
1276
- export function __wbindgen_boolean_get(arg0) {
1277
- const v = getObject(arg0);
1278
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1279
- return ret;
1280
- };
1281
-
1282
1282
  export function __wbindgen_number_get(arg0, arg1) {
1283
1283
  const obj = getObject(arg1);
1284
1284
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -1630,33 +1630,33 @@ export function __wbindgen_memory() {
1630
1630
  return addHeapObject(ret);
1631
1631
  };
1632
1632
 
1633
- export function __wbindgen_closure_wrapper1602(arg0, arg1, arg2) {
1634
- const ret = makeMutClosure(arg0, arg1, 640, __wbg_adapter_48);
1633
+ export function __wbindgen_closure_wrapper1609(arg0, arg1, arg2) {
1634
+ const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_48);
1635
1635
  return addHeapObject(ret);
1636
1636
  };
1637
1637
 
1638
- export function __wbindgen_closure_wrapper1604(arg0, arg1, arg2) {
1639
- const ret = makeMutClosure(arg0, arg1, 640, __wbg_adapter_48);
1638
+ export function __wbindgen_closure_wrapper1611(arg0, arg1, arg2) {
1639
+ const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_48);
1640
1640
  return addHeapObject(ret);
1641
1641
  };
1642
1642
 
1643
- export function __wbindgen_closure_wrapper1606(arg0, arg1, arg2) {
1644
- const ret = makeMutClosure(arg0, arg1, 640, __wbg_adapter_53);
1643
+ export function __wbindgen_closure_wrapper1613(arg0, arg1, arg2) {
1644
+ const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_53);
1645
1645
  return addHeapObject(ret);
1646
1646
  };
1647
1647
 
1648
- export function __wbindgen_closure_wrapper1608(arg0, arg1, arg2) {
1649
- const ret = makeMutClosure(arg0, arg1, 640, __wbg_adapter_48);
1648
+ export function __wbindgen_closure_wrapper1615(arg0, arg1, arg2) {
1649
+ const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_48);
1650
1650
  return addHeapObject(ret);
1651
1651
  };
1652
1652
 
1653
- export function __wbindgen_closure_wrapper2354(arg0, arg1, arg2) {
1654
- const ret = makeMutClosure(arg0, arg1, 756, __wbg_adapter_58);
1653
+ export function __wbindgen_closure_wrapper2361(arg0, arg1, arg2) {
1654
+ const ret = makeMutClosure(arg0, arg1, 754, __wbg_adapter_58);
1655
1655
  return addHeapObject(ret);
1656
1656
  };
1657
1657
 
1658
- export function __wbindgen_closure_wrapper2406(arg0, arg1, arg2) {
1659
- const ret = makeMutClosure(arg0, arg1, 780, __wbg_adapter_61);
1658
+ export function __wbindgen_closure_wrapper2413(arg0, arg1, arg2) {
1659
+ const ret = makeMutClosure(arg0, arg1, 778, __wbg_adapter_61);
1660
1660
  return addHeapObject(ret);
1661
1661
  };
1662
1662
 
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lebai_sdk",
3
3
  "description": "lebai_sdk",
4
- "version": "0.1.15",
4
+ "version": "0.1.16",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",