Skip to content

Commit 3d2b34d

Browse files
Merge pull request #911 from nextcloud-libraries/dependabot/npm_and_yarn/nextcloud/eslint-config-9.0.0-rc.9
chore(deps-dev): Bump @nextcloud/eslint-config from 9.0.0-rc.8 to 9.0.0-rc.9
2 parents 498b3c1 + cba4aa3 commit 3d2b34d

6 files changed

Lines changed: 301 additions & 399 deletions

File tree

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ updates:
1212
timezone: Europe/Paris
1313
open-pull-requests-limit: 10
1414
versioning-strategy: increase
15+
cooldown:
16+
default-days: 4
17+
semver-major-days: 8
1518
groups:
19+
eslint:
20+
patterns:
21+
- "eslint"
22+
- "@nextcloud/eslint-config"
1623
vite:
1724
patterns:
1825
- "vite"

lib/interceptors/csrf-token.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export function onCsrfTokenError(axios: CancelableAxiosInstance): InterceptorErr
2828
if (config
2929
&& !config[RETRY_KEY]
3030
&& response?.status === 412
31-
&& response?.data?.message === 'CSRF check failed'
32-
) {
31+
&& response?.data?.message === 'CSRF check failed') {
3332
console.warn(`Request to ${responseURL} failed because of a CSRF mismatch. Fetching a new token`)
3433

3534
const { data: { token } } = await axios.get(generateUrl('/csrftoken'))

lib/interceptors/maintenance-mode.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ export function onMaintenanceModeError(axios: CancelableAxiosInstance): Intercep
3939
*/
4040
if (status === 503
4141
&& headers?.['x-nextcloud-maintenance-mode'] === '1'
42-
&& config?.retryIfMaintenanceMode
43-
) {
42+
&& config?.retryIfMaintenanceMode) {
4443
retryDelay *= 2
4544
if (retryDelay > 32) {
4645
console.error('Retry delay exceeded one minute, giving up.', { responseURL })

lib/interceptors/not-logged-in.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export async function onNotLoggedInError(error: unknown) {
2121
if (status === 401
2222
&& response?.data?.message === 'Current user is not logged in'
2323
&& config?.reloadExpiredSession
24-
&& window?.location
25-
) {
24+
&& window?.location) {
2625
console.error(`Request to ${responseURL} failed because the user session expired. Reloading the page …`)
2726

2827
window.location.reload()

0 commit comments

Comments
 (0)