From 25de6ade74b3d82266b6bb5ea8a23a65733a53c3 Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Tue, 24 Sep 2024 08:03:12 -0300 Subject: [PATCH] Add new postal codes to DOM.ts --- CHANGELOG.md | 4 ++++ react/country/DOM.ts | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ecaf830..10f36660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- Two new postal codes to Dominican Republic (DOM) country file. + ### Fixed - Changed the rules for France (FRA) so the number field is shown to users. diff --git a/react/country/DOM.ts b/react/country/DOM.ts index 3ee772aa..88e9ffe8 100644 --- a/react/country/DOM.ts +++ b/react/country/DOM.ts @@ -1,6 +1,6 @@ import { TWO_LEVELS } from '../constants' -import { secondLevelPostalCodes } from '../transforms/postalCodes' import { getOneLevel, getTwoLevels } from '../transforms/addressFieldsOptions' +import { secondLevelPostalCodes } from '../transforms/postalCodes' import type { PostalCodeRules } from '../types/rules' // Based on sheet provided by Rodolfo Bússola: @@ -44,7 +44,8 @@ const countryData = { 'El Pino': '63400' }, 'Distrito Nacional': { - 'Santo Domingo De Guzmán': '10101' + 'Santo Domingo De Guzmán': '10101', + 'Santo Domingo Distrito Nacional': '10100' }, Duarte: { 'San Francisco de Macorís': '31000', @@ -70,7 +71,8 @@ const countryData = { Moca: '53011', 'Cayetano Germosén': '56100', 'Gaspar Hernández': '56200', - 'Jamao Al Norte': '56400' + 'Jamao Al Norte': '56400', + 'El Higuerito': '56000' }, 'Hato Mayor': { 'Hato Mayor': '25000',