@lls/offline 24.28.0-b76331dd → 24.28.0-c7eb356e
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.
|
@@ -401,6 +401,7 @@ var fetchZipFile = async (zipUrl, { forceRefresh } = {}) => {
|
|
|
401
401
|
await accessHandle.close();
|
|
402
402
|
} else {
|
|
403
403
|
const cache = await openCache(CONF_ENV);
|
|
404
|
+
console.time("writing cache");
|
|
404
405
|
const response2 = new Response(arrayBuffer, {
|
|
405
406
|
headers: {
|
|
406
407
|
"Cache-Control": "max-age=600, s-maxage=600, public, proxy-revalidate",
|
|
@@ -413,9 +414,12 @@ var fetchZipFile = async (zipUrl, { forceRefresh } = {}) => {
|
|
|
413
414
|
type: "cors",
|
|
414
415
|
url: zipUrl
|
|
415
416
|
});
|
|
416
|
-
|
|
417
|
+
console.debug("writing to cache asynchronously, because takes 4s");
|
|
418
|
+
cache.put(zipUrl, response2).then(() => {
|
|
419
|
+
console.timeEnd("writing cache");
|
|
420
|
+
});
|
|
417
421
|
}
|
|
418
|
-
return
|
|
422
|
+
return arrayBuffer;
|
|
419
423
|
}
|
|
420
424
|
};
|
|
421
425
|
var slugToFileMeta2 = async ({ slug }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/offline",
|
|
3
|
-
"version": "24.28.0-
|
|
3
|
+
"version": "24.28.0-c7eb356e",
|
|
4
4
|
"description": "offline",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vite": "7.0.7",
|
|
54
54
|
"vite-tsconfig-paths": "5.1.4",
|
|
55
55
|
"zod": "3.25.50",
|
|
56
|
-
"@lls/vitescripts": "24.28.0-
|
|
56
|
+
"@lls/vitescripts": "24.28.0-c7eb356e"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"redux-persist": "6.0.0"
|