From db31d32e04eef2d82ddd3b0e0767c6a7f1d6593e Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 12 Aug 2018 14:06:13 +0200 Subject: [PATCH] fix: remove got 8 > 9(retries > retry) option re-assign behaviour BREAKING CHANGE: the http request option `retries` will no longer be transformed into `retry`, see `got@^9.0.0` package for the `retry` options --- lib/provider.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/provider.js b/lib/provider.js index b7acd7c2b..7d236093e 100644 --- a/lib/provider.js +++ b/lib/provider.js @@ -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);