rds-database-auto-start-preventer 0.2.3 → 0.2.5
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/.jsii +4 -4
- package/assets/funcs/auto-start-prevent.lambda/index.js +358 -97
- package/assets/funcs/auto-start-prevent.lambda/index.js.map +3 -3
- package/lib/constructs/rds-database-auto-start-preventer.js +1 -1
- package/lib/stacks/rds-database-auto-start-prevent-stack.js +1 -1
- package/package.json +3 -3
|
@@ -13077,6 +13077,7 @@ var require_axios = __commonJS({
|
|
|
13077
13077
|
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
13078
13078
|
var isBlob = kindOfTest("Blob");
|
|
13079
13079
|
var isFileList = kindOfTest("FileList");
|
|
13080
|
+
var isSet = kindOfTest("Set");
|
|
13080
13081
|
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
13081
13082
|
function getGlobal() {
|
|
13082
13083
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -13374,11 +13375,20 @@ var require_axios = __commonJS({
|
|
|
13374
13375
|
}
|
|
13375
13376
|
if (!("toJSON" in source)) {
|
|
13376
13377
|
visited.add(source);
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13378
|
+
let target;
|
|
13379
|
+
if (isSet(source)) {
|
|
13380
|
+
target = [];
|
|
13381
|
+
for (const value of source) {
|
|
13382
|
+
const reducedValue = visit(value);
|
|
13383
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
13384
|
+
}
|
|
13385
|
+
} else {
|
|
13386
|
+
target = isArray(source) ? [] : {};
|
|
13387
|
+
forEach(source, (value, key) => {
|
|
13388
|
+
const reducedValue = visit(value);
|
|
13389
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
13390
|
+
});
|
|
13391
|
+
}
|
|
13382
13392
|
visited.delete(source);
|
|
13383
13393
|
return target;
|
|
13384
13394
|
}
|
|
@@ -13486,17 +13496,18 @@ var require_axios = __commonJS({
|
|
|
13486
13496
|
i = line.indexOf(":");
|
|
13487
13497
|
key = line.substring(0, i).trim().toLowerCase();
|
|
13488
13498
|
val = line.substring(i + 1).trim();
|
|
13489
|
-
|
|
13499
|
+
const hasKey = utils$1.hasOwnProp(parsed, key);
|
|
13500
|
+
if (!key || hasKey && utils$1.hasOwnProp(ignoreDuplicateOf, key)) {
|
|
13490
13501
|
return;
|
|
13491
13502
|
}
|
|
13492
13503
|
if (key === "set-cookie") {
|
|
13493
|
-
if (
|
|
13504
|
+
if (hasKey) {
|
|
13494
13505
|
parsed[key].push(val);
|
|
13495
13506
|
} else {
|
|
13496
13507
|
parsed[key] = [val];
|
|
13497
13508
|
}
|
|
13498
13509
|
} else {
|
|
13499
|
-
parsed[key] =
|
|
13510
|
+
parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
13500
13511
|
}
|
|
13501
13512
|
});
|
|
13502
13513
|
return parsed;
|
|
@@ -13556,6 +13567,90 @@ var require_axios = __commonJS({
|
|
|
13556
13567
|
}
|
|
13557
13568
|
return tokens;
|
|
13558
13569
|
}
|
|
13570
|
+
var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
13571
|
+
function trimOWS(value) {
|
|
13572
|
+
let start = 0;
|
|
13573
|
+
let end = value.length;
|
|
13574
|
+
while (start < end) {
|
|
13575
|
+
const code = value.charCodeAt(start);
|
|
13576
|
+
if (code !== 9 && code !== 32) {
|
|
13577
|
+
break;
|
|
13578
|
+
}
|
|
13579
|
+
start += 1;
|
|
13580
|
+
}
|
|
13581
|
+
while (end > start) {
|
|
13582
|
+
const code = value.charCodeAt(end - 1);
|
|
13583
|
+
if (code !== 9 && code !== 32) {
|
|
13584
|
+
break;
|
|
13585
|
+
}
|
|
13586
|
+
end -= 1;
|
|
13587
|
+
}
|
|
13588
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
13589
|
+
}
|
|
13590
|
+
function decodeQuotedString(value) {
|
|
13591
|
+
const last = value.length - 1;
|
|
13592
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
|
|
13593
|
+
return value;
|
|
13594
|
+
}
|
|
13595
|
+
let decoded = "";
|
|
13596
|
+
for (let i = 1; i < last; i++) {
|
|
13597
|
+
const code = value.charCodeAt(i);
|
|
13598
|
+
if (code === 34) {
|
|
13599
|
+
return value;
|
|
13600
|
+
}
|
|
13601
|
+
if (code === 92) {
|
|
13602
|
+
i += 1;
|
|
13603
|
+
if (i >= last) {
|
|
13604
|
+
return value;
|
|
13605
|
+
}
|
|
13606
|
+
}
|
|
13607
|
+
decoded += value[i];
|
|
13608
|
+
}
|
|
13609
|
+
return decoded;
|
|
13610
|
+
}
|
|
13611
|
+
function parseParameters(value) {
|
|
13612
|
+
const parameters = /* @__PURE__ */ Object.create(null);
|
|
13613
|
+
const str = String(value);
|
|
13614
|
+
let start = 0;
|
|
13615
|
+
let quoted = false;
|
|
13616
|
+
let escaped = false;
|
|
13617
|
+
function parseParameter(end) {
|
|
13618
|
+
const part = trimOWS(str.slice(start, end));
|
|
13619
|
+
const equals = part.indexOf("=");
|
|
13620
|
+
if (equals < 1) {
|
|
13621
|
+
return;
|
|
13622
|
+
}
|
|
13623
|
+
const name = trimOWS(part.slice(0, equals));
|
|
13624
|
+
if (!parameterNameRE.test(name)) {
|
|
13625
|
+
return;
|
|
13626
|
+
}
|
|
13627
|
+
const normalizedName = name.toLowerCase();
|
|
13628
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
|
|
13629
|
+
return;
|
|
13630
|
+
}
|
|
13631
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
13632
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
13633
|
+
}
|
|
13634
|
+
for (let i = 0; i < str.length; i++) {
|
|
13635
|
+
const code = str.charCodeAt(i);
|
|
13636
|
+
if (quoted) {
|
|
13637
|
+
if (escaped) {
|
|
13638
|
+
escaped = false;
|
|
13639
|
+
} else if (code === 92) {
|
|
13640
|
+
escaped = true;
|
|
13641
|
+
} else if (code === 34) {
|
|
13642
|
+
quoted = false;
|
|
13643
|
+
}
|
|
13644
|
+
} else if (code === 34) {
|
|
13645
|
+
quoted = true;
|
|
13646
|
+
} else if (code === 44 || code === 59) {
|
|
13647
|
+
parseParameter(i);
|
|
13648
|
+
start = i + 1;
|
|
13649
|
+
}
|
|
13650
|
+
}
|
|
13651
|
+
parseParameter(str.length);
|
|
13652
|
+
return parameters;
|
|
13653
|
+
}
|
|
13559
13654
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
13560
13655
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
13561
13656
|
if (utils$1.isFunction(filter)) {
|
|
@@ -13731,7 +13826,8 @@ var require_axios = __commonJS({
|
|
|
13731
13826
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
13732
13827
|
}
|
|
13733
13828
|
getSetCookie() {
|
|
13734
|
-
|
|
13829
|
+
const value = this.get("set-cookie");
|
|
13830
|
+
return utils$1.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
13735
13831
|
}
|
|
13736
13832
|
get [Symbol.toStringTag]() {
|
|
13737
13833
|
return "AxiosHeaders";
|
|
@@ -13739,6 +13835,9 @@ var require_axios = __commonJS({
|
|
|
13739
13835
|
static from(thing) {
|
|
13740
13836
|
return thing instanceof this ? thing : new this(thing);
|
|
13741
13837
|
}
|
|
13838
|
+
static parseParameters(value) {
|
|
13839
|
+
return parseParameters(value);
|
|
13840
|
+
}
|
|
13742
13841
|
static concat(first, ...targets) {
|
|
13743
13842
|
const computed = new this(first);
|
|
13744
13843
|
targets.forEach((target) => computed.set(target));
|
|
@@ -13826,9 +13925,30 @@ var require_axios = __commonJS({
|
|
|
13826
13925
|
};
|
|
13827
13926
|
return visit(config);
|
|
13828
13927
|
}
|
|
13928
|
+
function stringifySafely$1(value) {
|
|
13929
|
+
try {
|
|
13930
|
+
return String(value);
|
|
13931
|
+
} catch (err) {
|
|
13932
|
+
return "";
|
|
13933
|
+
}
|
|
13934
|
+
}
|
|
13935
|
+
function aggregateErrorMessage(error) {
|
|
13936
|
+
const message = error.errors.map((entry) => {
|
|
13937
|
+
try {
|
|
13938
|
+
return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
|
|
13939
|
+
} catch (err) {
|
|
13940
|
+
return "";
|
|
13941
|
+
}
|
|
13942
|
+
}).filter(Boolean).join("; ");
|
|
13943
|
+
return message || error.name || "AggregateError";
|
|
13944
|
+
}
|
|
13829
13945
|
var AxiosError = class _AxiosError extends Error {
|
|
13830
13946
|
static from(error, code, config, request, response, customProps) {
|
|
13831
|
-
|
|
13947
|
+
let message = error.message;
|
|
13948
|
+
if (!message && utils$1.isArray(error.errors) && error.errors.length) {
|
|
13949
|
+
message = aggregateErrorMessage(error);
|
|
13950
|
+
}
|
|
13951
|
+
const axiosError = new _AxiosError(message, code || error.code, config, request, response);
|
|
13832
13952
|
Object.defineProperty(axiosError, "cause", {
|
|
13833
13953
|
__proto__: null,
|
|
13834
13954
|
value: error,
|
|
@@ -13912,6 +14032,14 @@ var require_axios = __commonJS({
|
|
|
13912
14032
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
13913
14033
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
13914
14034
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
14035
|
+
var PlatformBuffer = {
|
|
14036
|
+
isBufferAvailable() {
|
|
14037
|
+
return typeof Buffer !== "undefined";
|
|
14038
|
+
},
|
|
14039
|
+
from(value) {
|
|
14040
|
+
return Buffer.from(value);
|
|
14041
|
+
}
|
|
14042
|
+
};
|
|
13915
14043
|
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
13916
14044
|
function isVisitable(thing) {
|
|
13917
14045
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
@@ -13970,8 +14098,8 @@ var require_axios = __commonJS({
|
|
|
13970
14098
|
if (useBlob && typeof _Blob === "function") {
|
|
13971
14099
|
return new _Blob([value]);
|
|
13972
14100
|
}
|
|
13973
|
-
if (
|
|
13974
|
-
return
|
|
14101
|
+
if (PlatformBuffer && PlatformBuffer.isBufferAvailable()) {
|
|
14102
|
+
return PlatformBuffer.from(value);
|
|
13975
14103
|
}
|
|
13976
14104
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.", AxiosError.ERR_NOT_SUPPORT);
|
|
13977
14105
|
}
|
|
@@ -14249,7 +14377,7 @@ var require_axios = __commonJS({
|
|
|
14249
14377
|
}
|
|
14250
14378
|
function parsePropPath(name) {
|
|
14251
14379
|
const path2 = [];
|
|
14252
|
-
const pattern =
|
|
14380
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
14253
14381
|
let match;
|
|
14254
14382
|
while ((match = pattern.exec(name)) !== null) {
|
|
14255
14383
|
throwIfDepthExceeded(path2.length);
|
|
@@ -14456,7 +14584,14 @@ var require_axios = __commonJS({
|
|
|
14456
14584
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
14457
14585
|
}
|
|
14458
14586
|
function combineURLs(baseURL, relativeURL) {
|
|
14459
|
-
|
|
14587
|
+
if (!relativeURL) {
|
|
14588
|
+
return baseURL;
|
|
14589
|
+
}
|
|
14590
|
+
let end = baseURL.length;
|
|
14591
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
14592
|
+
end--;
|
|
14593
|
+
}
|
|
14594
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
14460
14595
|
}
|
|
14461
14596
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
14462
14597
|
var httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
@@ -14470,9 +14605,30 @@ var require_axios = __commonJS({
|
|
|
14470
14605
|
function normalizeURLForProtocolCheck(url2) {
|
|
14471
14606
|
return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
|
|
14472
14607
|
}
|
|
14608
|
+
function redactFragment(fragment) {
|
|
14609
|
+
if (!fragment) {
|
|
14610
|
+
return fragment;
|
|
14611
|
+
}
|
|
14612
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
14613
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
14614
|
+
});
|
|
14615
|
+
}
|
|
14616
|
+
function redactSensitiveURLParts(url2) {
|
|
14617
|
+
const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
14618
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
14619
|
+
const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
14620
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
|
|
14621
|
+
if (fragmentIndex === -1) {
|
|
14622
|
+
return redactedURLWithoutFragment;
|
|
14623
|
+
}
|
|
14624
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
14625
|
+
}
|
|
14473
14626
|
function assertValidHttpProtocolURL(url2, config) {
|
|
14474
|
-
if (typeof url2 === "string"
|
|
14475
|
-
|
|
14627
|
+
if (typeof url2 === "string") {
|
|
14628
|
+
const normalizedURL = normalizeURLForProtocolCheck(url2);
|
|
14629
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
14630
|
+
throw new AxiosError(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError.ERR_INVALID_URL, config);
|
|
14631
|
+
}
|
|
14476
14632
|
}
|
|
14477
14633
|
}
|
|
14478
14634
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
@@ -14549,7 +14705,7 @@ var require_axios = __commonJS({
|
|
|
14549
14705
|
function getEnv(key) {
|
|
14550
14706
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
14551
14707
|
}
|
|
14552
|
-
var VERSION = "1.
|
|
14708
|
+
var VERSION = "1.19.0";
|
|
14553
14709
|
function parseProtocol(url2) {
|
|
14554
14710
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
14555
14711
|
return match && match[1] || "";
|
|
@@ -14590,6 +14746,18 @@ var require_axios = __commonJS({
|
|
|
14590
14746
|
}
|
|
14591
14747
|
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
14592
14748
|
}
|
|
14749
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14750
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14751
|
+
if (policy !== "content-only") {
|
|
14752
|
+
headers.set(formHeaders);
|
|
14753
|
+
return;
|
|
14754
|
+
}
|
|
14755
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
14756
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
14757
|
+
headers.set(key, val);
|
|
14758
|
+
}
|
|
14759
|
+
});
|
|
14760
|
+
}
|
|
14593
14761
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
14594
14762
|
var AxiosTransformStream = class extends stream.Transform {
|
|
14595
14763
|
constructor(options) {
|
|
@@ -14908,6 +15076,60 @@ var require_axios = __commonJS({
|
|
|
14908
15076
|
if (parts[0] !== "127") return false;
|
|
14909
15077
|
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
14910
15078
|
};
|
|
15079
|
+
var parseIPv4Octet = (text) => {
|
|
15080
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
15081
|
+
const n = parseInt(text.slice(2), 16);
|
|
15082
|
+
return Number.isFinite(n) ? n : null;
|
|
15083
|
+
}
|
|
15084
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
15085
|
+
const n = parseInt(text, 8);
|
|
15086
|
+
return Number.isFinite(n) ? n : null;
|
|
15087
|
+
}
|
|
15088
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
15089
|
+
return null;
|
|
15090
|
+
}
|
|
15091
|
+
if (/^[0-9]+$/.test(text)) {
|
|
15092
|
+
const n = parseInt(text, 10);
|
|
15093
|
+
return Number.isFinite(n) ? n : null;
|
|
15094
|
+
}
|
|
15095
|
+
return null;
|
|
15096
|
+
};
|
|
15097
|
+
var normalizeIPAddress = (host) => {
|
|
15098
|
+
if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
|
|
15099
|
+
return host;
|
|
15100
|
+
}
|
|
15101
|
+
let h = host;
|
|
15102
|
+
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
15103
|
+
h = h.slice(1, -1);
|
|
15104
|
+
}
|
|
15105
|
+
h = h.replace(/\.+$/, "");
|
|
15106
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
|
|
15107
|
+
const parts = h.split(".");
|
|
15108
|
+
if (parts.some((p) => p === "")) return host;
|
|
15109
|
+
if (parts.length === 4) {
|
|
15110
|
+
const octets = parts.map(parseIPv4Octet);
|
|
15111
|
+
if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
15112
|
+
return octets.join(".");
|
|
15113
|
+
}
|
|
15114
|
+
if (parts.length > 4) {
|
|
15115
|
+
return host;
|
|
15116
|
+
}
|
|
15117
|
+
if (parts.length === 1) return host;
|
|
15118
|
+
const literalOctets = parts.slice(0, -1);
|
|
15119
|
+
const tail = parts[parts.length - 1];
|
|
15120
|
+
const tailSlots = 4 - literalOctets.length;
|
|
15121
|
+
const tailValue = parseIPv4Octet(tail);
|
|
15122
|
+
if (tailValue === null) return host;
|
|
15123
|
+
const maxTail = (1 << 8 * tailSlots) - 1;
|
|
15124
|
+
if (tailValue < 0 || tailValue > maxTail) return host;
|
|
15125
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
15126
|
+
for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
|
|
15127
|
+
tailOctets[i] = v & 255;
|
|
15128
|
+
}
|
|
15129
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
15130
|
+
if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
15131
|
+
return [...literal, ...tailOctets].join(".");
|
|
15132
|
+
};
|
|
14911
15133
|
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
14912
15134
|
var isIPv6Unspecified = (host) => {
|
|
14913
15135
|
if (host === "::") return true;
|
|
@@ -14999,7 +15221,12 @@ var require_axios = __commonJS({
|
|
|
14999
15221
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
15000
15222
|
hostname = hostname.slice(1, -1);
|
|
15001
15223
|
}
|
|
15002
|
-
|
|
15224
|
+
const trimmed = hostname.replace(/\.+$/, "");
|
|
15225
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
15226
|
+
if (ipv4 !== trimmed) {
|
|
15227
|
+
return ipv4;
|
|
15228
|
+
}
|
|
15229
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
15003
15230
|
};
|
|
15004
15231
|
function shouldBypassProxy(location) {
|
|
15005
15232
|
let parsed;
|
|
@@ -15021,6 +15248,9 @@ var require_axios = __commonJS({
|
|
|
15021
15248
|
if (!entry) {
|
|
15022
15249
|
return false;
|
|
15023
15250
|
}
|
|
15251
|
+
if (entry === "*") {
|
|
15252
|
+
return true;
|
|
15253
|
+
}
|
|
15024
15254
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
15025
15255
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
15026
15256
|
if (!entryHost) {
|
|
@@ -15112,7 +15342,7 @@ var require_axios = __commonJS({
|
|
|
15112
15342
|
}
|
|
15113
15343
|
const rawLoaded = e.loaded;
|
|
15114
15344
|
const total = e.lengthComputable ? e.total : void 0;
|
|
15115
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
15345
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
15116
15346
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
15117
15347
|
const rate = _speedometer(progressBytes);
|
|
15118
15348
|
bytesNotified = Math.max(bytesNotified, loaded);
|
|
@@ -15138,10 +15368,64 @@ var require_axios = __commonJS({
|
|
|
15138
15368
|
loaded
|
|
15139
15369
|
}), throttled[1]];
|
|
15140
15370
|
};
|
|
15141
|
-
var asyncDecorator = (fn) => (...args) =>
|
|
15371
|
+
var asyncDecorator = (fn, scheduler = utils$1.asap) => (...args) => scheduler(() => fn(...args));
|
|
15142
15372
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
15143
15373
|
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
15144
|
-
|
|
15374
|
+
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
15375
|
+
var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
|
|
15376
|
+
charCode >= 97 && charCode <= 122 || // a-z
|
|
15377
|
+
charCode >= 48 && charCode <= 57 || // 0-9
|
|
15378
|
+
charCode === 43 || // +
|
|
15379
|
+
charCode === 47 || // /
|
|
15380
|
+
charCode === 45 || // - (base64url)
|
|
15381
|
+
charCode === 95;
|
|
15382
|
+
var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
15383
|
+
var base64Bytes = (significant) => {
|
|
15384
|
+
const groups = Math.floor(significant / 4);
|
|
15385
|
+
const remainder = significant % 4;
|
|
15386
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
15387
|
+
};
|
|
15388
|
+
var estimateBase64BufferAllocation = (body) => {
|
|
15389
|
+
const len = body.length;
|
|
15390
|
+
let padding = 0;
|
|
15391
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
15392
|
+
padding++;
|
|
15393
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) {
|
|
15394
|
+
padding++;
|
|
15395
|
+
}
|
|
15396
|
+
}
|
|
15397
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
15398
|
+
};
|
|
15399
|
+
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
15400
|
+
const len = body.length;
|
|
15401
|
+
let significant = 0;
|
|
15402
|
+
let padding = 0;
|
|
15403
|
+
let invalid = false;
|
|
15404
|
+
for (let i = 0; i < len; i++) {
|
|
15405
|
+
let code = body.charCodeAt(i);
|
|
15406
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
15407
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
15408
|
+
i += 2;
|
|
15409
|
+
}
|
|
15410
|
+
if (isBase64Whitespace(code)) {
|
|
15411
|
+
continue;
|
|
15412
|
+
}
|
|
15413
|
+
if (code === 61) {
|
|
15414
|
+
padding++;
|
|
15415
|
+
continue;
|
|
15416
|
+
}
|
|
15417
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
15418
|
+
invalid = true;
|
|
15419
|
+
continue;
|
|
15420
|
+
}
|
|
15421
|
+
significant++;
|
|
15422
|
+
}
|
|
15423
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
|
|
15424
|
+
return estimateBase64BufferAllocation(body);
|
|
15425
|
+
}
|
|
15426
|
+
return base64Bytes(significant);
|
|
15427
|
+
};
|
|
15428
|
+
var estimateDataURLBytes = (url2, estimateBase64) => {
|
|
15145
15429
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
15146
15430
|
if (!url2.startsWith("data:")) return 0;
|
|
15147
15431
|
const comma = url2.indexOf(",");
|
|
@@ -15150,43 +15434,7 @@ var require_axios = __commonJS({
|
|
|
15150
15434
|
const body = url2.slice(comma + 1);
|
|
15151
15435
|
const isBase64 = /;base64/i.test(meta);
|
|
15152
15436
|
if (isBase64) {
|
|
15153
|
-
|
|
15154
|
-
const len = body.length;
|
|
15155
|
-
for (let i = 0; i < len; i++) {
|
|
15156
|
-
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
15157
|
-
const a = body.charCodeAt(i + 1);
|
|
15158
|
-
const b = body.charCodeAt(i + 2);
|
|
15159
|
-
const isHex = isHexDigit(a) && isHexDigit(b);
|
|
15160
|
-
if (isHex) {
|
|
15161
|
-
effectiveLen -= 2;
|
|
15162
|
-
i += 2;
|
|
15163
|
-
}
|
|
15164
|
-
}
|
|
15165
|
-
}
|
|
15166
|
-
let pad = 0;
|
|
15167
|
-
let idx = len - 1;
|
|
15168
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
15169
|
-
body.charCodeAt(j - 1) === 51 && // '3'
|
|
15170
|
-
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
15171
|
-
if (idx >= 0) {
|
|
15172
|
-
if (body.charCodeAt(idx) === 61) {
|
|
15173
|
-
pad++;
|
|
15174
|
-
idx--;
|
|
15175
|
-
} else if (tailIsPct3D(idx)) {
|
|
15176
|
-
pad++;
|
|
15177
|
-
idx -= 3;
|
|
15178
|
-
}
|
|
15179
|
-
}
|
|
15180
|
-
if (pad === 1 && idx >= 0) {
|
|
15181
|
-
if (body.charCodeAt(idx) === 61) {
|
|
15182
|
-
pad++;
|
|
15183
|
-
} else if (tailIsPct3D(idx)) {
|
|
15184
|
-
pad++;
|
|
15185
|
-
}
|
|
15186
|
-
}
|
|
15187
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
15188
|
-
const bytes2 = groups * 3 - (pad || 0);
|
|
15189
|
-
return bytes2 > 0 ? bytes2 : 0;
|
|
15437
|
+
return estimateBase64(body);
|
|
15190
15438
|
}
|
|
15191
15439
|
let bytes = 0;
|
|
15192
15440
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
@@ -15211,6 +15459,13 @@ var require_axios = __commonJS({
|
|
|
15211
15459
|
}
|
|
15212
15460
|
}
|
|
15213
15461
|
return bytes;
|
|
15462
|
+
};
|
|
15463
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
15464
|
+
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
15465
|
+
return estimateDataURLBytes(fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
|
|
15466
|
+
}
|
|
15467
|
+
function estimateDataURLBufferAllocation(url2) {
|
|
15468
|
+
return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
|
|
15214
15469
|
}
|
|
15215
15470
|
var zlibOptions = {
|
|
15216
15471
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
@@ -15228,23 +15483,12 @@ var require_axios = __commonJS({
|
|
|
15228
15483
|
var isZstdSupported = utils$1.isFunction(zlib.createZstdDecompress);
|
|
15229
15484
|
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
15230
15485
|
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
15486
|
+
var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils$1.asap;
|
|
15231
15487
|
var {
|
|
15232
15488
|
http: httpFollow,
|
|
15233
15489
|
https: httpsFollow
|
|
15234
15490
|
} = followRedirects;
|
|
15235
15491
|
var isHttps = /https:?/;
|
|
15236
|
-
var FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
|
|
15237
|
-
function setFormDataHeaders$1(headers, formHeaders, policy) {
|
|
15238
|
-
if (policy !== "content-only") {
|
|
15239
|
-
headers.set(formHeaders);
|
|
15240
|
-
return;
|
|
15241
|
-
}
|
|
15242
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
15243
|
-
if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
|
|
15244
|
-
headers.set(key, val);
|
|
15245
|
-
}
|
|
15246
|
-
});
|
|
15247
|
-
}
|
|
15248
15492
|
var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
|
|
15249
15493
|
var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
|
|
15250
15494
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
@@ -15635,7 +15879,7 @@ var require_axios = __commonJS({
|
|
|
15635
15879
|
if (protocol === "data:") {
|
|
15636
15880
|
if (maxContentLength > -1) {
|
|
15637
15881
|
const dataUrl = String(own2("url") || fullPath || "");
|
|
15638
|
-
const estimated =
|
|
15882
|
+
const estimated = estimateDataURLBufferAllocation(dataUrl);
|
|
15639
15883
|
if (estimated > maxContentLength) {
|
|
15640
15884
|
return reject(new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
15641
15885
|
}
|
|
@@ -15693,7 +15937,7 @@ var require_axios = __commonJS({
|
|
|
15693
15937
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
15694
15938
|
});
|
|
15695
15939
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
15696
|
-
setFormDataHeaders
|
|
15940
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
15697
15941
|
if (!headers.hasContentLength()) {
|
|
15698
15942
|
try {
|
|
15699
15943
|
const knownLength = await util2.promisify(data.getLength).call(data);
|
|
@@ -15735,7 +15979,7 @@ var require_axios = __commonJS({
|
|
|
15735
15979
|
data = stream.pipeline([data, new AxiosTransformStream({
|
|
15736
15980
|
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
15737
15981
|
})], utils$1.noop);
|
|
15738
|
-
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
15982
|
+
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3))));
|
|
15739
15983
|
}
|
|
15740
15984
|
let auth = void 0;
|
|
15741
15985
|
const configAuth = own2("auth");
|
|
@@ -15872,7 +16116,7 @@ var require_axios = __commonJS({
|
|
|
15872
16116
|
const transformStream = new AxiosTransformStream({
|
|
15873
16117
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
15874
16118
|
});
|
|
15875
|
-
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
16119
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3))));
|
|
15876
16120
|
streams.push(transformStream);
|
|
15877
16121
|
}
|
|
15878
16122
|
let responseStream = res;
|
|
@@ -16138,6 +16382,12 @@ var require_axios = __commonJS({
|
|
|
16138
16382
|
var headersToObject = (thing) => thing instanceof AxiosHeaders ? {
|
|
16139
16383
|
...thing
|
|
16140
16384
|
} : thing;
|
|
16385
|
+
var ownEnumerableKeys = (thing) => {
|
|
16386
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16387
|
+
return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable));
|
|
16388
|
+
}
|
|
16389
|
+
return Object.keys(thing);
|
|
16390
|
+
};
|
|
16141
16391
|
function mergeConfig(config1, config2) {
|
|
16142
16392
|
config1 = config1 || {};
|
|
16143
16393
|
config2 = config2 || {};
|
|
@@ -16238,7 +16488,7 @@ var require_axios = __commonJS({
|
|
|
16238
16488
|
validateStatus: mergeDirectKeys,
|
|
16239
16489
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
16240
16490
|
};
|
|
16241
|
-
utils$1.forEach(
|
|
16491
|
+
utils$1.forEach(ownEnumerableKeys({
|
|
16242
16492
|
...config1,
|
|
16243
16493
|
...config2
|
|
16244
16494
|
}), function computeConfigValue(prop) {
|
|
@@ -16258,18 +16508,6 @@ var require_axios = __commonJS({
|
|
|
16258
16508
|
}
|
|
16259
16509
|
return config;
|
|
16260
16510
|
}
|
|
16261
|
-
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
16262
|
-
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
16263
|
-
if (policy !== "content-only") {
|
|
16264
|
-
headers.set(formHeaders);
|
|
16265
|
-
return;
|
|
16266
|
-
}
|
|
16267
|
-
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
16268
|
-
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
16269
|
-
headers.set(key, val);
|
|
16270
|
-
}
|
|
16271
|
-
});
|
|
16272
|
-
}
|
|
16273
16511
|
var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
16274
16512
|
function resolveConfig(config) {
|
|
16275
16513
|
const newConfig = mergeConfig({}, config);
|
|
@@ -16475,9 +16713,18 @@ var require_axios = __commonJS({
|
|
|
16475
16713
|
});
|
|
16476
16714
|
signals = null;
|
|
16477
16715
|
};
|
|
16478
|
-
signals.forEach((signal2) =>
|
|
16479
|
-
|
|
16480
|
-
|
|
16716
|
+
signals.forEach((signal2) => {
|
|
16717
|
+
if (aborted) {
|
|
16718
|
+
return;
|
|
16719
|
+
}
|
|
16720
|
+
if (signal2.aborted) {
|
|
16721
|
+
onabort.call(signal2);
|
|
16722
|
+
return;
|
|
16723
|
+
}
|
|
16724
|
+
signal2.addEventListener("abort", onabort, {
|
|
16725
|
+
once: true
|
|
16726
|
+
});
|
|
16727
|
+
});
|
|
16481
16728
|
const {
|
|
16482
16729
|
signal
|
|
16483
16730
|
} = controller;
|
|
@@ -17223,16 +17470,29 @@ var require_axios = __commonJS({
|
|
|
17223
17470
|
const onFulfilled = requestInterceptorChain[i++];
|
|
17224
17471
|
const onRejected = requestInterceptorChain[i++];
|
|
17225
17472
|
try {
|
|
17226
|
-
newConfig = onFulfilled(newConfig);
|
|
17473
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
17227
17474
|
} catch (error) {
|
|
17228
|
-
onRejected
|
|
17475
|
+
if (!onRejected) {
|
|
17476
|
+
promise = Promise.reject(error);
|
|
17477
|
+
break;
|
|
17478
|
+
}
|
|
17479
|
+
try {
|
|
17480
|
+
const rejectedResult = onRejected.call(this, error);
|
|
17481
|
+
if (utils$1.isThenable(rejectedResult)) {
|
|
17482
|
+
promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
|
|
17483
|
+
}
|
|
17484
|
+
} catch (rejectedError) {
|
|
17485
|
+
promise = Promise.reject(rejectedError);
|
|
17486
|
+
}
|
|
17229
17487
|
break;
|
|
17230
17488
|
}
|
|
17231
17489
|
}
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17490
|
+
if (!promise) {
|
|
17491
|
+
try {
|
|
17492
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
17493
|
+
} catch (error) {
|
|
17494
|
+
promise = Promise.reject(error);
|
|
17495
|
+
}
|
|
17236
17496
|
}
|
|
17237
17497
|
i = 0;
|
|
17238
17498
|
len = responseInterceptorChain.length;
|
|
@@ -17441,6 +17701,7 @@ var require_axios = __commonJS({
|
|
|
17441
17701
|
LoopDetected: 508,
|
|
17442
17702
|
NotExtended: 510,
|
|
17443
17703
|
NetworkAuthenticationRequired: 511,
|
|
17704
|
+
WebServerReturnsAnUnknownError: 520,
|
|
17444
17705
|
WebServerIsDown: 521,
|
|
17445
17706
|
ConnectionTimedOut: 522,
|
|
17446
17707
|
OriginIsUnreachable: 523,
|
|
@@ -24288,7 +24549,7 @@ mime-types/index.js:
|
|
|
24288
24549
|
*)
|
|
24289
24550
|
|
|
24290
24551
|
axios/dist/node/axios.cjs:
|
|
24291
|
-
(*! Axios v1.
|
|
24552
|
+
(*! Axios v1.19.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
24292
24553
|
|
|
24293
24554
|
safe-buffer/index.js:
|
|
24294
24555
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|