Skip to content

Commit

Permalink
fix: remove got 8 > 9(retries > retry) option re-assign behaviour
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the http request option `retries` will no longer
be transformed into `retry`, see `got@^9.0.0` package for the `retry`
options
  • Loading branch information
panva committed Sep 26, 2018
1 parent fc3f509 commit db31d32
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,6 @@ class Provider extends events.EventEmitter {
get defaultHttpOptions() { return instance(this).defaultHttpOptions; }

set defaultHttpOptions(value) {
/* eslint-disable no-param-reassign */
// TODO: deprecate
/* istanbul ignore if */
if (value.retries) {
value.retry = value.retries;
delete value.retries;
}
/* eslint-enable no-param-reassign */
instance(this).defaultHttpOptions = merge({
headers: { 'User-Agent': defaultUserAgent(this.issuer) },
}, DEFAULT_HTTP_OPTIONS, value);
Expand Down

0 comments on commit db31d32

Please sign in to comment.