Code Monkey home page Code Monkey logo

node-nvd-search's People

Contributors

dependabot[bot] avatar travispaul avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

pombredanne

node-nvd-search's Issues

Done is not a function

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)

Better error handling for failed feed transfers

During a sync a timeout or network disruption can cause the entire sync process to fail and will need to be restarted. Instead of failing hard, a retry should first be attempted and/or possibly a fallback mirror should be consulted instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.