@layers/amba-core 4.0.3 → 4.0.4
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/package.json +1 -1
- package/pkg/amba_core.d.ts +5 -3
- package/pkg/amba_core.js +24 -11
- package/pkg/amba_core_bg.wasm +0 -0
- package/pkg/amba_core_bg.wasm.d.ts +4 -3
- package/pkg-rn/amba_core.d.ts +1 -0
- package/pkg-rn/amba_core_bg.js +24 -11
- package/pkg-rn/amba_core_bg.wasm.d.ts +4 -3
- package/pkg-rn/amba_core_bg.wasm.js +37759 -35391
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers/amba-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "amba SDK runtime — shared client core used by @layers/amba-web, @layers/amba-node, @layers/amba-react-native. Internal dependency; install one of those packages instead.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./pkg/amba_core.js",
|
package/pkg/amba_core.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export class AmbaCoreWasm {
|
|
|
115
115
|
leaguesMe(): Promise<any>;
|
|
116
116
|
linkAccount(provider: string, credential: string): Promise<any>;
|
|
117
117
|
linkEmailOtp(email: string, code: string): Promise<any>;
|
|
118
|
+
linkEmailPassword(email: string, password: string): Promise<any>;
|
|
118
119
|
linkSmsOtp(phone: string, code: string): Promise<any>;
|
|
119
120
|
me(): Promise<any>;
|
|
120
121
|
/**
|
|
@@ -310,6 +311,7 @@ export interface InitOutput {
|
|
|
310
311
|
readonly ambacorewasm_leaguesMe: (a: number) => number;
|
|
311
312
|
readonly ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
312
313
|
readonly ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
314
|
+
readonly ambacorewasm_linkEmailPassword: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
313
315
|
readonly ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
314
316
|
readonly ambacorewasm_me: (a: number) => number;
|
|
315
317
|
readonly ambacorewasm_messagingAddParticipant: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -377,9 +379,9 @@ export interface InitOutput {
|
|
|
377
379
|
readonly ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
378
380
|
readonly ambacorewasm_xpGetBalance: (a: number) => number;
|
|
379
381
|
readonly ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
382
|
+
readonly __wasm_bindgen_func_elem_3036: (a: number, b: number, c: number, d: number) => void;
|
|
383
|
+
readonly __wasm_bindgen_func_elem_3017: (a: number, b: number, c: number, d: number) => void;
|
|
384
|
+
readonly __wasm_bindgen_func_elem_3036_135: (a: number, b: number, c: number, d: number) => void;
|
|
383
385
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
384
386
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
385
387
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg/amba_core.js
CHANGED
|
@@ -730,6 +730,19 @@ export class AmbaCoreWasm {
|
|
|
730
730
|
const ret = wasm.ambacorewasm_linkEmailOtp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
731
731
|
return takeObject(ret);
|
|
732
732
|
}
|
|
733
|
+
/**
|
|
734
|
+
* @param {string} email
|
|
735
|
+
* @param {string} password
|
|
736
|
+
* @returns {Promise<any>}
|
|
737
|
+
*/
|
|
738
|
+
linkEmailPassword(email, password) {
|
|
739
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
740
|
+
const len0 = WASM_VECTOR_LEN;
|
|
741
|
+
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
742
|
+
const len1 = WASM_VECTOR_LEN;
|
|
743
|
+
const ret = wasm.ambacorewasm_linkEmailPassword(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
744
|
+
return takeObject(ret);
|
|
745
|
+
}
|
|
733
746
|
/**
|
|
734
747
|
* @param {string} phone
|
|
735
748
|
* @param {string} code
|
|
@@ -1554,7 +1567,7 @@ function __wbg_get_imports() {
|
|
|
1554
1567
|
const a = state0.a;
|
|
1555
1568
|
state0.a = 0;
|
|
1556
1569
|
try {
|
|
1557
|
-
return
|
|
1570
|
+
return __wasm_bindgen_func_elem_3036_135(a, state0.b, arg0, arg1);
|
|
1558
1571
|
} finally {
|
|
1559
1572
|
state0.a = a;
|
|
1560
1573
|
}
|
|
@@ -1625,13 +1638,13 @@ function __wbg_get_imports() {
|
|
|
1625
1638
|
return addHeapObject(ret);
|
|
1626
1639
|
},
|
|
1627
1640
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1628
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1629
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1641
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 774, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1642
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3036);
|
|
1630
1643
|
return addHeapObject(ret);
|
|
1631
1644
|
},
|
|
1632
1645
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1633
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1634
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1646
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 763, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1647
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3017);
|
|
1635
1648
|
return addHeapObject(ret);
|
|
1636
1649
|
},
|
|
1637
1650
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1668,14 +1681,14 @@ function __wbg_get_imports() {
|
|
|
1668
1681
|
};
|
|
1669
1682
|
}
|
|
1670
1683
|
|
|
1671
|
-
function
|
|
1672
|
-
wasm.
|
|
1684
|
+
function __wasm_bindgen_func_elem_3036(arg0, arg1, arg2, arg3) {
|
|
1685
|
+
wasm.__wasm_bindgen_func_elem_3036(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1673
1686
|
}
|
|
1674
1687
|
|
|
1675
|
-
function
|
|
1688
|
+
function __wasm_bindgen_func_elem_3017(arg0, arg1, arg2) {
|
|
1676
1689
|
try {
|
|
1677
1690
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1678
|
-
wasm.
|
|
1691
|
+
wasm.__wasm_bindgen_func_elem_3017(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1679
1692
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1680
1693
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1681
1694
|
if (r1) {
|
|
@@ -1686,8 +1699,8 @@ function __wasm_bindgen_func_elem_3011(arg0, arg1, arg2) {
|
|
|
1686
1699
|
}
|
|
1687
1700
|
}
|
|
1688
1701
|
|
|
1689
|
-
function
|
|
1690
|
-
wasm.
|
|
1702
|
+
function __wasm_bindgen_func_elem_3036_135(arg0, arg1, arg2, arg3) {
|
|
1703
|
+
wasm.__wasm_bindgen_func_elem_3036_135(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1691
1704
|
}
|
|
1692
1705
|
|
|
1693
1706
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/amba_core_bg.wasm
CHANGED
|
Binary file
|
|
@@ -67,6 +67,7 @@ export const ambacorewasm_leaguesCohort: (a: number) => number;
|
|
|
67
67
|
export const ambacorewasm_leaguesMe: (a: number) => number;
|
|
68
68
|
export const ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
69
69
|
export const ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
70
|
+
export const ambacorewasm_linkEmailPassword: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
70
71
|
export const ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
71
72
|
export const ambacorewasm_me: (a: number) => number;
|
|
72
73
|
export const ambacorewasm_messagingAddParticipant: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -134,9 +135,9 @@ export const ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: num
|
|
|
134
135
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
135
136
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
136
137
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
137
|
-
export const
|
|
138
|
-
export const
|
|
139
|
-
export const
|
|
138
|
+
export const __wasm_bindgen_func_elem_3036: (a: number, b: number, c: number, d: number) => void;
|
|
139
|
+
export const __wasm_bindgen_func_elem_3017: (a: number, b: number, c: number, d: number) => void;
|
|
140
|
+
export const __wasm_bindgen_func_elem_3036_135: (a: number, b: number, c: number, d: number) => void;
|
|
140
141
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
141
142
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
142
143
|
export const __wbindgen_export3: (a: number) => void;
|
package/pkg-rn/amba_core.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export class AmbaCoreWasm {
|
|
|
115
115
|
leaguesMe(): Promise<any>;
|
|
116
116
|
linkAccount(provider: string, credential: string): Promise<any>;
|
|
117
117
|
linkEmailOtp(email: string, code: string): Promise<any>;
|
|
118
|
+
linkEmailPassword(email: string, password: string): Promise<any>;
|
|
118
119
|
linkSmsOtp(phone: string, code: string): Promise<any>;
|
|
119
120
|
me(): Promise<any>;
|
|
120
121
|
/**
|
package/pkg-rn/amba_core_bg.js
CHANGED
|
@@ -794,6 +794,19 @@ export class AmbaCoreWasm {
|
|
|
794
794
|
const ret = wasm.ambacorewasm_linkEmailOtp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
795
795
|
return takeObject(ret);
|
|
796
796
|
}
|
|
797
|
+
/**
|
|
798
|
+
* @param {string} email
|
|
799
|
+
* @param {string} password
|
|
800
|
+
* @returns {Promise<any>}
|
|
801
|
+
*/
|
|
802
|
+
linkEmailPassword(email, password) {
|
|
803
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
804
|
+
const len0 = WASM_VECTOR_LEN;
|
|
805
|
+
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
806
|
+
const len1 = WASM_VECTOR_LEN;
|
|
807
|
+
const ret = wasm.ambacorewasm_linkEmailPassword(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
808
|
+
return takeObject(ret);
|
|
809
|
+
}
|
|
797
810
|
/**
|
|
798
811
|
* @param {string} phone
|
|
799
812
|
* @param {string} code
|
|
@@ -1615,7 +1628,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
|
|
|
1615
1628
|
const a = state0.a;
|
|
1616
1629
|
state0.a = 0;
|
|
1617
1630
|
try {
|
|
1618
|
-
return
|
|
1631
|
+
return __wasm_bindgen_func_elem_3036_135(a, state0.b, arg0, arg1);
|
|
1619
1632
|
} finally {
|
|
1620
1633
|
state0.a = a;
|
|
1621
1634
|
}
|
|
@@ -1686,13 +1699,13 @@ export function __wbg_then_bd927500e8905df2(arg0, arg1, arg2) {
|
|
|
1686
1699
|
return addHeapObject(ret);
|
|
1687
1700
|
}
|
|
1688
1701
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1689
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1690
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1702
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 774, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1703
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3036);
|
|
1691
1704
|
return addHeapObject(ret);
|
|
1692
1705
|
}
|
|
1693
1706
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1694
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1695
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1707
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 763, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1708
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3017);
|
|
1696
1709
|
return addHeapObject(ret);
|
|
1697
1710
|
}
|
|
1698
1711
|
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
@@ -1722,14 +1735,14 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
1722
1735
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
1723
1736
|
takeObject(arg0);
|
|
1724
1737
|
}
|
|
1725
|
-
function
|
|
1726
|
-
wasm.
|
|
1738
|
+
function __wasm_bindgen_func_elem_3036(arg0, arg1, arg2, arg3) {
|
|
1739
|
+
wasm.__wasm_bindgen_func_elem_3036(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1727
1740
|
}
|
|
1728
1741
|
|
|
1729
|
-
function
|
|
1742
|
+
function __wasm_bindgen_func_elem_3017(arg0, arg1, arg2) {
|
|
1730
1743
|
try {
|
|
1731
1744
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1732
|
-
wasm.
|
|
1745
|
+
wasm.__wasm_bindgen_func_elem_3017(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1733
1746
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1734
1747
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1735
1748
|
if (r1) {
|
|
@@ -1740,8 +1753,8 @@ function __wasm_bindgen_func_elem_3011(arg0, arg1, arg2) {
|
|
|
1740
1753
|
}
|
|
1741
1754
|
}
|
|
1742
1755
|
|
|
1743
|
-
function
|
|
1744
|
-
wasm.
|
|
1756
|
+
function __wasm_bindgen_func_elem_3036_135(arg0, arg1, arg2, arg3) {
|
|
1757
|
+
wasm.__wasm_bindgen_func_elem_3036_135(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1745
1758
|
}
|
|
1746
1759
|
|
|
1747
1760
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -67,6 +67,7 @@ export const ambacorewasm_leaguesCohort: (a: number) => number;
|
|
|
67
67
|
export const ambacorewasm_leaguesMe: (a: number) => number;
|
|
68
68
|
export const ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
69
69
|
export const ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
70
|
+
export const ambacorewasm_linkEmailPassword: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
70
71
|
export const ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
71
72
|
export const ambacorewasm_me: (a: number) => number;
|
|
72
73
|
export const ambacorewasm_messagingAddParticipant: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -134,9 +135,9 @@ export const ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: num
|
|
|
134
135
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
135
136
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
136
137
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
137
|
-
export const
|
|
138
|
-
export const
|
|
139
|
-
export const
|
|
138
|
+
export const __wasm_bindgen_func_elem_3036: (a: number, b: number, c: number, d: number) => void;
|
|
139
|
+
export const __wasm_bindgen_func_elem_3017: (a: number, b: number, c: number, d: number) => void;
|
|
140
|
+
export const __wasm_bindgen_func_elem_3036_135: (a: number, b: number, c: number, d: number) => void;
|
|
140
141
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
141
142
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
142
143
|
export const __wbindgen_export3: (a: number) => void;
|