@webqit/fetch-plus 0.1.16 → 0.1.17

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
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "homepage": "https://fetch-plus.netlify.app/",
13
13
  "icon": "https://webqit.io/icon.svg",
14
- "version": "0.1.16",
14
+ "version": "0.1.17",
15
15
  "license": "MIT",
16
16
  "repository": {
17
17
  "type": "git",
@@ -77,6 +77,8 @@ export function messageParserMixin(superClass) {
77
77
  'blob', 'text', 'json', 'arrayBuffer', 'bytes', 'formData'
78
78
  ].includes(to)) throw new Error(`Invalid target type specified: ${to}`);
79
79
 
80
+ if (this.body === null) return null;
81
+
80
82
  const cache = _meta(this, 'cache');
81
83
  const readAs = async (type) => {
82
84
  // 1. Direct parsing