lebai_sdk 0.1.15 → 0.1.17

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;
@@ -33,7 +24,11 @@ function takeObject(idx) {
33
24
  return ret;
34
25
  }
35
26
 
36
- 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();
37
32
 
38
33
  let cachedUint8Memory0 = null;
39
34
 
@@ -44,6 +39,22 @@ function getUint8Memory0() {
44
39
  return cachedUint8Memory0;
45
40
  }
46
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
+
47
58
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
48
59
 
49
60
  let cachedTextEncoder = new lTextEncoder('utf-8');
@@ -112,17 +123,6 @@ function getInt32Memory0() {
112
123
  return cachedInt32Memory0;
113
124
  }
114
125
 
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() {
@@ -231,19 +231,19 @@ function makeMutClosure(arg0, arg1, dtor, f) {
231
231
  return real;
232
232
  }
233
233
  function __wbg_adapter_48(arg0, arg1, arg2) {
234
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h13f7d1ed76369391(arg0, arg1, addHeapObject(arg2));
234
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h14a0a7cc34d6cb7b(arg0, arg1, addHeapObject(arg2));
235
235
  }
236
236
 
237
- function __wbg_adapter_53(arg0, arg1) {
238
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h449ab864e507fca8(arg0, arg1);
237
+ function __wbg_adapter_55(arg0, arg1) {
238
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heeda6a83a91cd6af(arg0, arg1);
239
239
  }
240
240
 
241
241
  function __wbg_adapter_58(arg0, arg1, arg2) {
242
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h61dcfe8467004f4a(arg0, arg1, addHeapObject(arg2));
242
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h418bcfa3d9cfb1d7(arg0, arg1, addHeapObject(arg2));
243
243
  }
244
244
 
245
245
  function __wbg_adapter_61(arg0, arg1) {
246
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf4a29d40d1827e55(arg0, arg1);
246
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__h3202873ee772e7ea(arg0, arg1);
247
247
  }
248
248
 
249
249
  let cachedUint32Memory0 = null;
@@ -323,7 +323,7 @@ function getArrayU8FromWasm0(ptr, len) {
323
323
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
324
324
  }
325
325
  function __wbg_adapter_234(arg0, arg1, arg2, arg3) {
326
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h174c72652431fca0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
326
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h2a9104be04933eb2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
327
327
  }
328
328
 
329
329
  /**
@@ -1219,15 +1219,15 @@ 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
  };
1230
1225
 
1226
+ export function __wbindgen_string_new(arg0, arg1) {
1227
+ const ret = getStringFromWasm0(arg0, arg1);
1228
+ return addHeapObject(ret);
1229
+ };
1230
+
1231
1231
  export function __wbindgen_string_get(arg0, arg1) {
1232
1232
  const obj = getObject(arg1);
1233
1233
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1237,13 +1237,13 @@ export function __wbindgen_string_get(arg0, arg1) {
1237
1237
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1238
1238
  };
1239
1239
 
1240
- export function __wbg_robot_new(arg0) {
1241
- const ret = Robot.__wrap(arg0);
1240
+ export function __wbindgen_number_new(arg0) {
1241
+ const ret = arg0;
1242
1242
  return addHeapObject(ret);
1243
1243
  };
1244
1244
 
1245
- export function __wbindgen_string_new(arg0, arg1) {
1246
- const ret = getStringFromWasm0(arg0, arg1);
1245
+ export function __wbg_robot_new(arg0) {
1246
+ const ret = Robot.__wrap(arg0);
1247
1247
  return addHeapObject(ret);
1248
1248
  };
1249
1249
 
@@ -1258,34 +1258,12 @@ export function __wbindgen_is_object(arg0) {
1258
1258
  return ret;
1259
1259
  };
1260
1260
 
1261
- export function __wbindgen_cb_drop(arg0) {
1262
- const obj = takeObject(arg0).original;
1263
- if (obj.cnt-- == 1) {
1264
- obj.a = 0;
1265
- return true;
1266
- }
1267
- const ret = false;
1268
- return ret;
1269
- };
1270
-
1271
- export function __wbindgen_error_new(arg0, arg1) {
1272
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1273
- return addHeapObject(ret);
1274
- };
1275
-
1276
1261
  export function __wbindgen_boolean_get(arg0) {
1277
1262
  const v = getObject(arg0);
1278
1263
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1279
1264
  return ret;
1280
1265
  };
1281
1266
 
1282
- export function __wbindgen_number_get(arg0, arg1) {
1283
- const obj = getObject(arg1);
1284
- const ret = typeof(obj) === 'number' ? obj : undefined;
1285
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1286
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1287
- };
1288
-
1289
1267
  export function __wbindgen_is_bigint(arg0) {
1290
1268
  const ret = typeof(getObject(arg0)) === 'bigint';
1291
1269
  return ret;
@@ -1306,6 +1284,13 @@ export function __wbindgen_bigint_from_u64(arg0) {
1306
1284
  return addHeapObject(ret);
1307
1285
  };
1308
1286
 
1287
+ export function __wbindgen_number_get(arg0, arg1) {
1288
+ const obj = getObject(arg1);
1289
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1290
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1291
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1292
+ };
1293
+
1309
1294
  export function __wbindgen_in(arg0, arg1) {
1310
1295
  const ret = getObject(arg0) in getObject(arg1);
1311
1296
  return ret;
@@ -1316,6 +1301,21 @@ export function __wbindgen_is_undefined(arg0) {
1316
1301
  return ret;
1317
1302
  };
1318
1303
 
1304
+ export function __wbindgen_cb_drop(arg0) {
1305
+ const obj = takeObject(arg0).original;
1306
+ if (obj.cnt-- == 1) {
1307
+ obj.a = 0;
1308
+ return true;
1309
+ }
1310
+ const ret = false;
1311
+ return ret;
1312
+ };
1313
+
1314
+ export function __wbindgen_error_new(arg0, arg1) {
1315
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1316
+ return addHeapObject(ret);
1317
+ };
1318
+
1319
1319
  export function __wbindgen_is_string(arg0) {
1320
1320
  const ret = typeof(getObject(arg0)) === 'string';
1321
1321
  return ret;
@@ -1349,6 +1349,23 @@ export function __wbg_newwitheventinitdict_1f554ee93659ab92() { return handleErr
1349
1349
  return addHeapObject(ret);
1350
1350
  }, arguments) };
1351
1351
 
1352
+ export function __wbg_addEventListener_5651108fc3ffeb6e() { return handleError(function (arg0, arg1, arg2, arg3) {
1353
+ getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1354
+ }, arguments) };
1355
+
1356
+ export function __wbg_addEventListener_a5963e26cd7b176b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1357
+ getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
1358
+ }, arguments) };
1359
+
1360
+ export function __wbg_dispatchEvent_a622a6455be582eb() { return handleError(function (arg0, arg1) {
1361
+ const ret = getObject(arg0).dispatchEvent(getObject(arg1));
1362
+ return ret;
1363
+ }, arguments) };
1364
+
1365
+ export function __wbg_removeEventListener_5de660c02ed784e4() { return handleError(function (arg0, arg1, arg2, arg3) {
1366
+ getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1367
+ }, arguments) };
1368
+
1352
1369
  export function __wbg_readyState_b25418fd198bf715(arg0) {
1353
1370
  const ret = getObject(arg0).readyState;
1354
1371
  return ret;
@@ -1380,23 +1397,6 @@ export function __wbg_data_ab99ae4a2e1e8bc9(arg0) {
1380
1397
  return addHeapObject(ret);
1381
1398
  };
1382
1399
 
1383
- export function __wbg_addEventListener_5651108fc3ffeb6e() { return handleError(function (arg0, arg1, arg2, arg3) {
1384
- getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1385
- }, arguments) };
1386
-
1387
- export function __wbg_addEventListener_a5963e26cd7b176b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1388
- getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
1389
- }, arguments) };
1390
-
1391
- export function __wbg_dispatchEvent_a622a6455be582eb() { return handleError(function (arg0, arg1) {
1392
- const ret = getObject(arg0).dispatchEvent(getObject(arg1));
1393
- return ret;
1394
- }, arguments) };
1395
-
1396
- export function __wbg_removeEventListener_5de660c02ed784e4() { return handleError(function (arg0, arg1, arg2, arg3) {
1397
- getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1398
- }, arguments) };
1399
-
1400
1400
  export function __wbg_clearTimeout_76877dbc010e786d(arg0) {
1401
1401
  const ret = clearTimeout(takeObject(arg0));
1402
1402
  return addHeapObject(ret);
@@ -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_wrapper1597(arg0, arg1, arg2) {
1634
+ const ret = makeMutClosure(arg0, arg1, 660, __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_wrapper1599(arg0, arg1, arg2) {
1639
+ const ret = makeMutClosure(arg0, arg1, 660, __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_wrapper1601(arg0, arg1, arg2) {
1644
+ const ret = makeMutClosure(arg0, arg1, 660, __wbg_adapter_48);
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_wrapper1603(arg0, arg1, arg2) {
1649
+ const ret = makeMutClosure(arg0, arg1, 660, __wbg_adapter_55);
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_wrapper2345(arg0, arg1, arg2) {
1654
+ const ret = makeMutClosure(arg0, arg1, 776, __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_wrapper2392(arg0, arg1, arg2) {
1659
+ const ret = makeMutClosure(arg0, arg1, 799, __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.17",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",