mainstack-payments 0.0.4 → 0.0.6
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.
|
@@ -16546,31 +16546,32 @@ var YI = function() {
|
|
|
16546
16546
|
};
|
|
16547
16547
|
const db = ({
|
|
16548
16548
|
queryFn: e,
|
|
16549
|
-
enabled: t = !0
|
|
16549
|
+
enabled: t = !0,
|
|
16550
|
+
dependingOn: n = []
|
|
16550
16551
|
}) => {
|
|
16551
|
-
const [
|
|
16552
|
-
const
|
|
16552
|
+
const [r, a] = de(), [o, i] = de(!1), [s, l] = de(), c = async () => {
|
|
16553
|
+
const u = {
|
|
16553
16554
|
data: {},
|
|
16554
16555
|
isSuccess: !0,
|
|
16555
16556
|
error: {}
|
|
16556
16557
|
};
|
|
16557
16558
|
try {
|
|
16558
|
-
|
|
16559
|
-
const
|
|
16560
|
-
|
|
16561
|
-
} catch (
|
|
16562
|
-
throw
|
|
16559
|
+
i(!0);
|
|
16560
|
+
const d = await e();
|
|
16561
|
+
a(d), u.data = d;
|
|
16562
|
+
} catch (d) {
|
|
16563
|
+
throw l(d), u.error = s, u.isSuccess = !1, new Error(d);
|
|
16563
16564
|
} finally {
|
|
16564
|
-
|
|
16565
|
+
i(!1);
|
|
16565
16566
|
}
|
|
16566
|
-
return
|
|
16567
|
+
return u;
|
|
16567
16568
|
};
|
|
16568
16569
|
return ve(() => {
|
|
16569
|
-
t &&
|
|
16570
|
-
}, []), {
|
|
16571
|
-
data:
|
|
16572
|
-
isLoading:
|
|
16573
|
-
refetch:
|
|
16570
|
+
t && c();
|
|
16571
|
+
}, [...n]), {
|
|
16572
|
+
data: r,
|
|
16573
|
+
isLoading: o,
|
|
16574
|
+
refetch: c
|
|
16574
16575
|
};
|
|
16575
16576
|
}, fb = ({
|
|
16576
16577
|
mutationFn: e
|
|
@@ -16605,7 +16606,8 @@ const db = ({
|
|
|
16605
16606
|
).then((o) => o.data).catch((o) => {
|
|
16606
16607
|
throw o.response.data;
|
|
16607
16608
|
}),
|
|
16608
|
-
enabled: !!n && n > 0
|
|
16609
|
+
enabled: !!n && n > 0,
|
|
16610
|
+
dependingOn: [n, t, e, r]
|
|
16609
16611
|
}), XI = (e) => fb({
|
|
16610
16612
|
mutationFn: async (t) => {
|
|
16611
16613
|
var n;
|
|
@@ -26145,7 +26147,7 @@ const Lz = "Payment Completed", Vz = ({
|
|
|
26145
26147
|
international_fee: Number(
|
|
26146
26148
|
nt ? Number(zt) : 0
|
|
26147
26149
|
),
|
|
26148
|
-
|
|
26150
|
+
is_intl_card: nt
|
|
26149
26151
|
}, Lt = async () => {
|
|
26150
26152
|
try {
|
|
26151
26153
|
return await YI(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const useQuery: ({ queryFn, enabled, }: {
|
|
1
|
+
export declare const useQuery: ({ queryFn, enabled, dependingOn, }: {
|
|
2
2
|
queryFn: () => Promise<any>;
|
|
3
3
|
enabled?: boolean | undefined;
|
|
4
|
+
dependingOn?: any[] | undefined;
|
|
4
5
|
}) => {
|
|
5
6
|
data: any;
|
|
6
7
|
isLoading: boolean;
|