Merge pull request #70 from actions/dependabot/npm_and_yarn/axios-1.3.3

Bump axios from 1.3.0 to 1.3.3
This commit is contained in:
James M. Greene
2023-02-16 06:49:36 -06:00
committed by GitHub
4 changed files with 34 additions and 22 deletions

38
dist/index.js vendored
View File

@@ -13315,7 +13315,7 @@ module.exports = require("zlib");
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
// Axios v1.3.0 Copyright (c) 2023 Matt Zabriskie and contributors // Axios v1.3.3 Copyright (c) 2023 Matt Zabriskie and contributors
const FormData$1 = __nccwpck_require__(4334); const FormData$1 = __nccwpck_require__(4334);
@@ -13323,6 +13323,7 @@ const url = __nccwpck_require__(7310);
const proxyFromEnv = __nccwpck_require__(3329); const proxyFromEnv = __nccwpck_require__(3329);
const http = __nccwpck_require__(3685); const http = __nccwpck_require__(3685);
const https = __nccwpck_require__(5687); const https = __nccwpck_require__(5687);
const util = __nccwpck_require__(3837);
const followRedirects = __nccwpck_require__(7707); const followRedirects = __nccwpck_require__(7707);
const zlib = __nccwpck_require__(9796); const zlib = __nccwpck_require__(9796);
const stream = __nccwpck_require__(2781); const stream = __nccwpck_require__(2781);
@@ -13334,6 +13335,7 @@ const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
const url__default = /*#__PURE__*/_interopDefaultLegacy(url); const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
const http__default = /*#__PURE__*/_interopDefaultLegacy(http); const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
const https__default = /*#__PURE__*/_interopDefaultLegacy(https); const https__default = /*#__PURE__*/_interopDefaultLegacy(https);
const util__default = /*#__PURE__*/_interopDefaultLegacy(util);
const followRedirects__default = /*#__PURE__*/_interopDefaultLegacy(followRedirects); const followRedirects__default = /*#__PURE__*/_interopDefaultLegacy(followRedirects);
const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib); const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib);
const stream__default = /*#__PURE__*/_interopDefaultLegacy(stream); const stream__default = /*#__PURE__*/_interopDefaultLegacy(stream);
@@ -14295,7 +14297,7 @@ function toFormData(obj, formData, options) {
value = JSON.stringify(value); value = JSON.stringify(value);
} else if ( } else if (
(utils.isArray(value) && isFlatArray(value)) || (utils.isArray(value) && isFlatArray(value)) ||
(utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value)) ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
)) { )) {
// eslint-disable-next-line no-param-reassign // eslint-disable-next-line no-param-reassign
key = removeBrackets(key); key = removeBrackets(key);
@@ -14896,11 +14898,15 @@ function isValidHeaderName(str) {
return /^[-_a-zA-Z]+$/.test(str.trim()); return /^[-_a-zA-Z]+$/.test(str.trim());
} }
function matchHeaderValue(context, value, header, filter) { function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
if (utils.isFunction(filter)) { if (utils.isFunction(filter)) {
return filter.call(this, value, header); return filter.call(this, value, header);
} }
if (isHeaderNameFilter) {
value = header;
}
if (!utils.isString(value)) return; if (!utils.isString(value)) return;
if (utils.isString(filter)) { if (utils.isString(filter)) {
@@ -15004,7 +15010,7 @@ class AxiosHeaders {
if (header) { if (header) {
const key = utils.findKey(this, header); const key = utils.findKey(this, header);
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher))); return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
} }
return false; return false;
@@ -15044,7 +15050,7 @@ class AxiosHeaders {
while (i--) { while (i--) {
const key = keys[i]; const key = keys[i];
if(!matcher || matchHeaderValue(this, this[key], key, matcher)) { if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
delete this[key]; delete this[key];
deleted = true; deleted = true;
} }
@@ -15263,7 +15269,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL; return requestedURL;
} }
const VERSION = "1.3.0"; const VERSION = "1.3.3";
function parseProtocol(url) { function parseProtocol(url) {
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -15603,7 +15609,7 @@ const readBlob$1 = readBlob;
const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_'; const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';
const textEncoder = new TextEncoder(); const textEncoder = new util.TextEncoder();
const CRLF = '\r\n'; const CRLF = '\r\n';
const CRLF_BYTES = textEncoder.encode(CRLF); const CRLF_BYTES = textEncoder.encode(CRLF);
@@ -15827,7 +15833,8 @@ const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(pr
/*eslint consistent-return:0*/ /*eslint consistent-return:0*/
const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) { const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) { /*eslint no-async-promise-executor:0*/
return new Promise(async function dispatchHttpRequest(resolvePromise, rejectPromise) {
let data = config.data; let data = config.data;
const responseType = config.responseType; const responseType = config.responseType;
const responseEncoding = config.responseEncoding; const responseEncoding = config.responseEncoding;
@@ -15891,7 +15898,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
// Parse url // Parse url
const fullPath = buildFullPath(config.baseURL, config.url); const fullPath = buildFullPath(config.baseURL, config.url);
const parsed = new URL(fullPath); const parsed = new URL(fullPath, 'http://localhost');
const protocol = parsed.protocol || supportedProtocols[0]; const protocol = parsed.protocol || supportedProtocols[0];
if (protocol === 'data:') { if (protocol === 'data:') {
@@ -15918,7 +15925,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
convertedData = convertedData.toString(responseEncoding); convertedData = convertedData.toString(responseEncoding);
if (!responseEncoding || responseEncoding === 'utf8') { if (!responseEncoding || responseEncoding === 'utf8') {
data = utils.stripBOM(convertedData); convertedData = utils.stripBOM(convertedData);
} }
} else if (responseType === 'stream') { } else if (responseType === 'stream') {
convertedData = stream__default["default"].Readable.from(convertedData); convertedData = stream__default["default"].Readable.from(convertedData);
@@ -15968,9 +15975,14 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
// support for https://www.npmjs.com/package/form-data api // support for https://www.npmjs.com/package/form-data api
} else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) { } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {
headers.set(data.getHeaders()); headers.set(data.getHeaders());
if (utils.isFunction(data.getLengthSync)) { // check if the undocumented API exists
const knownLength = data.getLengthSync(); if (!headers.hasContentLength()) {
!utils.isUndefined(knownLength) && headers.setContentLength(knownLength, false); try {
const knownLength = await util__default["default"].promisify(data.getLength).call(data);
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
/*eslint no-empty:0*/
} catch (e) {
}
} }
} else if (utils.isBlob(data)) { } else if (utils.isBlob(data)) {
data.size && headers.setContentType(data.type || 'application/octet-stream'); data.size && headers.setContentType(data.type || 'application/octet-stream');

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

14
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"axios": "^1.3.0", "axios": "^1.3.3",
"espree": "^9.4.1" "espree": "^9.4.1"
}, },
"devDependencies": { "devDependencies": {
@@ -1721,9 +1721,9 @@
} }
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.3.0", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.3.0.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.3.3.tgz",
"integrity": "sha512-oCye5nHhTypzkdLIvF9SaHfr8UAquqCn1KY3j8vsrjeol8yohAdGxIpRPbF1bOLsx33HOAatdfMX1yzsj2cHwg==", "integrity": "sha512-eYq77dYIFS77AQlhzEL937yUBSepBfPIe8FcgEDN35vMNZKMrs81pgnyrQpwfy4NF4b4XWX1Zgx7yX+25w8QJA==",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.0", "follow-redirects": "^1.15.0",
"form-data": "^4.0.0", "form-data": "^4.0.0",
@@ -7083,9 +7083,9 @@
"dev": true "dev": true
}, },
"axios": { "axios": {
"version": "1.3.0", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.3.0.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.3.3.tgz",
"integrity": "sha512-oCye5nHhTypzkdLIvF9SaHfr8UAquqCn1KY3j8vsrjeol8yohAdGxIpRPbF1bOLsx33HOAatdfMX1yzsj2cHwg==", "integrity": "sha512-eYq77dYIFS77AQlhzEL937yUBSepBfPIe8FcgEDN35vMNZKMrs81pgnyrQpwfy4NF4b4XWX1Zgx7yX+25w8QJA==",
"requires": { "requires": {
"follow-redirects": "^1.15.0", "follow-redirects": "^1.15.0",
"form-data": "^4.0.0", "form-data": "^4.0.0",

View File

@@ -25,7 +25,7 @@
"homepage": "https://github.com/actions/configure-pages#readme", "homepage": "https://github.com/actions/configure-pages#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"axios": "^1.3.0", "axios": "^1.3.3",
"espree": "^9.4.1" "espree": "^9.4.1"
}, },
"devDependencies": { "devDependencies": {