@rsdoctor/cli 1.5.3-alpha.0 → 1.5.3
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/dist/index.cjs +51 -36
- package/dist/index.js +51 -36
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -622,7 +622,7 @@ var __webpack_modules__ = {
|
|
|
622
622
|
}) : object[toStringTag] = value);
|
|
623
623
|
};
|
|
624
624
|
},
|
|
625
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
625
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/debug.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
626
626
|
var debug;
|
|
627
627
|
module.exports = function() {
|
|
628
628
|
if (!debug) {
|
|
@@ -634,8 +634,8 @@ var __webpack_modules__ = {
|
|
|
634
634
|
debug.apply(null, arguments);
|
|
635
635
|
};
|
|
636
636
|
},
|
|
637
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
638
|
-
var looksLikeNode, looksLikeBrowser, looksLikeV8, url = __webpack_require__("url"), URL1 = url.URL, http = __webpack_require__("http"), https = __webpack_require__("https"), Writable = __webpack_require__("stream").Writable, assert = __webpack_require__("assert"), debug = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.
|
|
637
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
638
|
+
var looksLikeNode, looksLikeBrowser, looksLikeV8, url = __webpack_require__("url"), URL1 = url.URL, http = __webpack_require__("http"), https = __webpack_require__("https"), Writable = __webpack_require__("stream").Writable, assert = __webpack_require__("assert"), debug = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/debug.js");
|
|
639
639
|
looksLikeNode = "u" > typeof process, looksLikeBrowser = "u" > typeof window && "u" > typeof document, looksLikeV8 = isFunction(Error.captureStackTrace), looksLikeNode || !looksLikeBrowser && looksLikeV8 || console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
640
640
|
var useNativeURL = !1;
|
|
641
641
|
try {
|
|
@@ -889,9 +889,9 @@ var __webpack_modules__ = {
|
|
|
889
889
|
https: https
|
|
890
890
|
}), module.exports.wrap = wrap;
|
|
891
891
|
},
|
|
892
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
892
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
893
893
|
"use strict";
|
|
894
|
-
var CombinedStream = __webpack_require__("../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"), util = __webpack_require__("util"), path = __webpack_require__("path"), http = __webpack_require__("http"), https = __webpack_require__("https"), parseUrl = __webpack_require__("url").parse, fs = __webpack_require__("fs"), Stream = __webpack_require__("stream").Stream, crypto = __webpack_require__("crypto"), mime = __webpack_require__("../../node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.js"), asynckit = __webpack_require__("../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js"), setToStringTag = __webpack_require__("../../node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.js"), hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"), populate = __webpack_require__("../../node_modules/.pnpm/form-data@4.0.
|
|
894
|
+
var CombinedStream = __webpack_require__("../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"), util = __webpack_require__("util"), path = __webpack_require__("path"), http = __webpack_require__("http"), https = __webpack_require__("https"), parseUrl = __webpack_require__("url").parse, fs = __webpack_require__("fs"), Stream = __webpack_require__("stream").Stream, crypto = __webpack_require__("crypto"), mime = __webpack_require__("../../node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.js"), asynckit = __webpack_require__("../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js"), setToStringTag = __webpack_require__("../../node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.js"), hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"), populate = __webpack_require__("../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js");
|
|
895
895
|
function FormData1(options) {
|
|
896
896
|
if (!(this instanceof FormData1)) return new FormData1(options);
|
|
897
897
|
for(var option in this._overheadLength = 0, this._valueLength = 0, this._valuesToMeasure = [], CombinedStream.call(this), options = options || {})this[option] = options[option];
|
|
@@ -1005,9 +1005,9 @@ var __webpack_modules__ = {
|
|
|
1005
1005
|
this.error || (this.error = err, this.pause(), this.emit('error', err));
|
|
1006
1006
|
}, FormData1.prototype.toString = function() {
|
|
1007
1007
|
return '[object FormData]';
|
|
1008
|
-
}, setToStringTag(FormData1, 'FormData'), module.exports = FormData1;
|
|
1008
|
+
}, setToStringTag(FormData1.prototype, 'FormData'), module.exports = FormData1;
|
|
1009
1009
|
},
|
|
1010
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
1010
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js" (module) {
|
|
1011
1011
|
"use strict";
|
|
1012
1012
|
module.exports = function(dst, src) {
|
|
1013
1013
|
return Object.keys(src).forEach(function(prop) {
|
|
@@ -1846,7 +1846,7 @@ var __webpack_modules__ = {
|
|
|
1846
1846
|
},
|
|
1847
1847
|
"./package.json" (module) {
|
|
1848
1848
|
"use strict";
|
|
1849
|
-
module.exports = JSON.parse('{"name":"@rsdoctor/cli","version":"1.5.3
|
|
1849
|
+
module.exports = JSON.parse('{"name":"@rsdoctor/cli","version":"1.5.3","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/cli"},"bin":{"rsdoctor":"./bin/rsdoctor"},"files":["bin","dist"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs"}},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"npm run start","build":"rslib build","start":"rslib build -w","test":"rstest run"},"type":"module","dependencies":{"ora":"^5.4.1","@rsdoctor/core":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*","@rsdoctor/graph":"workspace:*"},"devDependencies":{"@rsdoctor/client":"workspace:*","cac":"^6.7.14","typescript":"^5.9.2","axios":"^1.13.6","picocolors":"^1.1.1"},"peerDependencies":{"@rsdoctor/client":"workspace:*"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
1850
1850
|
}
|
|
1851
1851
|
}, __webpack_module_cache__ = {};
|
|
1852
1852
|
function __webpack_require__(moduleId) {
|
|
@@ -2210,7 +2210,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2210
2210
|
if ('object' !== kindOf(val)) return !1;
|
|
2211
2211
|
let prototype = getPrototypeOf(val);
|
|
2212
2212
|
return (null === prototype || prototype === Object.prototype || null === Object.getPrototypeOf(prototype)) && !(toStringTag in val) && !(utils_iterator in val);
|
|
2213
|
-
}, isDate = kindOfTest('Date'), isFile = kindOfTest('File'), isBlob = kindOfTest('Blob'), utils_isFileList = kindOfTest('FileList'), isURLSearchParams = kindOfTest('URLSearchParams'), [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
2213
|
+
}, isDate = kindOfTest('Date'), isFile = kindOfTest('File'), isBlob = kindOfTest('Blob'), utils_isFileList = kindOfTest('FileList'), G = "u" > typeof globalThis ? globalThis : "u" > typeof self ? self : "u" > typeof window ? window : "u" > typeof global ? global : {}, FormDataCtor = void 0 !== G.FormData ? G.FormData : void 0, isURLSearchParams = kindOfTest('URLSearchParams'), [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
2214
2214
|
'ReadableStream',
|
|
2215
2215
|
'Request',
|
|
2216
2216
|
'Response',
|
|
@@ -2242,17 +2242,17 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2242
2242
|
let ret;
|
|
2243
2243
|
!1 !== (ret = reducer(descriptor, name, obj)) && (reducedDescriptors[name] = ret || descriptor);
|
|
2244
2244
|
}), Object.defineProperties(obj, reducedDescriptors);
|
|
2245
|
-
}, isAsyncFn = kindOfTest('AsyncFunction'), _setImmediate = (setImmediateSupported = 'function' == typeof setImmediate, postMessageSupported = isFunction(_global.postMessage), setImmediateSupported ? setImmediate : postMessageSupported ? (token = `axios@${Math.random()}`, callbacks = [], _global.addEventListener(
|
|
2245
|
+
}, isAsyncFn = kindOfTest('AsyncFunction'), _setImmediate = (setImmediateSupported = 'function' == typeof setImmediate, postMessageSupported = isFunction(_global.postMessage), setImmediateSupported ? setImmediate : postMessageSupported ? (token = `axios@${Math.random()}`, callbacks = [], _global.addEventListener('message', ({ source, data })=>{
|
|
2246
2246
|
source === _global && data === token && callbacks.length && callbacks.shift()();
|
|
2247
2247
|
}, !1), (cb)=>{
|
|
2248
|
-
callbacks.push(cb), _global.postMessage(token,
|
|
2248
|
+
callbacks.push(cb), _global.postMessage(token, '*');
|
|
2249
2249
|
}) : (cb)=>setTimeout(cb)), asap = "u" > typeof queueMicrotask ? queueMicrotask.bind(_global) : "u" > typeof process && process.nextTick || _setImmediate, utils = {
|
|
2250
2250
|
isArray,
|
|
2251
2251
|
isArrayBuffer,
|
|
2252
2252
|
isBuffer,
|
|
2253
2253
|
isFormData: (thing)=>{
|
|
2254
2254
|
let kind;
|
|
2255
|
-
return thing && (
|
|
2255
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ('formdata' === (kind = kindOf(thing)) || 'object' === kind && isFunction(thing.toString) && '[object FormData]' === thing.toString()));
|
|
2256
2256
|
},
|
|
2257
2257
|
isArrayBufferView: function(val) {
|
|
2258
2258
|
return "u" > typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(val) : val && val.buffer && isArrayBuffer(val.buffer);
|
|
@@ -2277,6 +2277,8 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2277
2277
|
isUndefined,
|
|
2278
2278
|
isDate,
|
|
2279
2279
|
isFile,
|
|
2280
|
+
isReactNativeBlob: (value)=>!!(value && void 0 !== value.uri),
|
|
2281
|
+
isReactNative: (formData)=>formData && void 0 !== formData.getParts,
|
|
2280
2282
|
isBlob,
|
|
2281
2283
|
isRegExp,
|
|
2282
2284
|
isFunction,
|
|
@@ -2287,6 +2289,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2287
2289
|
forEach,
|
|
2288
2290
|
merge: function utils_merge() {
|
|
2289
2291
|
let { caseless, skipUndefined } = isContextDefined(this) && this || {}, result = {}, assignValue = (val, key)=>{
|
|
2292
|
+
if ('__proto__' === key || 'constructor' === key || 'prototype' === key) return;
|
|
2290
2293
|
let targetKey = caseless && findKey(result, key) || key;
|
|
2291
2294
|
isPlainObject(result[targetKey]) && isPlainObject(val) ? result[targetKey] = utils_merge(result[targetKey], val) : isPlainObject(val) ? result[targetKey] = utils_merge({}, val) : isArray(val) ? result[targetKey] = val.slice() : skipUndefined && isUndefined(val) || (result[targetKey] = val);
|
|
2292
2295
|
};
|
|
@@ -2309,7 +2312,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2309
2312
|
allOwnKeys
|
|
2310
2313
|
}), a),
|
|
2311
2314
|
trim: (str)=>str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''),
|
|
2312
|
-
stripBOM: (content)=>(
|
|
2315
|
+
stripBOM: (content)=>(0xfeff === content.charCodeAt(0) && (content = content.slice(1)), content),
|
|
2313
2316
|
inherits: (constructor, superConstructor, props, descriptors)=>{
|
|
2314
2317
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors), Object.defineProperty(constructor.prototype, 'constructor', {
|
|
2315
2318
|
value: constructor,
|
|
@@ -2374,7 +2377,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2374
2377
|
return;
|
|
2375
2378
|
}
|
|
2376
2379
|
descriptor.set || (descriptor.set = ()=>{
|
|
2377
|
-
throw Error(
|
|
2380
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
2378
2381
|
});
|
|
2379
2382
|
}
|
|
2380
2383
|
});
|
|
@@ -2425,10 +2428,15 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2425
2428
|
class AxiosError extends Error {
|
|
2426
2429
|
static from(error, code, config, request, response, customProps) {
|
|
2427
2430
|
let axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
2428
|
-
return axiosError.cause = error, axiosError.name = error.name, customProps && Object.assign(axiosError, customProps), axiosError;
|
|
2431
|
+
return axiosError.cause = error, axiosError.name = error.name, null != error.status && null == axiosError.status && (axiosError.status = error.status), customProps && Object.assign(axiosError, customProps), axiosError;
|
|
2429
2432
|
}
|
|
2430
2433
|
constructor(message, code, config, request, response){
|
|
2431
|
-
super(message),
|
|
2434
|
+
super(message), Object.defineProperty(this, 'message', {
|
|
2435
|
+
value: message,
|
|
2436
|
+
enumerable: !0,
|
|
2437
|
+
writable: !0,
|
|
2438
|
+
configurable: !0
|
|
2439
|
+
}), this.name = 'AxiosError', this.isAxiosError = !0, code && (this.code = code), config && (this.config = config), request && (this.request = request), response && (this.response = response, this.status = response.status);
|
|
2432
2440
|
}
|
|
2433
2441
|
toJSON() {
|
|
2434
2442
|
return {
|
|
@@ -2448,7 +2456,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2448
2456
|
}
|
|
2449
2457
|
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE', AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION', AxiosError.ECONNABORTED = 'ECONNABORTED', AxiosError.ETIMEDOUT = 'ETIMEDOUT', AxiosError.ERR_NETWORK = 'ERR_NETWORK', AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS', AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED', AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE', AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST', AxiosError.ERR_CANCELED = 'ERR_CANCELED', AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT', AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
2450
2458
|
let core_AxiosError = AxiosError;
|
|
2451
|
-
var form_data = __webpack_require__("../../node_modules/.pnpm/form-data@4.0.
|
|
2459
|
+
var form_data = __webpack_require__("../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js");
|
|
2452
2460
|
function isVisitable(thing) {
|
|
2453
2461
|
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
2454
2462
|
}
|
|
@@ -2484,6 +2492,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2484
2492
|
}
|
|
2485
2493
|
function defaultVisitor(value, key, path) {
|
|
2486
2494
|
let arr = value;
|
|
2495
|
+
if (utils.isReactNative(formData) && utils.isReactNativeBlob(value)) return formData.append(renderKey(path, key, dots), convertValue(value)), !1;
|
|
2487
2496
|
if (value && !path && 'object' == typeof value) if (utils.endsWith(key, '{}')) key = metaTokens ? key : key.slice(0, -2), value = JSON.stringify(value);
|
|
2488
2497
|
else {
|
|
2489
2498
|
var arr1;
|
|
@@ -2540,7 +2549,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2540
2549
|
serialize: options
|
|
2541
2550
|
} : options, serializeFn = _options && _options.serialize;
|
|
2542
2551
|
if (serializedParams = serializeFn ? serializeFn(params, _options) : utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode)) {
|
|
2543
|
-
let hashmarkIndex = url.indexOf(
|
|
2552
|
+
let hashmarkIndex = url.indexOf('#');
|
|
2544
2553
|
-1 !== hashmarkIndex && (url = url.slice(0, hashmarkIndex)), url += (-1 === url.indexOf('?') ? '?' : '&') + serializedParams;
|
|
2545
2554
|
}
|
|
2546
2555
|
return url;
|
|
@@ -2584,7 +2593,8 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2584
2593
|
}, defaults_transitional = {
|
|
2585
2594
|
silentJSONParsing: !0,
|
|
2586
2595
|
forcedJSONParsing: !0,
|
|
2587
|
-
clarifyTimeoutError: !1
|
|
2596
|
+
clarifyTimeoutError: !1,
|
|
2597
|
+
legacyInterceptorReqResOrdering: !0
|
|
2588
2598
|
};
|
|
2589
2599
|
var external_crypto_ = __webpack_require__("crypto");
|
|
2590
2600
|
let URLSearchParams = __webpack_require__("url").URLSearchParams, ALPHA = 'abcdefghijklmnopqrstuvwxyz', DIGIT = '0123456789', ALPHABET = {
|
|
@@ -2875,7 +2885,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2875
2885
|
return Object.entries(this.toJSON()).map(([header, value])=>header + ': ' + value).join('\n');
|
|
2876
2886
|
}
|
|
2877
2887
|
getSetCookie() {
|
|
2878
|
-
return this.get(
|
|
2888
|
+
return this.get('set-cookie') || [];
|
|
2879
2889
|
}
|
|
2880
2890
|
get [Symbol.toStringTag]() {
|
|
2881
2891
|
return 'AxiosHeaders';
|
|
@@ -2952,12 +2962,12 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2952
2962
|
}
|
|
2953
2963
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
2954
2964
|
var url, baseURL1, relativeURL;
|
|
2955
|
-
let isRelativeUrl = (url = requestedURL
|
|
2965
|
+
let isRelativeUrl = !('string' == typeof (url = requestedURL) && /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url));
|
|
2956
2966
|
return baseURL && (isRelativeUrl || !1 == allowAbsoluteUrls) ? (baseURL1 = baseURL, (relativeURL = requestedURL) ? baseURL1.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL1) : requestedURL;
|
|
2957
2967
|
}
|
|
2958
2968
|
var proxy_from_env = __webpack_require__("../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"), external_http_ = __webpack_require__("http"), external_https_ = __webpack_require__("https");
|
|
2959
2969
|
let external_http2_namespaceObject = require("http2");
|
|
2960
|
-
var external_util_ = __webpack_require__("util"), follow_redirects = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.
|
|
2970
|
+
var external_util_ = __webpack_require__("util"), follow_redirects = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/index.js");
|
|
2961
2971
|
let external_zlib_namespaceObject = require("zlib");
|
|
2962
2972
|
function parseProtocol(url) {
|
|
2963
2973
|
let match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -3033,7 +3043,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3033
3043
|
constructor(name, value){
|
|
3034
3044
|
const { escapeName } = this.constructor, isStringValue = utils.isString(value);
|
|
3035
3045
|
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ''}\r\n`;
|
|
3036
|
-
isStringValue ? value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, '\r\n')) : headers += `Content-Type: ${value.type ||
|
|
3046
|
+
isStringValue ? value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, '\r\n')) : headers += `Content-Type: ${value.type || 'application/octet-stream'}\r\n`, this.headers = textEncoder.encode(headers + '\r\n'), this.contentLength = isStringValue ? value.byteLength : value.size, this.size = this.headers.byteLength + this.contentLength + 2, this.name = name, this.value = value;
|
|
3037
3047
|
}
|
|
3038
3048
|
async *encode() {
|
|
3039
3049
|
yield this.headers;
|
|
@@ -3304,7 +3314,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3304
3314
|
}
|
|
3305
3315
|
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new core_AxiosError('Unsupported protocol ' + protocol, core_AxiosError.ERR_BAD_REQUEST, config));
|
|
3306
3316
|
let headers = AxiosHeaders.from(config.headers).normalize();
|
|
3307
|
-
headers.set('User-Agent', "axios/1.13.
|
|
3317
|
+
headers.set('User-Agent', "axios/1.13.6", !1);
|
|
3308
3318
|
let { onUploadProgress, onDownloadProgress } = config, maxRate = config.maxRate;
|
|
3309
3319
|
if (utils.isSpecCompliantForm(data)) {
|
|
3310
3320
|
let userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
@@ -3327,7 +3337,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3327
3337
|
})(data, (formHeaders)=>{
|
|
3328
3338
|
headers.set(formHeaders);
|
|
3329
3339
|
}, {
|
|
3330
|
-
tag: "axios-1.13.
|
|
3340
|
+
tag: "axios-1.13.6-boundary",
|
|
3331
3341
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
3332
3342
|
});
|
|
3333
3343
|
} else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {
|
|
@@ -3376,7 +3386,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3376
3386
|
beforeRedirects: {},
|
|
3377
3387
|
http2Options
|
|
3378
3388
|
};
|
|
3379
|
-
utils.isUndefined(lookup) || (options.lookup = lookup), config.socketPath ? options.socketPath = config.socketPath : (options.hostname = parsed.hostname.startsWith(
|
|
3389
|
+
utils.isUndefined(lookup) || (options.lookup = lookup), config.socketPath ? options.socketPath = config.socketPath : (options.hostname = parsed.hostname.startsWith('[') ? parsed.hostname.slice(1, -1) : parsed.hostname, options.port = parsed.port, function setProxy(options, configProxy, location) {
|
|
3380
3390
|
let proxy = configProxy;
|
|
3381
3391
|
if (!proxy && !1 !== proxy) {
|
|
3382
3392
|
let proxyUrl = proxy_from_env.getProxyForUrl(location);
|
|
@@ -3570,7 +3580,8 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3570
3580
|
...config1,
|
|
3571
3581
|
...config2
|
|
3572
3582
|
}), function(prop) {
|
|
3573
|
-
|
|
3583
|
+
if ('__proto__' === prop || 'constructor' === prop || 'prototype' === prop) return;
|
|
3584
|
+
let merge = utils.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties, configValue = merge(config1[prop], config2[prop], prop);
|
|
3574
3585
|
utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
3575
3586
|
}), config;
|
|
3576
3587
|
}
|
|
@@ -3767,7 +3778,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3767
3778
|
let contentTypeHeader, _request = new Request(url, {
|
|
3768
3779
|
method: 'POST',
|
|
3769
3780
|
body: data,
|
|
3770
|
-
duplex:
|
|
3781
|
+
duplex: 'half'
|
|
3771
3782
|
});
|
|
3772
3783
|
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type')) && headers.setContentType(contentTypeHeader), _request.body) {
|
|
3773
3784
|
let [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
@@ -3775,13 +3786,13 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3775
3786
|
}
|
|
3776
3787
|
}
|
|
3777
3788
|
utils.isString(withCredentials) || (withCredentials = withCredentials ? 'include' : 'omit');
|
|
3778
|
-
let isCredentialsSupported = isRequestSupported &&
|
|
3789
|
+
let isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype, resolvedOptions = {
|
|
3779
3790
|
...fetchOptions,
|
|
3780
3791
|
signal: composedSignal,
|
|
3781
3792
|
method: method.toUpperCase(),
|
|
3782
3793
|
headers: headers.normalize().toJSON(),
|
|
3783
3794
|
body: data,
|
|
3784
|
-
duplex:
|
|
3795
|
+
duplex: 'half',
|
|
3785
3796
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
3786
3797
|
};
|
|
3787
3798
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
@@ -3813,10 +3824,10 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3813
3824
|
});
|
|
3814
3825
|
});
|
|
3815
3826
|
} catch (err) {
|
|
3816
|
-
if (unsubscribe && unsubscribe(), err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), {
|
|
3827
|
+
if (unsubscribe && unsubscribe(), err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request, err && err.response), {
|
|
3817
3828
|
cause: err.cause || err
|
|
3818
3829
|
});
|
|
3819
|
-
throw core_AxiosError.from(err, err && err.code, config, request);
|
|
3830
|
+
throw core_AxiosError.from(err, err && err.code, config, request, err && err.response);
|
|
3820
3831
|
}
|
|
3821
3832
|
};
|
|
3822
3833
|
}, seedCache = new Map(), getFetch = (config)=>{
|
|
@@ -3894,7 +3905,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3894
3905
|
let deprecatedWarnings = {};
|
|
3895
3906
|
validators.transitional = function(validator, version, message) {
|
|
3896
3907
|
function formatMessage(opt, desc) {
|
|
3897
|
-
return "[Axios v1.13.
|
|
3908
|
+
return "[Axios v1.13.6] Transitional option '" + opt + "'" + desc + (message ? '. ' + message : '');
|
|
3898
3909
|
}
|
|
3899
3910
|
return (value, opt, opts)=>{
|
|
3900
3911
|
if (!1 === validator) throw new core_AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), core_AxiosError.ERR_DEPRECATED);
|
|
@@ -3945,7 +3956,8 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3945
3956
|
void 0 !== transitional && helpers_validator_assertOptions(transitional, {
|
|
3946
3957
|
silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
|
|
3947
3958
|
forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
|
|
3948
|
-
clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
|
|
3959
|
+
clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean),
|
|
3960
|
+
legacyInterceptorReqResOrdering: Axios_validators.transitional(Axios_validators.boolean)
|
|
3949
3961
|
}, !1), null != paramsSerializer && (utils.isFunction(paramsSerializer) ? config.paramsSerializer = {
|
|
3950
3962
|
serialize: paramsSerializer
|
|
3951
3963
|
} : helpers_validator_assertOptions(paramsSerializer, {
|
|
@@ -3969,7 +3981,10 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3969
3981
|
}), config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
3970
3982
|
let requestInterceptorChain = [], synchronousRequestInterceptors = !0;
|
|
3971
3983
|
this.interceptors.request.forEach(function(interceptor) {
|
|
3972
|
-
('function'
|
|
3984
|
+
if ('function' == typeof interceptor.runWhen && !1 === interceptor.runWhen(config)) return;
|
|
3985
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
3986
|
+
let transitional = config.transitional || defaults_transitional;
|
|
3987
|
+
transitional && transitional.legacyInterceptorReqResOrdering ? requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected) : requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
3973
3988
|
});
|
|
3974
3989
|
let responseInterceptorChain = [];
|
|
3975
3990
|
this.interceptors.response.forEach(function(interceptor) {
|
|
@@ -4176,7 +4191,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
4176
4191
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
4177
4192
|
}, instance;
|
|
4178
4193
|
}(defaults_defaults);
|
|
4179
|
-
axios.Axios = Axios, axios.CanceledError = cancel_CanceledError, axios.CancelToken = CancelToken, axios.isCancel = isCancel, axios.VERSION = "1.13.
|
|
4194
|
+
axios.Axios = Axios, axios.CanceledError = cancel_CanceledError, axios.CancelToken = CancelToken, axios.isCancel = isCancel, axios.VERSION = "1.13.6", axios.toFormData = helpers_toFormData, axios.AxiosError = core_AxiosError, axios.Cancel = axios.CanceledError, axios.all = function(promises) {
|
|
4180
4195
|
return Promise.all(promises);
|
|
4181
4196
|
}, axios.spread = function(callback) {
|
|
4182
4197
|
return function(arr) {
|