Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump up all non-major dependencies #7433

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/backend/server/src/fundamentals/error/def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class UserFriendlyError extends Error {
// disallow message override for `internal_server_error`
// to avoid leak internal information to user
let msg =
name === 'internal_server_error' ? defaultMsg : message ?? defaultMsg;
name === 'internal_server_error' ? defaultMsg : (message ?? defaultMsg);

if (typeof msg === 'function') {
msg = msg(args);
Expand Down Expand Up @@ -95,7 +95,7 @@ export class UserFriendlyError extends Error {

new Logger(context).error(
'Internal server error',
this.cause ? (this.cause as any).stack ?? this.cause : this.stack
this.cause ? ((this.cause as any).stack ?? this.cause) : this.stack
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/common/infra/src/livedata/effect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function effect(...args: any[]) {
logger.error(`effect ${effectLocation} ${message}`, value);
super(
`effect ${effectLocation} ${message}` +
` ${value ? (value instanceof Error ? value.stack ?? value.message : value + '') : ''}`
` ${value ? (value instanceof Error ? (value.stack ?? value.message) : value + '') : ''}`
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/component/src/ui/radio/radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const RadioGroup = memo(function RadioGroup({
<span className={styles.radioButtonContent}>
{customRender
? customRender(item, index)
: item.label ?? item.value}
: (item.label ?? item.value)}
</span>
</RadixRadioGroup.Item>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function handleInlineAskAIAction(host: EditorHost) {
const panel = getAIPanel(host);
const selection = host.selection.find('text');
const lastBlockPath = selection
? selection.to?.blockId ?? selection.blockId
? (selection.to?.blockId ?? selection.blockId)
: null;
if (!lastBlockPath) return;
const block = host.view.getBlock(lastBlockPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const UserPlanButton = () => {
return;
}

const planLabel = isBeliever ? 'Believer' : plan ?? SubscriptionPlan.Free;
const planLabel = isBeliever ? 'Believer' : (plan ?? SubscriptionPlan.Free);

return (
<Tooltip content={t['com.affine.payment.tag-tooltips']()} side="top">
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/core/src/modules/cloud/services/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class AuthService extends Service {
searchParams.set('token', verifyToken);
const redirect = environment.isDesktop
? this.buildRedirectUri('/open-app/signin-redirect')
: redirectUri ?? location.href;
: (redirectUri ?? location.href);
searchParams.set('redirect_uri', redirect.toString());

const res = await this.fetchService.fetch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ export class CommandsQuickSearchSession
titleMatches ?? []
) ?? item.label.title,
subTitle: item.label.subTitle
? highlighter(
? (highlighter(
item.label.subTitle,
'<b>',
'</b>',
subTitleMatches ?? []
) ?? item.label.subTitle
) ?? item.label.subTitle)
: undefined,
},
group: categories[item.category],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class View extends Entity<{
const activeTabId = get(this._activeSidebarTabId$);
const tabs = get(this.sidebarTabs$);
return tabs.length > 0
? tabs.find(tab => tab.id === activeTabId) ?? tabs[0]
? (tabs.find(tab => tab.id === activeTabId) ?? tabs[0])
: null;
});

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/graphql/src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function formatRequestBody<Q extends GraphQLQuery>({
const body: RequestBody = {
query: query.query,
variables:
keepNilVariables ?? true ? variables : filterEmptyValue(variables),
(keepNilVariables ?? true) ? variables : filterEmptyValue(variables),
};

if (query.operationName) {
Expand Down
Loading
Loading