Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 3.3.2 to 3.3.3 (#11481)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jul 22, 2024
1 parent 786a032 commit fd6c658
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/src/document/organisms/toc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function TOC({ toc, title }: { toc: Toc[]; title?: string }) {
}, [observedElements, referencedIds]);

useFirstVisibleElement(observedElements, (element: Element | null) => {
const id = element ? idByObservedElement.current.get(element) ?? "" : "";
const id = element ? (idByObservedElement.current.get(element) ?? "") : "";
if (id !== currentViewedTocItem) {
setCurrentViewedTocItem(id);
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/user-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export function UserDataProvider(props: { children: React.ReactNode }) {
subscriptionType:
data.subscription_type === "core"
? SubscriptionType.MDN_CORE
: data.subscription_type ?? null,
: (data.subscription_type ?? null),
subscriberNumber: data.subscriber_number || null,
email: data.email || null,
geo: {
Expand Down
2 changes: 1 addition & 1 deletion cloud-function/src/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getCacheMaxAgeForUrl(url: string): number {
}

function parseContentType(value: unknown): string {
const firstValue = Array.isArray(value) ? value[0] ?? "" : value;
const firstValue = Array.isArray(value) ? (value[0] ?? "") : value;

return typeof firstValue === "string" ? firstValue : "";
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"postcss-loader": "^8.1.1",
"postcss-normalize": "^10.0.1",
"postcss-preset-env": "^9.6.0",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"prettier-plugin-packagejson": "^2.5.1",
"prompts": "^2.4.2",
"react": "^18.3.1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12868,10 +12868,10 @@ prettier-plugin-packagejson@^2.5.1:
sort-package-json "2.10.0"
synckit "0.9.1"

prettier@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a"
integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==
prettier@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==

pretty-error@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit fd6c658

Please sign in to comment.