Skip to content

Commit 68ca1d3

Browse files
fix: Bump axios to 1.8.2
1 parent 2b3b663 commit 68ca1d3

File tree

3 files changed

+48
-35
lines changed

3 files changed

+48
-35
lines changed

dist/index.js

Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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

5971459714
const FormData$1 = __nccwpck_require__(4334);
59715+
const crypto = __nccwpck_require__(6113);
5971559716
const url = __nccwpck_require__(7310);
5971659717
const proxyFromEnv = __nccwpck_require__(3329);
5971759718
const http = __nccwpck_require__(3685);
@@ -59725,6 +59726,7 @@ const events = __nccwpck_require__(2361);
5972559726
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
5972659727

5972759728
const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
59729+
const crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
5972859730
const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
5972959731
const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
5973059732
const 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

6100160981
const 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+
6100361006
const 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

6179361799
function parseProtocol(url) {
6179461800
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -61998,7 +62004,7 @@ const readBlob = async function* (blob) {
6199862004

6199962005
const readBlob$1 = readBlob;
6200062006

62001-
const BOUNDARY_ALPHABET = utils$1.ALPHABET.ALPHA_DIGIT + '-_';
62007+
const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';
6200262008

6200362009
const 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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@actions/core": "^1.10.0",
2626
"@actions/github": "^6.0.0",
27-
"axios": "^1.6.2",
27+
"axios": "^1.8.2",
2828
"conventional-changelog-conventionalcommits": "5.0.0",
2929
"conventional-commit-types": "^3.0.0",
3030
"conventional-commits-parser": "^3.2.4"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,10 @@ axe-core@=4.7.0:
11891189
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.0.tgz#34ba5a48a8b564f67e103f0aa5768d76e15bbbbf"
11901190
integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==
11911191

1192-
axios@^1.6.2:
1193-
version "1.7.9"
1194-
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.9.tgz#d7d071380c132a24accda1b2cfc1535b79ec650a"
1195-
integrity "sha1-19BxOAwTKiSszaGyz8FTW3nsZQo= sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw=="
1192+
axios@^1.8.2:
1193+
version "1.8.2"
1194+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.2.tgz#fabe06e241dfe83071d4edfbcaa7b1c3a40f7979"
1195+
integrity sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==
11961196
dependencies:
11971197
follow-redirects "^1.15.6"
11981198
form-data "^4.0.0"

0 commit comments

Comments
 (0)