@lls/offline 24.29.0-ce3e2282 → 24.29.0-d24e9b32

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,15 +493,18 @@ 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
+ }
496
502
  if (!mimeType && !isValidScreenCall) {
497
503
  if (!/\.(css|tsx?|[mj]sx?|woff2|wasm|fr|(web)?manifest)(\??|$)|@(vite|react|id)|(:6019\/?$)/.test(url)) {
498
504
  console.debug("no ext", extension || url);
499
505
  }
500
506
  return ev.respondWith(onlineFirst(ev.request, ev));
501
507
  }
502
- if (/http:\/\/localhost:\d+\/(favicon\.svg|assets\/)/.test(url)) {
503
- return;
504
- }
505
508
  const entryId = knownLinks.get(url.replace(/https:\/\/.*?\//, "")) || knownLinks.get(`medias/${url.replace(/https:\/\/.*?\//, "")}`);
506
509
  if (isValidScreenCall) {
507
510
  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-ce3e2282",
3
+ "version": "24.29.0-d24e9b32",
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-ce3e2282"
57
+ "@lls/vitescripts": "24.29.0-d24e9b32"
58
58
  },
59
59
  "dependencies": {
60
60
  "redux-persist": "6.0.0"