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; 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)
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long