@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.
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekhein/http-request",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "license": "MIT",
5
5
  "author": "ekhein",
6
6
  "main": "./dist/index.js",