Skip to content

Commit dd6dade

Browse files
chore: Refresh lockfile, pinning [email protected] to match api-extractor
1 parent b0731c3 commit dd6dade

File tree

5 files changed

+2385
-1918
lines changed

5 files changed

+2385
-1918
lines changed

mf2/messageformat/src/cst/stringify-cst.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function stringifyPattern(
5555
{ body, braces }: CST.Pattern,
5656
braced: boolean
5757
): string {
58-
let str = braced ? braces?.[0]?.value ?? '{{' : '';
58+
let str = braced ? (braces?.[0]?.value ?? '{{') : '';
5959
for (const el of body) {
6060
str +=
6161
el.type === 'text'

mf2/messageformat/src/messageformat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class MessageFormat {
171171
for (const decl of this.#message.declarations) {
172172
scope[decl.name] = new UnresolvedExpression(
173173
decl.value,
174-
decl.type === 'input' ? msgParams ?? {} : undefined
174+
decl.type === 'input' ? (msgParams ?? {}) : undefined
175175
);
176176
}
177177
const ctx: Context = {

mf2/xliff/src/xliff2mf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function getMessageElements(
372372
if (el.name === 'res:source') src = el;
373373
else if (el.name === 'res:target') tgt = el;
374374
}
375-
const parent = st === 'target' ? tgt ?? src : src;
375+
const parent = st === 'target' ? (tgt ?? src) : src;
376376
return (parent?.elements?.filter(
377377
el => el.type === 'element' && el.name.startsWith('mf:')
378378
) ?? []) as X.MessageElements;

0 commit comments

Comments
 (0)