lebai_sdk 0.1.11 → 0.1.12
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 +42 -42
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk_bg.js
CHANGED
@@ -24,28 +24,6 @@ function takeObject(idx) {
|
|
24
24
|
return ret;
|
25
25
|
}
|
26
26
|
|
27
|
-
function isLikeNone(x) {
|
28
|
-
return x === undefined || x === null;
|
29
|
-
}
|
30
|
-
|
31
|
-
let cachedFloat64Memory0 = null;
|
32
|
-
|
33
|
-
function getFloat64Memory0() {
|
34
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
35
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
36
|
-
}
|
37
|
-
return cachedFloat64Memory0;
|
38
|
-
}
|
39
|
-
|
40
|
-
let cachedInt32Memory0 = null;
|
41
|
-
|
42
|
-
function getInt32Memory0() {
|
43
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
44
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
45
|
-
}
|
46
|
-
return cachedInt32Memory0;
|
47
|
-
}
|
48
|
-
|
49
27
|
function addHeapObject(obj) {
|
50
28
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
51
29
|
const idx = heap_next;
|
@@ -75,6 +53,28 @@ function getStringFromWasm0(ptr, len) {
|
|
75
53
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
76
54
|
}
|
77
55
|
|
56
|
+
function isLikeNone(x) {
|
57
|
+
return x === undefined || x === null;
|
58
|
+
}
|
59
|
+
|
60
|
+
let cachedFloat64Memory0 = null;
|
61
|
+
|
62
|
+
function getFloat64Memory0() {
|
63
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
64
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
65
|
+
}
|
66
|
+
return cachedFloat64Memory0;
|
67
|
+
}
|
68
|
+
|
69
|
+
let cachedInt32Memory0 = null;
|
70
|
+
|
71
|
+
function getInt32Memory0() {
|
72
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
73
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
74
|
+
}
|
75
|
+
return cachedInt32Memory0;
|
76
|
+
}
|
77
|
+
|
78
78
|
let WASM_VECTOR_LEN = 0;
|
79
79
|
|
80
80
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
@@ -1185,13 +1185,6 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
1185
1185
|
takeObject(arg0);
|
1186
1186
|
};
|
1187
1187
|
|
1188
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
1189
|
-
const obj = getObject(arg1);
|
1190
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1191
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1192
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1193
|
-
};
|
1194
|
-
|
1195
1188
|
export function __wbindgen_cb_drop(arg0) {
|
1196
1189
|
const obj = takeObject(arg0).original;
|
1197
1190
|
if (obj.cnt-- == 1) {
|
@@ -1207,11 +1200,6 @@ export function __wbindgen_number_new(arg0) {
|
|
1207
1200
|
return addHeapObject(ret);
|
1208
1201
|
};
|
1209
1202
|
|
1210
|
-
export function __wbg_robotsubscription_new(arg0) {
|
1211
|
-
const ret = RobotSubscription.__wrap(arg0);
|
1212
|
-
return addHeapObject(ret);
|
1213
|
-
};
|
1214
|
-
|
1215
1203
|
export function __wbindgen_string_new(arg0, arg1) {
|
1216
1204
|
const ret = getStringFromWasm0(arg0, arg1);
|
1217
1205
|
return addHeapObject(ret);
|
@@ -1222,6 +1210,18 @@ export function __wbg_robot_new(arg0) {
|
|
1222
1210
|
return addHeapObject(ret);
|
1223
1211
|
};
|
1224
1212
|
|
1213
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1214
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1215
|
+
return addHeapObject(ret);
|
1216
|
+
};
|
1217
|
+
|
1218
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1219
|
+
const obj = getObject(arg1);
|
1220
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1221
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1222
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1223
|
+
};
|
1224
|
+
|
1225
1225
|
export function __wbindgen_boolean_get(arg0) {
|
1226
1226
|
const v = getObject(arg0);
|
1227
1227
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
@@ -1592,33 +1592,33 @@ export function __wbindgen_memory() {
|
|
1592
1592
|
return addHeapObject(ret);
|
1593
1593
|
};
|
1594
1594
|
|
1595
|
-
export function
|
1595
|
+
export function __wbindgen_closure_wrapper1693(arg0, arg1, arg2) {
|
1596
1596
|
const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_48);
|
1597
1597
|
return addHeapObject(ret);
|
1598
1598
|
};
|
1599
1599
|
|
1600
|
-
export function
|
1600
|
+
export function __wbindgen_closure_wrapper1695(arg0, arg1, arg2) {
|
1601
1601
|
const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_48);
|
1602
1602
|
return addHeapObject(ret);
|
1603
1603
|
};
|
1604
1604
|
|
1605
|
-
export function
|
1605
|
+
export function __wbindgen_closure_wrapper1697(arg0, arg1, arg2) {
|
1606
1606
|
const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_48);
|
1607
1607
|
return addHeapObject(ret);
|
1608
1608
|
};
|
1609
1609
|
|
1610
|
-
export function
|
1610
|
+
export function __wbindgen_closure_wrapper1699(arg0, arg1, arg2) {
|
1611
1611
|
const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_55);
|
1612
1612
|
return addHeapObject(ret);
|
1613
1613
|
};
|
1614
1614
|
|
1615
|
-
export function
|
1616
|
-
const ret = makeMutClosure(arg0, arg1,
|
1615
|
+
export function __wbindgen_closure_wrapper2169(arg0, arg1, arg2) {
|
1616
|
+
const ret = makeMutClosure(arg0, arg1, 724, __wbg_adapter_58);
|
1617
1617
|
return addHeapObject(ret);
|
1618
1618
|
};
|
1619
1619
|
|
1620
|
-
export function
|
1621
|
-
const ret = makeMutClosure(arg0, arg1,
|
1620
|
+
export function __wbindgen_closure_wrapper2209(arg0, arg1, arg2) {
|
1621
|
+
const ret = makeMutClosure(arg0, arg1, 741, __wbg_adapter_61);
|
1622
1622
|
return addHeapObject(ret);
|
1623
1623
|
};
|
1624
1624
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|