mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2026-01-10 21:41:42 -07:00
node_modules: update (#127)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
2
node_modules/yaml/browser/dist/stringify/stringifyNumber.js
generated
vendored
2
node_modules/yaml/browser/dist/stringify/stringifyNumber.js
generated
vendored
@@ -4,7 +4,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
||||
const num = typeof value === 'number' ? value : Number(value);
|
||||
if (!isFinite(num))
|
||||
return isNaN(num) ? '.nan' : num < 0 ? '-.inf' : '.inf';
|
||||
let n = JSON.stringify(value);
|
||||
let n = Object.is(value, -0) ? '-0' : JSON.stringify(value);
|
||||
if (!format &&
|
||||
minFractionDigits &&
|
||||
(!tag || tag === 'tag:yaml.org,2002:float') &&
|
||||
|
||||
2
node_modules/yaml/browser/dist/stringify/stringifyPair.js
generated
vendored
2
node_modules/yaml/browser/dist/stringify/stringifyPair.js
generated
vendored
@@ -101,7 +101,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
||||
ws += `\n${indentComment(cs, ctx.indent)}`;
|
||||
}
|
||||
if (valueStr === '' && !ctx.inFlow) {
|
||||
if (ws === '\n')
|
||||
if (ws === '\n' && valueComment)
|
||||
ws = '\n\n';
|
||||
}
|
||||
else {
|
||||
|
||||
2
node_modules/yaml/browser/dist/stringify/stringifyString.js
generated
vendored
2
node_modules/yaml/browser/dist/stringify/stringifyString.js
generated
vendored
@@ -159,7 +159,7 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
|
||||
const { blockQuote, commentString, lineWidth } = ctx.options;
|
||||
// 1. Block can't end in whitespace unless the last line is non-empty.
|
||||
// 2. Strings consisting of only whitespace are best rendered explicitly.
|
||||
if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
|
||||
if (!blockQuote || /\n[\t ]+$/.test(value)) {
|
||||
return quotedString(value, ctx);
|
||||
}
|
||||
const indent = ctx.indent ||
|
||||
|
||||
Reference in New Issue
Block a user