@lls/offline 24.29.0-d24e9b32 → 24.29.0-d93be978
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
|
-
}
|
|
502
499
|
if (!mimeType && !isValidScreenCall) {
|
|
503
500
|
if (!/\.(css|tsx?|[mj]sx?|woff2|wasm|fr|(web)?manifest)(\??|$)|@(vite|react|id)|(:6019\/?$)/.test(url)) {
|
|
504
501
|
console.debug("no ext", extension || url);
|
|
505
502
|
}
|
|
506
503
|
return ev.respondWith(onlineFirst(ev.request, ev));
|
|
507
504
|
}
|
|
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-
|
|
3
|
+
"version": "24.29.0-d93be978",
|
|
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-
|
|
57
|
+
"@lls/vitescripts": "24.29.0-d93be978"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"redux-persist": "6.0.0"
|