@ekhein/http-request 2.0.8 → 2.0.9
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/dist/http-request.js +1 -1
- package/package.json +1 -1
package/dist/http-request.js
CHANGED
|
@@ -164,7 +164,7 @@ class HttpRequest {
|
|
|
164
164
|
this.instance.interceptors.response.use((_c = options.interceptorHooks) === null || _c === void 0 ? void 0 : _c.respondInterceptor, (_d = options.interceptorHooks) === null || _d === void 0 ? void 0 : _d.respondInterceptorCatch);
|
|
165
165
|
/* Transform */
|
|
166
166
|
this.instance.interceptors.response.use((response) => __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
if (typeof response.headers == "object") {
|
|
167
|
+
if (typeof (response === null || response === void 0 ? void 0 : response.headers) == "object") {
|
|
168
168
|
if (response.headers instanceof headers_1.HttpRequestHeaders) {
|
|
169
169
|
if (response.config.html) {
|
|
170
170
|
return new jsdom_1.JSDOM(response.data);
|