@webqit/webflo 0.9.5 → 0.9.6

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.9.5",
15
+ "version": "0.9.6",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -235,7 +235,7 @@ function bundle(gen, output, asModule = false) {
235
235
  let log = stats.toString({ colors: true, });
236
236
  cx.logger && cx.logger.log(log);
237
237
  // Remove moduleFile build
238
- //Fs.unlinkSync(bundlingConfig.entry);
238
+ Fs.unlinkSync(bundlingConfig.entry);
239
239
  resolve(log);
240
240
  });
241
241
  });
@@ -76,9 +76,8 @@ export default class Worker {
76
76
  // -------------
77
77
  // ONFETCH
78
78
  self.addEventListener('fetch', async evt => {
79
- return; // TODO
80
79
  // URL schemes that might arrive here but not supported; e.g.: chrome-extension://
81
- if (!evt.request.url.startsWith('http')) return;
80
+ if (!evt.request.url.startsWith('http') || evt.request.mode === 'navigate') return;
82
81
  const requestInit = [
83
82
  'method', 'headers', 'body', 'mode', 'credentials', 'cache', 'redirect', 'referrer', 'integrity',
84
83
  ].reduce((init, prop) => ({ [prop]: evt.request[prop], ...init }), {});