lebai_sdk 0.1.3 → 0.1.5
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 +30 -30
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk_bg.js
CHANGED
@@ -4,10 +4,19 @@ const heap = new Array(32).fill(undefined);
|
|
4
4
|
|
5
5
|
heap.push(undefined, null, true, false);
|
6
6
|
|
7
|
-
function getObject(idx) { return heap[idx]; }
|
8
|
-
|
9
7
|
let heap_next = heap.length;
|
10
8
|
|
9
|
+
function addHeapObject(obj) {
|
10
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
11
|
+
const idx = heap_next;
|
12
|
+
heap_next = heap[idx];
|
13
|
+
|
14
|
+
heap[idx] = obj;
|
15
|
+
return idx;
|
16
|
+
}
|
17
|
+
|
18
|
+
function getObject(idx) { return heap[idx]; }
|
19
|
+
|
11
20
|
function dropObject(idx) {
|
12
21
|
if (idx < 36) return;
|
13
22
|
heap[idx] = heap_next;
|
@@ -20,15 +29,6 @@ function takeObject(idx) {
|
|
20
29
|
return ret;
|
21
30
|
}
|
22
31
|
|
23
|
-
function addHeapObject(obj) {
|
24
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
25
|
-
const idx = heap_next;
|
26
|
-
heap_next = heap[idx];
|
27
|
-
|
28
|
-
heap[idx] = obj;
|
29
|
-
return idx;
|
30
|
-
}
|
31
|
-
|
32
32
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
33
33
|
|
34
34
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
@@ -226,11 +226,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
226
226
|
return real;
|
227
227
|
}
|
228
228
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
229
|
-
wasm.
|
229
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h366369483d22bcaf(arg0, arg1, addHeapObject(arg2));
|
230
230
|
}
|
231
231
|
|
232
|
-
function
|
233
|
-
wasm.
|
232
|
+
function __wbg_adapter_53(arg0, arg1) {
|
233
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0df4c157cd7dc806(arg0, arg1);
|
234
234
|
}
|
235
235
|
|
236
236
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
@@ -978,17 +978,17 @@ export class RobotSubscription {
|
|
978
978
|
}
|
979
979
|
}
|
980
980
|
|
981
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
982
|
-
takeObject(arg0);
|
983
|
-
};
|
984
|
-
|
985
981
|
export function __wbindgen_number_new(arg0) {
|
986
982
|
const ret = arg0;
|
987
983
|
return addHeapObject(ret);
|
988
984
|
};
|
989
985
|
|
990
|
-
export function
|
991
|
-
|
986
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
987
|
+
takeObject(arg0);
|
988
|
+
};
|
989
|
+
|
990
|
+
export function __wbg_robot_new(arg0) {
|
991
|
+
const ret = Robot.__wrap(arg0);
|
992
992
|
return addHeapObject(ret);
|
993
993
|
};
|
994
994
|
|
@@ -997,8 +997,8 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
997
997
|
return addHeapObject(ret);
|
998
998
|
};
|
999
999
|
|
1000
|
-
export function
|
1001
|
-
const ret =
|
1000
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1001
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1002
1002
|
return addHeapObject(ret);
|
1003
1003
|
};
|
1004
1004
|
|
@@ -1026,6 +1026,12 @@ export function __wbindgen_cb_drop(arg0) {
|
|
1026
1026
|
return ret;
|
1027
1027
|
};
|
1028
1028
|
|
1029
|
+
export function __wbindgen_boolean_get(arg0) {
|
1030
|
+
const v = getObject(arg0);
|
1031
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1032
|
+
return ret;
|
1033
|
+
};
|
1034
|
+
|
1029
1035
|
export function __wbindgen_number_get(arg0, arg1) {
|
1030
1036
|
const obj = getObject(arg1);
|
1031
1037
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
@@ -1033,12 +1039,6 @@ export function __wbindgen_number_get(arg0, arg1) {
|
|
1033
1039
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1034
1040
|
};
|
1035
1041
|
|
1036
|
-
export function __wbindgen_boolean_get(arg0) {
|
1037
|
-
const v = getObject(arg0);
|
1038
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1039
|
-
return ret;
|
1040
|
-
};
|
1041
|
-
|
1042
1042
|
export function __wbindgen_is_bigint(arg0) {
|
1043
1043
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
1044
1044
|
return ret;
|
@@ -1397,12 +1397,12 @@ export function __wbindgen_closure_wrapper1402(arg0, arg1, arg2) {
|
|
1397
1397
|
};
|
1398
1398
|
|
1399
1399
|
export function __wbindgen_closure_wrapper1404(arg0, arg1, arg2) {
|
1400
|
-
const ret = makeMutClosure(arg0, arg1, 532,
|
1400
|
+
const ret = makeMutClosure(arg0, arg1, 532, __wbg_adapter_53);
|
1401
1401
|
return addHeapObject(ret);
|
1402
1402
|
};
|
1403
1403
|
|
1404
1404
|
export function __wbindgen_closure_wrapper1406(arg0, arg1, arg2) {
|
1405
|
-
const ret = makeMutClosure(arg0, arg1, 532,
|
1405
|
+
const ret = makeMutClosure(arg0, arg1, 532, __wbg_adapter_48);
|
1406
1406
|
return addHeapObject(ret);
|
1407
1407
|
};
|
1408
1408
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|