Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ updates:
timezone: Europe/Paris
open-pull-requests-limit: 10
versioning-strategy: increase
cooldown:
default-days: 4
semver-major-days: 8
groups:
eslint:
patterns:
- "eslint"
- "@nextcloud/eslint-config"
vite:
patterns:
- "vite"
Expand Down
3 changes: 1 addition & 2 deletions lib/interceptors/csrf-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export function onCsrfTokenError(axios: CancelableAxiosInstance): InterceptorErr
if (config
&& !config[RETRY_KEY]
&& response?.status === 412
&& response?.data?.message === 'CSRF check failed'
) {
&& response?.data?.message === 'CSRF check failed') {
console.warn(`Request to ${responseURL} failed because of a CSRF mismatch. Fetching a new token`)

const { data: { token } } = await axios.get(generateUrl('/csrftoken'))
Expand Down
3 changes: 1 addition & 2 deletions lib/interceptors/maintenance-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export function onMaintenanceModeError(axios: CancelableAxiosInstance): Intercep
*/
if (status === 503
&& headers?.['x-nextcloud-maintenance-mode'] === '1'
&& config?.retryIfMaintenanceMode
) {
&& config?.retryIfMaintenanceMode) {
retryDelay *= 2
if (retryDelay > 32) {
console.error('Retry delay exceeded one minute, giving up.', { responseURL })
Expand Down
3 changes: 1 addition & 2 deletions lib/interceptors/not-logged-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export async function onNotLoggedInError(error: unknown) {
if (status === 401
&& response?.data?.message === 'Current user is not logged in'
&& config?.reloadExpiredSession
&& window?.location
) {
&& window?.location) {
console.error(`Request to ${responseURL} failed because the user session expired. Reloading the page …`)

window.location.reload()
Expand Down
Loading
Loading