@@ -43908,6 +43908,8 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
43908
43908
const map = new YAMLMap.YAMLMap(ctx.schema);
43909
43909
map.flow = true;
43910
43910
map.items.push(pair);
43911
+ const endRange = (valueNode ?? keyNode).range;
43912
+ map.range = [keyNode.range[0], endRange[1], endRange[2]];
43911
43913
coll.items.push(map);
43912
43914
}
43913
43915
offset = valueNode ? valueNode.range[2] : valueProps.end;
@@ -44040,7 +44042,7 @@ function foldLines(source) {
44040
44042
first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
44041
44043
line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
44042
44044
}
44043
- catch (_) {
44045
+ catch {
44044
44046
first = /(.*?)[ \t]*\r?\n/sy;
44045
44047
line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
44046
44048
}
@@ -44920,6 +44922,7 @@ function applyReviver(reviver, obj, key, val) {
44920
44922
for (let i = 0, len = val.length; i < len; ++i) {
44921
44923
const v0 = val[i];
44922
44924
const v1 = applyReviver(reviver, val, String(i), v0);
44925
+ // eslint-disable-next-line @typescript-eslint/no-array-delete
44923
44926
if (v1 === undefined)
44924
44927
delete val[i];
44925
44928
else if (v1 !== v0)
@@ -45390,8 +45393,6 @@ function debug(logLevel, ...messages) {
45390
45393
}
45391
45394
function warn(logLevel, warning) {
45392
45395
if (logLevel === 'debug' || logLevel === 'warn') {
45393
- // https://github.com/typescript-eslint/typescript-eslint/issues/7478
45394
- // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
45395
45396
if (typeof process !== 'undefined' && process.emitWarning)
45396
45397
process.emitWarning(warning);
45397
45398
else
@@ -48223,7 +48224,9 @@ class Parser {
48223
48224
const sep = it.sep;
48224
48225
sep.push(this.sourceToken);
48225
48226
// @ts-expect-error type guard is wrong here
48226
- delete it.key, delete it.sep;
48227
+ delete it.key;
48228
+ // @ts-expect-error type guard is wrong here
48229
+ delete it.sep;
48227
48230
this.stack.push({
48228
48231
type: 'block-map',
48229
48232
offset: this.offset,
0 commit comments