@geogirafe/lib-geoportal 1.0.2250856094 → 1.0.2251126674

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.
@@ -115,7 +115,7 @@ export default class GeoGirafeApi extends GirafeHTMLElement {
115
115
  }
116
116
  injectConfigMetaTags() {
117
117
  const location = new URL(import.meta.url);
118
- if (import.meta.env.DEV) {
118
+ if (import.meta?.env?.DEV) {
119
119
  location.pathname = location.pathname.replace('/src/api', '');
120
120
  }
121
121
  const origin = `${location.origin}${location.pathname.substring(0, location.pathname.lastIndexOf('/'))}`;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geomapfish.dev"
7
7
  },
8
- "version": "1.0.2250856094",
8
+ "version": "1.0.2251126674",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -1 +1 @@
1
- {"version":"1.0.2250856094", "build":"2250856094", "date":"08/01/2026"}
1
+ {"version":"1.0.2251126674", "build":"2251126674", "date":"08/01/2026"}
@@ -300,7 +300,7 @@ class GirafeConfig {
300
300
  locale: config.general.locale ?? GirafeConfig.DEFAULT_LOCALE,
301
301
  // NOTE REG: Small hack specific to Vite: When running in debug mode, we force the logLevel to debug.
302
302
  // Otherwise we will always have to manually activate it.
303
- logLevel: import.meta.env.DEV ? 'debug' : (config.general.logLevel ?? 'warn')
303
+ logLevel: import.meta?.env?.DEV ? 'debug' : (config.general.logLevel ?? 'warn')
304
304
  };
305
305
  }
306
306
  initGmfOauth(config) {
@@ -61,7 +61,7 @@ ${stack}
61
61
  if (error?.stack) {
62
62
  try {
63
63
  // NOTE REG: Specific to Vite: When running in debug mode, we do not need to calculate the original stacktrace
64
- stack = import.meta.env.DEV ? error.stack : await this.getOriginalStackTrace(error);
64
+ stack = import.meta?.env?.DEV ? error.stack : await this.getOriginalStackTrace(error);
65
65
  }
66
66
  catch (e) {
67
67
  // If an error accurs during the calculation of the stacktrace, we just ignore it