diff --git a/dist/axios.js b/dist/axios.js index 3376670..0f335a3 100644 --- a/dist/axios.js +++ b/dist/axios.js @@ -8,10 +8,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return _typeof = "function" === typeof Symbol && "symbol" === typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + return obj && "function" === typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } function _classCallCheck(instance, Constructor) { diff --git a/dist/node/axios.cjs b/dist/node/axios.cjs index adce59e..fbd7868 100644 --- a/dist/node/axios.cjs +++ b/dist/node/axios.cjs @@ -3027,7 +3027,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) { // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. const timeout = parseInt(config.timeout, 10); - if (isNaN(timeout)) { + if (Number.isNaN(timeout)) { reject(new AxiosError( 'error trying to parse `config.timeout` to int', AxiosError.ERR_BAD_OPTION_VALUE, diff --git a/lib/adapters/http.js b/lib/adapters/http.js index fc478c4..888b78d 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -604,7 +604,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) { // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. const timeout = parseInt(config.timeout, 10); - if (isNaN(timeout)) { + if (Number.isNaN(timeout)) { reject(new AxiosError( 'error trying to parse `config.timeout` to int', AxiosError.ERR_BAD_OPTION_VALUE,