Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clamscan

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clamscan - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

11

HISTORY.md

@@ -42,5 +42,12 @@ # Changes

### 0.6.2 (2014-01-05)
### 0.6.2 (2015-01-05)
* Fixed major bug in the scan_files method that was causing it to only scan half the files passed to it.
### 0.6.3 (2015-01-05)
* Removed the unnecessary "index_old.js" file put there for reference during the 0.5.0 -> 0.6.0 semi-rewrite.
*
### 0.6.4 (2015-01-26)
* Fixed error messages

16

index.js

@@ -87,7 +87,8 @@ /*!

if (!__.isEmpty(this.settings.quarantine_infected) && !fs.existsSync(this.settings.quarantine_infected)) {
var err_msg = "Quarantine path (" + this.quarantine_infected + ") is invalid.";
this.quarantine_infected = false;
throw new Error("Quarantine path (" + this.quarantine_infected + ") is invalid.");
throw new Error(err_msg);
if (this.settings.debug_mode)
console.log("node-clam: Quarantine path (" + this.quarantine_infected + ") is invalid.");
console.log("node-clam: " + err_msg);
}

@@ -97,6 +98,6 @@

if (!__.isEmpty(this.settings.scan_log) && !fs.existsSync(this.settings.scan_log)) {
var err_msg = "node-clam: Scan Log path (" + this.scan_log + ") is invalid.";
this.scan_log = null;
if (this.settings.debug_mode)
console.log("node-clam: Scan Log path (" + this.scan_log + ") is invalid.");
console.log(err_msg);
}

@@ -107,5 +108,6 @@

if (!__.isEmpty(this.settings.clamscan.db) && !fs.existsSync(this.settings.db)) {
var err_msg = "node-clam: Definitions DB path (" + this.db + ") is invalid.";
this.db = null;
if(this.settings.debug_mode)
console.log("node-clam: Definitions DB path (" + this.db + ") is invalid.");
console.log(err_msg);
}

@@ -203,3 +205,3 @@ }

if (self.settings.debug_mode)
console.log("node-clam: " + completed_files + "/" + num_files + " have been scanned!");
console.log("node-clam: " + completed_files + "/" + num_files + " have been scanned!");

@@ -435,2 +437,2 @@ if(!infected) {

return ' ' + flags_array.join(' ') + ' ';
}
}
{
"name": "clamscan",
"version": "0.6.3",
"version": "0.6.4",
"author": "Kyle Farris <kfarris@chomponllc.com> (http://chomponllc.com)",

@@ -5,0 +5,0 @@ "description": "Use Node JS to scan files on your server with ClamAV's clamscan binary or clamdscan daemon. This is especially useful for scanning uploaded files provided by un-trusted sources.",

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