lebai_sdk 0.2.19 → 0.2.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_bg.js +31 -31
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk_bg.js
CHANGED
@@ -4,7 +4,11 @@ export function __wbg_set_wasm(val) {
|
|
4
4
|
}
|
5
5
|
|
6
6
|
|
7
|
-
|
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();
|
8
12
|
|
9
13
|
let cachedUint8ArrayMemory0 = null;
|
10
14
|
|
@@ -15,6 +19,13 @@ function getUint8ArrayMemory0() {
|
|
15
19
|
return cachedUint8ArrayMemory0;
|
16
20
|
}
|
17
21
|
|
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
|
+
|
18
29
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
19
30
|
|
20
31
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
@@ -84,17 +95,6 @@ function getDataViewMemory0() {
|
|
84
95
|
return cachedDataViewMemory0;
|
85
96
|
}
|
86
97
|
|
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;
|
@@ -1345,17 +1345,8 @@ export class RobotSubscription {
|
|
1345
1345
|
}
|
1346
1346
|
}
|
1347
1347
|
|
1348
|
-
export function
|
1349
|
-
const
|
1350
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
1351
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1352
|
-
var len1 = WASM_VECTOR_LEN;
|
1353
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1354
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1355
|
-
};
|
1356
|
-
|
1357
|
-
export function __wbindgen_number_new(arg0) {
|
1358
|
-
const ret = arg0;
|
1348
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
1349
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1359
1350
|
return ret;
|
1360
1351
|
};
|
1361
1352
|
|
@@ -1364,11 +1355,20 @@ export function __wbg_robotsubscription_new(arg0) {
|
|
1364
1355
|
return ret;
|
1365
1356
|
};
|
1366
1357
|
|
1367
|
-
export function
|
1368
|
-
const ret =
|
1358
|
+
export function __wbindgen_number_new(arg0) {
|
1359
|
+
const ret = arg0;
|
1369
1360
|
return ret;
|
1370
1361
|
};
|
1371
1362
|
|
1363
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
1364
|
+
const obj = arg1;
|
1365
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
1366
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1367
|
+
var len1 = WASM_VECTOR_LEN;
|
1368
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1369
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1370
|
+
};
|
1371
|
+
|
1372
1372
|
export function __wbg_robot_new(arg0) {
|
1373
1373
|
const ret = Robot.__wrap(arg0);
|
1374
1374
|
return ret;
|
@@ -1379,6 +1379,12 @@ export function __wbindgen_error_new(arg0, arg1) {
|
|
1379
1379
|
return ret;
|
1380
1380
|
};
|
1381
1381
|
|
1382
|
+
export function __wbindgen_boolean_get(arg0) {
|
1383
|
+
const v = arg0;
|
1384
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1385
|
+
return ret;
|
1386
|
+
};
|
1387
|
+
|
1382
1388
|
export function __wbindgen_number_get(arg0, arg1) {
|
1383
1389
|
const obj = arg1;
|
1384
1390
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
@@ -1386,12 +1392,6 @@ export function __wbindgen_number_get(arg0, arg1) {
|
|
1386
1392
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1387
1393
|
};
|
1388
1394
|
|
1389
|
-
export function __wbindgen_boolean_get(arg0) {
|
1390
|
-
const v = arg0;
|
1391
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1392
|
-
return ret;
|
1393
|
-
};
|
1394
|
-
|
1395
1395
|
export function __wbindgen_cb_drop(arg0) {
|
1396
1396
|
const obj = arg0.original;
|
1397
1397
|
if (obj.cnt-- == 1) {
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|