@routebot/constants 0.3.43 → 0.3.44
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.
|
@@ -222,6 +222,10 @@ module.exports = {
|
|
|
222
222
|
const country = COUNTRIES.find((c) => c.code?.toUpperCase?.() === code?.toUpperCase?.());
|
|
223
223
|
return country ? country.smsEnabled : false;
|
|
224
224
|
},
|
|
225
|
+
isSmsEnabledForCountryPhonePrefixWithPlus: (prefix) => {
|
|
226
|
+
const country = COUNTRIES.find((c) => c?.phonePrefix === prefix);
|
|
227
|
+
return country ? country.smsEnabled : false;
|
|
228
|
+
},
|
|
225
229
|
getAllCountryCodesLowerCase: () => {
|
|
226
230
|
return COUNTRIES.map((country) => country.code?.toLowerCase?.());
|
|
227
231
|
},
|