adding dist
This commit is contained in:
+7
-4
@@ -15568,7 +15568,7 @@ function composeNode(ctx, token, props, onError) {
|
|||||||
node.srcToken = token;
|
node.srcToken = token;
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag }, onError) {
|
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
|
||||||
const token = {
|
const token = {
|
||||||
type: 'scalar',
|
type: 'scalar',
|
||||||
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
|
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
|
||||||
@@ -15583,8 +15583,10 @@ function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anch
|
|||||||
}
|
}
|
||||||
if (spaceBefore)
|
if (spaceBefore)
|
||||||
node.spaceBefore = true;
|
node.spaceBefore = true;
|
||||||
if (comment)
|
if (comment) {
|
||||||
node.comment = comment;
|
node.comment = comment;
|
||||||
|
node.range[2] = end;
|
||||||
|
}
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
function composeAlias({ options }, { offset, source, end }, onError) {
|
function composeAlias({ options }, { offset, source, end }, onError) {
|
||||||
@@ -17594,7 +17596,7 @@ function createNode(value, tagName, ctx) {
|
|||||||
if (value instanceof String ||
|
if (value instanceof String ||
|
||||||
value instanceof Number ||
|
value instanceof Number ||
|
||||||
value instanceof Boolean ||
|
value instanceof Boolean ||
|
||||||
(typeof BigInt === 'function' && value instanceof BigInt) // not supported everywhere
|
(typeof BigInt !== 'undefined' && value instanceof BigInt) // not supported everywhere
|
||||||
) {
|
) {
|
||||||
// https://tc39.es/ecma262/#sec-serializejsonproperty
|
// https://tc39.es/ecma262/#sec-serializejsonproperty
|
||||||
value = value.valueOf();
|
value = value.valueOf();
|
||||||
@@ -22177,7 +22179,8 @@ class YAMLSet extends YAMLMap.YAMLMap {
|
|||||||
let pair;
|
let pair;
|
||||||
if (Node.isPair(key))
|
if (Node.isPair(key))
|
||||||
pair = key;
|
pair = key;
|
||||||
else if (typeof key === 'object' &&
|
else if (key &&
|
||||||
|
typeof key === 'object' &&
|
||||||
'key' in key &&
|
'key' in key &&
|
||||||
'value' in key &&
|
'value' in key &&
|
||||||
key.value === null)
|
key.value === null)
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user