Fix linting
This commit is contained in:
parent
553ba9db9a
commit
bb5189c9ed
35 changed files with 157 additions and 866 deletions
|
@ -3,9 +3,9 @@ import FormData from 'form-data';
|
|||
|
||||
const apiRoot = 'https://www.virustotal.com/vtapi/v2';
|
||||
|
||||
export function* getFileReport(resource, apiKey = process.env.VIRUSTOTAL_KEY) {
|
||||
export default async (resource, apiKey = process.env.VIRUSTOTAL_KEY) => {
|
||||
const form = new FormData();
|
||||
form.append('apikey', apiKey);
|
||||
form.append('resource', resource);
|
||||
return yield fetch(`${apiRoot}/file/report`, { method: 'POST' });
|
||||
}
|
||||
return fetch(`${apiRoot}/file/report`, { method: 'POST' });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue