Skip to content

Commit

Permalink
Auto-generated commit [ci skip]
Browse files Browse the repository at this point in the history
Triggered by commit: 2c6a665
  • Loading branch information
godly-devotion committed Feb 16, 2024
1 parent bd59d1f commit 673740f
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 37 deletions.
4 changes: 2 additions & 2 deletions 404.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion main.578fa93e4747eeaf.js

This file was deleted.

1 change: 1 addition & 0 deletions main.6099a86a74b0bd89.js

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions ngsw-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,7 @@ ${error.stack}`;
return UpdateCacheStatus.CACHED;
}
async getCacheNames() {
const [cache, metadata] = await Promise.all([
this.cache,
this.metadata
]);
const [cache, metadata] = await Promise.all([this.cache, this.metadata]);
return [cache.name, metadata.cacheName];
}
async handleFetch(req, _event) {
Expand Down Expand Up @@ -1032,7 +1029,7 @@ ${error.stack}`;
};

// bazel-out/k8-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs
var SW_VERSION = "17.1.1";
var SW_VERSION = "17.1.3";
var DEBUG_LOG_BUFFER_SIZE = 100;
var DebugHandler = class {
constructor(driver, adapter2) {
Expand Down Expand Up @@ -1760,7 +1757,10 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" }
await this.initialized;
const clients = await this.scope.clients.matchAll();
await Promise.all(clients.map(async (client) => {
client.postMessage({ type: "NO_NEW_VERSION_DETECTED", version: this.mergeHashWithAppData(manifest, hash) });
client.postMessage({
type: "NO_NEW_VERSION_DETECTED",
version: this.mergeHashWithAppData(manifest, hash)
});
}));
}
async notifyClientsAboutVersionDetected(manifest, hash) {
Expand All @@ -1771,7 +1771,10 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" }
if (version === void 0) {
return;
}
client.postMessage({ type: "VERSION_DETECTED", version: this.mergeHashWithAppData(manifest, hash) });
client.postMessage({
type: "VERSION_DETECTED",
version: this.mergeHashWithAppData(manifest, hash)
});
}));
}
async notifyClientsAboutVersionReady(manifest, hash) {
Expand Down
12 changes: 6 additions & 6 deletions ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1707763263140,
"timestamp": 1708045172719,
"index": "/coffee-ratio/index.html",
"assetGroups": [
{
Expand All @@ -13,11 +13,11 @@
"urls": [
"/coffee-ratio/favicon.ico",
"/coffee-ratio/index.html",
"/coffee-ratio/main.578fa93e4747eeaf.js",
"/coffee-ratio/main.6099a86a74b0bd89.js",
"/coffee-ratio/manifest.webmanifest",
"/coffee-ratio/polyfills.a931cc025ca606fe.js",
"/coffee-ratio/runtime.30695f24e9e68506.js",
"/coffee-ratio/styles.9aa5475096138afd.css"
"/coffee-ratio/styles.1a407f5c59c28476.css"
],
"patterns": []
},
Expand Down Expand Up @@ -100,12 +100,12 @@
"/coffee-ratio/assets/images/splash/apple-splash-750-1334.jpg": "af0708b518eb2f4e1dc614748c2c008429370746",
"/coffee-ratio/assets/images/splash/apple-splash-828-1792.jpg": "7cb97556297e4a853bc5764f0c91bb96e9f30b1e",
"/coffee-ratio/favicon.ico": "4ac7d826fbece35296f9cb73c56f76f7818373bc",
"/coffee-ratio/index.html": "49b67a363892c4c1c12ea9f05f130e3ab475564e",
"/coffee-ratio/main.578fa93e4747eeaf.js": "ab3b30390fc5546dade4352f75ee4738b1b2fc01",
"/coffee-ratio/index.html": "683ae80bf6ed7b10602fc08b0be44dae589aba2a",
"/coffee-ratio/main.6099a86a74b0bd89.js": "947f7dfd795415bc7848ffb1262dff8f1b09e92b",
"/coffee-ratio/manifest.webmanifest": "1e06d70000edd2c6ce1709c5fdc1ffaaae780b98",
"/coffee-ratio/polyfills.a931cc025ca606fe.js": "2326fe1448da25dc77da4d7d092293b36f270342",
"/coffee-ratio/runtime.30695f24e9e68506.js": "9f6cdb9fd60601ae79de6c8b6f512dde9d54bd81",
"/coffee-ratio/styles.9aa5475096138afd.css": "2db682138a0752da3e5ad1cc4bbb4ba9001b6f11"
"/coffee-ratio/styles.1a407f5c59c28476.css": "aef1bba1c1330f87c7da9b4fe105b99cec4822ba"
},
"navigationUrls": [
{
Expand Down
22 changes: 13 additions & 9 deletions safety-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@

// tslint:disable:no-console

self.addEventListener('install', event => {
self.addEventListener('install', (event) => {
self.skipWaiting();
});

self.addEventListener('activate', event => {
self.addEventListener('activate', (event) => {
event.waitUntil(self.clients.claim());

event.waitUntil(self.registration.unregister().then(() => {
console.log('NGSW Safety Worker - unregistered old service worker');
}));
event.waitUntil(
self.registration.unregister().then(() => {
console.log('NGSW Safety Worker - unregistered old service worker');
}),
);

event.waitUntil(caches.keys().then(cacheNames => {
const ngswCacheNames = cacheNames.filter(name => /^ngsw:/.test(name));
return Promise.all(ngswCacheNames.map(name => caches.delete(name)));
}));
event.waitUntil(
caches.keys().then((cacheNames) => {
const ngswCacheNames = cacheNames.filter((name) => /^ngsw:/.test(name));
return Promise.all(ngswCacheNames.map((name) => caches.delete(name)));
}),
);
});

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions worker-basic.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@

// tslint:disable:no-console

self.addEventListener('install', event => {
self.addEventListener('install', (event) => {
self.skipWaiting();
});

self.addEventListener('activate', event => {
self.addEventListener('activate', (event) => {
event.waitUntil(self.clients.claim());

event.waitUntil(self.registration.unregister().then(() => {
console.log('NGSW Safety Worker - unregistered old service worker');
}));
event.waitUntil(
self.registration.unregister().then(() => {
console.log('NGSW Safety Worker - unregistered old service worker');
}),
);

event.waitUntil(caches.keys().then(cacheNames => {
const ngswCacheNames = cacheNames.filter(name => /^ngsw:/.test(name));
return Promise.all(ngswCacheNames.map(name => caches.delete(name)));
}));
event.waitUntil(
caches.keys().then((cacheNames) => {
const ngswCacheNames = cacheNames.filter((name) => /^ngsw:/.test(name));
return Promise.all(ngswCacheNames.map((name) => caches.delete(name)));
}),
);
});

0 comments on commit 673740f

Please sign in to comment.