@financial-times/n-conversion-forms 41.0.3 → 41.0.4
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.
package/.toolkitstate/ci.json
CHANGED
package/helpers/index.js
CHANGED
|
@@ -7,6 +7,8 @@ module.exports = {
|
|
|
7
7
|
identifyShippingZone: require('./supportedCountries').identifyShippingZone,
|
|
8
8
|
countriesSupported: require('./supportedCountries').countriesSupported,
|
|
9
9
|
countriesSupportedISO: require('./supportedCountries').countriesSupportedISO,
|
|
10
|
+
postcodeExemptCountryCodes: require('./supportedCountries')
|
|
11
|
+
.postcodeExemptCountryCodes,
|
|
10
12
|
supportedPostcodeValidators: require('./supportedPostcodeValidators')
|
|
11
13
|
.supportedPostcodeValidators,
|
|
12
14
|
allSupportedPostcodeExamples: require('./supportedPostcodeExamples')
|
|
@@ -4,6 +4,7 @@ const { printRegions } = require('./constants');
|
|
|
4
4
|
const countriesMasterList = {
|
|
5
5
|
cemeaV1: {
|
|
6
6
|
AUT: 'Austria',
|
|
7
|
+
ARE: 'United Arab Emirates',
|
|
7
8
|
BEL: 'Belgium',
|
|
8
9
|
BGR: 'Bulgaria',
|
|
9
10
|
HRV: 'Croatia',
|
|
@@ -63,7 +64,6 @@ const countriesMasterList = {
|
|
|
63
64
|
GBR: 'United Kingdom',
|
|
64
65
|
USA: 'United States',
|
|
65
66
|
CAN: 'Canada',
|
|
66
|
-
ARE: 'United Arab Emirates',
|
|
67
67
|
},
|
|
68
68
|
};
|
|
69
69
|
|
|
@@ -75,6 +75,8 @@ const singleCountries = Object.keys(countriesMasterList.other);
|
|
|
75
75
|
const countriesSupported = flattenObj(countriesMasterList);
|
|
76
76
|
const countriesSupportedISO = Object.keys(countriesSupported);
|
|
77
77
|
|
|
78
|
+
const postcodeExemptCountryCodes = ['HKG', 'QAT', 'ARE'];
|
|
79
|
+
|
|
78
80
|
const identifyShippingZone = (country) => {
|
|
79
81
|
if (cemeaV1ISO.includes(country)) {
|
|
80
82
|
return printRegions.cemeaV1;
|
|
@@ -99,5 +101,6 @@ module.exports = {
|
|
|
99
101
|
apacISO,
|
|
100
102
|
countriesSupported,
|
|
101
103
|
countriesSupportedISO,
|
|
104
|
+
postcodeExemptCountryCodes,
|
|
102
105
|
identifyShippingZone,
|
|
103
106
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/n-conversion-forms",
|
|
3
|
-
"version": "41.0.
|
|
3
|
+
"version": "41.0.4",
|
|
4
4
|
"description": "Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|