@incodetech/core 0.0.0-dev-20260313-573a40c → 0.0.0-dev-20260313-547c32f

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 (2) hide show
  1. package/dist/ekyc.esm.js +1 -19
  2. package/package.json +1 -1
package/dist/ekyc.esm.js CHANGED
@@ -10049,24 +10049,6 @@ function formatPhoneE164(phone, country) {
10049
10049
  } catch {}
10050
10050
  return phone;
10051
10051
  }
10052
- /**
10053
- * Parses a pre-filled phone number, extracting the national number.
10054
- * Strips leading '1' if the number has more than 10 digits (US convention).
10055
- */
10056
- function parsePrefilledPhone(phone) {
10057
- if (!phone) return "";
10058
- try {
10059
- const parsed = parsePhoneNumber(phone);
10060
- if (parsed) {
10061
- let national = String(parsed.nationalNumber);
10062
- if (national.length > 10 && national.startsWith("1")) national = national.slice(1);
10063
- return national;
10064
- }
10065
- } catch {}
10066
- const digits = phone.replace(/\D/g, "");
10067
- if (digits.length > 10 && digits.startsWith("1")) return digits.slice(1);
10068
- return digits;
10069
- }
10070
10052
 
10071
10053
  //#endregion
10072
10054
  //#region src/modules/ekyc/ekycActions.ts
@@ -10297,7 +10279,7 @@ function applyPrefill(fields, ocrData, otpStatus, _country) {
10297
10279
  }
10298
10280
  }
10299
10281
  if (fields.phone === "phone_module_input" && otpStatus?.phone) {
10300
- values.phone = parsePrefilledPhone(otpStatus.phone);
10282
+ values.phone = otpStatus.phone;
10301
10283
  prefilled.phone = true;
10302
10284
  readonlyFields.push("phone");
10303
10285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260313-573a40c",
3
+ "version": "0.0.0-dev-20260313-547c32f",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",