@nsshunt/ststestrunner 1.0.83 → 1.0.85
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/ststestrunner.cjs +303 -220
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +304 -221
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +11 -11
package/dist/ststestrunner.cjs
CHANGED
|
@@ -4500,12 +4500,25 @@ const isEmptyObject = (val) => {
|
|
|
4500
4500
|
};
|
|
4501
4501
|
const isDate = kindOfTest("Date");
|
|
4502
4502
|
const isFile = kindOfTest("File");
|
|
4503
|
+
const isReactNativeBlob = (value2) => {
|
|
4504
|
+
return !!(value2 && typeof value2.uri !== "undefined");
|
|
4505
|
+
};
|
|
4506
|
+
const isReactNative$2 = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
4503
4507
|
const isBlob = kindOfTest("Blob");
|
|
4504
4508
|
const isFileList = kindOfTest("FileList");
|
|
4505
4509
|
const isStream = (val) => isObject$2(val) && isFunction$1(val.pipe);
|
|
4510
|
+
function getGlobal() {
|
|
4511
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
4512
|
+
if (typeof self !== "undefined") return self;
|
|
4513
|
+
if (typeof window !== "undefined") return window;
|
|
4514
|
+
if (typeof global !== "undefined") return global;
|
|
4515
|
+
return {};
|
|
4516
|
+
}
|
|
4517
|
+
const G$2 = getGlobal();
|
|
4518
|
+
const FormDataCtor = typeof G$2.FormData !== "undefined" ? G$2.FormData : void 0;
|
|
4506
4519
|
const isFormData = (thing) => {
|
|
4507
4520
|
let kind;
|
|
4508
|
-
return thing && (
|
|
4521
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
4509
4522
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
4510
4523
|
};
|
|
4511
4524
|
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
@@ -4515,7 +4528,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
|
4515
4528
|
"Response",
|
|
4516
4529
|
"Headers"
|
|
4517
4530
|
].map(kindOfTest);
|
|
4518
|
-
const trim = (str) =>
|
|
4531
|
+
const trim = (str) => {
|
|
4532
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
4533
|
+
};
|
|
4519
4534
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
4520
4535
|
if (obj === null || typeof obj === "undefined") {
|
|
4521
4536
|
return;
|
|
@@ -4617,10 +4632,7 @@ const stripBOM = (content) => {
|
|
|
4617
4632
|
return content;
|
|
4618
4633
|
};
|
|
4619
4634
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
4620
|
-
constructor.prototype = Object.create(
|
|
4621
|
-
superConstructor.prototype,
|
|
4622
|
-
descriptors
|
|
4623
|
-
);
|
|
4635
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
4624
4636
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
4625
4637
|
value: constructor,
|
|
4626
4638
|
writable: true,
|
|
@@ -4819,6 +4831,8 @@ const utils$1 = {
|
|
|
4819
4831
|
isUndefined,
|
|
4820
4832
|
isDate,
|
|
4821
4833
|
isFile,
|
|
4834
|
+
isReactNativeBlob,
|
|
4835
|
+
isReactNative: isReactNative$2,
|
|
4822
4836
|
isBlob,
|
|
4823
4837
|
isRegExp,
|
|
4824
4838
|
isFunction: isFunction$1,
|
|
@@ -4865,6 +4879,9 @@ let AxiosError$1 = class AxiosError extends Error {
|
|
|
4865
4879
|
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
4866
4880
|
axiosError.cause = error;
|
|
4867
4881
|
axiosError.name = error.name;
|
|
4882
|
+
if (error.status != null && axiosError.status == null) {
|
|
4883
|
+
axiosError.status = error.status;
|
|
4884
|
+
}
|
|
4868
4885
|
customProps && Object.assign(axiosError, customProps);
|
|
4869
4886
|
return axiosError;
|
|
4870
4887
|
}
|
|
@@ -4881,6 +4898,12 @@ let AxiosError$1 = class AxiosError extends Error {
|
|
|
4881
4898
|
*/
|
|
4882
4899
|
constructor(message, code, config, request, response) {
|
|
4883
4900
|
super(message);
|
|
4901
|
+
Object.defineProperty(this, "message", {
|
|
4902
|
+
value: message,
|
|
4903
|
+
enumerable: true,
|
|
4904
|
+
writable: true,
|
|
4905
|
+
configurable: true
|
|
4906
|
+
});
|
|
4884
4907
|
this.name = "AxiosError";
|
|
4885
4908
|
this.isAxiosError = true;
|
|
4886
4909
|
code && (this.code = code);
|
|
@@ -4948,13 +4971,18 @@ function toFormData$1(obj, formData, options) {
|
|
|
4948
4971
|
throw new TypeError("target must be an object");
|
|
4949
4972
|
}
|
|
4950
4973
|
formData = formData || new FormData();
|
|
4951
|
-
options = utils$1.toFlatObject(
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4974
|
+
options = utils$1.toFlatObject(
|
|
4975
|
+
options,
|
|
4976
|
+
{
|
|
4977
|
+
metaTokens: true,
|
|
4978
|
+
dots: false,
|
|
4979
|
+
indexes: false
|
|
4980
|
+
},
|
|
4981
|
+
false,
|
|
4982
|
+
function defined(option, source2) {
|
|
4983
|
+
return !utils$1.isUndefined(source2[option]);
|
|
4984
|
+
}
|
|
4985
|
+
);
|
|
4958
4986
|
const metaTokens = options.metaTokens;
|
|
4959
4987
|
const visitor = options.visitor || defaultVisitor;
|
|
4960
4988
|
const dots = options.dots;
|
|
@@ -4982,6 +5010,10 @@ function toFormData$1(obj, formData, options) {
|
|
|
4982
5010
|
}
|
|
4983
5011
|
function defaultVisitor(value2, key, path) {
|
|
4984
5012
|
let arr = value2;
|
|
5013
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value2)) {
|
|
5014
|
+
formData.append(renderKey(path, key, dots), convertValue(value2));
|
|
5015
|
+
return false;
|
|
5016
|
+
}
|
|
4985
5017
|
if (value2 && !path && typeof value2 === "object") {
|
|
4986
5018
|
if (utils$1.endsWith(key, "{}")) {
|
|
4987
5019
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -5017,13 +5049,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
5017
5049
|
}
|
|
5018
5050
|
stack.push(value2);
|
|
5019
5051
|
utils$1.forEach(value2, function each(el, key) {
|
|
5020
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
5021
|
-
formData,
|
|
5022
|
-
el,
|
|
5023
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
5024
|
-
path,
|
|
5025
|
-
exposedHelpers
|
|
5026
|
-
);
|
|
5052
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
5027
5053
|
if (result === true) {
|
|
5028
5054
|
build(el, path ? path.concat(key) : [key]);
|
|
5029
5055
|
}
|
|
@@ -5271,70 +5297,74 @@ function stringifySafely(rawValue, parser2, encoder) {
|
|
|
5271
5297
|
const defaults = {
|
|
5272
5298
|
transitional: transitionalDefaults,
|
|
5273
5299
|
adapter: ["xhr", "http", "fetch"],
|
|
5274
|
-
transformRequest: [
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
if (utils$1.isArrayBufferView(data)) {
|
|
5289
|
-
return data.buffer;
|
|
5290
|
-
}
|
|
5291
|
-
if (utils$1.isURLSearchParams(data)) {
|
|
5292
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
5293
|
-
return data.toString();
|
|
5294
|
-
}
|
|
5295
|
-
let isFileList2;
|
|
5296
|
-
if (isObjectPayload) {
|
|
5297
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
5298
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
5300
|
+
transformRequest: [
|
|
5301
|
+
function transformRequest(data, headers) {
|
|
5302
|
+
const contentType = headers.getContentType() || "";
|
|
5303
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
5304
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
5305
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
5306
|
+
data = new FormData(data);
|
|
5307
|
+
}
|
|
5308
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
5309
|
+
if (isFormData2) {
|
|
5310
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
5311
|
+
}
|
|
5312
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
5313
|
+
return data;
|
|
5299
5314
|
}
|
|
5300
|
-
if (
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5315
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
5316
|
+
return data.buffer;
|
|
5317
|
+
}
|
|
5318
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
5319
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
5320
|
+
return data.toString();
|
|
5321
|
+
}
|
|
5322
|
+
let isFileList2;
|
|
5323
|
+
if (isObjectPayload) {
|
|
5324
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
5325
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
5326
|
+
}
|
|
5327
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
5328
|
+
const _FormData = this.env && this.env.FormData;
|
|
5329
|
+
return toFormData$1(
|
|
5330
|
+
isFileList2 ? { "files[]": data } : data,
|
|
5331
|
+
_FormData && new _FormData(),
|
|
5332
|
+
this.formSerializer
|
|
5333
|
+
);
|
|
5334
|
+
}
|
|
5335
|
+
}
|
|
5336
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
5337
|
+
headers.setContentType("application/json", false);
|
|
5338
|
+
return stringifySafely(data);
|
|
5307
5339
|
}
|
|
5308
|
-
}
|
|
5309
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
5310
|
-
headers.setContentType("application/json", false);
|
|
5311
|
-
return stringifySafely(data);
|
|
5312
|
-
}
|
|
5313
|
-
return data;
|
|
5314
|
-
}],
|
|
5315
|
-
transformResponse: [function transformResponse(data) {
|
|
5316
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
5317
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
5318
|
-
const JSONRequested = this.responseType === "json";
|
|
5319
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
5320
5340
|
return data;
|
|
5321
5341
|
}
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5342
|
+
],
|
|
5343
|
+
transformResponse: [
|
|
5344
|
+
function transformResponse(data) {
|
|
5345
|
+
const transitional2 = this.transitional || defaults.transitional;
|
|
5346
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
5347
|
+
const JSONRequested = this.responseType === "json";
|
|
5348
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
5349
|
+
return data;
|
|
5350
|
+
}
|
|
5351
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
5352
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
5353
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
5354
|
+
try {
|
|
5355
|
+
return JSON.parse(data, this.parseReviver);
|
|
5356
|
+
} catch (e2) {
|
|
5357
|
+
if (strictJSONParsing) {
|
|
5358
|
+
if (e2.name === "SyntaxError") {
|
|
5359
|
+
throw AxiosError$1.from(e2, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
5360
|
+
}
|
|
5361
|
+
throw e2;
|
|
5331
5362
|
}
|
|
5332
|
-
throw e2;
|
|
5333
5363
|
}
|
|
5334
5364
|
}
|
|
5365
|
+
return data;
|
|
5335
5366
|
}
|
|
5336
|
-
|
|
5337
|
-
}],
|
|
5367
|
+
],
|
|
5338
5368
|
/**
|
|
5339
5369
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
5340
5370
|
* timeout is not created.
|
|
@@ -5353,7 +5383,7 @@ const defaults = {
|
|
|
5353
5383
|
},
|
|
5354
5384
|
headers: {
|
|
5355
5385
|
common: {
|
|
5356
|
-
|
|
5386
|
+
Accept: "application/json, text/plain, */*",
|
|
5357
5387
|
"Content-Type": void 0
|
|
5358
5388
|
}
|
|
5359
5389
|
}
|
|
@@ -5619,7 +5649,14 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
5619
5649
|
return this;
|
|
5620
5650
|
}
|
|
5621
5651
|
};
|
|
5622
|
-
AxiosHeaders$1.accessor([
|
|
5652
|
+
AxiosHeaders$1.accessor([
|
|
5653
|
+
"Content-Type",
|
|
5654
|
+
"Content-Length",
|
|
5655
|
+
"Accept",
|
|
5656
|
+
"Accept-Encoding",
|
|
5657
|
+
"User-Agent",
|
|
5658
|
+
"Authorization"
|
|
5659
|
+
]);
|
|
5623
5660
|
utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value: value2 }, key) => {
|
|
5624
5661
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
5625
5662
|
return {
|
|
@@ -5665,13 +5702,15 @@ function settle(resolve, reject, response) {
|
|
|
5665
5702
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
5666
5703
|
resolve(response);
|
|
5667
5704
|
} else {
|
|
5668
|
-
reject(
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5705
|
+
reject(
|
|
5706
|
+
new AxiosError$1(
|
|
5707
|
+
"Request failed with status code " + response.status,
|
|
5708
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
5709
|
+
response.config,
|
|
5710
|
+
response.request,
|
|
5711
|
+
response
|
|
5712
|
+
)
|
|
5713
|
+
);
|
|
5675
5714
|
}
|
|
5676
5715
|
}
|
|
5677
5716
|
function parseProtocol(url2) {
|
|
@@ -5769,11 +5808,14 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
5769
5808
|
};
|
|
5770
5809
|
const progressEventDecorator = (total, throttled) => {
|
|
5771
5810
|
const lengthComputable = total != null;
|
|
5772
|
-
return [
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5811
|
+
return [
|
|
5812
|
+
(loaded) => throttled[0]({
|
|
5813
|
+
lengthComputable,
|
|
5814
|
+
total,
|
|
5815
|
+
loaded
|
|
5816
|
+
}),
|
|
5817
|
+
throttled[1]
|
|
5818
|
+
];
|
|
5777
5819
|
};
|
|
5778
5820
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
5779
5821
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
@@ -5914,27 +5956,29 @@ function mergeConfig$1(config1, config2) {
|
|
|
5914
5956
|
validateStatus: mergeDirectKeys,
|
|
5915
5957
|
headers: (a2, b2, prop) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), prop, true)
|
|
5916
5958
|
};
|
|
5917
|
-
utils$1.forEach(
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
5924
|
-
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
5925
|
-
}
|
|
5926
|
-
);
|
|
5959
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
5960
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
5961
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
5962
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
5963
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
5964
|
+
});
|
|
5927
5965
|
return config;
|
|
5928
5966
|
}
|
|
5929
5967
|
const resolveConfig = (config) => {
|
|
5930
5968
|
const newConfig = mergeConfig$1({}, config);
|
|
5931
5969
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
5932
5970
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
5933
|
-
newConfig.url = buildURL(
|
|
5971
|
+
newConfig.url = buildURL(
|
|
5972
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
5973
|
+
config.params,
|
|
5974
|
+
config.paramsSerializer
|
|
5975
|
+
);
|
|
5934
5976
|
if (auth) {
|
|
5935
5977
|
headers.set(
|
|
5936
5978
|
"Authorization",
|
|
5937
|
-
"Basic " + btoa(
|
|
5979
|
+
"Basic " + btoa(
|
|
5980
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
5981
|
+
)
|
|
5938
5982
|
);
|
|
5939
5983
|
}
|
|
5940
5984
|
if (utils$1.isFormData(data)) {
|
|
@@ -5996,13 +6040,17 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
5996
6040
|
config,
|
|
5997
6041
|
request
|
|
5998
6042
|
};
|
|
5999
|
-
settle(
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6043
|
+
settle(
|
|
6044
|
+
function _resolve(value2) {
|
|
6045
|
+
resolve(value2);
|
|
6046
|
+
done();
|
|
6047
|
+
},
|
|
6048
|
+
function _reject(err) {
|
|
6049
|
+
reject(err);
|
|
6050
|
+
done();
|
|
6051
|
+
},
|
|
6052
|
+
response
|
|
6053
|
+
);
|
|
6006
6054
|
request = null;
|
|
6007
6055
|
}
|
|
6008
6056
|
if ("onloadend" in request) {
|
|
@@ -6038,12 +6086,14 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
6038
6086
|
if (_config.timeoutErrorMessage) {
|
|
6039
6087
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
6040
6088
|
}
|
|
6041
|
-
reject(
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6089
|
+
reject(
|
|
6090
|
+
new AxiosError$1(
|
|
6091
|
+
timeoutErrorMessage,
|
|
6092
|
+
transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
6093
|
+
config,
|
|
6094
|
+
request
|
|
6095
|
+
)
|
|
6096
|
+
);
|
|
6047
6097
|
request = null;
|
|
6048
6098
|
};
|
|
6049
6099
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -6083,7 +6133,13 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
6083
6133
|
}
|
|
6084
6134
|
const protocol2 = parseProtocol(_config.url);
|
|
6085
6135
|
if (protocol2 && platform.protocols.indexOf(protocol2) === -1) {
|
|
6086
|
-
reject(
|
|
6136
|
+
reject(
|
|
6137
|
+
new AxiosError$1(
|
|
6138
|
+
"Unsupported protocol " + protocol2 + ":",
|
|
6139
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
6140
|
+
config
|
|
6141
|
+
)
|
|
6142
|
+
);
|
|
6087
6143
|
return;
|
|
6088
6144
|
}
|
|
6089
6145
|
request.send(requestData || null);
|
|
@@ -6099,7 +6155,9 @@ const composeSignals = (signals, timeout) => {
|
|
|
6099
6155
|
aborted = true;
|
|
6100
6156
|
unsubscribe();
|
|
6101
6157
|
const err = reason instanceof Error ? reason : this.reason;
|
|
6102
|
-
controller.abort(
|
|
6158
|
+
controller.abort(
|
|
6159
|
+
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
6160
|
+
);
|
|
6103
6161
|
}
|
|
6104
6162
|
};
|
|
6105
6163
|
let timer = timeout && setTimeout(() => {
|
|
@@ -6169,33 +6227,36 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
6169
6227
|
onFinish && onFinish(e2);
|
|
6170
6228
|
}
|
|
6171
6229
|
};
|
|
6172
|
-
return new ReadableStream(
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6230
|
+
return new ReadableStream(
|
|
6231
|
+
{
|
|
6232
|
+
async pull(controller) {
|
|
6233
|
+
try {
|
|
6234
|
+
const { done: done2, value: value2 } = await iterator2.next();
|
|
6235
|
+
if (done2) {
|
|
6236
|
+
_onFinish();
|
|
6237
|
+
controller.close();
|
|
6238
|
+
return;
|
|
6239
|
+
}
|
|
6240
|
+
let len = value2.byteLength;
|
|
6241
|
+
if (onProgress) {
|
|
6242
|
+
let loadedBytes = bytes += len;
|
|
6243
|
+
onProgress(loadedBytes);
|
|
6244
|
+
}
|
|
6245
|
+
controller.enqueue(new Uint8Array(value2));
|
|
6246
|
+
} catch (err) {
|
|
6247
|
+
_onFinish(err);
|
|
6248
|
+
throw err;
|
|
6185
6249
|
}
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
_onFinish(
|
|
6189
|
-
|
|
6250
|
+
},
|
|
6251
|
+
cancel(reason) {
|
|
6252
|
+
_onFinish(reason);
|
|
6253
|
+
return iterator2.return();
|
|
6190
6254
|
}
|
|
6191
6255
|
},
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
return iterator2.return();
|
|
6256
|
+
{
|
|
6257
|
+
highWaterMark: 2
|
|
6195
6258
|
}
|
|
6196
|
-
|
|
6197
|
-
highWaterMark: 2
|
|
6198
|
-
});
|
|
6259
|
+
);
|
|
6199
6260
|
};
|
|
6200
6261
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
6201
6262
|
const { isFunction } = utils$1;
|
|
@@ -6203,10 +6264,7 @@ const globalFetchAPI = (({ Request: Request3, Response }) => ({
|
|
|
6203
6264
|
Request: Request3,
|
|
6204
6265
|
Response
|
|
6205
6266
|
}))(utils$1.global);
|
|
6206
|
-
const {
|
|
6207
|
-
ReadableStream: ReadableStream$1,
|
|
6208
|
-
TextEncoder: TextEncoder$1
|
|
6209
|
-
} = utils$1.global;
|
|
6267
|
+
const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$1.global;
|
|
6210
6268
|
const test = (fn, ...args) => {
|
|
6211
6269
|
try {
|
|
6212
6270
|
return !!fn(...args);
|
|
@@ -6215,9 +6273,13 @@ const test = (fn, ...args) => {
|
|
|
6215
6273
|
}
|
|
6216
6274
|
};
|
|
6217
6275
|
const factory = (env) => {
|
|
6218
|
-
env = utils$1.merge.call(
|
|
6219
|
-
|
|
6220
|
-
|
|
6276
|
+
env = utils$1.merge.call(
|
|
6277
|
+
{
|
|
6278
|
+
skipUndefined: true
|
|
6279
|
+
},
|
|
6280
|
+
globalFetchAPI,
|
|
6281
|
+
env
|
|
6282
|
+
);
|
|
6221
6283
|
const { fetch: envFetch, Request: Request3, Response } = env;
|
|
6222
6284
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
6223
6285
|
const isRequestSupported = isFunction(Request3);
|
|
@@ -6250,7 +6312,11 @@ const factory = (env) => {
|
|
|
6250
6312
|
if (method) {
|
|
6251
6313
|
return method.call(res);
|
|
6252
6314
|
}
|
|
6253
|
-
throw new AxiosError$1(
|
|
6315
|
+
throw new AxiosError$1(
|
|
6316
|
+
`Response type '${type}' is not supported`,
|
|
6317
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
6318
|
+
config
|
|
6319
|
+
);
|
|
6254
6320
|
});
|
|
6255
6321
|
});
|
|
6256
6322
|
})();
|
|
@@ -6299,7 +6365,10 @@ const factory = (env) => {
|
|
|
6299
6365
|
} = resolveConfig(config);
|
|
6300
6366
|
let _fetch = envFetch || fetch;
|
|
6301
6367
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
6302
|
-
let composedSignal = composeSignals(
|
|
6368
|
+
let composedSignal = composeSignals(
|
|
6369
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
6370
|
+
timeout
|
|
6371
|
+
);
|
|
6303
6372
|
let request = null;
|
|
6304
6373
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
6305
6374
|
composedSignal.unsubscribe();
|
|
@@ -6359,7 +6428,10 @@ const factory = (env) => {
|
|
|
6359
6428
|
);
|
|
6360
6429
|
}
|
|
6361
6430
|
responseType = responseType || "text";
|
|
6362
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
6431
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
6432
|
+
response,
|
|
6433
|
+
config
|
|
6434
|
+
);
|
|
6363
6435
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
6364
6436
|
return await new Promise((resolve, reject) => {
|
|
6365
6437
|
settle(resolve, reject, {
|
|
@@ -6375,7 +6447,13 @@ const factory = (env) => {
|
|
|
6375
6447
|
unsubscribe && unsubscribe();
|
|
6376
6448
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
6377
6449
|
throw Object.assign(
|
|
6378
|
-
new AxiosError$1(
|
|
6450
|
+
new AxiosError$1(
|
|
6451
|
+
"Network Error",
|
|
6452
|
+
AxiosError$1.ERR_NETWORK,
|
|
6453
|
+
config,
|
|
6454
|
+
request,
|
|
6455
|
+
err && err.response
|
|
6456
|
+
),
|
|
6379
6457
|
{
|
|
6380
6458
|
cause: err.cause || err
|
|
6381
6459
|
}
|
|
@@ -6389,11 +6467,7 @@ const seedCache = /* @__PURE__ */ new Map();
|
|
|
6389
6467
|
const getFetch = (config) => {
|
|
6390
6468
|
let env = config && config.env || {};
|
|
6391
6469
|
const { fetch: fetch2, Request: Request3, Response } = env;
|
|
6392
|
-
const seeds = [
|
|
6393
|
-
Request3,
|
|
6394
|
-
Response,
|
|
6395
|
-
fetch2
|
|
6396
|
-
];
|
|
6470
|
+
const seeds = [Request3, Response, fetch2];
|
|
6397
6471
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
6398
6472
|
while (i--) {
|
|
6399
6473
|
seed = seeds[i];
|
|
@@ -6478,39 +6552,35 @@ function throwIfCancellationRequested(config) {
|
|
|
6478
6552
|
function dispatchRequest(config) {
|
|
6479
6553
|
throwIfCancellationRequested(config);
|
|
6480
6554
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
6481
|
-
config.data = transformData.call(
|
|
6482
|
-
config,
|
|
6483
|
-
config.transformRequest
|
|
6484
|
-
);
|
|
6555
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
6485
6556
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
6486
6557
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
6487
6558
|
}
|
|
6488
6559
|
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
|
6489
|
-
return adapter(config).then(
|
|
6490
|
-
|
|
6491
|
-
response.data = transformData.call(
|
|
6492
|
-
config,
|
|
6493
|
-
config.transformResponse,
|
|
6494
|
-
response
|
|
6495
|
-
);
|
|
6496
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
6497
|
-
return response;
|
|
6498
|
-
}, function onAdapterRejection(reason) {
|
|
6499
|
-
if (!isCancel$1(reason)) {
|
|
6560
|
+
return adapter(config).then(
|
|
6561
|
+
function onAdapterResolution(response) {
|
|
6500
6562
|
throwIfCancellationRequested(config);
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6563
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
6564
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
6565
|
+
return response;
|
|
6566
|
+
},
|
|
6567
|
+
function onAdapterRejection(reason) {
|
|
6568
|
+
if (!isCancel$1(reason)) {
|
|
6569
|
+
throwIfCancellationRequested(config);
|
|
6570
|
+
if (reason && reason.response) {
|
|
6571
|
+
reason.response.data = transformData.call(
|
|
6572
|
+
config,
|
|
6573
|
+
config.transformResponse,
|
|
6574
|
+
reason.response
|
|
6575
|
+
);
|
|
6576
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
6577
|
+
}
|
|
6508
6578
|
}
|
|
6579
|
+
return Promise.reject(reason);
|
|
6509
6580
|
}
|
|
6510
|
-
|
|
6511
|
-
});
|
|
6581
|
+
);
|
|
6512
6582
|
}
|
|
6513
|
-
const VERSION$1 = "1.13.
|
|
6583
|
+
const VERSION$1 = "1.13.6";
|
|
6514
6584
|
const validators$1 = {};
|
|
6515
6585
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
6516
6586
|
validators$1[type] = function validator2(thing) {
|
|
@@ -6560,7 +6630,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
6560
6630
|
const value2 = options[opt];
|
|
6561
6631
|
const result = value2 === void 0 || validator2(value2, opt, options);
|
|
6562
6632
|
if (result !== true) {
|
|
6563
|
-
throw new AxiosError$1(
|
|
6633
|
+
throw new AxiosError$1(
|
|
6634
|
+
"option " + opt + " must be " + result,
|
|
6635
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
6636
|
+
);
|
|
6564
6637
|
}
|
|
6565
6638
|
continue;
|
|
6566
6639
|
}
|
|
@@ -6620,12 +6693,16 @@ let Axios$1 = class Axios {
|
|
|
6620
6693
|
config = mergeConfig$1(this.defaults, config);
|
|
6621
6694
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
6622
6695
|
if (transitional2 !== void 0) {
|
|
6623
|
-
validator.assertOptions(
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6696
|
+
validator.assertOptions(
|
|
6697
|
+
transitional2,
|
|
6698
|
+
{
|
|
6699
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
6700
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
6701
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
6702
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
6703
|
+
},
|
|
6704
|
+
false
|
|
6705
|
+
);
|
|
6629
6706
|
}
|
|
6630
6707
|
if (paramsSerializer != null) {
|
|
6631
6708
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -6633,10 +6710,14 @@ let Axios$1 = class Axios {
|
|
|
6633
6710
|
serialize: paramsSerializer
|
|
6634
6711
|
};
|
|
6635
6712
|
} else {
|
|
6636
|
-
validator.assertOptions(
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6713
|
+
validator.assertOptions(
|
|
6714
|
+
paramsSerializer,
|
|
6715
|
+
{
|
|
6716
|
+
encode: validators.function,
|
|
6717
|
+
serialize: validators.function
|
|
6718
|
+
},
|
|
6719
|
+
true
|
|
6720
|
+
);
|
|
6640
6721
|
}
|
|
6641
6722
|
}
|
|
6642
6723
|
if (config.allowAbsoluteUrls !== void 0) ;
|
|
@@ -6645,21 +6726,19 @@ let Axios$1 = class Axios {
|
|
|
6645
6726
|
} else {
|
|
6646
6727
|
config.allowAbsoluteUrls = true;
|
|
6647
6728
|
}
|
|
6648
|
-
validator.assertOptions(
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
headers[config.method]
|
|
6656
|
-
);
|
|
6657
|
-
headers && utils$1.forEach(
|
|
6658
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
6659
|
-
(method) => {
|
|
6660
|
-
delete headers[method];
|
|
6661
|
-
}
|
|
6729
|
+
validator.assertOptions(
|
|
6730
|
+
config,
|
|
6731
|
+
{
|
|
6732
|
+
baseUrl: validators.spelling("baseURL"),
|
|
6733
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
6734
|
+
},
|
|
6735
|
+
true
|
|
6662
6736
|
);
|
|
6737
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
6738
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
6739
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
6740
|
+
delete headers[method];
|
|
6741
|
+
});
|
|
6663
6742
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
6664
6743
|
const requestInterceptorChain = [];
|
|
6665
6744
|
let synchronousRequestInterceptors = true;
|
|
@@ -6726,24 +6805,28 @@ let Axios$1 = class Axios {
|
|
|
6726
6805
|
};
|
|
6727
6806
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
6728
6807
|
Axios$1.prototype[method] = function(url2, config) {
|
|
6729
|
-
return this.request(
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6808
|
+
return this.request(
|
|
6809
|
+
mergeConfig$1(config || {}, {
|
|
6810
|
+
method,
|
|
6811
|
+
url: url2,
|
|
6812
|
+
data: (config || {}).data
|
|
6813
|
+
})
|
|
6814
|
+
);
|
|
6734
6815
|
};
|
|
6735
6816
|
});
|
|
6736
6817
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
6737
6818
|
function generateHTTPMethod(isForm) {
|
|
6738
6819
|
return function httpMethod(url2, data, config) {
|
|
6739
|
-
return this.request(
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6820
|
+
return this.request(
|
|
6821
|
+
mergeConfig$1(config || {}, {
|
|
6822
|
+
method,
|
|
6823
|
+
headers: isForm ? {
|
|
6824
|
+
"Content-Type": "multipart/form-data"
|
|
6825
|
+
} : {},
|
|
6826
|
+
url: url2,
|
|
6827
|
+
data
|
|
6828
|
+
})
|
|
6829
|
+
);
|
|
6747
6830
|
};
|
|
6748
6831
|
}
|
|
6749
6832
|
Axios$1.prototype[method] = generateHTTPMethod();
|
|
@@ -12784,7 +12867,7 @@ class TestCaseFhirBase {
|
|
|
12784
12867
|
console.log(`TestCaseFhirBase(): fhirEndpoint: [${this.#options.fhirEndpoint}]`);
|
|
12785
12868
|
let agentManager = void 0;
|
|
12786
12869
|
if (this.#options.nodeAgentOptions) {
|
|
12787
|
-
agentManager =
|
|
12870
|
+
agentManager = stsutils.createAgentManager({
|
|
12788
12871
|
agentOptions: {
|
|
12789
12872
|
keepAlive: this.#options.nodeAgentOptions.keepAlive,
|
|
12790
12873
|
maxSockets: this.#options.nodeAgentOptions.maxSockets,
|