axios 1.6.3 → 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.3";
1
+ export const VERSION = "1.6.5";
@@ -49,6 +49,9 @@ function arrayToObject(arr) {
49
49
  function formDataToJSON(formData) {
50
50
  function buildPath(path, value, target, index) {
51
51
  let name = path[index++];
52
+
53
+ if (name === '__proto__') return true;
54
+
52
55
  const isNumericKey = Number.isFinite(+name);
53
56
  const isLast = index >= path.length;
54
57
  name = !name && utils.isArray(target) ? target.length : name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.6.3",
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": {
@@ -146,7 +146,7 @@
146
146
  "unpkg": "dist/axios.min.js",
147
147
  "typings": "./index.d.ts",
148
148
  "dependencies": {
149
- "follow-redirects": "^1.15.0",
149
+ "follow-redirects": "^1.15.4",
150
150
  "form-data": "^4.0.0",
151
151
  "proxy-from-env": "^1.1.0"
152
152
  },