Skip to content

Commit

Permalink
feat: add flags for nicard and provencal (#495)
Browse files Browse the repository at this point in the history
* feat: add flags for nicard and provencal

* correct
  • Loading branch information
fufeck authored Dec 17, 2024
1 parent c999321 commit 9501e64
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions libs/shared/src/validators/validator_bal.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export class ValidatorBal implements ValidatorConstraintInterface {
const { errors } = await validateurBAL(value.toString(), 'voie_nom');
return errors.length === 0;
} else if (field === 'langAlt') {
Object.keys(value).forEach(async (codeISO) => {
for (const codeISO of Object.keys(value)) {
if (supportedNomAlt.has(codeISO)) {
const nomVoie = value[codeISO];
const { errors } = await validateurBAL(nomVoie, 'voie_nom');
return errors.length === 0;
} else {
return false;
}
});
}
}
} catch {
return false;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
},
"dependencies": {
"@ban-team/adresses-util": "^0.9.0",
"@ban-team/shared-data": "^1.2.0",
"@ban-team/validateur-bal": "^2.19.1",
"@ban-team/shared-data": "^1.3.0",
"@ban-team/validateur-bal": "^2.20.0",
"@etalab/decoupage-administratif": "^4.0.0",
"@etalab/project-legal": "^0.6.0",
"@mapbox/tilebelt": "^1.0.2",
Expand Down Expand Up @@ -143,4 +143,4 @@
"engines": {
"node": "22"
}
}
}
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -454,17 +454,17 @@
talisman "^1.1.4"
written-number "^0.9.1"

"@ban-team/shared-data@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@ban-team/shared-data/-/shared-data-1.2.0.tgz#0e29e84a00f7df3b17e5821bde1405a2bfa656b5"
integrity sha512-35jz6ITHHufUKxXAfa8ReSMl6lZarnfVBkS++wgHpk27e9K52bXyAHo+n3X331n2mSzoIQXxFK7SEcPob7a5cA==
"@ban-team/shared-data@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@ban-team/shared-data/-/shared-data-1.3.0.tgz#8f281fda4cbfe232e750a5c4d888a1073fcc3a74"
integrity sha512-9mV0bMVdg3CYeYl70c0iChUCQTs+1PMjq2NtJNkYqCskEos+EhzeKyKIPMcAvTN4gy4S7x0jYCYpqxFnGZAKCQ==

"@ban-team/validateur-bal@^2.19.1":
version "2.19.1"
resolved "https://registry.yarnpkg.com/@ban-team/validateur-bal/-/validateur-bal-2.19.1.tgz#5cae5a9fcd9aa3d060809ef23a4adcb0b2f481db"
integrity sha512-6AjbS/4RQHVxtihPCRd2D66syaH3wxhPDdjodpoOywCdlCUuuCan6v7AG4gmHc5BtaZlTlIFsYQx63gq5DOpjg==
"@ban-team/validateur-bal@^2.20.0":
version "2.20.0"
resolved "https://registry.yarnpkg.com/@ban-team/validateur-bal/-/validateur-bal-2.20.0.tgz#36af9d793ef1cd949e214be7ceb7c68dc10e6ee7"
integrity sha512-RkdnaxKbq91S19lgFepwj7WsNLGsSNYMYpGoNINaeBeFU7TgLg9diBJMCSIahNW3T44+DZTlm1CpX55T0Zx4SA==
dependencies:
"@ban-team/shared-data" "^1.2.0"
"@ban-team/shared-data" "^1.3.0"
"@etalab/project-legal" "^0.6.0"
blob-to-buffer "^1.2.9"
bluebird "^3.7.2"
Expand Down

0 comments on commit 9501e64

Please sign in to comment.