lebai_sdk 0.1.19 → 0.1.20
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 +16 -0
- package/lebai_sdk_bg.js +63 -30
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk.d.ts
CHANGED
@@ -262,6 +262,22 @@ export class Robot {
|
|
262
262
|
*/
|
263
263
|
add_signal(index: number, value: number): Promise<void>;
|
264
264
|
/**
|
265
|
+
* @param {string} key
|
266
|
+
* @param {string} value
|
267
|
+
* @returns {Promise<void>}
|
268
|
+
*/
|
269
|
+
set_item(key: string, value: string): Promise<void>;
|
270
|
+
/**
|
271
|
+
* @param {string} key
|
272
|
+
* @returns {Promise<any>}
|
273
|
+
*/
|
274
|
+
get_item(key: string): Promise<any>;
|
275
|
+
/**
|
276
|
+
* @param {string} prefix
|
277
|
+
* @returns {Promise<any>}
|
278
|
+
*/
|
279
|
+
get_items(prefix: string): Promise<any>;
|
280
|
+
/**
|
265
281
|
* @param {string} scene
|
266
282
|
* @param {any | undefined} params
|
267
283
|
* @param {string | undefined} dir
|
package/lebai_sdk_bg.js
CHANGED
@@ -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.
|
234
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h231cdc31d5e648b0(arg0, arg1, addHeapObject(arg2));
|
235
235
|
}
|
236
236
|
|
237
|
-
function
|
238
|
-
wasm.
|
237
|
+
function __wbg_adapter_51(arg0, arg1) {
|
238
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5bad810fbe7d5326(arg0, arg1);
|
239
239
|
}
|
240
240
|
|
241
241
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
242
|
-
wasm.
|
242
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1aa97e2e62025508(arg0, arg1, addHeapObject(arg2));
|
243
243
|
}
|
244
244
|
|
245
245
|
function __wbg_adapter_61(arg0, arg1) {
|
246
|
-
wasm.
|
246
|
+
wasm.wasm_bindgen__convert__closures__invoke0_mut__h84db21ea0680b43a(arg0, arg1);
|
247
247
|
}
|
248
248
|
|
249
249
|
let cachedUint32Memory0 = null;
|
@@ -322,8 +322,8 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
322
322
|
ptr = ptr >>> 0;
|
323
323
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
324
324
|
}
|
325
|
-
function
|
326
|
-
wasm.
|
325
|
+
function __wbg_adapter_237(arg0, arg1, arg2, arg3) {
|
326
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h113bdd07219d3bc1(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
327
327
|
}
|
328
328
|
|
329
329
|
/**
|
@@ -722,6 +722,39 @@ export class Robot {
|
|
722
722
|
return takeObject(ret);
|
723
723
|
}
|
724
724
|
/**
|
725
|
+
* @param {string} key
|
726
|
+
* @param {string} value
|
727
|
+
* @returns {Promise<void>}
|
728
|
+
*/
|
729
|
+
set_item(key, value) {
|
730
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
731
|
+
const len0 = WASM_VECTOR_LEN;
|
732
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
733
|
+
const len1 = WASM_VECTOR_LEN;
|
734
|
+
const ret = wasm.robot_set_item(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
735
|
+
return takeObject(ret);
|
736
|
+
}
|
737
|
+
/**
|
738
|
+
* @param {string} key
|
739
|
+
* @returns {Promise<any>}
|
740
|
+
*/
|
741
|
+
get_item(key) {
|
742
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
743
|
+
const len0 = WASM_VECTOR_LEN;
|
744
|
+
const ret = wasm.robot_get_item(this.__wbg_ptr, ptr0, len0);
|
745
|
+
return takeObject(ret);
|
746
|
+
}
|
747
|
+
/**
|
748
|
+
* @param {string} prefix
|
749
|
+
* @returns {Promise<any>}
|
750
|
+
*/
|
751
|
+
get_items(prefix) {
|
752
|
+
const ptr0 = passStringToWasm0(prefix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
753
|
+
const len0 = WASM_VECTOR_LEN;
|
754
|
+
const ret = wasm.robot_get_items(this.__wbg_ptr, ptr0, len0);
|
755
|
+
return takeObject(ret);
|
756
|
+
}
|
757
|
+
/**
|
725
758
|
* @param {string} scene
|
726
759
|
* @param {any | undefined} params
|
727
760
|
* @param {string | undefined} dir
|
@@ -1237,13 +1270,13 @@ export function __wbindgen_number_new(arg0) {
|
|
1237
1270
|
return addHeapObject(ret);
|
1238
1271
|
};
|
1239
1272
|
|
1240
|
-
export function
|
1241
|
-
const ret =
|
1273
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
1274
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1242
1275
|
return addHeapObject(ret);
|
1243
1276
|
};
|
1244
1277
|
|
1245
|
-
export function
|
1246
|
-
const ret =
|
1278
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1279
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1247
1280
|
return addHeapObject(ret);
|
1248
1281
|
};
|
1249
1282
|
|
@@ -1252,12 +1285,6 @@ export function __wbg_robot_new(arg0) {
|
|
1252
1285
|
return addHeapObject(ret);
|
1253
1286
|
};
|
1254
1287
|
|
1255
|
-
export function __wbindgen_is_object(arg0) {
|
1256
|
-
const val = getObject(arg0);
|
1257
|
-
const ret = typeof(val) === 'object' && val !== null;
|
1258
|
-
return ret;
|
1259
|
-
};
|
1260
|
-
|
1261
1288
|
export function __wbindgen_cb_drop(arg0) {
|
1262
1289
|
const obj = takeObject(arg0).original;
|
1263
1290
|
if (obj.cnt-- == 1) {
|
@@ -1301,6 +1328,12 @@ export function __wbindgen_number_get(arg0, arg1) {
|
|
1301
1328
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1302
1329
|
};
|
1303
1330
|
|
1331
|
+
export function __wbindgen_is_object(arg0) {
|
1332
|
+
const val = getObject(arg0);
|
1333
|
+
const ret = typeof(val) === 'object' && val !== null;
|
1334
|
+
return ret;
|
1335
|
+
};
|
1336
|
+
|
1304
1337
|
export function __wbindgen_in(arg0, arg1) {
|
1305
1338
|
const ret = getObject(arg0) in getObject(arg1);
|
1306
1339
|
return ret;
|
@@ -1549,7 +1582,7 @@ export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
1549
1582
|
const a = state0.a;
|
1550
1583
|
state0.a = 0;
|
1551
1584
|
try {
|
1552
|
-
return
|
1585
|
+
return __wbg_adapter_237(a, state0.b, arg0, arg1);
|
1553
1586
|
} finally {
|
1554
1587
|
state0.a = a;
|
1555
1588
|
}
|
@@ -1630,33 +1663,33 @@ export function __wbindgen_memory() {
|
|
1630
1663
|
return addHeapObject(ret);
|
1631
1664
|
};
|
1632
1665
|
|
1633
|
-
export function
|
1634
|
-
const ret = makeMutClosure(arg0, arg1,
|
1666
|
+
export function __wbindgen_closure_wrapper1647(arg0, arg1, arg2) {
|
1667
|
+
const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_48);
|
1635
1668
|
return addHeapObject(ret);
|
1636
1669
|
};
|
1637
1670
|
|
1638
|
-
export function
|
1639
|
-
const ret = makeMutClosure(arg0, arg1,
|
1671
|
+
export function __wbindgen_closure_wrapper1649(arg0, arg1, arg2) {
|
1672
|
+
const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_51);
|
1640
1673
|
return addHeapObject(ret);
|
1641
1674
|
};
|
1642
1675
|
|
1643
|
-
export function
|
1644
|
-
const ret = makeMutClosure(arg0, arg1,
|
1676
|
+
export function __wbindgen_closure_wrapper1651(arg0, arg1, arg2) {
|
1677
|
+
const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_48);
|
1645
1678
|
return addHeapObject(ret);
|
1646
1679
|
};
|
1647
1680
|
|
1648
|
-
export function
|
1649
|
-
const ret = makeMutClosure(arg0, arg1,
|
1681
|
+
export function __wbindgen_closure_wrapper1653(arg0, arg1, arg2) {
|
1682
|
+
const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_48);
|
1650
1683
|
return addHeapObject(ret);
|
1651
1684
|
};
|
1652
1685
|
|
1653
|
-
export function
|
1654
|
-
const ret = makeMutClosure(arg0, arg1,
|
1686
|
+
export function __wbindgen_closure_wrapper2389(arg0, arg1, arg2) {
|
1687
|
+
const ret = makeMutClosure(arg0, arg1, 785, __wbg_adapter_58);
|
1655
1688
|
return addHeapObject(ret);
|
1656
1689
|
};
|
1657
1690
|
|
1658
|
-
export function
|
1659
|
-
const ret = makeMutClosure(arg0, arg1,
|
1691
|
+
export function __wbindgen_closure_wrapper2434(arg0, arg1, arg2) {
|
1692
|
+
const ret = makeMutClosure(arg0, arg1, 807, __wbg_adapter_61);
|
1660
1693
|
return addHeapObject(ret);
|
1661
1694
|
};
|
1662
1695
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|