gotrip-fx-transaction-form 1.0.47 → 1.0.49

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.
Files changed (3) hide show
  1. package/index.js +4755 -4740
  2. package/package.json +1 -1
  3. package/types/util/phone.d.ts +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Converts a phone number to Vietnamese local format (starting with 0)
3
+ * Examples:
4
+ * - "+84912345678" -> "0912345678"
5
+ * - "84912345678" -> "0912345678"
6
+ * - "0912345678" -> "0912345678" (remains unchanged)
7
+ * @param phone The phone number to convert
8
+ * @returns The converted phone number in local format
9
+ */
10
+ export declare const toLocalPhoneNumber: (phone: string) => string;
11
+ /**
12
+ * Converts a phone number to international format (starting with +84)
13
+ * Examples:
14
+ * - "0912345678" -> "+84912345678"
15
+ * - "912345678" -> "+84912345678"
16
+ * - "+84912345678" -> "+84912345678" (remains unchanged)
17
+ * - "84912345678" -> "+84912345678"
18
+ * @param phone The phone number to convert
19
+ * @returns The converted phone number in international format
20
+ */
21
+ export declare const toInternationalPhoneNumber: (phone: string) => string;