Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Dec 8, 2021
1 parent ee74cdd commit e7230ec
Show file tree
Hide file tree
Showing 8 changed files with 2,627 additions and 2,729 deletions.
26 changes: 15 additions & 11 deletions example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ async function setupBullMQProcessor(queueName: string) {
});
await queueScheduler.waitUntilReady();

new Worker(queueName, async (job) => {
for (let i = 0; i <= 100; i++) {
await sleep(Math.random());
await job.updateProgress(i);
await job.log(`Processing job at interval ${i}`);

if (Math.random() * 200 < 1) throw new Error(`Random error ${i}`);
}

return { jobId: `This is the return value of job (${job.id})` };
});
new Worker(
queueName,
async (job) => {
for (let i = 0; i <= 100; i++) {
await sleep(Math.random());
await job.updateProgress(i);
await job.log(`Processing job at interval ${i}`);

if (Math.random() * 200 < 1) throw new Error(`Random error ${i}`);
}

return { jobId: `This is the return value of job (${job.id})` };
},
{ connection: redisOptions }
);
}

const run = async () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@typescript-eslint/parser": "^4.25.0",
"auto-changelog": "^2.3.0",
"babel-loader": "^8.2.2",
"bull": "^3.22.6",
"bull": "^4.1.1",
"bullmq": "^1.28.0",
"concurrently": "^6.2.0",
"eslint": "^7.27.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hapi/src/HapiAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class HapiAdapter implements IServerAdapter {

return h.response(response.body).code(response.status || 200);
} catch (e) {
const response = errorHandler(e);
const response = errorHandler(e as Error);
return h.response(response.body).code(response.status as 500);
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/src/KoaAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class KoaAdapter implements IServerAdapter {
await next();
} catch (err) {
if (this.errorHandler) {
const { status, body } = this.errorHandler(err);
const { status, body } = this.errorHandler(err as Error);

ctx.status = status || 500;
ctx.body = body;
Expand Down
16 changes: 8 additions & 8 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@
},
"devDependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.0-rc.5",
"@radix-ui/react-alert-dialog": "^0.0.20",
"@radix-ui/react-dropdown-menu": "^0.0.22",
"@radix-ui/react-alert-dialog": "^0.1.1",
"@radix-ui/react-dropdown-menu": "^0.1.1",
"@types/pretty-bytes": "^5.2.0",
"@types/react-dom": "^17.0.5",
"@types/react-highlight": "^0.12.2",
"@types/react-paginate": "^7.1.0",
"@types/react-router-dom": "^5.1.6",
"axios": "^0.21.1",
"axios": "^0.24.0",
"clean-webpack-plugin": "^4.0.0-alpha.0",
"clsx": "^1.1.1",
"copy-webpack-plugin": "^9.0.0",
"copy-webpack-plugin": "^10.0.0",
"css-loader": "^6.2.0",
"css-minimizer-webpack-plugin": "^3.0.2",
"date-fns": "2.23.0",
"date-fns": "2.27.0",
"fork-ts-checker-webpack-plugin": "^6.2.10",
"highlight.js": "^11.2.0",
"html-webpack-plugin": "^5.3.1",
"mini-css-extract-plugin": "^2.2.0",
"postcss-loader": "^6.1.1",
"postcss-preset-env": "^6.7.0",
"postcss-preset-env": "^7.0.1",
"pretty-bytes": "5.6.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-paginate": "^7.1.3",
"react-refresh": "^0.10.0",
"react-paginate": "^8.0.3",
"react-refresh": "^0.11.0",
"react-router-dom": "^5.2.0",
"react-toastify": "^7.0.4",
"style-loader": "^3.2.1",
Expand Down
18 changes: 13 additions & 5 deletions packages/ui/src/components/ConfirmModal/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ export const ConfirmModal = (props: ConfirmProps) => {
<Overlay className={s.overlay} />
<Content className={s.contentWrapper}>
<div className={s.content}>
{!!props.title && <Title as="h3">{props.title}</Title>}
{!!props.title && (
<Title asChild>
<h3>{props.title}</h3>
</Title>
)}
{!!props.description && <Description>{props.description}</Description>}
<div className={s.actions}>
<Action as={Button} theme={'primary'} onClick={props.onConfirm}>
Confirm
<Action asChild>
<Button theme="primary" onClick={props.onConfirm}>
Confirm
</Button>
</Action>
<Cancel as={Button} theme={'basic'} onClick={props.onCancel}>
Cancel
<Cancel asChild>
<Button theme="basic" onClick={props.onCancel}>
Cancel
</Button>
</Cancel>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ export const QueueDropdownActions = ({
actions: Store['actions'];
}) => (
<Root>
<Trigger as={Button} className={s.trigger}>
<EllipsisVerticalIcon />
<Trigger asChild>
<Button className={s.trigger}>
<EllipsisVerticalIcon />
</Button>
</Trigger>

<Content className={s.content} align="end">
Expand Down
Loading

0 comments on commit e7230ec

Please sign in to comment.