lebai_sdk 0.1.11 → 0.1.13
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 +55 -55
- 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;
|
@@ -132,6 +110,28 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
132
110
|
return ptr;
|
133
111
|
}
|
134
112
|
|
113
|
+
function isLikeNone(x) {
|
114
|
+
return x === undefined || x === null;
|
115
|
+
}
|
116
|
+
|
117
|
+
let cachedInt32Memory0 = null;
|
118
|
+
|
119
|
+
function getInt32Memory0() {
|
120
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
121
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
122
|
+
}
|
123
|
+
return cachedInt32Memory0;
|
124
|
+
}
|
125
|
+
|
126
|
+
let cachedFloat64Memory0 = null;
|
127
|
+
|
128
|
+
function getFloat64Memory0() {
|
129
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
130
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
131
|
+
}
|
132
|
+
return cachedFloat64Memory0;
|
133
|
+
}
|
134
|
+
|
135
135
|
let cachedBigInt64Memory0 = null;
|
136
136
|
|
137
137
|
function getBigInt64Memory0() {
|
@@ -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__h2839438a712b504b(arg0, arg1, addHeapObject(arg2));
|
235
235
|
}
|
236
236
|
|
237
237
|
function __wbg_adapter_55(arg0, arg1) {
|
238
|
-
wasm.
|
238
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h680b6b8f369a3c31(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__h51a85773cf9886da(arg0, arg1, addHeapObject(arg2));
|
243
243
|
}
|
244
244
|
|
245
245
|
function __wbg_adapter_61(arg0, arg1) {
|
246
|
-
wasm.
|
246
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd646f7b17c8e85b7(arg0, arg1);
|
247
247
|
}
|
248
248
|
|
249
249
|
let cachedUint32Memory0 = null;
|
@@ -323,7 +323,7 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
323
323
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
324
324
|
}
|
325
325
|
function __wbg_adapter_229(arg0, arg1, arg2, arg3) {
|
326
|
-
wasm.
|
326
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h39177fd04e0af7c0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
327
327
|
}
|
328
328
|
|
329
329
|
/**
|
@@ -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,10 +1210,9 @@ export function __wbg_robot_new(arg0) {
|
|
1222
1210
|
return addHeapObject(ret);
|
1223
1211
|
};
|
1224
1212
|
|
1225
|
-
export function
|
1226
|
-
const
|
1227
|
-
|
1228
|
-
return ret;
|
1213
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1214
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1215
|
+
return addHeapObject(ret);
|
1229
1216
|
};
|
1230
1217
|
|
1231
1218
|
export function __wbindgen_string_get(arg0, arg1) {
|
@@ -1237,6 +1224,19 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
1237
1224
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
1238
1225
|
};
|
1239
1226
|
|
1227
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1228
|
+
const obj = getObject(arg1);
|
1229
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1230
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1231
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1232
|
+
};
|
1233
|
+
|
1234
|
+
export function __wbindgen_boolean_get(arg0) {
|
1235
|
+
const v = getObject(arg0);
|
1236
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1237
|
+
return ret;
|
1238
|
+
};
|
1239
|
+
|
1240
1240
|
export function __wbindgen_is_object(arg0) {
|
1241
1241
|
const val = getObject(arg0);
|
1242
1242
|
const ret = typeof(val) === 'object' && val !== null;
|
@@ -1592,33 +1592,33 @@ export function __wbindgen_memory() {
|
|
1592
1592
|
return addHeapObject(ret);
|
1593
1593
|
};
|
1594
1594
|
|
1595
|
-
export function
|
1596
|
-
const ret = makeMutClosure(arg0, arg1,
|
1595
|
+
export function __wbindgen_closure_wrapper1714(arg0, arg1, arg2) {
|
1596
|
+
const ret = makeMutClosure(arg0, arg1, 653, __wbg_adapter_48);
|
1597
1597
|
return addHeapObject(ret);
|
1598
1598
|
};
|
1599
1599
|
|
1600
|
-
export function
|
1601
|
-
const ret = makeMutClosure(arg0, arg1,
|
1600
|
+
export function __wbindgen_closure_wrapper1716(arg0, arg1, arg2) {
|
1601
|
+
const ret = makeMutClosure(arg0, arg1, 653, __wbg_adapter_48);
|
1602
1602
|
return addHeapObject(ret);
|
1603
1603
|
};
|
1604
1604
|
|
1605
|
-
export function
|
1606
|
-
const ret = makeMutClosure(arg0, arg1,
|
1605
|
+
export function __wbindgen_closure_wrapper1718(arg0, arg1, arg2) {
|
1606
|
+
const ret = makeMutClosure(arg0, arg1, 653, __wbg_adapter_48);
|
1607
1607
|
return addHeapObject(ret);
|
1608
1608
|
};
|
1609
1609
|
|
1610
|
-
export function
|
1611
|
-
const ret = makeMutClosure(arg0, arg1,
|
1610
|
+
export function __wbindgen_closure_wrapper1720(arg0, arg1, arg2) {
|
1611
|
+
const ret = makeMutClosure(arg0, arg1, 653, __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_wrapper2185(arg0, arg1, arg2) {
|
1616
|
+
const ret = makeMutClosure(arg0, arg1, 723, __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_wrapper2225(arg0, arg1, arg2) {
|
1621
|
+
const ret = makeMutClosure(arg0, arg1, 740, __wbg_adapter_61);
|
1622
1622
|
return addHeapObject(ret);
|
1623
1623
|
};
|
1624
1624
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|