Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
start(listener) {
request = optionsToSuperagent(requestOptions);
listener.next(Loading(0));
if (requestOptions.progress) {
request = request.on('progress', ev =>
listener.next(Loading(ev.percent || 0))
);
}
request.end(processResponse(requestOptions, listener));
},