mainstack-payments 0.0.1 → 0.0.3

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.
@@ -16604,7 +16604,8 @@ const db = ({
16604
16604
  `/payments/fees?account_id=${e}&currency=${t}&amount=${n}${r ? `&slug=${r}` : ""}`
16605
16605
  ).then((o) => o.data).catch((o) => {
16606
16606
  throw o.response.data;
16607
- })
16607
+ }),
16608
+ enabled: !!n && n > 0
16608
16609
  }), XI = (e) => fb({
16609
16610
  mutationFn: async (t) => {
16610
16611
  var n;
@@ -9,7 +9,7 @@ interface IMainstackPaymentProps {
9
9
  [key: string]: any;
10
10
  };
11
11
  customFormValues?: {
12
- [key: string]: string;
12
+ [key: string]: any;
13
13
  };
14
14
  onGoBack: () => void;
15
15
  onInitializePayment?: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [
@@ -51,6 +51,7 @@
51
51
  "pretty-quick": "^3.1.3",
52
52
  "react-paystack": "^5.0.0",
53
53
  "react-router-dom": "^6.8.1",
54
+ "run-script-os": "^1.1.6",
54
55
  "typescript": "^4.9.5",
55
56
  "uuid": "^10.0.0",
56
57
  "vite-plugin-dts": "^3.9.1",