clean-web-scraper 3.5.6 → 3.5.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clean-web-scraper",
3
- "version": "3.5.6",
3
+ "version": "3.5.7",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "start": "node main.js",
package/src/WebScraper.js CHANGED
@@ -76,11 +76,11 @@ class WebScraper
76
76
  this.axiosOptions = {};
77
77
  if ( this.axiosHeaders )
78
78
  {
79
- axiosOptions.headers = this.axiosHeaders;
79
+ this.axiosOptions.headers = this.axiosHeaders;
80
80
  }
81
81
  if ( this.axiosProxy )
82
82
  {
83
- axiosOptions.proxy = this.axiosProxy;
83
+ this.axiosOptions.proxy = this.axiosProxy;
84
84
  }
85
85
 
86
86
  // Content storage
@@ -195,7 +195,7 @@ class WebScraper
195
195
  responseType: "stream",
196
196
  maxRedirects: 5,
197
197
  timeout: 70000,
198
- ...axiosOptions,
198
+ ...this.axiosOptions,
199
199
  });
200
200
 
201
201
  const contentType = response.headers["content-type"] || "";