axios 1.8.2 → 1.8.4

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/index.d.cts CHANGED
@@ -376,6 +376,7 @@ declare namespace axios {
376
376
  url?: string;
377
377
  method?: Method | string;
378
378
  baseURL?: string;
379
+ allowAbsoluteUrls?: boolean;
379
380
  transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
380
381
  transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
381
382
  headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
package/index.d.ts CHANGED
@@ -317,6 +317,7 @@ export interface AxiosRequestConfig<D = any> {
317
317
  url?: string;
318
318
  method?: Method | string;
319
319
  baseURL?: string;
320
+ allowAbsoluteUrls?: boolean;
320
321
  transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
321
322
  transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
322
323
  headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
@@ -15,7 +15,7 @@ import combineURLs from '../helpers/combineURLs.js';
15
15
  */
16
16
  export default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
17
17
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
18
- if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
18
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
19
19
  return combineURLs(baseURL, requestedURL);
20
20
  }
21
21
  return requestedURL;
package/lib/env/data.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.8.2";
1
+ export const VERSION = "1.8.4";
@@ -14,7 +14,7 @@ export default (config) => {
14
14
 
15
15
  newConfig.headers = headers = AxiosHeaders.from(headers);
16
16
 
17
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
17
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
18
18
 
19
19
  // HTTP basic authentication
20
20
  if (auth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -167,10 +167,10 @@
167
167
  "Justin Beckwith (https://github.com/JustinBeckwith)",
168
168
  "Martti Laine (https://github.com/codeclown)",
169
169
  "Xianming Zhong (https://github.com/chinesedfan)",
170
- "Rikki Gibson (https://github.com/RikkiGibson)",
171
170
  "Remco Haszing (https://github.com/remcohaszing)",
172
- "Yasu Flores (https://github.com/yasuf)",
173
- "Ben Carp (https://github.com/carpben)"
171
+ "Rikki Gibson (https://github.com/RikkiGibson)",
172
+ "Ben Carp (https://github.com/carpben)",
173
+ "Yasu Flores (https://github.com/yasuf)"
174
174
  ],
175
175
  "sideEffects": false,
176
176
  "release-it": {