Comparing version 2.2.1 to 2.2.2
@@ -5,3 +5,3 @@ const { PassThrough } = require('stream'); | ||
const fakeVirusUrl = 'https://secure.eicar.org/eicar_com.txt'; | ||
const fakeVirusUrl = 'https://www.eicar.org/download/eicar-com-2/?wpdmdl=8842&refresh=661ef9d576b211713306069'; | ||
// const normalFileUrl = 'https://raw.githubusercontent.com/kylefarris/clamscan/sockets/README.md'; | ||
@@ -23,11 +23,14 @@ const testUrl = fakeVirusUrl; | ||
port: 3310, | ||
socket: '/var/run/clamd.scan/clamd.sock', | ||
//socket: '/var/run/clamd.scan/clamd.sock', | ||
}, | ||
}); | ||
// Fetch fake Eicar virus file and pipe it through to our scan screeam | ||
const passthrough = new PassThrough(); | ||
const source = axios.get(testUrl); | ||
axios.get( | ||
testUrl, { responseType: 'stream' } | ||
).then((response) => { | ||
response.data.pipe(passthrough); | ||
}); | ||
// Fetch fake Eicar virus file and pipe it through to our scan screeam | ||
source.pipe(passthrough); | ||
@@ -34,0 +37,0 @@ try { |
{ | ||
"name": "clamscan", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"author": "Kyle Farris <kyle.farris@infotechinc.com> (https://infotechinc.com)", | ||
@@ -5,0 +5,0 @@ "description": "Use Node JS to scan files on your server with ClamAV's clamscan/clamdscan binary or via TCP to a remote server or local UNIX Domain socket. This is especially useful for scanning uploaded files provided by un-trusted sources.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
283449
4388