axios 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of axios might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- // Axios v1.6.4 Copyright (c) 2024 Matt Zabriskie and contributors
1
+ // Axios v1.6.5 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -2022,7 +2022,7 @@ function buildFullPath(baseURL, requestedURL) {
2022
2022
  return requestedURL;
2023
2023
  }
2024
2024
 
2025
- const VERSION = "1.6.4";
2025
+ const VERSION = "1.6.5";
2026
2026
 
2027
2027
  function parseProtocol(url) {
2028
2028
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -2653,6 +2653,10 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2653
2653
  // hotfix to support opt.all option which is required for node 20.x
2654
2654
  lookup = (hostname, opt, cb) => {
2655
2655
  _lookup(hostname, opt, (err, arg0, arg1) => {
2656
+ if (err) {
2657
+ return cb(err);
2658
+ }
2659
+
2656
2660
  const addresses = utils$1.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
2657
2661
 
2658
2662
  opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);