adding dist

This commit is contained in:
Federico Builes
2022-10-03 11:29:46 +02:00
parent ec636f3d19
commit 1b8bd021a3
2 changed files with 8 additions and 5 deletions
Generated Vendored
+7 -4
View File
@@ -15568,7 +15568,7 @@ function composeNode(ctx, token, props, onError) {
node.srcToken = token;
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 = {
type: 'scalar',
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
@@ -15583,8 +15583,10 @@ function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anch
}
if (spaceBefore)
node.spaceBefore = true;
if (comment)
if (comment) {
node.comment = comment;
node.range[2] = end;
}
return node;
}
function composeAlias({ options }, { offset, source, end }, onError) {
@@ -17594,7 +17596,7 @@ function createNode(value, tagName, ctx) {
if (value instanceof String ||
value instanceof Number ||
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
value = value.valueOf();
@@ -22177,7 +22179,8 @@ class YAMLSet extends YAMLMap.YAMLMap {
let pair;
if (Node.isPair(key))
pair = key;
else if (typeof key === 'object' &&
else if (key &&
typeof key === 'object' &&
'key' in key &&
'value' in key &&
key.value === null)
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long