@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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routebot/constants",
3
- "version": "0.3.43",
3
+ "version": "0.3.44",
4
4
  "description": "Shared constants for RouteBot FE/BE",
5
5
  "main": "index.js",
6
6
  "files": [