As far as I can see I'm just following the most basic implementation, is there something I'm missing?
const nvd = new NVD();
nvd.sync((error) => {
if (error) {
return console.error(error);
}
nvd.search("CVE-2019-6738")
});
/home/dabbott/dev/vulnert/node_modules/nvd-search/index.js:296
done(error, {data, results});
^
TypeError: done is not a function
at /home/dabbott/dev/vulnert/node_modules/nvd-search/index.js:296:9
at done (/home/dabbott/dev/vulnert/node_modules/vasync/lib/vasync.js:398:12)
at Immediate.iterate (/home/dabbott/dev/vulnert/node_modules/vasync/lib/vasync.js:373:4)
at processImmediate (internal/timers.js:456:21)