@copart/front-end-utils
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@copart/front-end-utils", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "All front end utility methods live here", | ||
@@ -5,0 +5,0 @@ "main": "dist/frontendutil.cjs.js", |
@@ -30,3 +30,3 @@ import { readFileSync } from 'fs'; | ||
react: 'React', | ||
ramda: 'ramda', | ||
ramda: 'R', | ||
}, | ||
@@ -33,0 +33,0 @@ }; |
@@ -139,2 +139,17 @@ /* eslint-disable no-useless-escape */ | ||
export const countryCodeToDialCodeMapper = (countryCode = '') => { | ||
switch (countryCode.toLowerCase()) { | ||
case 'de': | ||
case 'deu': | ||
return '49' | ||
case 'es': | ||
case 'esp': | ||
return '34' | ||
case 'in': | ||
case 'ind': | ||
return '91' | ||
default: | ||
} | ||
} | ||
export const zipLengths = (countryCode = 'USA') => | ||
@@ -141,0 +156,0 @@ ({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
384317
5331