@@ -59708,10 +59708,11 @@ module.exports = parseParams
5970859708/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
5970959709
5971059710"use strict";
59711- // Axios v1.7.9 Copyright (c) 2024 Matt Zabriskie and contributors
59711+ /*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
5971259712
5971359713
5971459714const FormData$1 = __nccwpck_require__(4334);
59715+ const crypto = __nccwpck_require__(6113);
5971559716const url = __nccwpck_require__(7310);
5971659717const proxyFromEnv = __nccwpck_require__(3329);
5971759718const http = __nccwpck_require__(3685);
@@ -59725,6 +59726,7 @@ const events = __nccwpck_require__(2361);
5972559726function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
5972659727
5972759728const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
59729+ const crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
5972859730const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
5972959731const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
5973059732const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
@@ -60340,26 +60342,6 @@ const toFiniteNumber = (value, defaultValue) => {
6034060342 return value != null && Number.isFinite(value = +value) ? value : defaultValue;
6034160343};
6034260344
60343- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
60344-
60345- const DIGIT = '0123456789';
60346-
60347- const ALPHABET = {
60348- DIGIT,
60349- ALPHA,
60350- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
60351- };
60352-
60353- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
60354- let str = '';
60355- const {length} = alphabet;
60356- while (size--) {
60357- str += alphabet[Math.random() * length|0];
60358- }
60359-
60360- return str;
60361- };
60362-
6036360345/**
6036460346 * If the thing is a FormData object, return true, otherwise return false.
6036560347 *
@@ -60487,8 +60469,6 @@ const utils$1 = {
6048760469 findKey,
6048860470 global: _global,
6048960471 isContextDefined,
60490- ALPHABET,
60491- generateString,
6049260472 isSpecCompliantForm,
6049360473 toJSONObject,
6049460474 isAsyncFn,
@@ -61000,13 +60980,38 @@ const transitionalDefaults = {
6100060980
6100160981const URLSearchParams = url__default["default"].URLSearchParams;
6100260982
60983+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
60984+
60985+ const DIGIT = '0123456789';
60986+
60987+ const ALPHABET = {
60988+ DIGIT,
60989+ ALPHA,
60990+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
60991+ };
60992+
60993+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
60994+ let str = '';
60995+ const {length} = alphabet;
60996+ const randomValues = new Uint32Array(size);
60997+ crypto__default["default"].randomFillSync(randomValues);
60998+ for (let i = 0; i < size; i++) {
60999+ str += alphabet[randomValues[i] % length];
61000+ }
61001+
61002+ return str;
61003+ };
61004+
61005+
6100361006const platform$1 = {
6100461007 isNode: true,
6100561008 classes: {
6100661009 URLSearchParams,
6100761010 FormData: FormData__default["default"],
6100861011 Blob: typeof Blob !== 'undefined' && Blob || null
6100961012 },
61013+ ALPHABET,
61014+ generateString,
6101061015 protocols: [ 'http', 'https', 'file', 'data' ]
6101161016};
6101261017
@@ -61781,14 +61786,15 @@ function combineURLs(baseURL, relativeURL) {
6178161786 *
6178261787 * @returns {string} The combined full path
6178361788 */
61784- function buildFullPath(baseURL, requestedURL) {
61785- if (baseURL && !isAbsoluteURL(requestedURL)) {
61789+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
61790+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
61791+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
6178661792 return combineURLs(baseURL, requestedURL);
6178761793 }
6178861794 return requestedURL;
6178961795}
6179061796
61791- const VERSION = "1.7.9 ";
61797+ const VERSION = "1.8.2 ";
6179261798
6179361799function parseProtocol(url) {
6179461800 const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -61998,7 +62004,7 @@ const readBlob = async function* (blob) {
6199862004
6199962005const readBlob$1 = readBlob;
6200062006
62001- const BOUNDARY_ALPHABET = utils$1 .ALPHABET.ALPHA_DIGIT + '-_';
62007+ const BOUNDARY_ALPHABET = platform .ALPHABET.ALPHA_DIGIT + '-_';
6200262008
6200362009const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util__default["default"].TextEncoder();
6200462010
@@ -62058,7 +62064,7 @@ const formDataToStream = (form, headersHandler, options) => {
6205862064 const {
6205962065 tag = 'form-data-boundary',
6206062066 size = 25,
62061- boundary = tag + '-' + utils$1 .generateString(size, BOUNDARY_ALPHABET)
62067+ boundary = tag + '-' + platform .generateString(size, BOUNDARY_ALPHABET)
6206262068 } = options || {};
6206362069
6206462070 if(!utils$1.isFormData(form)) {
@@ -62483,7 +62489,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
6248362489 }
6248462490
6248562491 // Parse url
62486- const fullPath = buildFullPath(config.baseURL, config.url);
62492+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls );
6248762493 const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
6248862494 const protocol = parsed.protocol || supportedProtocols[0];
6248962495
@@ -64014,6 +64020,13 @@ class Axios {
6401464020 }
6401564021 }
6401664022
64023+ // Set config.allowAbsoluteUrls
64024+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
64025+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
64026+ } else {
64027+ config.allowAbsoluteUrls = true;
64028+ }
64029+
6401764030 validator.assertOptions(config, {
6401864031 baseUrl: validators.spelling('baseURL'),
6401964032 withXsrfToken: validators.spelling('withXSRFToken')
@@ -64109,7 +64122,7 @@ class Axios {
6410964122
6411064123 getUri(config) {
6411164124 config = mergeConfig(this.defaults, config);
64112- const fullPath = buildFullPath(config.baseURL, config.url);
64125+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls );
6411364126 return buildURL(fullPath, config.params, config.paramsSerializer);
6411464127 }
6411564128}
0 commit comments