Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
remadex committed Oct 27, 2023
2 parents 9708c05 + 0cfdd30 commit af0a873
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,10 @@
},
"msw": {
"workerDirectory": "public"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
20 changes: 20 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/addon/-private/formatters/format-message.ts b/addon/-private/formatters/format-message.ts
index fde7130485d15c91f885d8a0b14385bee0425ceb..244485f71337c6b0e1ed0014b23329d584acb3d2 100644
--- a/addon/-private/formatters/format-message.ts
+++ b/addon/-private/formatters/format-message.ts
@@ -12,7 +12,6 @@ import type { PrimitiveType } from 'intl-messageformat';
import Formatter from './-base';
const {
Handlebars: {
- // @ts-expect-error Upstream types are incomplete.
Utils: { escapeExpression },
},
} = Ember;
@@ -38,6 +37,7 @@ function escapeOptions<T extends Record<string, unknown>>(object?: T) {
// @ts-expect-error: see comment above
escapedOpts[key] = val.toHTML();
} else if (typeof val === 'string') {
+ // @ts-expect-error: see comment above
escapedOpts[key] = escapeExpression(val);
} else {
// @ts-expect-error: see comment above
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af0a873

Please sign in to comment.