Skip to content

Commit

Permalink
fix: missing sud-sardegna str province
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 8, 2024
1 parent 1dd277f commit a7bd0f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ yarn add comuni-province-regioni
### Get City attributes

```ts
import City, { CITIES_ATTRIBUTES } from 'comuni-province-regioni/city';
import City, { CITIES_ATTRIBUTES } from 'comuni-province-regioni/lib/city';

const attrs = CITIES_ATTRIBUTES[City.MOIMACCO_030060];
console.log(attrs.name, attrs.province, attrs.region);
Expand All @@ -52,8 +52,8 @@ console.log(attrs.name, attrs.province, attrs.region);
### Get province region and viceversa

```ts
import Province, { PROVINCES_BY_REGION, REGION_BY_PROVINCE, provinceToString } from 'comuni-province-regioni/province';
import Region from 'comuni-province-regioni/region';
import Province, { PROVINCES_BY_REGION, REGION_BY_PROVINCE, provinceToString } from 'comuni-province-regioni/lib/province';
import Region from 'comuni-province-regioni/lib/region';

const regionProvinces = PROVINCES_BY_REGION[Region.PIEMONTE];
for (const province of regionProvinces) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comuni-province-regioni",
"version": "0.4.0",
"version": "0.4.1",
"description": "a package containing definitions for all the entities recognised as \"Comune\", \"Provincia\" and \"Regione\" in Italy",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/province.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ export const provinceToString = (province: Province): string => {
return 'Siracusa';
case Province.SONDRIO:
return 'Sondrio';
case Province.SUD_SARDEGNA:
return 'Sud Sardegna';
case Province.TARANTO:
return 'Taranto';
case Province.TERAMO:
Expand Down

0 comments on commit a7bd0f7

Please sign in to comment.