@webqit/webflo 1.0.5 → 1.0.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": "1.0.5",
15
+ "version": "1.0.6",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -119,6 +119,9 @@ export class WebfloWorker extends WebfloRuntime {
119
119
  }
120
120
 
121
121
  createRequest(href, init = {}) {
122
+ if (init instanceof Request && init.url === (href.href || href)) {
123
+ return init;
124
+ }
122
125
  return new Request(href, init);
123
126
  }
124
127
 
@@ -8,6 +8,7 @@ import { renderHttpMessageInit } from './util-http.js';
8
8
  * The xfetch Mixin
9
9
  */
10
10
  const xfetch = async (url, init = {}) => {
11
+ return await fetch(url);
11
12
  if (init.body) {
12
13
  const { body, headers } = renderHttpMessageInit(init);
13
14
  init = { ...init, body, headers, };