lebai_sdk 0.2.21 → 0.2.22

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;
@@ -191,19 +191,19 @@ function makeMutClosure(arg0, arg1, dtor, f) {
191
191
  return real;
192
192
  }
193
193
  function __wbg_adapter_52(arg0, arg1, arg2) {
194
- wasm.closure732_externref_shim(arg0, arg1, arg2);
194
+ wasm.closure741_externref_shim(arg0, arg1, arg2);
195
195
  }
196
196
 
197
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);
198
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc1dfdd5a9b31566c(arg0, arg1);
199
199
  }
200
200
 
201
201
  function __wbg_adapter_62(arg0, arg1, arg2) {
202
- wasm.closure814_externref_shim(arg0, arg1, arg2);
202
+ wasm.closure826_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__h1492670597d00f16(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.closure915_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;
@@ -1388,13 +1391,13 @@ export function __wbg_robotsubscription_new(arg0) {
1388
1391
  return ret;
1389
1392
  };
1390
1393
 
1391
- export function __wbg_robot_new(arg0) {
1392
- const ret = Robot.__wrap(arg0);
1394
+ export function __wbindgen_string_new(arg0, arg1) {
1395
+ const ret = getStringFromWasm0(arg0, arg1);
1393
1396
  return ret;
1394
1397
  };
1395
1398
 
1396
- export function __wbindgen_as_number(arg0) {
1397
- const ret = +arg0;
1399
+ export function __wbg_robot_new(arg0) {
1400
+ const ret = Robot.__wrap(arg0);
1398
1401
  return ret;
1399
1402
  };
1400
1403
 
@@ -1416,13 +1419,8 @@ export function __wbindgen_number_get(arg0, arg1) {
1416
1419
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1417
1420
  };
1418
1421
 
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;
1422
+ export function __wbindgen_as_number(arg0) {
1423
+ const ret = +arg0;
1426
1424
  return ret;
1427
1425
  };
1428
1426
 
@@ -1462,6 +1460,16 @@ export function __wbindgen_is_undefined(arg0) {
1462
1460
  return ret;
1463
1461
  };
1464
1462
 
1463
+ export function __wbindgen_cb_drop(arg0) {
1464
+ const obj = arg0.original;
1465
+ if (obj.cnt-- == 1) {
1466
+ obj.a = 0;
1467
+ return true;
1468
+ }
1469
+ const ret = false;
1470
+ return ret;
1471
+ };
1472
+
1465
1473
  export function __wbindgen_is_string(arg0) {
1466
1474
  const ret = typeof(arg0) === 'string';
1467
1475
  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_wrapper1889(arg0, arg1, arg2) {
1830
+ const ret = makeMutClosure(arg0, arg1, 742, __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_wrapper1891(arg0, arg1, arg2) {
1835
+ const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_52);
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_wrapper1893(arg0, arg1, arg2) {
1840
+ const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_52);
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_wrapper1895(arg0, arg1, arg2) {
1845
+ const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_59);
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_wrapper2538(arg0, arg1, arg2) {
1850
+ const ret = makeMutClosure(arg0, arg1, 827, __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_wrapper2569(arg0, arg1, arg2) {
1855
+ const ret = makeMutClosure(arg0, arg1, 843, __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.22",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "repository": {
11
11
  "type": "git",