New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

website-scraper

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

website-scraper - npm Package Compare versions

Comparing version 3.3.5 to 3.3.6

5

lib/resource-handler/index.js

@@ -64,3 +64,6 @@ 'use strict';

if (self.options.prettifyUrls) {
relativePath = relativePath.replace(self.options.defaultFilename, '');
if (relativePath === self.options.defaultFilename
|| relativePath.endsWith('/' + self.options.defaultFilename)) {
relativePath = relativePath.slice(0, -self.options.defaultFilename.length);
}
}

@@ -67,0 +70,0 @@ const hash = utils.getHashFromUrl(childPath);

6

lib/utils/index.js

@@ -38,3 +38,7 @@ 'use strict';

const relativePath = path.relative(dirname, path2);
return getUnixPath(relativePath);
const escaped = relativePath
.split(path.sep)
.map(pathComponent => encodeURIComponent(pathComponent).replace(/['()]/g, c => '%' + c.charCodeAt(0).toString(16)))
.join(path.sep);
return getUnixPath(escaped);
}

@@ -41,0 +45,0 @@

{
"name": "website-scraper",
"version": "3.3.5",
"version": "3.3.6",
"description": "Download website to a local directory (including all css, images, js, etc.)",

@@ -5,0 +5,0 @@ "readmeFilename": "README.md",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc