clean-web-scraper 4.1.0 → 4.1.1

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.
Files changed (2) hide show
  1. package/main.js +2 -0
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -115,6 +115,7 @@ class WebScraper
115
115
  {
116
116
  return;
117
117
  }
118
+ let originalUrl = url;
118
119
  if ( this.removeURLFragment )
119
120
  {
120
121
  url = url.split( "#" )[0];
@@ -125,6 +126,7 @@ class WebScraper
125
126
  return;
126
127
  }
127
128
  this.visited.add( url );
129
+ this.visited.add( originalUrl );
128
130
  if ( !this.isValidFileType( url ) || !this.isValidDomain( url ) )
129
131
  {
130
132
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clean-web-scraper",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "start": "node main.js",