axios 0.35.0 → 0.36.0

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/README.md CHANGED
@@ -476,6 +476,10 @@ These are the available config options for making requests. Only the `url` is re
476
476
  // Use this when config can include partially user-controlled input.
477
477
  // Set to a string or array of strings. An empty array denies all socket paths.
478
478
  // Set to `null` on a request to clear an instance-level allowlist.
479
+ // Paths are compared after resolving `.` and `..` segments (symlinks are not
480
+ // followed), and the request connects to that normalized path, so `..` cannot
481
+ // step out through a symlinked directory. Windows named pipes and Linux
482
+ // abstract socket names (leading `\0`) are compared exactly as given.
479
483
  allowedSocketPaths: null, // default
480
484
 
481
485
  // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
package/dist/axios.js CHANGED
@@ -1,4 +1,4 @@
1
- // axios v0.35.0 Copyright (c) 2026 Matt Zabriskie
1
+ // axios v0.36.0 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) :
@@ -1202,8 +1202,8 @@
1202
1202
  this.handlers.push({
1203
1203
  fulfilled: fulfilled,
1204
1204
  rejected: rejected,
1205
- synchronous: options ? options.synchronous : false,
1206
- runWhen: options ? options.runWhen : null
1205
+ synchronous: options && utils.hasOwnProperty(options, 'synchronous') ? options.synchronous : false,
1206
+ runWhen: options && utils.hasOwnProperty(options, 'runWhen') ? options.runWhen : null
1207
1207
  });
1208
1208
  return this.handlers.length - 1;
1209
1209
  };
@@ -1520,9 +1520,21 @@
1520
1520
  * @returns {string} The combined URL
1521
1521
  */
1522
1522
  var combineURLs = function combineURLs(baseURL, relativeURL) {
1523
- return relativeURL
1524
- ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
1525
- : baseURL;
1523
+ if (!relativeURL) {
1524
+ return baseURL;
1525
+ }
1526
+
1527
+ var base = baseURL.replace(/\/?\/$/, '');
1528
+
1529
+ if (/^\/*$/.test(base)) {
1530
+ // A base made only of slashes points at the root of the current origin.
1531
+ // Drop leading slashes, backslashes, tabs and newlines from the relative
1532
+ // URL as well: URL parsers ignore tabs and newlines and treat '\' as '/',
1533
+ // so leaving them would turn the result into a protocol-relative URL.
1534
+ return '/' + relativeURL.replace(/^[\/\\\t\n\r]+/, '');
1535
+ }
1536
+
1537
+ return base + '/' + relativeURL.replace(/^\/+/, '');
1526
1538
  };
1527
1539
 
1528
1540
  /**
@@ -2520,7 +2532,7 @@
2520
2532
  };
2521
2533
 
2522
2534
  var data = {
2523
- "version": "0.35.0"
2535
+ "version": "0.36.0"
2524
2536
  };
2525
2537
 
2526
2538
  var VERSION = data.version;