@webqit/webflo 0.11.57 → 0.11.58-0

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.
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "0.11.57",
15
+ "version": "0.11.58-0",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -27,7 +27,7 @@ export default class Worker extends Dotfile {
27
27
  cache_first_urls: [],
28
28
  network_only_urls: [],
29
29
  cache_only_urls: [],
30
- skip_waiting: false,
30
+ skip_waiting: true,
31
31
  // -----------------
32
32
  support_push: false,
33
33
  push_registration_url: '',
@@ -84,6 +84,7 @@ export default class Runtime extends _Runtime {
84
84
  // -------------
85
85
  // ONFETCH
86
86
  self.addEventListener('fetch', event => {
87
+ console.log('[SERVICE_WORKER]: ' + event.request.url);
87
88
  // URL schemes that might arrive here but not supported; e.g.: chrome-extension://
88
89
  if (!event.request.url.startsWith('http')) return;
89
90
  event.respondWith((async evt => {
@@ -135,6 +136,7 @@ export default class Runtime extends _Runtime {
135
136
  // ------------
136
137
  // The request object
137
138
  const request = this.generateRequest(url.href, init);
139
+ console.log('[SERVICE_WORKER]: ' + request.url, request.method);
138
140
  // The navigation event
139
141
  const httpEvent = new HttpEvent(request, detail, (id = null, persistent = false) => this.getSession(httpEvent, id, persistent));
140
142
  httpEvent.port.listen(message => {