Build dist for Dependabot update

This commit is contained in:
github-actions[bot]
2026-03-07 11:06:56 +00:00
parent ffa79a677d
commit c4e7e733d9
2 changed files with 78 additions and 106 deletions

92
dist/save-cache/index.js generated vendored
View File

@@ -93485,7 +93485,7 @@ function getStringEnd(str, seek) {
} }
// dist/date.js // dist/date.js
var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i; var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
var TomlDate = class _TomlDate extends Date { var TomlDate = class _TomlDate extends Date {
#hasDate = false; #hasDate = false;
#hasTime = false; #hasTime = false;
@@ -93580,13 +93580,14 @@ var TomlDate = class _TomlDate extends Date {
var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/; var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/; var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
var LEADING_ZERO = /^[+-]?0[0-9_]/; var LEADING_ZERO = /^[+-]?0[0-9_]/;
var ESCAPE_REGEX = /^[0-9a-f]{4,8}$/i; var ESCAPE_REGEX = /^[0-9a-f]{2,8}$/i;
var ESC_MAP = { var ESC_MAP = {
b: "\b", b: "\b",
t: " ", t: " ",
n: "\n", n: "\n",
f: "\f", f: "\f",
r: "\r", r: "\r",
e: "\x1B",
'"': '"', '"': '"',
"\\": "\\" "\\": "\\"
}; };
@@ -93621,8 +93622,8 @@ function parseString(str, ptr = 0, endPtr = str.length) {
} }
if (isEscape) { if (isEscape) {
isEscape = false; isEscape = false;
if (c === "u" || c === "U") { if (c === "x" || c === "u" || c === "U") {
let code = str.slice(ptr, ptr += c === "u" ? 4 : 8); let code = str.slice(ptr, ptr += c === "x" ? 2 : c === "u" ? 4 : 8);
if (!ESCAPE_REGEX.test(code)) { if (!ESCAPE_REGEX.test(code)) {
throw new TomlError("invalid unicode escape", { throw new TomlError("invalid unicode escape", {
toml: str, toml: str,
@@ -93715,24 +93716,14 @@ function parseValue(value, toml, ptr, integersAsBigInt) {
} }
// dist/extract.js // dist/extract.js
function sliceAndTrimEndOf(str, startPtr, endPtr, allowNewLines) { function sliceAndTrimEndOf(str, startPtr, endPtr) {
let value = str.slice(startPtr, endPtr); let value = str.slice(startPtr, endPtr);
let commentIdx = value.indexOf("#"); let commentIdx = value.indexOf("#");
if (commentIdx > -1) { if (commentIdx > -1) {
skipComment(str, commentIdx); skipComment(str, commentIdx);
value = value.slice(0, commentIdx); value = value.slice(0, commentIdx);
} }
let trimmed = value.trimEnd(); return [value.trimEnd(), commentIdx];
if (!allowNewLines) {
let newlineIdx = value.indexOf("\n", trimmed.length);
if (newlineIdx > -1) {
throw new TomlError("newlines are not allowed in inline tables", {
toml: str,
ptr: startPtr + newlineIdx
});
}
}
return [trimmed, commentIdx];
} }
function extractValue(str, ptr, end, depth, integersAsBigInt) { function extractValue(str, ptr, end, depth, integersAsBigInt) {
if (depth === 0) { if (depth === 0) {
@@ -93744,24 +93735,25 @@ function extractValue(str, ptr, end, depth, integersAsBigInt) {
let c = str[ptr]; let c = str[ptr];
if (c === "[" || c === "{") { if (c === "[" || c === "{") {
let [value, endPtr2] = c === "[" ? parseArray(str, ptr, depth, integersAsBigInt) : parseInlineTable(str, ptr, depth, integersAsBigInt); let [value, endPtr2] = c === "[" ? parseArray(str, ptr, depth, integersAsBigInt) : parseInlineTable(str, ptr, depth, integersAsBigInt);
let newPtr = end ? skipUntil(str, endPtr2, ",", end) : endPtr2; if (end) {
if (endPtr2 - newPtr && end === "}") { endPtr2 = skipVoid(str, endPtr2);
let nextNewLine = indexOfNewline(str, endPtr2, newPtr); if (str[endPtr2] === ",")
if (nextNewLine > -1) { endPtr2++;
throw new TomlError("newlines are not allowed in inline tables", { else if (str[endPtr2] !== end) {
throw new TomlError("expected comma or end of structure", {
toml: str, toml: str,
ptr: nextNewLine ptr: endPtr2
}); });
} }
} }
return [value, newPtr]; return [value, endPtr2];
} }
let endPtr; let endPtr;
if (c === '"' || c === "'") { if (c === '"' || c === "'") {
endPtr = getStringEnd(str, ptr); endPtr = getStringEnd(str, ptr);
let parsed = parseString(str, ptr, endPtr); let parsed = parseString(str, ptr, endPtr);
if (end) { if (end) {
endPtr = skipVoid(str, endPtr, end !== "]"); endPtr = skipVoid(str, endPtr);
if (str[endPtr] && str[endPtr] !== "," && str[endPtr] !== end && str[endPtr] !== "\n" && str[endPtr] !== "\r") { if (str[endPtr] && str[endPtr] !== "," && str[endPtr] !== end && str[endPtr] !== "\n" && str[endPtr] !== "\r") {
throw new TomlError("unexpected character encountered", { throw new TomlError("unexpected character encountered", {
toml: str, toml: str,
@@ -93773,7 +93765,7 @@ function extractValue(str, ptr, end, depth, integersAsBigInt) {
return [parsed, endPtr]; return [parsed, endPtr];
} }
endPtr = skipUntil(str, ptr, ",", end); endPtr = skipUntil(str, ptr, ",", end);
let slice = sliceAndTrimEndOf(str, ptr, endPtr - +(str[endPtr - 1] === ","), end === "]"); let slice = sliceAndTrimEndOf(str, ptr, endPtr - +(str[endPtr - 1] === ","));
if (!slice[0]) { if (!slice[0]) {
throw new TomlError("incomplete key-value declaration: no value specified", { throw new TomlError("incomplete key-value declaration: no value specified", {
toml: str, toml: str,
@@ -93863,17 +93855,16 @@ function parseInlineTable(str, ptr, depth, integersAsBigInt) {
let res = {}; let res = {};
let seen = /* @__PURE__ */ new Set(); let seen = /* @__PURE__ */ new Set();
let c; let c;
let comma = 0;
ptr++; ptr++;
while ((c = str[ptr++]) !== "}" && c) { while ((c = str[ptr++]) !== "}" && c) {
let err = { toml: str, ptr: ptr - 1 }; if (c === ",") {
if (c === "\n") { throw new TomlError("expected value, found comma", {
throw new TomlError("newlines are not allowed in inline tables", err); toml: str,
} else if (c === "#") { ptr: ptr - 1
throw new TomlError("inline tables cannot contain comments", err); });
} else if (c === ",") { } else if (c === "#")
throw new TomlError("expected key-value, found comma", err); ptr = skipComment(str, ptr);
} else if (c !== " " && c !== " ") { else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
let k; let k;
let t = res; let t = res;
let hasOwn = false; let hasOwn = false;
@@ -93902,15 +93893,8 @@ function parseInlineTable(str, ptr, depth, integersAsBigInt) {
seen.add(value); seen.add(value);
t[k] = value; t[k] = value;
ptr = valueEndPtr; ptr = valueEndPtr;
comma = str[ptr - 1] === "," ? ptr - 1 : 0;
} }
} }
if (comma) {
throw new TomlError("trailing commas are not allowed in inline tables", {
toml: str,
ptr: comma
});
}
if (!c) { if (!c) {
throw new TomlError("unfinished table encountered", { throw new TomlError("unfinished table encountered", {
toml: str, toml: str,
@@ -94162,14 +94146,13 @@ function stringifyArrayTable(array, key, depth, numberAsFloat) {
} }
let res = ""; let res = "";
for (let i = 0; i < array.length; i++) { for (let i = 0; i < array.length; i++) {
res += `[[${key}]] res += `${res && "\n"}[[${key}]]
`; `;
res += stringifyTable(array[i], key, depth, numberAsFloat); res += stringifyTable(0, array[i], key, depth, numberAsFloat);
res += "\n\n";
} }
return res; return res;
} }
function stringifyTable(obj, prefix, depth, numberAsFloat) { function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
if (depth === 0) { if (depth === 0) {
throw new Error("Could not stringify the object: maximum object depth exceeded"); throw new Error("Could not stringify the object: maximum object depth exceeded");
} }
@@ -94185,13 +94168,10 @@ function stringifyTable(obj, prefix, depth, numberAsFloat) {
} }
let key = BARE_KEY.test(k) ? k : formatString(k); let key = BARE_KEY.test(k) ? k : formatString(k);
if (type === "array" && isArrayOfTables(obj[k])) { if (type === "array" && isArrayOfTables(obj[k])) {
tables += stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat); tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat);
} else if (type === "object") { } else if (type === "object") {
let tblKey = prefix ? `${prefix}.${key}` : key; let tblKey = prefix ? `${prefix}.${key}` : key;
tables += `[${tblKey}] tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat);
`;
tables += stringifyTable(obj[k], tblKey, depth - 1, numberAsFloat);
tables += "\n\n";
} else { } else {
preamble += key; preamble += key;
preamble += " = "; preamble += " = ";
@@ -94200,14 +94180,20 @@ function stringifyTable(obj, prefix, depth, numberAsFloat) {
} }
} }
} }
return `${preamble} if (tableKey && (preamble || !tables))
${tables}`.trim(); preamble = preamble ? `[${tableKey}]
${preamble}` : `[${tableKey}]`;
return preamble && tables ? `${preamble}
${tables}` : preamble || tables;
} }
function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) { function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) {
if (extendedTypeOf(obj) !== "object") { if (extendedTypeOf(obj) !== "object") {
throw new TypeError("stringify can only be called with an object"); throw new TypeError("stringify can only be called with an object");
} }
return stringifyTable(obj, "", maxDepth, numbersAsFloat); let str = stringifyTable(0, obj, "", maxDepth, numbersAsFloat);
if (str[str.length - 1] !== "\n")
return str + "\n";
return str;
} }
// dist/index.js // dist/index.js

92
dist/setup/index.js generated vendored
View File

@@ -99794,7 +99794,7 @@ function getStringEnd(str, seek) {
} }
// dist/date.js // dist/date.js
var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i; var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
var TomlDate = class _TomlDate extends Date { var TomlDate = class _TomlDate extends Date {
#hasDate = false; #hasDate = false;
#hasTime = false; #hasTime = false;
@@ -99889,13 +99889,14 @@ var TomlDate = class _TomlDate extends Date {
var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/; var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/; var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
var LEADING_ZERO = /^[+-]?0[0-9_]/; var LEADING_ZERO = /^[+-]?0[0-9_]/;
var ESCAPE_REGEX = /^[0-9a-f]{4,8}$/i; var ESCAPE_REGEX = /^[0-9a-f]{2,8}$/i;
var ESC_MAP = { var ESC_MAP = {
b: "\b", b: "\b",
t: " ", t: " ",
n: "\n", n: "\n",
f: "\f", f: "\f",
r: "\r", r: "\r",
e: "\x1B",
'"': '"', '"': '"',
"\\": "\\" "\\": "\\"
}; };
@@ -99930,8 +99931,8 @@ function parseString(str, ptr = 0, endPtr = str.length) {
} }
if (isEscape) { if (isEscape) {
isEscape = false; isEscape = false;
if (c === "u" || c === "U") { if (c === "x" || c === "u" || c === "U") {
let code = str.slice(ptr, ptr += c === "u" ? 4 : 8); let code = str.slice(ptr, ptr += c === "x" ? 2 : c === "u" ? 4 : 8);
if (!ESCAPE_REGEX.test(code)) { if (!ESCAPE_REGEX.test(code)) {
throw new TomlError("invalid unicode escape", { throw new TomlError("invalid unicode escape", {
toml: str, toml: str,
@@ -100024,24 +100025,14 @@ function parseValue(value, toml, ptr, integersAsBigInt) {
} }
// dist/extract.js // dist/extract.js
function sliceAndTrimEndOf(str, startPtr, endPtr, allowNewLines) { function sliceAndTrimEndOf(str, startPtr, endPtr) {
let value = str.slice(startPtr, endPtr); let value = str.slice(startPtr, endPtr);
let commentIdx = value.indexOf("#"); let commentIdx = value.indexOf("#");
if (commentIdx > -1) { if (commentIdx > -1) {
skipComment(str, commentIdx); skipComment(str, commentIdx);
value = value.slice(0, commentIdx); value = value.slice(0, commentIdx);
} }
let trimmed = value.trimEnd(); return [value.trimEnd(), commentIdx];
if (!allowNewLines) {
let newlineIdx = value.indexOf("\n", trimmed.length);
if (newlineIdx > -1) {
throw new TomlError("newlines are not allowed in inline tables", {
toml: str,
ptr: startPtr + newlineIdx
});
}
}
return [trimmed, commentIdx];
} }
function extractValue(str, ptr, end, depth, integersAsBigInt) { function extractValue(str, ptr, end, depth, integersAsBigInt) {
if (depth === 0) { if (depth === 0) {
@@ -100053,24 +100044,25 @@ function extractValue(str, ptr, end, depth, integersAsBigInt) {
let c = str[ptr]; let c = str[ptr];
if (c === "[" || c === "{") { if (c === "[" || c === "{") {
let [value, endPtr2] = c === "[" ? parseArray(str, ptr, depth, integersAsBigInt) : parseInlineTable(str, ptr, depth, integersAsBigInt); let [value, endPtr2] = c === "[" ? parseArray(str, ptr, depth, integersAsBigInt) : parseInlineTable(str, ptr, depth, integersAsBigInt);
let newPtr = end ? skipUntil(str, endPtr2, ",", end) : endPtr2; if (end) {
if (endPtr2 - newPtr && end === "}") { endPtr2 = skipVoid(str, endPtr2);
let nextNewLine = indexOfNewline(str, endPtr2, newPtr); if (str[endPtr2] === ",")
if (nextNewLine > -1) { endPtr2++;
throw new TomlError("newlines are not allowed in inline tables", { else if (str[endPtr2] !== end) {
throw new TomlError("expected comma or end of structure", {
toml: str, toml: str,
ptr: nextNewLine ptr: endPtr2
}); });
} }
} }
return [value, newPtr]; return [value, endPtr2];
} }
let endPtr; let endPtr;
if (c === '"' || c === "'") { if (c === '"' || c === "'") {
endPtr = getStringEnd(str, ptr); endPtr = getStringEnd(str, ptr);
let parsed = parseString(str, ptr, endPtr); let parsed = parseString(str, ptr, endPtr);
if (end) { if (end) {
endPtr = skipVoid(str, endPtr, end !== "]"); endPtr = skipVoid(str, endPtr);
if (str[endPtr] && str[endPtr] !== "," && str[endPtr] !== end && str[endPtr] !== "\n" && str[endPtr] !== "\r") { if (str[endPtr] && str[endPtr] !== "," && str[endPtr] !== end && str[endPtr] !== "\n" && str[endPtr] !== "\r") {
throw new TomlError("unexpected character encountered", { throw new TomlError("unexpected character encountered", {
toml: str, toml: str,
@@ -100082,7 +100074,7 @@ function extractValue(str, ptr, end, depth, integersAsBigInt) {
return [parsed, endPtr]; return [parsed, endPtr];
} }
endPtr = skipUntil(str, ptr, ",", end); endPtr = skipUntil(str, ptr, ",", end);
let slice = sliceAndTrimEndOf(str, ptr, endPtr - +(str[endPtr - 1] === ","), end === "]"); let slice = sliceAndTrimEndOf(str, ptr, endPtr - +(str[endPtr - 1] === ","));
if (!slice[0]) { if (!slice[0]) {
throw new TomlError("incomplete key-value declaration: no value specified", { throw new TomlError("incomplete key-value declaration: no value specified", {
toml: str, toml: str,
@@ -100172,17 +100164,16 @@ function parseInlineTable(str, ptr, depth, integersAsBigInt) {
let res = {}; let res = {};
let seen = /* @__PURE__ */ new Set(); let seen = /* @__PURE__ */ new Set();
let c; let c;
let comma = 0;
ptr++; ptr++;
while ((c = str[ptr++]) !== "}" && c) { while ((c = str[ptr++]) !== "}" && c) {
let err = { toml: str, ptr: ptr - 1 }; if (c === ",") {
if (c === "\n") { throw new TomlError("expected value, found comma", {
throw new TomlError("newlines are not allowed in inline tables", err); toml: str,
} else if (c === "#") { ptr: ptr - 1
throw new TomlError("inline tables cannot contain comments", err); });
} else if (c === ",") { } else if (c === "#")
throw new TomlError("expected key-value, found comma", err); ptr = skipComment(str, ptr);
} else if (c !== " " && c !== " ") { else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
let k; let k;
let t = res; let t = res;
let hasOwn = false; let hasOwn = false;
@@ -100211,15 +100202,8 @@ function parseInlineTable(str, ptr, depth, integersAsBigInt) {
seen.add(value); seen.add(value);
t[k] = value; t[k] = value;
ptr = valueEndPtr; ptr = valueEndPtr;
comma = str[ptr - 1] === "," ? ptr - 1 : 0;
} }
} }
if (comma) {
throw new TomlError("trailing commas are not allowed in inline tables", {
toml: str,
ptr: comma
});
}
if (!c) { if (!c) {
throw new TomlError("unfinished table encountered", { throw new TomlError("unfinished table encountered", {
toml: str, toml: str,
@@ -100471,14 +100455,13 @@ function stringifyArrayTable(array, key, depth, numberAsFloat) {
} }
let res = ""; let res = "";
for (let i = 0; i < array.length; i++) { for (let i = 0; i < array.length; i++) {
res += `[[${key}]] res += `${res && "\n"}[[${key}]]
`; `;
res += stringifyTable(array[i], key, depth, numberAsFloat); res += stringifyTable(0, array[i], key, depth, numberAsFloat);
res += "\n\n";
} }
return res; return res;
} }
function stringifyTable(obj, prefix, depth, numberAsFloat) { function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
if (depth === 0) { if (depth === 0) {
throw new Error("Could not stringify the object: maximum object depth exceeded"); throw new Error("Could not stringify the object: maximum object depth exceeded");
} }
@@ -100494,13 +100477,10 @@ function stringifyTable(obj, prefix, depth, numberAsFloat) {
} }
let key = BARE_KEY.test(k) ? k : formatString(k); let key = BARE_KEY.test(k) ? k : formatString(k);
if (type === "array" && isArrayOfTables(obj[k])) { if (type === "array" && isArrayOfTables(obj[k])) {
tables += stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat); tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat);
} else if (type === "object") { } else if (type === "object") {
let tblKey = prefix ? `${prefix}.${key}` : key; let tblKey = prefix ? `${prefix}.${key}` : key;
tables += `[${tblKey}] tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat);
`;
tables += stringifyTable(obj[k], tblKey, depth - 1, numberAsFloat);
tables += "\n\n";
} else { } else {
preamble += key; preamble += key;
preamble += " = "; preamble += " = ";
@@ -100509,14 +100489,20 @@ function stringifyTable(obj, prefix, depth, numberAsFloat) {
} }
} }
} }
return `${preamble} if (tableKey && (preamble || !tables))
${tables}`.trim(); preamble = preamble ? `[${tableKey}]
${preamble}` : `[${tableKey}]`;
return preamble && tables ? `${preamble}
${tables}` : preamble || tables;
} }
function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) { function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) {
if (extendedTypeOf(obj) !== "object") { if (extendedTypeOf(obj) !== "object") {
throw new TypeError("stringify can only be called with an object"); throw new TypeError("stringify can only be called with an object");
} }
return stringifyTable(obj, "", maxDepth, numbersAsFloat); let str = stringifyTable(0, obj, "", maxDepth, numbersAsFloat);
if (str[str.length - 1] !== "\n")
return str + "\n";
return str;
} }
// dist/index.js // dist/index.js