Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fetchRange(options): Promise {
const retVal = new Deferred();
this._request(options.start, options.end).then(response => retVal.resolve(response));
return new QueryResults(retVal.then(response => response.data), {
totalLength: retVal.then(response => response.totalLength)
});
}
}