@lls/offline 24.29.0-ec252645 → 24.29.0-f781b383

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.
@@ -493,18 +493,15 @@ swSelf.addEventListener("fetch", (ev) => {
493
493
  }
494
494
  return;
495
495
  }
496
- if (/api(-dev|-preprod)?\.lelivrescolaire\.fr\/?$/.test(url) && ev.request.method === "HEAD") {
497
- return;
498
- }
499
- if (/http:\/\/(localhost|127\.0\.0\.1):\d+/.test(url)) {
500
- return;
501
- }
502
496
  if (!mimeType && !isValidScreenCall) {
503
497
  if (!/\.(css|tsx?|[mj]sx?|woff2|wasm|fr|(web)?manifest)(\??|$)|@(vite|react|id)|(:6019\/?$)/.test(url)) {
504
498
  console.debug("no ext", extension || url);
505
499
  }
506
500
  return ev.respondWith(onlineFirst(ev.request, ev));
507
501
  }
502
+ if (/http:\/\/localhost:\d+\/(favicon\.svg|assets\/)/.test(url)) {
503
+ return;
504
+ }
508
505
  const entryId = knownLinks.get(url.replace(/https:\/\/.*?\//, "")) || knownLinks.get(`medias/${url.replace(/https:\/\/.*?\//, "")}`);
509
506
  if (isValidScreenCall) {
510
507
  return ev.respondWith(fetchScreenCall(ev, { offlineWorkerSync, knownLinks }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/offline",
3
- "version": "24.29.0-ec252645",
3
+ "version": "24.29.0-f781b383",
4
4
  "description": "offline",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -54,7 +54,7 @@
54
54
  "vite": "7.0.7",
55
55
  "vite-tsconfig-paths": "5.1.4",
56
56
  "zod": "3.25.50",
57
- "@lls/vitescripts": "24.29.0-ec252645"
57
+ "@lls/vitescripts": "24.29.0-f781b383"
58
58
  },
59
59
  "dependencies": {
60
60
  "redux-persist": "6.0.0"