Added missing changes and modified dist assets.

This commit is contained in:
GitHub Action 2023-08-28 15:33:45 +00:00 committed by renovate[bot]
parent 7555f14f91
commit b1c183b83c
2 changed files with 9 additions and 6 deletions

13
dist/index.js generated vendored
View File

@ -38004,6 +38004,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
@ -38785,7 +38787,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())
@ -42164,8 +42166,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;
@ -42840,7 +42843,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;
} }
} }
@ -43466,7 +43469,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);
} }

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long