You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var rp = require('request-promise-retry');
var rp1 = rp.defaults({json:true});
var rp2 = rp1.defaults({ baseUrl: "http://localhost" })
The case of "double defaults" comes up with a module defines it's own defaults, but also allows you to pass in your own request object which may also have defaults. The node-strava-v3 module works like this.
It would be a welcome addition if request-promise matched the request-promise behavior here.
Thanks.
The text was updated successfully, but these errors were encountered:
This works with
request.promise
:But not with
request-promise-retry
:The case of "double defaults" comes up with a module defines it's own defaults, but also allows you to pass in your own request object which may also have defaults. The
node-strava-v3
module works like this.It would be a welcome addition if
request-promise
matched therequest-promise
behavior here.Thanks.
The text was updated successfully, but these errors were encountered: