axios 0.29.0 → 0.30.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.
@@ -10,10 +10,13 @@ var combineURLs = require('../helpers/combineURLs');
10
10
  *
11
11
  * @param {string} baseURL The base URL
12
12
  * @param {string} requestedURL Absolute or relative URL to combine
13
+ * @param {boolean} allowAbsoluteUrls Set to true to allow absolute URLs
14
+ *
13
15
  * @returns {string} The combined full path
14
16
  */
15
- module.exports = function buildFullPath(baseURL, requestedURL) {
16
- if (baseURL && !isAbsoluteURL(requestedURL)) {
17
+ module.exports = function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
18
+ var isRelativeURL = !isAbsoluteURL(requestedURL);
19
+ if (baseURL && (isRelativeURL || allowAbsoluteUrls === false)) {
17
20
  return combineURLs(baseURL, requestedURL);
18
21
  }
19
22
  return requestedURL;
package/lib/env/data.js CHANGED
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- "version": "0.29.0"
2
+ "version": "0.30.0"
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",