Update devDependencies (non-major) (#28728)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
parent
e85e2929aa
commit
4e277f83dc
2 changed files with 23 additions and 22 deletions
|
@ -59,25 +59,19 @@ export const accountsReducer: Reducer<typeof initialState> = (
|
||||||
return normalizeAccounts(state, action.payload.accounts);
|
return normalizeAccounts(state, action.payload.accounts);
|
||||||
else if (followAccountSuccess.match(action)) {
|
else if (followAccountSuccess.match(action)) {
|
||||||
return state
|
return state
|
||||||
.update(
|
.update(action.payload.relationship.id, (account) =>
|
||||||
action.payload.relationship.id,
|
account?.update('followers_count', (n) => n + 1),
|
||||||
(account) => account?.update('followers_count', (n) => n + 1),
|
|
||||||
)
|
)
|
||||||
.update(
|
.update(getCurrentUser(), (account) =>
|
||||||
getCurrentUser(),
|
account?.update('following_count', (n) => n + 1),
|
||||||
(account) => account?.update('following_count', (n) => n + 1),
|
|
||||||
);
|
);
|
||||||
} else if (unfollowAccountSuccess.match(action))
|
} else if (unfollowAccountSuccess.match(action))
|
||||||
return state
|
return state
|
||||||
.update(
|
.update(action.payload.relationship.id, (account) =>
|
||||||
action.payload.relationship.id,
|
account?.update('followers_count', (n) => Math.max(0, n - 1)),
|
||||||
(account) =>
|
|
||||||
account?.update('followers_count', (n) => Math.max(0, n - 1)),
|
|
||||||
)
|
)
|
||||||
.update(
|
.update(getCurrentUser(), (account) =>
|
||||||
getCurrentUser(),
|
account?.update('following_count', (n) => Math.max(0, n - 1)),
|
||||||
(account) =>
|
|
||||||
account?.update('following_count', (n) => Math.max(0, n - 1)),
|
|
||||||
);
|
);
|
||||||
else return state;
|
else return state;
|
||||||
};
|
};
|
||||||
|
|
23
yarn.lock
23
yarn.lock
|
@ -2895,15 +2895,15 @@ __metadata:
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@testing-library/jest-dom@npm:^6.0.0":
|
"@testing-library/jest-dom@npm:^6.0.0":
|
||||||
version: 6.1.6
|
version: 6.2.0
|
||||||
resolution: "@testing-library/jest-dom@npm:6.1.6"
|
resolution: "@testing-library/jest-dom@npm:6.2.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@adobe/css-tools": "npm:^4.3.2"
|
"@adobe/css-tools": "npm:^4.3.2"
|
||||||
"@babel/runtime": "npm:^7.9.2"
|
"@babel/runtime": "npm:^7.9.2"
|
||||||
aria-query: "npm:^5.0.0"
|
aria-query: "npm:^5.0.0"
|
||||||
chalk: "npm:^3.0.0"
|
chalk: "npm:^3.0.0"
|
||||||
css.escape: "npm:^1.5.1"
|
css.escape: "npm:^1.5.1"
|
||||||
dom-accessibility-api: "npm:^0.5.6"
|
dom-accessibility-api: "npm:^0.6.3"
|
||||||
lodash: "npm:^4.17.15"
|
lodash: "npm:^4.17.15"
|
||||||
redent: "npm:^3.0.0"
|
redent: "npm:^3.0.0"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -2920,7 +2920,7 @@ __metadata:
|
||||||
optional: true
|
optional: true
|
||||||
vitest:
|
vitest:
|
||||||
optional: true
|
optional: true
|
||||||
checksum: f98f79f3e470517469c86947d0ff1bb83ac2e59fd2a29728ab306eca5fba63c948084ec06b7b531642e6002d1f0211d918c298c628f0d386c0ef63ba881c47ba
|
checksum: 71421693e0ad6a46be7d16f00b58a45725c238693972b8b5b1fd9ab797902ccf1209cf259afe8da1bf59d7c958762c46ee85d1aa5b164a5ec330981ea2376b08
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
@ -6780,13 +6780,20 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"dom-accessibility-api@npm:^0.5.6, dom-accessibility-api@npm:^0.5.9":
|
"dom-accessibility-api@npm:^0.5.9":
|
||||||
version: 0.5.16
|
version: 0.5.16
|
||||||
resolution: "dom-accessibility-api@npm:0.5.16"
|
resolution: "dom-accessibility-api@npm:0.5.16"
|
||||||
checksum: b2c2eda4fae568977cdac27a9f0c001edf4f95a6a6191dfa611e3721db2478d1badc01db5bb4fa8a848aeee13e442a6c2a4386d65ec65a1436f24715a2f8d053
|
checksum: b2c2eda4fae568977cdac27a9f0c001edf4f95a6a6191dfa611e3721db2478d1badc01db5bb4fa8a848aeee13e442a6c2a4386d65ec65a1436f24715a2f8d053
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"dom-accessibility-api@npm:^0.6.3":
|
||||||
|
version: 0.6.3
|
||||||
|
resolution: "dom-accessibility-api@npm:0.6.3"
|
||||||
|
checksum: 10bee5aa514b2a9a37c87cd81268db607a2e933a050074abc2f6fa3da9080ebed206a320cbc123567f2c3087d22292853bdfdceaffdd4334ffe2af9510b29360
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"dom-helpers@npm:^3.4.0":
|
"dom-helpers@npm:^3.4.0":
|
||||||
version: 3.4.0
|
version: 3.4.0
|
||||||
resolution: "dom-helpers@npm:3.4.0"
|
resolution: "dom-helpers@npm:3.4.0"
|
||||||
|
@ -13201,11 +13208,11 @@ __metadata:
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"prettier@npm:^3.0.0":
|
"prettier@npm:^3.0.0":
|
||||||
version: 3.1.1
|
version: 3.2.2
|
||||||
resolution: "prettier@npm:3.1.1"
|
resolution: "prettier@npm:3.2.2"
|
||||||
bin:
|
bin:
|
||||||
prettier: bin/prettier.cjs
|
prettier: bin/prettier.cjs
|
||||||
checksum: facc944ba20e194ff4db765e830ffbcb642803381f0d2033ed397e79904fa4ccc877dc25ad68f42d36985c01d051c990ca1b905fb83d2d7d65fe69e4386fa1a3
|
checksum: e84d0d2a4ce2b88ee1636904effbdf68b59da63d9f887128f2ed5382206454185432e7c0a9578bc4308bc25d099cfef47fd0b9c211066777854e23e65e34044d
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue