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.

@@ -171,6 +171,10 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
171
171
  // hotfix to support opt.all option which is required for node 20.x
172
172
  lookup = (hostname, opt, cb) => {
173
173
  _lookup(hostname, opt, (err, arg0, arg1) => {
174
+ if (err) {
175
+ return cb(err);
176
+ }
177
+
174
178
  const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
175
179
 
176
180
  opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
package/lib/env/data.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.6.4";
1
+ export const VERSION = "1.6.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "index.js",
6
6
  "exports": {