@@ -43908,6 +43908,8 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
4390843908 const map = new YAMLMap.YAMLMap(ctx.schema);
4390943909 map.flow = true;
4391043910 map.items.push(pair);
43911+ const endRange = (valueNode ?? keyNode).range;
43912+ map.range = [keyNode.range[0], endRange[1], endRange[2]];
4391143913 coll.items.push(map);
4391243914 }
4391343915 offset = valueNode ? valueNode.range[2] : valueProps.end;
@@ -44040,7 +44042,7 @@ function foldLines(source) {
4404044042 first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
4404144043 line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
4404244044 }
44043- catch (_) {
44045+ catch {
4404444046 first = /(.*?)[ \t]*\r?\n/sy;
4404544047 line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
4404644048 }
@@ -44920,6 +44922,7 @@ function applyReviver(reviver, obj, key, val) {
4492044922 for (let i = 0, len = val.length; i < len; ++i) {
4492144923 const v0 = val[i];
4492244924 const v1 = applyReviver(reviver, val, String(i), v0);
44925+ // eslint-disable-next-line @typescript-eslint/no-array-delete
4492344926 if (v1 === undefined)
4492444927 delete val[i];
4492544928 else if (v1 !== v0)
@@ -45390,8 +45393,6 @@ function debug(logLevel, ...messages) {
4539045393}
4539145394function warn(logLevel, warning) {
4539245395 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
4539545396 if (typeof process !== 'undefined' && process.emitWarning)
4539645397 process.emitWarning(warning);
4539745398 else
@@ -48223,7 +48224,9 @@ class Parser {
4822348224 const sep = it.sep;
4822448225 sep.push(this.sourceToken);
4822548226 // @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;
4822748230 this.stack.push({
4822848231 type: 'block-map',
4822948232 offset: this.offset,
0 commit comments