diff --git a/DRAFT_CHANGELOG.md b/DRAFT_CHANGELOG.md index fe9fecfd..669124e5 100644 --- a/DRAFT_CHANGELOG.md +++ b/DRAFT_CHANGELOG.md @@ -1,11 +1,13 @@ -# Bibliothèque d'accès aux services Géoportail, version 3.3.2 +# Bibliothèque d'accès aux services Géoportail, version 3.3.3 -**20/07/2023 : 3.3.2** +**02/08/2023 : 3.3.3** > release of geoportal access library ## Summary +Correction mineure sur l'utilisation d'un fichier de configuration local + ## Changelog * [Added] @@ -16,6 +18,8 @@ * [Fixed] + - Correction parsing des ressources liées à un fichier de config local (#85) + * [Deprecated] * [Security] diff --git a/geoportal-access-lib-3.3.2.tgz b/geoportal-access-lib-3.3.2.tgz index 1fc82543..b6d3451a 100644 Binary files a/geoportal-access-lib-3.3.2.tgz and b/geoportal-access-lib-3.3.2.tgz differ diff --git a/src/Services/Config/Config.js b/src/Services/Config/Config.js index ca41d9cc..8c1edb5a 100644 --- a/src/Services/Config/Config.js +++ b/src/Services/Config/Config.js @@ -59,7 +59,11 @@ function Config (options) { this.options.sync = options.sync || false; // gestion d'un tableau d'url des fichiers de configuration - this.options.listConfigUrls = (options.customConfigFile) ? [options.customConfigFile] : DefaultUrlService.Config.url(options.apiKey.split(",")); + this.options.listConfigUrls = (options.customConfigFile) + ? [options.customConfigFile] + : !Array.isArray(options.apiKey) + ? DefaultUrlService.Config.url(options.apiKey.split(",")) + : DefaultUrlService.Config.url(options.apiKey); } /**