Skip to content

Commit a87c10c

Browse files
chore: 🤖 Update build folder
1 parent 738c808 commit a87c10c

File tree

2 files changed

+49
-10
lines changed

2 files changed

+49
-10
lines changed

build/index.js

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5757
Object.defineProperty(exports, "__esModule", ({ value: true }));
5858
const core = __importStar(__nccwpck_require__(7733));
5959
const exec = __importStar(__nccwpck_require__(1757));
60-
const axios_1 = __importDefault(__nccwpck_require__(7268));
60+
const axios_1 = __importDefault(__nccwpck_require__(8147));
6161
const netrc_parser_1 = __nccwpck_require__(8687);
6262
const chalk_1 = __importDefault(__nccwpck_require__(9348));
6363
const cli_api_1 = __nccwpck_require__(3771);
@@ -13811,11 +13811,11 @@ module.exports = require("zlib");
1381113811

1381213812
/***/ }),
1381313813

13814-
/***/ 7268:
13814+
/***/ 8147:
1381513815
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1381613816

1381713817
"use strict";
13818-
// Axios v1.3.6 Copyright (c) 2023 Matt Zabriskie and contributors
13818+
// Axios v1.4.0 Copyright (c) 2023 Matt Zabriskie and contributors
1381913819

1382013820

1382113821
const FormData$1 = __nccwpck_require__(6872);
@@ -14507,6 +14507,11 @@ const toJSONObject = (obj) => {
1450714507
return visit(obj, 0);
1450814508
};
1450914509

14510+
const isAsyncFn = kindOfTest('AsyncFunction');
14511+
14512+
const isThenable = (thing) =>
14513+
thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
14514+
1451014515
const utils = {
1451114516
isArray,
1451214517
isArrayBuffer,
@@ -14556,7 +14561,9 @@ const utils = {
1455614561
ALPHABET,
1455714562
generateString,
1455814563
isSpecCompliantForm,
14559-
toJSONObject
14564+
toJSONObject,
14565+
isAsyncFn,
14566+
isThenable
1456014567
};
1456114568

1456214569
/**
@@ -15771,7 +15778,7 @@ function buildFullPath(baseURL, requestedURL) {
1577115778
return requestedURL;
1577215779
}
1577315780

15774-
const VERSION = "1.3.6";
15781+
const VERSION = "1.4.0";
1577515782

1577615783
function parseProtocol(url) {
1577715784
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -16241,6 +16248,21 @@ class ZlibHeaderTransformStream extends stream__default["default"].Transform {
1624116248

1624216249
const ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream;
1624316250

16251+
const callbackify = (fn, reducer) => {
16252+
return utils.isAsyncFn(fn) ? function (...args) {
16253+
const cb = args.pop();
16254+
fn.apply(this, args).then((value) => {
16255+
try {
16256+
reducer ? cb(null, ...reducer(value)) : cb(null, value);
16257+
} catch (err) {
16258+
cb(err);
16259+
}
16260+
}, cb);
16261+
} : fn;
16262+
};
16263+
16264+
const callbackify$1 = callbackify;
16265+
1624416266
const zlibOptions = {
1624516267
flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
1624616268
finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
@@ -16363,13 +16385,24 @@ const wrapAsync = (asyncExecutor) => {
1636316385
/*eslint consistent-return:0*/
1636416386
const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
1636516387
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
16366-
let {data} = config;
16388+
let {data, lookup, family} = config;
1636716389
const {responseType, responseEncoding} = config;
1636816390
const method = config.method.toUpperCase();
1636916391
let isDone;
1637016392
let rejected = false;
1637116393
let req;
1637216394

16395+
if (lookup && utils.isAsyncFn(lookup)) {
16396+
lookup = callbackify$1(lookup, (entry) => {
16397+
if(utils.isString(entry)) {
16398+
entry = [entry, entry.indexOf('.') < 0 ? 6 : 4];
16399+
} else if (!utils.isArray(entry)) {
16400+
throw new TypeError('lookup async function must return an array [ip: string, family: number]]')
16401+
}
16402+
return entry;
16403+
});
16404+
}
16405+
1637316406
// temporary internal emitter until the AxiosRequest class will be implemented
1637416407
const emitter = new EventEmitter__default["default"]();
1637516408

@@ -16593,6 +16626,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
1659316626
agents: { http: config.httpAgent, https: config.httpsAgent },
1659416627
auth,
1659516628
protocol,
16629+
family,
16630+
lookup,
1659616631
beforeRedirect: dispatchBeforeRedirect,
1659716632
beforeRedirects: {}
1659816633
};
@@ -17022,8 +17057,12 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
1702217057
}
1702317058
}
1702417059

17025-
if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {
17026-
requestHeaders.setContentType(false); // Let the browser set it
17060+
if (utils.isFormData(requestData)) {
17061+
if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {
17062+
requestHeaders.setContentType(false); // Let the browser set it
17063+
} else {
17064+
requestHeaders.setContentType('multipart/form-data;', false); // mobile/desktop app frameworks
17065+
}
1702717066
}
1702817067

1702917068
let request = new XMLHttpRequest();
@@ -17429,7 +17468,7 @@ function mergeConfig(config1, config2) {
1742917468
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
1743017469
};
1743117470

17432-
utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
17471+
utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
1743317472
const merge = mergeMap[prop] || mergeDeepProperties;
1743417473
const configValue = merge(config1[prop], config2[prop], prop);
1743517474
(utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)