clean-web-scraper 3.5.4 → 3.5.5

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.4",
3
+ "version": "3.5.5",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "start": "node main.js",
package/src/WebScraper.js CHANGED
@@ -137,11 +137,7 @@ class WebScraper
137
137
  return;
138
138
  }
139
139
  this.visited.add( url );
140
- if ( !this.isValidFileType( url ) )
141
- {
142
- return;
143
- }
144
- if ( !this.isValidDomain( url ) )
140
+ if ( !this.isValidFileType( url ) || !this.isValidDomain( url ) )
145
141
  {
146
142
  return;
147
143
  }