lebai_sdk 0.1.16 → 0.1.17

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 CHANGED
@@ -24,7 +24,11 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- let WASM_VECTOR_LEN = 0;
27
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
28
+
29
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
+
31
+ cachedTextDecoder.decode();
28
32
 
29
33
  let cachedUint8Memory0 = null;
30
34
 
@@ -35,6 +39,22 @@ function getUint8Memory0() {
35
39
  return cachedUint8Memory0;
36
40
  }
37
41
 
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
+ }
46
+
47
+ function addHeapObject(obj) {
48
+ if (heap_next === heap.length) heap.push(heap.length + 1);
49
+ const idx = heap_next;
50
+ heap_next = heap[idx];
51
+
52
+ heap[idx] = obj;
53
+ return idx;
54
+ }
55
+
56
+ let WASM_VECTOR_LEN = 0;
57
+
38
58
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
39
59
 
40
60
  let cachedTextEncoder = new lTextEncoder('utf-8');
@@ -103,26 +123,6 @@ function getInt32Memory0() {
103
123
  return cachedInt32Memory0;
104
124
  }
105
125
 
106
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
107
-
108
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
109
-
110
- cachedTextDecoder.decode();
111
-
112
- function getStringFromWasm0(ptr, len) {
113
- ptr = ptr >>> 0;
114
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
115
- }
116
-
117
- function addHeapObject(obj) {
118
- if (heap_next === heap.length) heap.push(heap.length + 1);
119
- const idx = heap_next;
120
- heap_next = heap[idx];
121
-
122
- heap[idx] = obj;
123
- return idx;
124
- }
125
-
126
126
  let cachedFloat64Memory0 = null;
127
127
 
128
128
  function getFloat64Memory0() {
@@ -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._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h13f7d1ed76369391(arg0, arg1, addHeapObject(arg2));
234
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h14a0a7cc34d6cb7b(arg0, arg1, addHeapObject(arg2));
235
235
  }
236
236
 
237
- function __wbg_adapter_53(arg0, arg1) {
238
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h449ab864e507fca8(arg0, arg1);
237
+ function __wbg_adapter_55(arg0, arg1) {
238
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heeda6a83a91cd6af(arg0, arg1);
239
239
  }
240
240
 
241
241
  function __wbg_adapter_58(arg0, arg1, arg2) {
242
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h61dcfe8467004f4a(arg0, arg1, addHeapObject(arg2));
242
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h418bcfa3d9cfb1d7(arg0, arg1, addHeapObject(arg2));
243
243
  }
244
244
 
245
245
  function __wbg_adapter_61(arg0, arg1) {
246
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf4a29d40d1827e55(arg0, arg1);
246
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__h3202873ee772e7ea(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_234(arg0, arg1, arg2, arg3) {
326
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h174c72652431fca0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
326
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h2a9104be04933eb2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
327
327
  }
328
328
 
329
329
  /**
@@ -1223,6 +1223,11 @@ export function __wbindgen_object_drop_ref(arg0) {
1223
1223
  takeObject(arg0);
1224
1224
  };
1225
1225
 
1226
+ export function __wbindgen_string_new(arg0, arg1) {
1227
+ const ret = getStringFromWasm0(arg0, arg1);
1228
+ return addHeapObject(ret);
1229
+ };
1230
+
1226
1231
  export function __wbindgen_string_get(arg0, arg1) {
1227
1232
  const obj = getObject(arg1);
1228
1233
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1232,11 +1237,6 @@ export function __wbindgen_string_get(arg0, arg1) {
1232
1237
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1233
1238
  };
1234
1239
 
1235
- export function __wbindgen_string_new(arg0, arg1) {
1236
- const ret = getStringFromWasm0(arg0, arg1);
1237
- return addHeapObject(ret);
1238
- };
1239
-
1240
1240
  export function __wbindgen_number_new(arg0) {
1241
1241
  const ret = arg0;
1242
1242
  return addHeapObject(ret);
@@ -1264,28 +1264,6 @@ export function __wbindgen_boolean_get(arg0) {
1264
1264
  return ret;
1265
1265
  };
1266
1266
 
1267
- export function __wbindgen_cb_drop(arg0) {
1268
- const obj = takeObject(arg0).original;
1269
- if (obj.cnt-- == 1) {
1270
- obj.a = 0;
1271
- return true;
1272
- }
1273
- const ret = false;
1274
- return ret;
1275
- };
1276
-
1277
- export function __wbindgen_error_new(arg0, arg1) {
1278
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1279
- return addHeapObject(ret);
1280
- };
1281
-
1282
- export function __wbindgen_number_get(arg0, arg1) {
1283
- const obj = getObject(arg1);
1284
- const ret = typeof(obj) === 'number' ? obj : undefined;
1285
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1286
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1287
- };
1288
-
1289
1267
  export function __wbindgen_is_bigint(arg0) {
1290
1268
  const ret = typeof(getObject(arg0)) === 'bigint';
1291
1269
  return ret;
@@ -1306,6 +1284,13 @@ export function __wbindgen_bigint_from_u64(arg0) {
1306
1284
  return addHeapObject(ret);
1307
1285
  };
1308
1286
 
1287
+ export function __wbindgen_number_get(arg0, arg1) {
1288
+ const obj = getObject(arg1);
1289
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1290
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1291
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1292
+ };
1293
+
1309
1294
  export function __wbindgen_in(arg0, arg1) {
1310
1295
  const ret = getObject(arg0) in getObject(arg1);
1311
1296
  return ret;
@@ -1316,6 +1301,21 @@ export function __wbindgen_is_undefined(arg0) {
1316
1301
  return ret;
1317
1302
  };
1318
1303
 
1304
+ export function __wbindgen_cb_drop(arg0) {
1305
+ const obj = takeObject(arg0).original;
1306
+ if (obj.cnt-- == 1) {
1307
+ obj.a = 0;
1308
+ return true;
1309
+ }
1310
+ const ret = false;
1311
+ return ret;
1312
+ };
1313
+
1314
+ export function __wbindgen_error_new(arg0, arg1) {
1315
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1316
+ return addHeapObject(ret);
1317
+ };
1318
+
1319
1319
  export function __wbindgen_is_string(arg0) {
1320
1320
  const ret = typeof(getObject(arg0)) === 'string';
1321
1321
  return ret;
@@ -1349,6 +1349,23 @@ export function __wbg_newwitheventinitdict_1f554ee93659ab92() { return handleErr
1349
1349
  return addHeapObject(ret);
1350
1350
  }, arguments) };
1351
1351
 
1352
+ export function __wbg_addEventListener_5651108fc3ffeb6e() { return handleError(function (arg0, arg1, arg2, arg3) {
1353
+ getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1354
+ }, arguments) };
1355
+
1356
+ export function __wbg_addEventListener_a5963e26cd7b176b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1357
+ getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
1358
+ }, arguments) };
1359
+
1360
+ export function __wbg_dispatchEvent_a622a6455be582eb() { return handleError(function (arg0, arg1) {
1361
+ const ret = getObject(arg0).dispatchEvent(getObject(arg1));
1362
+ return ret;
1363
+ }, arguments) };
1364
+
1365
+ export function __wbg_removeEventListener_5de660c02ed784e4() { return handleError(function (arg0, arg1, arg2, arg3) {
1366
+ getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1367
+ }, arguments) };
1368
+
1352
1369
  export function __wbg_readyState_b25418fd198bf715(arg0) {
1353
1370
  const ret = getObject(arg0).readyState;
1354
1371
  return ret;
@@ -1380,23 +1397,6 @@ export function __wbg_data_ab99ae4a2e1e8bc9(arg0) {
1380
1397
  return addHeapObject(ret);
1381
1398
  };
1382
1399
 
1383
- export function __wbg_addEventListener_5651108fc3ffeb6e() { return handleError(function (arg0, arg1, arg2, arg3) {
1384
- getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1385
- }, arguments) };
1386
-
1387
- export function __wbg_addEventListener_a5963e26cd7b176b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1388
- getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
1389
- }, arguments) };
1390
-
1391
- export function __wbg_dispatchEvent_a622a6455be582eb() { return handleError(function (arg0, arg1) {
1392
- const ret = getObject(arg0).dispatchEvent(getObject(arg1));
1393
- return ret;
1394
- }, arguments) };
1395
-
1396
- export function __wbg_removeEventListener_5de660c02ed784e4() { return handleError(function (arg0, arg1, arg2, arg3) {
1397
- getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1398
- }, arguments) };
1399
-
1400
1400
  export function __wbg_clearTimeout_76877dbc010e786d(arg0) {
1401
1401
  const ret = clearTimeout(takeObject(arg0));
1402
1402
  return addHeapObject(ret);
@@ -1630,33 +1630,33 @@ export function __wbindgen_memory() {
1630
1630
  return addHeapObject(ret);
1631
1631
  };
1632
1632
 
1633
- export function __wbindgen_closure_wrapper1609(arg0, arg1, arg2) {
1634
- const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_48);
1633
+ export function __wbindgen_closure_wrapper1597(arg0, arg1, arg2) {
1634
+ const ret = makeMutClosure(arg0, arg1, 660, __wbg_adapter_48);
1635
1635
  return addHeapObject(ret);
1636
1636
  };
1637
1637
 
1638
- export function __wbindgen_closure_wrapper1611(arg0, arg1, arg2) {
1639
- const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_48);
1638
+ export function __wbindgen_closure_wrapper1599(arg0, arg1, arg2) {
1639
+ const ret = makeMutClosure(arg0, arg1, 660, __wbg_adapter_48);
1640
1640
  return addHeapObject(ret);
1641
1641
  };
1642
1642
 
1643
- export function __wbindgen_closure_wrapper1613(arg0, arg1, arg2) {
1644
- const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_53);
1643
+ export function __wbindgen_closure_wrapper1601(arg0, arg1, arg2) {
1644
+ const ret = makeMutClosure(arg0, arg1, 660, __wbg_adapter_48);
1645
1645
  return addHeapObject(ret);
1646
1646
  };
1647
1647
 
1648
- export function __wbindgen_closure_wrapper1615(arg0, arg1, arg2) {
1649
- const ret = makeMutClosure(arg0, arg1, 638, __wbg_adapter_48);
1648
+ export function __wbindgen_closure_wrapper1603(arg0, arg1, arg2) {
1649
+ const ret = makeMutClosure(arg0, arg1, 660, __wbg_adapter_55);
1650
1650
  return addHeapObject(ret);
1651
1651
  };
1652
1652
 
1653
- export function __wbindgen_closure_wrapper2361(arg0, arg1, arg2) {
1654
- const ret = makeMutClosure(arg0, arg1, 754, __wbg_adapter_58);
1653
+ export function __wbindgen_closure_wrapper2345(arg0, arg1, arg2) {
1654
+ const ret = makeMutClosure(arg0, arg1, 776, __wbg_adapter_58);
1655
1655
  return addHeapObject(ret);
1656
1656
  };
1657
1657
 
1658
- export function __wbindgen_closure_wrapper2413(arg0, arg1, arg2) {
1659
- const ret = makeMutClosure(arg0, arg1, 778, __wbg_adapter_61);
1658
+ export function __wbindgen_closure_wrapper2392(arg0, arg1, arg2) {
1659
+ const ret = makeMutClosure(arg0, arg1, 799, __wbg_adapter_61);
1660
1660
  return addHeapObject(ret);
1661
1661
  };
1662
1662
 
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lebai_sdk",
3
3
  "description": "lebai_sdk",
4
- "version": "0.1.16",
4
+ "version": "0.1.17",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",