Skip to content

Commit

Permalink
fix(deps): update graasp packages (minor) (#637)
Browse files Browse the repository at this point in the history
* fix(deps): update graasp packages

* fix: routes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: spaenleh <[email protected]>
  • Loading branch information
renovate[bot] and spaenleh authored Jul 15, 2024
1 parent 4bdc893 commit 40fb958
Show file tree
Hide file tree
Showing 6 changed files with 272 additions and 247 deletions.
2 changes: 1 addition & 1 deletion cypress/fixtures/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DEFAULT_FOLDER_ITEM: FolderItemType = FolderItemFactory({
path: 'ecafbd2a_5688_11eb_ae93_0242ac130002',
createdAt: '2023-02-27T18:20:09.732Z',
updatedAt: '2023-02-28T18:20:09.732Z',
extra: { [ItemType.FOLDER]: { childrenOrder: [] } },
extra: { [ItemType.FOLDER]: {} },
creator: CURRENT_USER,
type: ItemType.FOLDER,
});
Expand Down
2 changes: 2 additions & 0 deletions cypress/fixtures/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const COMPLETE_MEMBERS: {
extra: {
lang: 'fr',
},
isValidated: true,
enableSaveActions: true,
},
BOB: {
Expand All @@ -71,6 +72,7 @@ export const COMPLETE_MEMBERS: {
updatedAt: '2021-04-13 14:56:34.749946',
type: MemberType.Individual,
extra: { lang: 'en' },
isValidated: true,
enableSaveActions: true,
thumbnail:
'https://upload.wikimedia.org/wikipedia/commons/thumb/3/30/Pedro_Luro_edit.jpg/210px-Pedro_Luro_edit.jpg',
Expand Down
12 changes: 6 additions & 6 deletions cypress/support/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ const {
buildGetItemPublishedInformationRoute,
buildGetItemRoute,
buildGetItemTagsRoute,
buildGetMember,
buildGetMembersByIdRoute,
buildGetMemberRoute,
buildGetCurrentMemberRoute,
ITEMS_ROUTE,
GET_CURRENT_MEMBER_ROUTE,
SIGN_IN_ROUTE,
SIGN_OUT_ROUTE,
buildGetMembersRoute,
buildGetCategoriesRoute,
SEARCH_PUBLISHED_ITEMS_ROUTE,
} = API_ROUTES;
Expand Down Expand Up @@ -100,7 +100,7 @@ export const mockGetCurrentMember = (
cy.intercept(
{
method: DEFAULT_GET.method,
url: `${API_HOST}/${GET_CURRENT_MEMBER_ROUTE}`,
url: `${API_HOST}/${buildGetCurrentMemberRoute()}`,
},
({ reply }) => {
if (shouldThrowError) {
Expand Down Expand Up @@ -290,7 +290,7 @@ export const mockGetMember = ({
cy.intercept(
{
method: DEFAULT_GET.method,
url: new RegExp(`${API_HOST}/${buildGetMember(ID_FORMAT)}$`),
url: new RegExp(`${API_HOST}/${buildGetMemberRoute(ID_FORMAT)}*`),
},
({ url, reply }) => {
if (!currentMember) {
Expand Down Expand Up @@ -325,7 +325,7 @@ export const mockGetMembers = ({
cy.intercept(
{
method: DEFAULT_GET.method,
url: `${API_HOST}/${buildGetMembersRoute([''])}*`,
url: `${API_HOST}/${buildGetMembersByIdRoute([''])}*`,
},
({ url, reply }) => {
if (!currentMember) {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"@emotion/react": "11.11.4",
"@emotion/server": "11.11.0",
"@emotion/styled": "11.11.5",
"@graasp/query-client": "3.13.3",
"@graasp/sdk": "4.14.1",
"@graasp/translations": "1.30.3",
"@graasp/ui": "4.19.3",
"@graasp/query-client": "3.15.2",
"@graasp/sdk": "4.17.0",
"@graasp/translations": "1.32.0",
"@graasp/ui": "4.21.0",
"@mui/icons-material": "5.15.21",
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "5.15.21",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const PLACEHOLDER_COLLECTION: DiscriminatedItem = {
lang: '',
creator: null,
type: ItemType.FOLDER,
extra: { [ItemType.FOLDER]: { childrenOrder: [] } },
extra: { [ItemType.FOLDER]: {} },
};

export const PLACEHOLDER_COLLECTIONS = Array.from(
Expand Down
Loading

0 comments on commit 40fb958

Please sign in to comment.