summaryrefslogtreecommitdiffstats
path: root/package-lock.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-05-22 03:45:34 +0200
committerGitHub <noreply@github.com>2020-05-21 21:45:34 -0400
commit88fe7b5a720365e5c8f0a347730f895263465311 (patch)
tree7d9de5b5c7d78878787dbe12c40ebe97791b2b52 /package-lock.json
parentf6f49700cc0f5d66b0c1ff5dc3e310c777583e85 (diff)
downloadgitea-88fe7b5a720365e5c8f0a347730f895263465311.tar.gz
gitea-88fe7b5a720365e5c8f0a347730f895263465311.zip
Move serviceworker to workbox and fix SSE interference (#11538)
* Move serviceworker to workbox and fix SSE interference Instead of statically hardcoding every frontend asset, this uses a type-based approach to cache all js,css and manifest.json requests. This also fixes the issue that the service worker was interfering with EventSource because it was unconditionally handling all requests which this new implementation doesn't. Fixes: https://github.com/go-gitea/gitea/issues/11092 Fixes: https://github.com/go-gitea/gitea/issues/7372 * rethrow error instead of logging * await .register * Revert "rethrow error instead of logging" This reverts commit 043162ba1f18b98a4bf9635959fd28d16e839fc5. * improve comment * remove JSRenderer * add version-based cache invalidation * refactor * more refactor * remove comment * rename item to fit cache name Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'package-lock.json')
-rw-r--r--package-lock.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index 89c41721c7..6206025e08 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14857,6 +14857,28 @@
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
"integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8="
},
+ "workbox-core": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-5.1.3.tgz",
+ "integrity": "sha512-TFSIPxxciX9sFaj0FDiohBeIKpwMcCyNduydi9i3LChItcndDS6TJpErxybv8aBWeCMraXt33TWtF6kKuIObNw=="
+ },
+ "workbox-routing": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-5.1.3.tgz",
+ "integrity": "sha512-F+sAp9Iy3lVl3BEG+pzXWVq4AftzjiFpHDaZ4Kf4vLoBoKQE0hIHet4zE5DpHqYdyw+Udhp4wrfHamX6PN6z1Q==",
+ "requires": {
+ "workbox-core": "^5.1.3"
+ }
+ },
+ "workbox-strategies": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-5.1.3.tgz",
+ "integrity": "sha512-wiXHfmOKnWABeIVW+/ye0e00+2CcS5y7SIj2f9zcdy2ZLEbcOf7B+yOl5OrWpBGlTUwRjIYhV++ZqiKm3Dc+8w==",
+ "requires": {
+ "workbox-core": "^5.1.3",
+ "workbox-routing": "^5.1.3"
+ }
+ },
"worker-farm": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz",