I have been using jQuery's $.ajax() functionality to make asynchronous http requests from my Node server to other external API servers.
I now want to upgrade my libraries but I'm getting
....
/jquery/node_modules/jsdom/lib/jsdom/level1/core.js:418
set nodeName() { throw new core.DOMException();},
^^
SyntaxError: Setter must have exactly one formal parameter.
- How can I fix this error?
- Is there any library that is equally flexible as
$.ajax()is? I'm particularly interested in the promise and $.ajaxPrefilter() functionalities.