axios 0.30.1 → 0.30.3

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.
package/dist/axios.js CHANGED
@@ -1,4 +1,4 @@
1
- // axios v0.30.1 Copyright (c) 2025 Matt Zabriskie
1
+ // axios v0.30.3 Copyright (c) 2026 Matt Zabriskie
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -319,6 +319,10 @@
319
319
  function merge(/* obj1, obj2, obj3, ... */) {
320
320
  var result = {};
321
321
  function assignValue(val, key) {
322
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
323
+ return;
324
+ }
325
+
322
326
  if (isPlainObject(result[key]) && isPlainObject(val)) {
323
327
  result[key] = merge(result[key], val);
324
328
  } else if (isPlainObject(val)) {
@@ -1904,7 +1908,10 @@
1904
1908
  };
1905
1909
 
1906
1910
  utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
1907
- var merge = mergeMap[prop] || mergeDeepProperties;
1911
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') {
1912
+ return;
1913
+ }
1914
+ var merge = utils.hasOwnProperty(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
1908
1915
  var configValue = merge(prop);
1909
1916
  (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
1910
1917
  });
@@ -1913,7 +1920,7 @@
1913
1920
  };
1914
1921
 
1915
1922
  var data = {
1916
- "version": "0.30.1"
1923
+ version: "0.30.3",
1917
1924
  };
1918
1925
 
1919
1926
  var VERSION = data.version;