Skip to content

Commit d55b531

Browse files
swoufrenovate[bot]
andauthored
fix(deps): update dependency @graasp/sdk to v4
fix: properties of HttpMethod fix(deps): minor upgrade build(commitlint): commitlint config js -> ts fix: use nullish coalescing operator instead of a logical or --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 3aae33f commit d55b531

File tree

6 files changed

+855
-1053
lines changed

6 files changed

+855
-1053
lines changed
File renamed without changes.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dependencies": {
4242
"@emotion/react": "11.11.4",
4343
"@emotion/styled": "11.11.0",
44-
"@graasp/sdk": "3.10.0",
44+
"@graasp/sdk": "4.0.1",
4545
"@mui/icons-material": "5.15.11",
4646
"@mui/material": "5.15.11",
4747
"axios": "0.28.0",
@@ -52,8 +52,8 @@
5252
"uuid": "9.0.1"
5353
},
5454
"devDependencies": {
55-
"@commitlint/cli": "19.0.2",
56-
"@commitlint/config-conventional": "19.0.0",
55+
"@commitlint/cli": "19.0.3",
56+
"@commitlint/config-conventional": "19.0.3",
5757
"@tanstack/react-query": "4.36.1",
5858
"@tanstack/react-query-devtools": "4.36.1",
5959
"@testing-library/react": "14.2.1",

src/components/GraaspContextDevTool.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ const GraaspContextDevTool = ({ members, context, setContext }: Props): JSX.Elem
4141
const queryClient = useQueryClient();
4242

4343
const handleResetDB = (): void => {
44-
fetch('/__mocks/reset', { method: HttpMethod.DELETE });
44+
fetch('/__mocks/reset', { method: HttpMethod.Delete });
4545
};
4646

4747
const handleNotifyDBOfContext = <K extends keyof LocalContext>(
4848
key: K,
4949
newValue: LocalContext[K],
5050
): void => {
5151
fetch('/__mocks/context', {
52-
method: HttpMethod.POST,
52+
method: HttpMethod.Post,
5353
body: JSON.stringify({ ...context, [key]: newValue }),
5454
headers: [['authorization', token]],
5555
}).then(() => {

test/utils.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { API_HOST, MOCK_APP_ORIGIN, RequestMethods, WS_HOST } from './constants'
1515

1616
type Args = { enableWebsocket?: boolean; notifier?: Notifier; GRAASP_APP_KEY?: string };
1717

18-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
1918
export const setUpTest = (args?: Args) => {
2019
const {
2120
notifier = () => {
@@ -86,7 +85,7 @@ export const mockEndpoints = (endpoints: Endpoint[]): nock.Scope => {
8685
// we open to all hosts specially for redirection to aws (get file endpoints)
8786
const server = nock(/.*/);
8887
endpoints.forEach(({ route, method, statusCode, response, headers }) => {
89-
server[(method || HttpMethod.GET).toLowerCase() as NockMethodType](route).reply(
88+
server[(method ?? HttpMethod.Get).toLowerCase() as NockMethodType](route).reply(
9089
statusCode || StatusCodes.OK,
9190
response,
9291
headers,

tsconfig.eslint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["vite.config.ts", "src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]
3+
"include": ["vite.config.ts", "src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx", "./commitlint.config.ts"]
44
}

0 commit comments

Comments
 (0)