lebai_sdk 0.1.4 → 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 CHANGED
@@ -1,24 +1,5 @@
1
1
  import * as wasm from './lebai_sdk_bg.wasm';
2
2
 
3
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
4
-
5
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
6
-
7
- cachedTextDecoder.decode();
8
-
9
- let cachedUint8Memory0 = new Uint8Array();
10
-
11
- function getUint8Memory0() {
12
- if (cachedUint8Memory0.byteLength === 0) {
13
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
14
- }
15
- return cachedUint8Memory0;
16
- }
17
-
18
- function getStringFromWasm0(ptr, len) {
19
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
20
- }
21
-
22
3
  const heap = new Array(32).fill(undefined);
23
4
 
24
5
  heap.push(undefined, null, true, false);
@@ -48,6 +29,25 @@ function takeObject(idx) {
48
29
  return ret;
49
30
  }
50
31
 
32
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
33
+
34
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
35
+
36
+ cachedTextDecoder.decode();
37
+
38
+ let cachedUint8Memory0 = new Uint8Array();
39
+
40
+ function getUint8Memory0() {
41
+ if (cachedUint8Memory0.byteLength === 0) {
42
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
43
+ }
44
+ return cachedUint8Memory0;
45
+ }
46
+
47
+ function getStringFromWasm0(ptr, len) {
48
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
49
+ }
50
+
51
51
  let WASM_VECTOR_LEN = 0;
52
52
 
53
53
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
@@ -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._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39f562a67e2006da(arg0, arg1, addHeapObject(arg2));
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 __wbg_adapter_55(arg0, arg1) {
233
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9d8d10dde2de7ff(arg0, arg1);
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,8 +978,8 @@ export class RobotSubscription {
978
978
  }
979
979
  }
980
980
 
981
- export function __wbindgen_string_new(arg0, arg1) {
982
- const ret = getStringFromWasm0(arg0, arg1);
981
+ export function __wbindgen_number_new(arg0) {
982
+ const ret = arg0;
983
983
  return addHeapObject(ret);
984
984
  };
985
985
 
@@ -987,13 +987,13 @@ export function __wbindgen_object_drop_ref(arg0) {
987
987
  takeObject(arg0);
988
988
  };
989
989
 
990
- export function __wbindgen_number_new(arg0) {
991
- const ret = arg0;
990
+ export function __wbg_robot_new(arg0) {
991
+ const ret = Robot.__wrap(arg0);
992
992
  return addHeapObject(ret);
993
993
  };
994
994
 
995
- export function __wbg_robot_new(arg0) {
996
- const ret = Robot.__wrap(arg0);
995
+ export function __wbindgen_string_new(arg0, arg1) {
996
+ const ret = getStringFromWasm0(arg0, arg1);
997
997
  return addHeapObject(ret);
998
998
  };
999
999
 
@@ -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, __wbg_adapter_48);
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, __wbg_adapter_55);
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lebai_sdk",
3
3
  "description": "lebai_sdk",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",