chore(deps): roll up Dependabot updates (#1059)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Kevin Stillhammer
2026-09-21 08:40:50 +02:00
committed by GitHub
parent ffe1476305
commit c18668ad3c
6 changed files with 628 additions and 702 deletions
Generated Vendored
+264 -301
View File
@@ -63908,57 +63908,111 @@ ${codeblock}`, options);
}
};
// node_modules/smol-toml/dist/util.js
function indexOfNewline(str, start = 0) {
let idx = str.indexOf("\n", start);
if (str.charCodeAt(idx - 1) === 13)
idx--;
return idx;
}
function skipComment(ctx) {
for (; ctx.p < ctx.s.length; ctx.p++) {
let c = ctx.s.charCodeAt(ctx.p);
if (c === 10)
break;
if (c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10) {
ctx.p++;
break;
}
if (c < 32 && c !== 9 || c === 127) {
throw new TomlError("control characters are not allowed in comments", {
toml: ctx.s,
ptr: ctx.p
});
}
}
}
function skipVoid(ctx, banNewLines, banComments) {
let c;
while (1) {
while ((c = ctx.s.charCodeAt(ctx.p)) === 32 || c === 9 || !banNewLines && (c === 10 || c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10))
ctx.p++;
if (banComments || c !== 35)
break;
skipComment(ctx);
}
}
function skipUntil(ctx, sep8, end) {
let ptr = ctx.p;
if (!end) {
ptr = indexOfNewline(ctx.s, ptr);
ctx.p = ptr < 0 ? ctx.s.length : ptr;
return;
}
for (; ctx.p < ctx.s.length; ctx.p++) {
let c = ctx.s.charCodeAt(ctx.p);
if (c === 35) {
skipComment(ctx);
} else if (c === end || c === sep8) {
return;
}
}
throw new TomlError("cannot find end of structure", {
toml: ctx.s,
ptr
});
}
// node_modules/smol-toml/dist/primitive.js
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 LEADING_ZERO = /^[+-]?0[0-9_]/;
function parseString(str, ptr) {
let c = str[ptr++];
function parseString(ctx) {
let start = ctx.p;
let c = ctx.s.charCodeAt(ctx.p++);
let first = c;
let isLiteral = c === "'";
let isMultiline = c === str[ptr] && c === str[ptr + 1];
let isLiteral = c === 39;
let isMultiline = c === ctx.s.charCodeAt(ctx.p) && c === ctx.s.charCodeAt(ctx.p + 1);
if (isMultiline) {
if (str[ptr += 2] === "\n")
ptr++;
else if (str[ptr] === "\r" && str[ptr + 1] === "\n")
ptr += 2;
if ((c = ctx.s.charCodeAt(ctx.p += 2)) === 10)
ctx.p++;
else if (c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10)
ctx.p += 2;
}
let parsed = "";
let sliceStart = ptr;
let sliceStart = ctx.p;
let state3 = 0;
for (let i = ptr; i < str.length; i++) {
c = str[i];
if (isMultiline && (c === "\n" || c === "\r" && str[i + 1] === "\n")) {
for (; ctx.p < ctx.s.length; ctx.p++) {
c = ctx.s.charCodeAt(ctx.p);
if (isMultiline && (c === 10 || c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10)) {
state3 = state3 && 3;
} else if (c < " " && c !== " " || c === "\x7F") {
} else if (c < 32 && c !== 9 || c === 127) {
throw new TomlError("control characters are not allowed in strings", {
toml: str,
ptr: i
toml: ctx.s,
ptr: ctx.p
});
} else if ((!state3 || state3 === 3) && c === first && (!isMultiline || str[i + 1] === first && str[i + 2] === first)) {
} else if ((!state3 || state3 === 3) && c === first && (!isMultiline || ctx.s.charCodeAt(ctx.p + 1) === first && ctx.s.charCodeAt(ctx.p + 2) === first)) {
if (isMultiline) {
if (str[i + 3] === first)
i++;
if (str[i + 3] === first)
i++;
if (ctx.s.charCodeAt(ctx.p + 3) === first)
ctx.p++;
if (ctx.s.charCodeAt(ctx.p + 3) === first)
ctx.p++;
}
return [
// If we're in a newline escape still, then there's nothing to add.
// Also try to avoid concat if there's nothing to add to parsed, or nothing has been added to parsed.
state3 ? parsed : parsed + str.slice(sliceStart, i),
i + (isMultiline ? 3 : 1)
];
if (!state3)
parsed += ctx.s.slice(sliceStart, ctx.p);
ctx.p += isMultiline ? 3 : 1;
return parsed;
} else if (!state3) {
if (!isLiteral && c === "\\") {
parsed += str.slice(sliceStart, sliceStart = i);
if (!isLiteral && c === 92) {
parsed += ctx.s.slice(sliceStart, sliceStart = ctx.p);
state3 = 1;
}
} else if (state3 === 1) {
if (c === "x" || c === "u" || c === "U") {
if (c === 120 || c === 117 || c === 85) {
let value = 0;
let len = c === "x" ? 2 : c === "u" ? 4 : 8;
for (let j = 0; j < len; j++, i++) {
let hex = str.charCodeAt(i + 1);
let len = c === 120 ? 2 : c === 117 ? 4 : 8;
for (let j = 0; j < len; j++, ctx.p++) {
let hex = ctx.s.charCodeAt(ctx.p + 1);
let digit = (
/* 0-9 */
hex >= 48 && hex <= 57 ? hex - 48 : (
@@ -63970,57 +64024,68 @@ function parseString(str, ptr) {
)
);
if (digit < 0)
throw new TomlError("invalid non-hex character in unicode escape", { toml: str, ptr: i + 1 });
throw new TomlError("invalid non-hex character in unicode escape", { toml: ctx.s, ptr: ctx.p + 1 });
value = value << 4 | digit;
}
if (value < 0 || value > 1114111 || value >= 55296 && value <= 57343) {
throw new TomlError("invalid unicode escape", { toml: str, ptr: i });
throw new TomlError("invalid unicode escape", { toml: ctx.s, ptr: ctx.p });
}
parsed += String.fromCodePoint(value);
sliceStart = i + 1;
sliceStart = ctx.p + 1;
state3 = 0;
} else if (c === " " || c === " ") {
} else if (c === 32 || c === 9) {
state3 = 2;
} else {
if (c === "b")
if (c === 98)
parsed += "\b";
else if (c === "t")
else if (c === 116)
parsed += " ";
else if (c === "n")
else if (c === 110)
parsed += "\n";
else if (c === "f")
else if (c === 102)
parsed += "\f";
else if (c === "r")
else if (c === 114)
parsed += "\r";
else if (c === "e")
else if (c === 101)
parsed += "\x1B";
else if (c === '"')
else if (c === 34)
parsed += '"';
else if (c === "\\")
else if (c === 92)
parsed += "\\";
else
throw new TomlError("unrecognized escape sequence", { toml: str, ptr: i });
sliceStart = i + 1;
throw new TomlError("unrecognized escape sequence", { toml: ctx.s, ptr: ctx.p });
sliceStart = ctx.p + 1;
state3 = 0;
}
} else if (c !== " " && c !== " ") {
} else if (c !== 32 && c !== 9) {
if (state3 === 2) {
throw new TomlError("invalid escape: only line-ending whitespace may be escaped", {
toml: str,
toml: ctx.s,
ptr: sliceStart
});
}
state3 = !isLiteral && c === "\\" ? 1 : 0;
sliceStart = i;
state3 = !isLiteral && c === 92 ? 1 : 0;
sliceStart = ctx.p;
}
}
throw new TomlError("unfinished string", { toml: str, ptr });
throw new TomlError("unfinished string", { toml: ctx.s, ptr: start });
}
function parseValue2(value, toml, ptr, integersAsBigInt) {
if (value === "true")
return true;
if (value === "false")
return false;
function sliceAndTrimEndOf(ctx, start, end) {
let value = ctx.s.slice(start, end);
let commentIdx = value.indexOf("#");
if (commentIdx > 0) {
skipComment({ s: value, p: commentIdx, d: 0 });
value = value.slice(0, commentIdx);
}
return value.trimEnd();
}
function parseValue2(ctx, integersAsBigInt, end) {
let ptr = ctx.p;
let err = { toml: ctx.s, ptr };
skipUntil(ctx, 44, end);
let value = sliceAndTrimEndOf(ctx, ptr, ctx.p);
if (!value)
throw new TomlError("incomplete declaration: value expected", err);
if (value === "-inf")
return -Infinity;
if (value === "inf" || value === "+inf")
@@ -64032,25 +64097,16 @@ function parseValue2(value, toml, ptr, integersAsBigInt) {
let isInt = INT_REGEX.test(value);
if (isInt || FLOAT_REGEX.test(value)) {
if (LEADING_ZERO.test(value)) {
throw new TomlError("leading zeroes are not allowed", {
toml,
ptr
});
throw new TomlError("leading zeroes are not allowed", err);
}
value = value.replace(/_/g, "");
let numeric2 = +value;
if (isNaN(numeric2)) {
throw new TomlError("invalid number", {
toml,
ptr
});
throw new TomlError("invalid number", err);
}
if (isInt) {
if ((isInt = !Number.isSafeInteger(numeric2)) && !integersAsBigInt) {
throw new TomlError("integer value cannot be represented losslessly", {
toml,
ptr
});
throw new TomlError("integer value cannot be represented losslessly", err);
}
if (isInt || integersAsBigInt === true)
numeric2 = BigInt(value);
@@ -64058,279 +64114,184 @@ function parseValue2(value, toml, ptr, integersAsBigInt) {
return numeric2;
}
const date = new TomlDate(value);
if (!date.isValid()) {
throw new TomlError("invalid value", {
toml,
ptr
});
}
if (!date.isValid())
throw new TomlError("invalid value", err);
return date;
}
// node_modules/smol-toml/dist/util.js
function indexOfNewline(str, start = 0, end = str.length) {
let idx = str.indexOf("\n", start);
if (str[idx - 1] === "\r")
idx--;
return idx <= end ? idx : -1;
}
function skipComment(str, ptr) {
for (let i = ptr; i < str.length; i++) {
let c = str[i];
if (c === "\n")
return i;
if (c === "\r" && str[i + 1] === "\n")
return i + 1;
if (c < " " && c !== " " || c === "\x7F") {
throw new TomlError("control characters are not allowed in comments", {
toml: str,
// node_modules/smol-toml/dist/extract.js
function extractValue(ctx, end, integersAsBigInt) {
let ptr = ctx.p;
let c = ctx.s.charCodeAt(ptr);
if (c === 91 || c === 123) {
if (!ctx.d--) {
throw new TomlError("document contains excessively nested structures. aborting.", {
toml: ctx.s,
ptr
});
}
let value = c === 91 ? parseArray(ctx, integersAsBigInt) : parseInlineTable(ctx, integersAsBigInt);
ctx.d++;
return value;
}
return str.length;
}
function skipVoid(str, ptr, banNewLines, banComments) {
let c;
while (1) {
while ((c = str[ptr]) === " " || c === " " || !banNewLines && (c === "\n" || c === "\r" && str[ptr + 1] === "\n"))
ptr++;
if (banComments || c !== "#")
break;
ptr = skipComment(str, ptr);
if (c === 34 || c === 39) {
return parseString(ctx);
}
return ptr;
}
function skipUntil(str, ptr, sep8, end, banNewLines = false) {
if (!end) {
ptr = indexOfNewline(str, ptr);
return ptr < 0 ? str.length : ptr;
if (c === 116) {
if (ctx.s.charCodeAt(++ctx.p) !== 114 || ctx.s.charCodeAt(++ctx.p) !== 117 || ctx.s.charCodeAt(++ctx.p) !== 101)
throw new TomlError("invalid value", { toml: ctx.s, ptr });
ctx.p++;
return true;
}
for (let i = ptr; i < str.length; i++) {
let c = str[i];
if (c === "#") {
i = indexOfNewline(str, i);
if (i < 0)
break;
} else if (c === sep8) {
return i + 1;
} else if (c === end || banNewLines && (c === "\n" || c === "\r" && str[i + 1] === "\n")) {
return i;
}
if (c === 102) {
if (ctx.s.charCodeAt(++ctx.p) !== 97 || ctx.s.charCodeAt(++ctx.p) !== 108 || ctx.s.charCodeAt(++ctx.p) !== 115 || ctx.s.charCodeAt(++ctx.p) !== 101)
throw new TomlError("invalid value", { toml: ctx.s, ptr });
ctx.p++;
return false;
}
throw new TomlError("cannot find end of structure", {
toml: str,
ptr
});
}
// node_modules/smol-toml/dist/extract.js
function sliceAndTrimEndOf(str, startPtr, endPtr) {
let value = str.slice(startPtr, endPtr);
let commentIdx = value.indexOf("#");
if (commentIdx > -1) {
skipComment(str, commentIdx);
value = value.slice(0, commentIdx);
}
return [value.trimEnd(), commentIdx];
}
function extractValue(str, ptr, end, depth, integersAsBigInt) {
if (depth === 0) {
throw new TomlError("document contains excessively nested structures. aborting.", {
toml: str,
ptr
});
}
let c = str[ptr];
if (c === "[" || c === "{") {
let [value, endPtr2] = c === "[" ? parseArray(str, ptr, depth, integersAsBigInt) : parseInlineTable(str, ptr, depth, integersAsBigInt);
if (end) {
endPtr2 = skipVoid(str, endPtr2);
if (str[endPtr2] === ",")
endPtr2++;
else if (str[endPtr2] !== end) {
throw new TomlError("expected comma or end of structure", {
toml: str,
ptr: endPtr2
});
}
}
return [value, endPtr2];
}
if (c === '"' || c === "'") {
let [parsed, endPtr2] = parseString(str, ptr);
if (end) {
endPtr2 = skipVoid(str, endPtr2);
if (str[endPtr2] && str[endPtr2] !== "," && str[endPtr2] !== end && str[endPtr2] !== "\n" && str[endPtr2] !== "\r") {
throw new TomlError("unexpected character encountered", {
toml: str,
ptr: endPtr2
});
}
if (str[endPtr2] === ",")
endPtr2++;
}
return [parsed, endPtr2];
}
let endPtr = skipUntil(str, ptr, ",", end);
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (str[endPtr - 1] === "," ? 1 : 0));
if (!slice[0]) {
throw new TomlError("incomplete key-value declaration: no value specified", {
toml: str,
ptr
});
}
if (end && slice[1] > -1) {
endPtr = skipVoid(str, ptr + slice[1]);
if (str[endPtr] === ",")
endPtr++;
}
return [
parseValue2(slice[0], str, ptr, integersAsBigInt),
endPtr
];
return parseValue2(ctx, integersAsBigInt, end);
}
// node_modules/smol-toml/dist/struct.js
var KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/;
function parseKey(str, ptr, end = "=") {
let dot = ptr - 1;
function parseKey(ctx, end = "=") {
let start = ctx.p;
let dot = start - 1;
let parsed = [];
let endPtr = str.indexOf(end, ptr);
let endPtr = ctx.s.indexOf(end, start);
if (endPtr < 0) {
throw new TomlError("incomplete key-value: cannot find end of key", {
toml: str,
ptr
toml: ctx.s,
ptr: start
});
}
do {
let c = str[ptr = ++dot];
if (c !== " " && c !== " ") {
if (c === '"' || c === "'") {
if (c === str[ptr + 1] && c === str[ptr + 2]) {
let c = ctx.s.charCodeAt(ctx.p = ++dot);
if (c !== 32 && c !== 9) {
if (c === 34 || c === 39) {
if (c === ctx.s.charCodeAt(ctx.p + 1) && c === ctx.s.charCodeAt(ctx.p + 2)) {
throw new TomlError("multiline strings are not allowed in keys", {
toml: str,
ptr
toml: ctx.s,
ptr: ctx.p
});
}
let [part, eos] = parseString(str, ptr);
dot = str.indexOf(".", eos);
let strEnd = str.slice(eos, dot < 0 || dot > endPtr ? endPtr : dot);
let part = parseString(ctx);
dot = ctx.s.indexOf(".", ctx.p);
let strEnd = ctx.s.slice(ctx.p, dot < 0 || dot > endPtr ? endPtr : dot);
let newLine = indexOfNewline(strEnd);
if (newLine > -1) {
throw new TomlError("newlines are not allowed in keys", {
toml: str,
ptr: ptr + dot + newLine
toml: ctx.s,
ptr: newLine
});
}
if (strEnd.trimStart()) {
throw new TomlError("found extra tokens after the string part", {
toml: str,
ptr: eos
toml: ctx.s,
ptr: ctx.p
});
}
if (endPtr < eos) {
endPtr = str.indexOf(end, eos);
if (endPtr < ctx.p) {
endPtr = ctx.s.indexOf(end, ctx.p);
if (endPtr < 0) {
throw new TomlError("incomplete key-value: cannot find end of key", {
toml: str,
ptr
toml: ctx.s,
ptr: start
});
}
}
parsed.push(part);
} else {
dot = str.indexOf(".", ptr);
let part = str.slice(ptr, dot < 0 || dot > endPtr ? endPtr : dot);
dot = ctx.s.indexOf(".", ctx.p);
let part = ctx.s.slice(ctx.p, dot < 0 || dot > endPtr ? endPtr : dot);
if (!KEY_PART_RE.test(part)) {
throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", {
toml: str,
ptr
toml: ctx.s,
ptr: ctx.p
});
}
parsed.push(part.trimEnd());
}
}
} while (dot + 1 && dot < endPtr);
return [parsed, skipVoid(str, endPtr + 1, true, true)];
ctx.p = endPtr + 1;
skipVoid(ctx, true, true);
return parsed;
}
function parseInlineTable(str, ptr, depth, integersAsBigInt) {
function parseInlineTable(ctx, integersAsBigInt) {
let res = {};
let seen = /* @__PURE__ */ new Set();
let c;
ptr++;
while ((c = str[ptr++]) !== "}" && c) {
if (c === ",") {
throw new TomlError("expected value, found comma", {
toml: str,
ptr: ptr - 1
});
} else if (c === "#")
ptr = skipComment(str, ptr);
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
let k;
let t = res;
let hasOwn = false;
let [key, keyEndPtr] = parseKey(str, ptr - 1);
for (let i = 0; i < key.length; i++) {
if (i)
t = hasOwn ? t[k] : t[k] = {};
k = key[i];
if ((hasOwn = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) {
throw new TomlError("trying to redefine an already defined value", {
toml: str,
ptr
});
}
if (!hasOwn && k === "__proto__") {
Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
}
}
if (hasOwn) {
ctx.p++;
while (ctx.p < ctx.s.length) {
skipVoid(ctx);
if ((c = ctx.s.charCodeAt(ctx.p)) === 125) {
ctx.p++;
return res;
}
let k;
let t = res;
let hasOwn = false;
let p = ctx.p;
let key = parseKey(ctx);
for (let i = 0; i < key.length; i++) {
if (i)
t = hasOwn ? t[k] : t[k] = {};
k = key[i];
if ((hasOwn = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) {
throw new TomlError("trying to redefine an already defined value", {
toml: str,
ptr
toml: ctx.s,
ptr: p
});
}
let [value, valueEndPtr] = extractValue(str, keyEndPtr, "}", depth - 1, integersAsBigInt);
seen.add(value);
t[k] = value;
ptr = valueEndPtr;
if (!hasOwn && k === "__proto__") {
Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
}
}
if (hasOwn) {
throw new TomlError("trying to redefine an already defined value", {
toml: ctx.s,
ptr: ctx.p
});
}
let value = extractValue(ctx, 125, integersAsBigInt);
seen.add(t[k] = value);
skipVoid(ctx);
if ((c = ctx.s.charCodeAt(ctx.p++)) === 125) {
return res;
}
if (c !== 44) {
throw new TomlError("expected comma or end of structure", { toml: ctx.s, ptr: ctx.p - 1 });
}
}
if (!c) {
throw new TomlError("unfinished table encountered", {
toml: str,
ptr
});
}
return [res, ptr];
throw new TomlError("unfinished table encountered", {
toml: ctx.s,
ptr: ctx.p
});
}
function parseArray(str, ptr, depth, integersAsBigInt) {
function parseArray(ctx, integersAsBigInt) {
let res = [];
let c;
ptr++;
while ((c = str[ptr++]) !== "]" && c) {
if (c === ",") {
throw new TomlError("expected value, found comma", {
toml: str,
ptr: ptr - 1
});
} else if (c === "#")
ptr = skipComment(str, ptr);
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
let e = extractValue(str, ptr - 1, "]", depth - 1, integersAsBigInt);
res.push(e[0]);
ptr = e[1];
ctx.p++;
while (ctx.p < ctx.s.length) {
skipVoid(ctx);
if ((c = ctx.s.charCodeAt(ctx.p)) === 93) {
ctx.p++;
return res;
}
res.push(extractValue(ctx, 93, integersAsBigInt));
skipVoid(ctx);
if ((c = ctx.s.charCodeAt(ctx.p++)) === 93) {
return res;
}
if (c !== 44) {
throw new TomlError("expected comma or end of structure", { toml: ctx.s, ptr: ctx.p - 1 });
}
}
if (!c) {
throw new TomlError("unfinished array encountered", {
toml: str,
ptr
});
}
return [res, ptr];
throw new TomlError("unfinished array encountered", {
toml: ctx.s,
ptr: ctx.p
});
}
// node_modules/smol-toml/dist/parse.js
@@ -64394,25 +64355,29 @@ function peekTable(key, table, meta, type) {
return [k, t, state3.c];
}
function parse3(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
let ctx = { s: toml, p: 0, d: maxDepth };
let res = {};
let meta = {};
let tmp;
let tbl = res;
let m = meta;
for (let ptr = skipVoid(toml, 0); ptr < toml.length; ) {
if (toml[ptr] === "[") {
let isTableArray = toml[++ptr] === "[";
let k = parseKey(toml, ptr += +isTableArray, "]");
skipVoid(ctx);
while (ctx.p < toml.length) {
if (toml.charCodeAt(ctx.p) === 91) {
let isTableArray = toml.charCodeAt(++ctx.p) === 91;
tmp = ctx.p += +isTableArray;
let k = parseKey(ctx, "]");
if (isTableArray) {
if (toml[k[1] - 1] !== "]") {
if (toml.charCodeAt(ctx.p - 1) !== 93) {
throw new TomlError("expected end of table declaration", {
toml,
ptr: k[1] - 1
ptr: ctx.p - 1
});
}
k[1]++;
ctx.p++;
}
let p = peekTable(
k[0],
k,
res,
meta,
isTableArray ? 2 : 1
@@ -64421,16 +64386,16 @@ function parse3(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
if (!p) {
throw new TomlError("trying to redefine an already defined table or value", {
toml,
ptr
ptr: tmp
});
}
m = p[2];
tbl = p[1];
ptr = k[1];
} else {
let k = parseKey(toml, ptr);
tmp = ctx.p;
let k = parseKey(ctx);
let p = peekTable(
k[0],
k,
tbl,
m,
0
@@ -64439,21 +64404,19 @@ function parse3(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
if (!p) {
throw new TomlError("trying to redefine an already defined table or value", {
toml,
ptr
ptr: tmp
});
}
let v = extractValue(toml, k[1], void 0, maxDepth, integersAsBigInt);
p[1][p[0]] = v[0];
ptr = v[1];
p[1][p[0]] = extractValue(ctx, void 0, integersAsBigInt);
}
ptr = skipVoid(toml, ptr, true);
if (toml[ptr] && toml[ptr] !== "\n" && toml[ptr] !== "\r") {
skipVoid(ctx, true);
if (ctx.p < toml.length && (tmp = toml.charCodeAt(ctx.p)) !== 10 && tmp !== 13) {
throw new TomlError("each key-value declaration must be followed by an end-of-line", {
toml,
ptr
ptr: ctx.p
});
}
ptr = skipVoid(toml, ptr);
skipVoid(ctx);
}
return res;
}
@@ -64910,8 +64873,8 @@ undici/lib/web/websocket/frame.js:
smol-toml/dist/date.js:
smol-toml/dist/error.js:
smol-toml/dist/primitive.js:
smol-toml/dist/util.js:
smol-toml/dist/primitive.js:
smol-toml/dist/extract.js:
smol-toml/dist/struct.js:
smol-toml/dist/parse.js: