lebai_sdk 0.2.21 → 0.2.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.d.ts CHANGED
@@ -46,6 +46,11 @@ export class Robot {
46
46
  * @returns {Promise<RobotSubscription>}
47
47
  */
48
48
  subscribe(method: string, param?: string): Promise<RobotSubscription>;
49
+ /**
50
+ * @param {any} p
51
+ * @returns {Promise<number>}
52
+ */
53
+ measure_manipulation(p: any): Promise<number>;
49
54
  /**
50
55
  * @param {any} p
51
56
  * @returns {Promise<any>}
package/lebai_sdk_bg.js CHANGED
@@ -4,11 +4,7 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
 
7
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
8
-
9
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
-
11
- cachedTextDecoder.decode();
7
+ let WASM_VECTOR_LEN = 0;
12
8
 
13
9
  let cachedUint8ArrayMemory0 = null;
14
10
 
@@ -19,13 +15,6 @@ function getUint8ArrayMemory0() {
19
15
  return cachedUint8ArrayMemory0;
20
16
  }
21
17
 
22
- function getStringFromWasm0(ptr, len) {
23
- ptr = ptr >>> 0;
24
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
25
- }
26
-
27
- let WASM_VECTOR_LEN = 0;
28
-
29
18
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
30
19
 
31
20
  let cachedTextEncoder = new lTextEncoder('utf-8');
@@ -95,6 +84,17 @@ function getDataViewMemory0() {
95
84
  return cachedDataViewMemory0;
96
85
  }
97
86
 
87
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
88
+
89
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
90
+
91
+ cachedTextDecoder.decode();
92
+
93
+ function getStringFromWasm0(ptr, len) {
94
+ ptr = ptr >>> 0;
95
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
96
+ }
97
+
98
98
  function debugString(val) {
99
99
  // primitive types
100
100
  const type = typeof val;
@@ -190,20 +190,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
190
190
  CLOSURE_DTORS.register(real, state, state);
191
191
  return real;
192
192
  }
193
- function __wbg_adapter_52(arg0, arg1, arg2) {
194
- wasm.closure732_externref_shim(arg0, arg1, arg2);
193
+ function __wbg_adapter_52(arg0, arg1) {
194
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1e10215c3de5f9ca(arg0, arg1);
195
195
  }
196
196
 
197
- function __wbg_adapter_59(arg0, arg1) {
198
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heb59d1f546bcac31(arg0, arg1);
197
+ function __wbg_adapter_55(arg0, arg1, arg2) {
198
+ wasm.closure738_externref_shim(arg0, arg1, arg2);
199
199
  }
200
200
 
201
201
  function __wbg_adapter_62(arg0, arg1, arg2) {
202
- wasm.closure814_externref_shim(arg0, arg1, arg2);
202
+ wasm.closure818_externref_shim(arg0, arg1, arg2);
203
203
  }
204
204
 
205
205
  function __wbg_adapter_65(arg0, arg1) {
206
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h00e3e5994b15977d(arg0, arg1);
206
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ec21dad0e1f248d(arg0, arg1);
207
207
  }
208
208
 
209
209
  function addToExternrefTable0(obj) {
@@ -310,8 +310,8 @@ function getArrayU8FromWasm0(ptr, len) {
310
310
  }
311
311
 
312
312
  function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
313
- function __wbg_adapter_270(arg0, arg1, arg2, arg3) {
314
- wasm.closure903_externref_shim(arg0, arg1, arg2, arg3);
313
+ function __wbg_adapter_271(arg0, arg1, arg2, arg3) {
314
+ wasm.closure899_externref_shim(arg0, arg1, arg2, arg3);
315
315
  }
316
316
 
317
317
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -381,6 +381,14 @@ export class Robot {
381
381
  const ret = wasm.robot_subscribe(this.__wbg_ptr, ptr0, len0, ptr1, len1);
382
382
  return ret;
383
383
  }
384
+ /**
385
+ * @param {any} p
386
+ * @returns {Promise<number>}
387
+ */
388
+ measure_manipulation(p) {
389
+ const ret = wasm.robot_measure_manipulation(this.__wbg_ptr, p);
390
+ return ret;
391
+ }
384
392
  /**
385
393
  * @param {any} p
386
394
  * @returns {Promise<any>}
@@ -1364,11 +1372,6 @@ export class RobotSubscription {
1364
1372
  }
1365
1373
  }
1366
1374
 
1367
- export function __wbindgen_string_new(arg0, arg1) {
1368
- const ret = getStringFromWasm0(arg0, arg1);
1369
- return ret;
1370
- };
1371
-
1372
1375
  export function __wbindgen_string_get(arg0, arg1) {
1373
1376
  const obj = arg1;
1374
1377
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1383,6 +1386,11 @@ export function __wbindgen_number_new(arg0) {
1383
1386
  return ret;
1384
1387
  };
1385
1388
 
1389
+ export function __wbindgen_string_new(arg0, arg1) {
1390
+ const ret = getStringFromWasm0(arg0, arg1);
1391
+ return ret;
1392
+ };
1393
+
1386
1394
  export function __wbg_robotsubscription_new(arg0) {
1387
1395
  const ret = RobotSubscription.__wrap(arg0);
1388
1396
  return ret;
@@ -1393,11 +1401,6 @@ export function __wbg_robot_new(arg0) {
1393
1401
  return ret;
1394
1402
  };
1395
1403
 
1396
- export function __wbindgen_as_number(arg0) {
1397
- const ret = +arg0;
1398
- return ret;
1399
- };
1400
-
1401
1404
  export function __wbindgen_error_new(arg0, arg1) {
1402
1405
  const ret = new Error(getStringFromWasm0(arg0, arg1));
1403
1406
  return ret;
@@ -1409,6 +1412,11 @@ export function __wbindgen_boolean_get(arg0) {
1409
1412
  return ret;
1410
1413
  };
1411
1414
 
1415
+ export function __wbindgen_is_bigint(arg0) {
1416
+ const ret = typeof(arg0) === 'bigint';
1417
+ return ret;
1418
+ };
1419
+
1412
1420
  export function __wbindgen_number_get(arg0, arg1) {
1413
1421
  const obj = arg1;
1414
1422
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -1416,27 +1424,12 @@ export function __wbindgen_number_get(arg0, arg1) {
1416
1424
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1417
1425
  };
1418
1426
 
1419
- export function __wbindgen_cb_drop(arg0) {
1420
- const obj = arg0.original;
1421
- if (obj.cnt-- == 1) {
1422
- obj.a = 0;
1423
- return true;
1424
- }
1425
- const ret = false;
1426
- return ret;
1427
- };
1428
-
1429
1427
  export function __wbindgen_is_object(arg0) {
1430
1428
  const val = arg0;
1431
1429
  const ret = typeof(val) === 'object' && val !== null;
1432
1430
  return ret;
1433
1431
  };
1434
1432
 
1435
- export function __wbindgen_is_bigint(arg0) {
1436
- const ret = typeof(arg0) === 'bigint';
1437
- return ret;
1438
- };
1439
-
1440
1433
  export function __wbindgen_in(arg0, arg1) {
1441
1434
  const ret = arg0 in arg1;
1442
1435
  return ret;
@@ -1462,11 +1455,26 @@ export function __wbindgen_is_undefined(arg0) {
1462
1455
  return ret;
1463
1456
  };
1464
1457
 
1458
+ export function __wbindgen_cb_drop(arg0) {
1459
+ const obj = arg0.original;
1460
+ if (obj.cnt-- == 1) {
1461
+ obj.a = 0;
1462
+ return true;
1463
+ }
1464
+ const ret = false;
1465
+ return ret;
1466
+ };
1467
+
1465
1468
  export function __wbindgen_is_string(arg0) {
1466
1469
  const ret = typeof(arg0) === 'string';
1467
1470
  return ret;
1468
1471
  };
1469
1472
 
1473
+ export function __wbg_data_134d3a704b9fca32(arg0) {
1474
+ const ret = arg0.data;
1475
+ return ret;
1476
+ };
1477
+
1470
1478
  export function __wbg_setonce_9f2ce9d61cf01425(arg0, arg1) {
1471
1479
  arg0.once = arg1 !== 0;
1472
1480
  };
@@ -1519,11 +1527,6 @@ export function __wbg_removeEventListener_4c13d11156153514() { return handleErro
1519
1527
  arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
1520
1528
  }, arguments) };
1521
1529
 
1522
- export function __wbg_data_134d3a704b9fca32(arg0) {
1523
- const ret = arg0.data;
1524
- return ret;
1525
- };
1526
-
1527
1530
  export function __wbg_readyState_bc0231e8c43b0907(arg0) {
1528
1531
  const ret = arg0.readyState;
1529
1532
  return ret;
@@ -1550,6 +1553,8 @@ export function __wbg_send_fe006eb24f5e2694() { return handleError(function (arg
1550
1553
  arg0.send(getArrayU8FromWasm0(arg1, arg2));
1551
1554
  }, arguments) };
1552
1555
 
1556
+ export const __wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
1557
+
1553
1558
  export function __wbg_queueMicrotask_848aa4969108a57e(arg0) {
1554
1559
  const ret = arg0.queueMicrotask;
1555
1560
  return ret;
@@ -1560,8 +1565,6 @@ export function __wbindgen_is_function(arg0) {
1560
1565
  return ret;
1561
1566
  };
1562
1567
 
1563
- export const __wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
1564
-
1565
1568
  export const __wbg_clearTimeout_76877dbc010e786d = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
1566
1569
 
1567
1570
  export function __wbg_setTimeout_75cb9b6991a4031d() { return handleError(function (arg0, arg1) {
@@ -1574,6 +1577,11 @@ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1574
1577
  return ret;
1575
1578
  };
1576
1579
 
1580
+ export function __wbindgen_as_number(arg0) {
1581
+ const ret = +arg0;
1582
+ return ret;
1583
+ };
1584
+
1577
1585
  export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
1578
1586
  const ret = arg0[arg1];
1579
1587
  return ret;
@@ -1742,7 +1750,7 @@ export function __wbg_new_1073970097e5a420(arg0, arg1) {
1742
1750
  const a = state0.a;
1743
1751
  state0.a = 0;
1744
1752
  try {
1745
- return __wbg_adapter_270(a, state0.b, arg0, arg1);
1753
+ return __wbg_adapter_271(a, state0.b, arg0, arg1);
1746
1754
  } finally {
1747
1755
  state0.a = a;
1748
1756
  }
@@ -1818,33 +1826,33 @@ export function __wbindgen_memory() {
1818
1826
  return ret;
1819
1827
  };
1820
1828
 
1821
- export function __wbindgen_closure_wrapper1877(arg0, arg1, arg2) {
1822
- const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_52);
1829
+ export function __wbindgen_closure_wrapper1795(arg0, arg1, arg2) {
1830
+ const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_52);
1823
1831
  return ret;
1824
1832
  };
1825
1833
 
1826
- export function __wbindgen_closure_wrapper1879(arg0, arg1, arg2) {
1827
- const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_52);
1834
+ export function __wbindgen_closure_wrapper1797(arg0, arg1, arg2) {
1835
+ const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_55);
1828
1836
  return ret;
1829
1837
  };
1830
1838
 
1831
- export function __wbindgen_closure_wrapper1881(arg0, arg1, arg2) {
1832
- const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_52);
1839
+ export function __wbindgen_closure_wrapper1799(arg0, arg1, arg2) {
1840
+ const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_55);
1833
1841
  return ret;
1834
1842
  };
1835
1843
 
1836
- export function __wbindgen_closure_wrapper1883(arg0, arg1, arg2) {
1837
- const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_59);
1844
+ export function __wbindgen_closure_wrapper1801(arg0, arg1, arg2) {
1845
+ const ret = makeMutClosure(arg0, arg1, 735, __wbg_adapter_55);
1838
1846
  return ret;
1839
1847
  };
1840
1848
 
1841
- export function __wbindgen_closure_wrapper2545(arg0, arg1, arg2) {
1842
- const ret = makeMutClosure(arg0, arg1, 815, __wbg_adapter_62);
1849
+ export function __wbindgen_closure_wrapper2478(arg0, arg1, arg2) {
1850
+ const ret = makeMutClosure(arg0, arg1, 819, __wbg_adapter_62);
1843
1851
  return ret;
1844
1852
  };
1845
1853
 
1846
- export function __wbindgen_closure_wrapper2576(arg0, arg1, arg2) {
1847
- const ret = makeMutClosure(arg0, arg1, 831, __wbg_adapter_65);
1854
+ export function __wbindgen_closure_wrapper2504(arg0, arg1, arg2) {
1855
+ const ret = makeMutClosure(arg0, arg1, 830, __wbg_adapter_65);
1848
1856
  return ret;
1849
1857
  };
1850
1858
 
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "rise0chen<rise0chen@163.com>"
6
6
  ],
7
7
  "description": "lebai_sdk",
8
- "version": "0.2.21",
8
+ "version": "0.2.23",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "repository": {
11
11
  "type": "git",