@visulima/iso-locale 1.0.0-alpha.8 → 1.0.0

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/dist/types.d.ts CHANGED
@@ -1,60 +1,61 @@
1
1
  /**
2
- * Country data structure following ISO 3166-1
3
- */
4
- export interface Country {
5
- /** ISO 3166-1 alpha-2 code (2-letter) */
6
- alpha2: string;
7
- /** ISO 3166-1 alpha-3 code (3-letter) */
8
- alpha3: string;
9
- /** Country calling codes (phone prefixes) */
10
- countryCallingCodes?: string[];
11
- /** ISO 4217 currency codes used in this country */
12
- currencies: string[];
13
- /** Flag emoji */
14
- emoji?: string;
15
- /** International Olympic Committee code */
16
- ioc?: string;
17
- /** ISO 639 language codes */
18
- languages: string[];
19
- /** English name of the country */
20
- name: string;
21
- /** ISO 3166-1 numeric code (3-digit string) */
22
- numeric?: string;
23
- /** ISO status: 'assigned', 'reserved', 'deleted', etc. */
24
- status?: string;
2
+ * Country data structure following ISO 3166-1
3
+ */
4
+ interface Country {
5
+ /** ISO 3166-1 alpha-2 code (2-letter) */
6
+ alpha2: string;
7
+ /** ISO 3166-1 alpha-3 code (3-letter) */
8
+ alpha3: string;
9
+ /** Country calling codes (phone prefixes) */
10
+ countryCallingCodes?: ReadonlyArray<string>;
11
+ /** ISO 4217 currency codes used in this country */
12
+ currencies: ReadonlyArray<string>;
13
+ /** Flag emoji */
14
+ emoji?: string;
15
+ /** International Olympic Committee code */
16
+ ioc?: string;
17
+ /** ISO 639 language codes */
18
+ languages: ReadonlyArray<string>;
19
+ /** English name of the country */
20
+ name: string;
21
+ /** ISO 3166-1 numeric code (3-digit string) */
22
+ numeric?: string;
23
+ /** ISO status: 'assigned', 'reserved', 'deleted', etc. */
24
+ status?: string;
25
25
  }
26
26
  /**
27
- * Currency data structure following ISO 4217
28
- */
29
- export interface Currency {
30
- /** ISO 4217 alphabetic code (3-letter) */
31
- code: string;
32
- /** Number of decimal digits (minor units) */
33
- decimals: number;
34
- /** Full currency name */
35
- name: string;
36
- /** ISO 4217 numeric code (3-digit string) */
37
- number: string;
38
- /** Currency symbol */
39
- symbol?: string;
27
+ * Currency data structure following ISO 4217
28
+ */
29
+ interface Currency {
30
+ /** ISO 4217 alphabetic code (3-letter) */
31
+ code: string;
32
+ /** Number of decimal digits (minor units); `undefined` for currencies without a defined minor unit (e.g. precious metals) */
33
+ decimals: number | undefined;
34
+ /** Full currency name */
35
+ name: string;
36
+ /** ISO 4217 numeric code (3-digit string) */
37
+ number: string;
38
+ /** Currency symbol */
39
+ symbol?: string;
40
40
  }
41
41
  /**
42
- * Currency symbol mapping entry
43
- */
44
- export interface CurrencySymbolEntry {
45
- code: string;
46
- name: string;
47
- number: string;
48
- symbol: string;
42
+ * Currency symbol mapping entry
43
+ */
44
+ interface CurrencySymbolEntry {
45
+ code: string;
46
+ name: string;
47
+ number: string;
48
+ symbol: string;
49
49
  }
50
50
  /**
51
- * Region data structure following UN geoscheme
52
- */
53
- export interface Region {
54
- /** Continental region (e.g., "Africa", "Americas", "Asia", "Europe", "Oceania", "Antarctica") */
55
- continent: string;
56
- /** Intermediary region (e.g., "Sub-Saharan Africa", "Latin America and the Caribbean", "North America") */
57
- intermediary?: string;
58
- /** Geographical subregion (e.g., "Northern Africa", "Western Europe", "Eastern Asia") */
59
- subregion: string;
51
+ * Region data structure following UN geoscheme
52
+ */
53
+ interface Region {
54
+ /** Continental region (e.g., "Africa", "Americas", "Asia", "Europe", "Oceania", "Antarctica") */
55
+ continent: string;
56
+ /** Intermediary region (e.g., "Sub-Saharan Africa", "Latin America and the Caribbean", "North America") */
57
+ intermediary?: string;
58
+ /** Geographical subregion (e.g., "Northern Africa", "Western Europe", "Eastern Asia") */
59
+ subregion: string;
60
60
  }
61
+ export { Country, Currency, CurrencySymbolEntry, Region };
package/package.json CHANGED
@@ -1,9 +1,29 @@
1
1
  {
2
2
  "name": "@visulima/iso-locale",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0",
4
4
  "description": "ISO data for countries, currencies, regions, timezones, and BCP 47 locale support.",
5
5
  "keywords": [
6
- "visulima",
6
+ "alpha-2",
7
+ "alpha-3",
8
+ "bcp-47",
9
+ "bcp47",
10
+ "calling-code",
11
+ "continent",
12
+ "continents",
13
+ "countries",
14
+ "country",
15
+ "country-codes",
16
+ "currencies",
17
+ "currency",
18
+ "currency-codes",
19
+ "emoji",
20
+ "flag",
21
+ "flag-emoji",
22
+ "geoscheme",
23
+ "i18n",
24
+ "iana",
25
+ "iana-timezone",
26
+ "internationalization",
7
27
  "iso",
8
28
  "iso-3166",
9
29
  "iso-3166-1",
@@ -11,44 +31,22 @@
11
31
  "iso-639",
12
32
  "iso-639-1",
13
33
  "iso-639-3",
14
- "country",
15
- "countries",
16
- "currency",
17
- "currencies",
18
- "country-codes",
19
- "currency-codes",
20
- "internationalization",
21
- "i18n",
22
- "locale",
23
- "locales",
24
- "bcp47",
25
- "bcp-47",
26
34
  "language-tag",
27
35
  "language-tags",
28
- "timezone",
29
- "timezones",
30
- "iana",
31
- "iana-timezone",
36
+ "locale",
37
+ "locales",
38
+ "numeric-code",
39
+ "phone-code",
32
40
  "regions",
33
- "geoscheme",
34
- "un-geoscheme",
35
- "continent",
36
- "continents",
37
41
  "subregion",
38
42
  "subregions",
39
- "alpha-2",
40
- "alpha-3",
41
- "numeric-code",
42
- "calling-code",
43
- "phone-code",
44
- "flag",
45
- "emoji",
46
- "flag-emoji"
43
+ "timezone",
44
+ "timezones",
45
+ "un-geoscheme",
46
+ "visulima"
47
47
  ],
48
48
  "homepage": "https://visulima.com/packages/iso-locale",
49
- "bugs": {
50
- "url": "https://github.com/visulima/visulima/issues"
51
- },
49
+ "bugs": "https://github.com/visulima/visulima/issues",
52
50
  "repository": {
53
51
  "type": "git",
54
52
  "url": "git+https://github.com/visulima/visulima.git",