@geogirafe/lib-geoportal 1.1.0-dev.2640738406 → 1.1.0-dev.2640868297

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geogirafe.org"
7
7
  },
8
- "version": "1.1.0-dev.2640738406",
8
+ "version": "1.1.0-dev.2640868297",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -125,10 +125,9 @@
125
125
  const apiOrigin = `${window.location.origin}${window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'))}`;
126
126
  const elem = document.getElementById('include-code');
127
127
 
128
- elem.textContent = elem.textContent.replace('src="/geogirafe-api.js"', `src="${apiOrigin}/geogirafe-api.js"`);
129
- elem.textContent = elem.textContent.replace(
130
- 'href="/geogirafe-api.css"',
131
- `href="${apiOrigin}/geogirafe-api.css"`
128
+ elem.textContent = elem.textContent.replaceAll(
129
+ /(src|href)="\/([^"]+)"/g,
130
+ (match, attr, path) => `${attr}="${apiOrigin}/${path}"`
132
131
  );
133
132
 
134
133
  const sections = document.querySelectorAll('section');
@@ -1 +1 @@
1
- {"version":"1.1.0-dev.2640738406", "build":"2640738406", "date":"30/06/2026"}
1
+ {"version":"1.1.0-dev.2640868297", "build":"2640868297", "date":"30/06/2026"}