@geogirafe/lib-geoportal 1.1.0-dev.2402672760 → 1.1.0-dev.2407028282

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.geomapfish.dev"
7
7
  },
8
- "version": "1.1.0-dev.2402672760",
8
+ "version": "1.1.0-dev.2407028282",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
package/service-worker.js CHANGED
@@ -60,8 +60,9 @@ function handleMessage(event) {
60
60
  audience = data.audience ?? [];
61
61
  log(`audience changed: ${audience}`);
62
62
  }
63
+ audienceExcludedPaths = [];
63
64
  if (data.audienceExcludedPaths) {
64
- audienceExcludedPaths = data.audienceExcludedPaths ? data.audienceExcludedPaths.map((str) => new RegExp(str)) : [];
65
+ audienceExcludedPaths = data.audienceExcludedPaths.map((str) => new RegExp(str));
65
66
  log(`audienceExcludedPaths changed: ${audienceExcludedPaths}`);
66
67
  }
67
68
  if (data.access_token) {
@@ -253,6 +254,6 @@ async function openIndexedDB() {
253
254
  }
254
255
  function log(str, error) {
255
256
  if (logLevel === 'debug') {
256
- console.debug(`SW: ${str}`, error);
257
+ console.debug(`SW: ${str}`, error ?? '');
257
258
  }
258
259
  }
@@ -1 +1 @@
1
- {"version":"1.1.0-dev.2402672760", "build":"2402672760", "date":"23/03/2026"}
1
+ {"version":"1.1.0-dev.2407028282", "build":"2407028282", "date":"25/03/2026"}