update dist

This commit is contained in:
Justin Holguín
2023-09-06 20:38:47 +00:00
committed by GitHub
parent 726ffc8aa8
commit ffaf251c92
2 changed files with 9 additions and 6 deletions
Generated Vendored
+8 -5
View File
@@ -52606,6 +52606,8 @@ function debug(logLevel, ...messages) {
} }
function warn(logLevel, warning) { function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') { if (logLevel === 'debug' || logLevel === 'warn') {
// https://github.com/typescript-eslint/typescript-eslint/issues/7478
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof process !== 'undefined' && process.emitWarning) if (typeof process !== 'undefined' && process.emitWarning)
process.emitWarning(warning); process.emitWarning(warning);
else else
@@ -53387,7 +53389,7 @@ function stringifyKey(key, jsKey, ctx) {
return ''; return '';
if (typeof jsKey !== 'object') if (typeof jsKey !== 'object')
return String(jsKey); return String(jsKey);
if (identity.isNode(key) && ctx && ctx.doc) { if (identity.isNode(key) && ctx?.doc) {
const strCtx = stringify.createStringifyContext(ctx.doc, {}); const strCtx = stringify.createStringifyContext(ctx.doc, {});
strCtx.anchors = new Set(); strCtx.anchors = new Set();
for (const node of ctx.anchors.keys()) for (const node of ctx.anchors.keys())
@@ -56766,8 +56768,9 @@ function createPairs(schema, iterable, ctx) {
key = keys[0]; key = keys[0];
value = it[key]; value = it[key];
} }
else else {
throw new TypeError(`Expected { key: value } tuple: ${it}`); throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
}
} }
else { else {
key = it; key = it;
@@ -57442,7 +57445,7 @@ function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemInden
if (iv.commentBefore) if (iv.commentBefore)
reqNewline = true; reqNewline = true;
} }
else if (item.value == null && ik && ik.comment) { else if (item.value == null && ik?.comment) {
comment = ik.comment; comment = ik.comment;
} }
} }
@@ -58068,7 +58071,7 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
function plainString(item, ctx, onComment, onChompKeep) { function plainString(item, ctx, onComment, onChompKeep) {
const { type, value } = item; const { type, value } = item;
const { actualString, implicitKey, indent, indentStep, inFlow } = ctx; const { actualString, implicitKey, indent, indentStep, inFlow } = ctx;
if ((implicitKey && /[\n[\]{},]/.test(value)) || if ((implicitKey && value.includes('\n')) ||
(inFlow && /[[\]{},]/.test(value))) { (inFlow && /[[\]{},]/.test(value))) {
return quotedString(value, ctx); return quotedString(value, ctx);
} }
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long