build(backend): bump dependency versions

This commit is contained in:
Oleg Lobanov
2022-05-04 00:48:45 +04:00
parent 596c73288f
commit 7c9a75e725
16 changed files with 494 additions and 191 deletions

View File

@@ -8,8 +8,8 @@ import (
"strings"
"time"
jwt "github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/request"
"github.com/golang-jwt/jwt/v4"
"github.com/golang-jwt/jwt/v4/request"
"github.com/filebrowser/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/users"

View File

@@ -27,7 +27,7 @@ var (
cmdNotAllowed = []byte("Command not allowed.")
)
func wsErr(ws *websocket.Conn, r *http.Request, status int, err error) { //nolint:unparam
func wsErr(ws *websocket.Conn, r *http.Request, status int, err error) {
txt := http.StatusText(status)
if err != nil || status >= 400 {
log.Printf("%s: %v %s %v", r.URL.Path, status, r.RemoteAddr, err)

View File

@@ -7,7 +7,7 @@ import (
"path/filepath"
"testing"
"github.com/asdine/storm"
"github.com/asdine/storm/v3"
"github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/settings"

View File

@@ -77,7 +77,7 @@ func resourceDeleteHandler(fileCache FileCache) handleFunc {
return errToStatus(err), err
}
err = d.RunHook(func() error { //nolint:typecheck
err = d.RunHook(func() error {
return d.user.Fs.RemoveAll(r.URL.Path)
}, "delete", r.URL.Path, "", d.user)
@@ -125,7 +125,7 @@ func resourcePostHandler(fileCache FileCache) handleFunc {
}
}
err = d.RunHook(func() error { //nolint:typecheck
err = d.RunHook(func() error {
info, writeErr := writeFile(d.user.Fs, r.URL.Path, r.Body)
if writeErr != nil {
return writeErr
@@ -162,7 +162,7 @@ var resourcePutHandler = withUser(func(w http.ResponseWriter, r *http.Request, d
return http.StatusNotFound, nil
}
err = d.RunHook(func() error { //nolint:typecheck
err = d.RunHook(func() error {
info, writeErr := writeFile(d.user.Fs, r.URL.Path, r.Body)
if writeErr != nil {
return writeErr
@@ -213,7 +213,7 @@ func resourcePatchHandler(fileCache FileCache) handleFunc {
return http.StatusForbidden, nil
}
err = d.RunHook(func() error { //nolint:typecheck
err = d.RunHook(func() error {
return patchAction(r.Context(), action, src, dst, d, fileCache)
}, action, src, dst, d.user)