From 16ff2b13730e59c9e69bc6718291aa0d33fb433f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 2 Dec 2019 13:51:04 -0500 Subject: [PATCH] Upgrade country-coder to scoped package `@ideditor/country-coder` --- modules/ui/fields/address.js | 2 +- modules/ui/fields/combo.js | 2 +- modules/ui/fields/input.js | 2 +- modules/ui/fields/localized.js | 2 +- modules/ui/fields/maxspeed.js | 2 +- modules/ui/preset_list.js | 2 +- modules/validations/outdated_tags.js | 2 +- package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/ui/fields/address.js b/modules/ui/fields/address.js index 6ff433975..8dcbf4244 100644 --- a/modules/ui/fields/address.js +++ b/modules/ui/fields/address.js @@ -1,6 +1,6 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { select as d3_select } from 'd3-selection'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { dataAddressFormats } from '../../../data'; import { geoExtent, geoChooseEdge, geoSphericalDistance } from '../../geo'; diff --git a/modules/ui/fields/combo.js b/modules/ui/fields/combo.js index 56d394b51..b5f5e4a5c 100644 --- a/modules/ui/fields/combo.js +++ b/modules/ui/fields/combo.js @@ -1,6 +1,6 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { event as d3_event, select as d3_select } from 'd3-selection'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { osmEntity } from '../../osm/entity'; import { t } from '../../util/locale'; diff --git a/modules/ui/fields/input.js b/modules/ui/fields/input.js index 594c7607f..8a245880a 100644 --- a/modules/ui/fields/input.js +++ b/modules/ui/fields/input.js @@ -1,6 +1,6 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { select as d3_select, event as d3_event } from 'd3-selection'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { t, textDirection } from '../../util/locale'; import { dataPhoneFormats } from '../../../data'; diff --git a/modules/ui/fields/localized.js b/modules/ui/fields/localized.js index 3f362a26c..115632cce 100644 --- a/modules/ui/fields/localized.js +++ b/modules/ui/fields/localized.js @@ -1,6 +1,6 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { select as d3_select, event as d3_event } from 'd3-selection'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { currentLocale, t, languageName } from '../../util/locale'; import { dataLanguages } from '../../../data'; diff --git a/modules/ui/fields/maxspeed.js b/modules/ui/fields/maxspeed.js index baf9060fa..c6bcb7dbf 100644 --- a/modules/ui/fields/maxspeed.js +++ b/modules/ui/fields/maxspeed.js @@ -1,6 +1,6 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; import { select as d3_select } from 'd3-selection'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { uiCombobox } from '../combobox'; import { utilGetSetValue, utilNoAuto, utilRebind } from '../../util'; diff --git a/modules/ui/preset_list.js b/modules/ui/preset_list.js index 2ecad30ff..6e01501b6 100644 --- a/modules/ui/preset_list.js +++ b/modules/ui/preset_list.js @@ -1,5 +1,5 @@ import { dispatch as d3_dispatch } from 'd3-dispatch'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { event as d3_event, diff --git a/modules/validations/outdated_tags.js b/modules/validations/outdated_tags.js index 837697f67..cc2663afa 100644 --- a/modules/validations/outdated_tags.js +++ b/modules/validations/outdated_tags.js @@ -1,6 +1,6 @@ import { t } from '../util/locale'; import { matcher, brands } from 'name-suggestion-index'; -import * as countryCoder from 'country-coder'; +import * as countryCoder from '@ideditor/country-coder'; import { actionChangePreset } from '../actions/change_preset'; import { actionChangeTags } from '../actions/change_tags'; diff --git a/package.json b/package.json index 7e7f4cbe4..443b82265 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "translations": "node data/update_locales" }, "dependencies": { + "@ideditor/country-coder": "^3.0.1", "@mapbox/sexagesimal": "1.2.0", "@mapbox/togeojson": "0.16.0", "@mapbox/vector-tile": "^1.3.1", @@ -41,7 +42,6 @@ "abortcontroller-polyfill": "^1.4.0", "alif-toolkit": "^1.2.6", "browser-polyfills": "~1.5.0", - "country-coder": "^2.0.0", "diacritics": "1.3.0", "fast-deep-equal": "~2.0.1", "fast-json-stable-stringify": "2.0.0",