This is an automated email from the ASF dual-hosted git repository. glynnbird pushed a commit to branch fetch in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git
commit a8a0825ad8c8ec27448337c9860e0136fe1e2ccf Author: Glynn Bird <[email protected]> AuthorDate: Fri Dec 16 13:44:36 2022 +0000 show warning when requestDefaults is supplied --- lib/nano.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/nano.js b/lib/nano.js index 2836411..77a6a48 100644 --- a/lib/nano.js +++ b/lib/nano.js @@ -91,6 +91,11 @@ module.exports = exports = function dbScope (cfg) { } } + // warn using still using requestDefaults + if (cfg.requestDefaults) { + console.error('WARNING: requestDefaults is no longer supported. See agentOptions.') + } + // create cookieJar for this Nano cfg.cookieJar = new CookieJar()
