@webqit/fetch-plus 0.1.11 → 0.1.13
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/README.md +4 -3
- package/dist/main.js +1 -1
- package/dist/main.js.map +3 -3
- package/package.json +1 -1
- package/src/LiveResponse.js +4 -0
package/package.json
CHANGED
package/src/LiveResponse.js
CHANGED
|
@@ -63,6 +63,10 @@ export class LiveResponse extends EventTarget {
|
|
|
63
63
|
if (port && !(port instanceof MessagePortPlus)) {
|
|
64
64
|
throw new Error('Client must be a MessagePortPlus interface');
|
|
65
65
|
}
|
|
66
|
+
if (respone instanceof LiveResponse) {
|
|
67
|
+
respone.#port = port;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
66
70
|
const responseMeta = _meta(respone);
|
|
67
71
|
responseMeta.set('port', port);
|
|
68
72
|
}
|