@lls/offline 24.29.0-d93be978 → 24.29.0-ec252645

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