Skip to content

Commit 2bde8b2

Browse files
committed
chore: update dependencies
1 parent d3b212b commit 2bde8b2

File tree

5 files changed

+215
-193
lines changed

5 files changed

+215
-193
lines changed

api-helpers/feedFunctions.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import Cheerio from 'cheerio';
44
import FeedParser from 'feedparser';
55
import Iconv from 'iconv-lite';
66
import Ms from 'ms';
7-
import { EMPTY, from, of } from 'rxjs';
7+
import { EMPTY, firstValueFrom, from, of } from 'rxjs';
88
import { catchError, map, mergeMap, groupBy, last, timeout, filter } from 'rxjs/operators';
99
import Slugify from 'slugify';
1010

11-
import type { Blog, Prisma, PrismaClient, Blog, Prisma, PrismaClient } from '@prisma/client';
11+
import type { Blog, Prisma, PrismaClient } from '@prisma/client';
1212

1313
import {
1414
getBlogName,
@@ -138,8 +138,8 @@ export const updateFeeds = async (prisma: PrismaClient) => {
138138
const now = new Date();
139139

140140
logger.info(`Found blogs in SQL database ${blogs.length}`);
141-
return await from(blogs)
142-
.pipe(
141+
return await firstValueFrom(
142+
from(blogs).pipe(
143143
mergeMap(getNewArticlesForBlog(now), MAX_CONCURRENCY),
144144
mergeMap((article) =>
145145
from(prisma.article.create({ data: article })).pipe(
@@ -165,8 +165,8 @@ export const updateFeeds = async (prisma: PrismaClient) => {
165165
}),
166166
);
167167
}),
168-
)
169-
.toPromise();
168+
),
169+
);
170170
};
171171

172172
const getUpdatedInfoFor = (blog: Blog) => {
@@ -218,8 +218,8 @@ export const updateBlogs = async (prisma: PrismaClient) => {
218218
},
219219
});
220220

221-
return await from(blogs)
222-
.pipe(
221+
return await firstValueFrom(
222+
from(blogs).pipe(
223223
mergeMap(getUpdatedInfoFor, MAX_CONCURRENCY),
224224
mergeMap(({ blog, updatedInfo }) => {
225225
logger.debug(`Updating blog: ${updatedInfo.name || blog.name}`);
@@ -232,6 +232,6 @@ export const updateBlogs = async (prisma: PrismaClient) => {
232232
}),
233233
);
234234
}),
235-
)
236-
.toPromise();
235+
),
236+
);
237237
};

api-helpers/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type ReadonlyKeys<T> = {
2121
}[keyof T];
2222

2323
type EnumsKeys = {
24-
readonly [K in keyof typeof Prisma]: typeof Prisma[K] extends object
25-
? typeof Prisma[K] extends Function
24+
readonly [K in keyof typeof Prisma]: (typeof Prisma)[K] extends object
25+
? (typeof Prisma)[K] extends Function
2626
? never
2727
: K
2828
: never;

hooks/useDisplayPreferences.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
44
import { useLocalStorage } from './useLocalStorage';
55

66
export const displayPreferences = ['list', 'grid'] as const;
7-
export type DisplayPreferences = typeof displayPreferences[number];
7+
export type DisplayPreferences = (typeof displayPreferences)[number];
88

99
export const useDisplayPreferences = () => {
1010
const router = useRouter();

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"dependencies": {
3939
"@hapi/boom": "10.0.0",
4040
"@hcaptcha/react-hcaptcha": "1.4.4",
41-
"@prisma/client": "4.8.1",
42-
"@supabase/auth-helpers-nextjs": "0.5.2",
41+
"@prisma/client": "4.9.0",
42+
"@supabase/auth-helpers-nextjs": "0.5.3",
4343
"@supabase/auth-helpers-react": "0.3.1",
4444
"@supabase/auth-ui-react": "0.2.6",
4545
"@supabase/supabase-js": "2.4.0",
@@ -68,7 +68,7 @@
6868
"yup": "1.0.0-beta.8"
6969
},
7070
"devDependencies": {
71-
"@testing-library/dom": "8.19.1",
71+
"@testing-library/dom": "8.20.0",
7272
"@testing-library/jest-dom": "5.16.5",
7373
"@testing-library/react": "13.4.0",
7474
"@testing-library/user-event": "14.4.3",
@@ -77,15 +77,15 @@
7777
"@types/feedparser": "2.2.5",
7878
"@types/gtag.js": "0.0.12",
7979
"@types/hcaptcha__react-hcaptcha": "0.1.5",
80-
"@types/jest": "29.2.5",
80+
"@types/jest": "29.2.6",
8181
"@types/mailgun-js": "0.22.13",
8282
"@types/ms": "0.7.31",
8383
"@types/node": "18.11.18",
84-
"@types/react": "18.0.26",
84+
"@types/react": "18.0.27",
8585
"@types/react-dom": "18.0.10",
8686
"@types/react-instantsearch-dom": "6.12.3",
87-
"@typescript-eslint/eslint-plugin": "5.48.1",
88-
"@typescript-eslint/parser": "5.48.1",
87+
"@typescript-eslint/eslint-plugin": "5.48.2",
88+
"@typescript-eslint/parser": "5.48.2",
8989
"all-contributors-cli": "6.24.0",
9090
"concurrently": "7.6.0",
9191
"critters": "0.0.16",
@@ -96,19 +96,19 @@
9696
"eslint-plugin-css-modules": "2.11.0",
9797
"eslint-plugin-cypress": "2.12.1",
9898
"eslint-plugin-jsx-a11y": "6.7.1",
99-
"eslint-plugin-react": "7.32.0",
99+
"eslint-plugin-react": "7.32.1",
100100
"eslint-plugin-react-hooks": "4.6.0",
101101
"husky": "8.0.3",
102102
"jest": "29.3.1",
103103
"jest-environment-jsdom": "29.3.1",
104104
"lint-staged": "13.1.0",
105-
"msw": "0.49.2",
105+
"msw": "0.49.3",
106106
"pino-pretty": "9.1.1",
107107
"prettier": "2.8.3",
108-
"prisma": "4.8.1",
109-
"rimraf": "4.0.7",
108+
"prisma": "4.9.0",
109+
"rimraf": "4.1.1",
110110
"sass": "1.57.1",
111-
"supabase": "1.33.0",
111+
"supabase": "1.34.2",
112112
"ts-node": "10.9.1",
113113
"typescript": "4.9.4",
114114
"typescript-plugin-css-modules": "4.1.1",

0 commit comments

Comments
 (0)