diff --git a/THIRD-PARTY-LICENSES.md b/THIRD-PARTY-LICENSES.md index 546b6c0e28..9d0c3febbd 100644 --- a/THIRD-PARTY-LICENSES.md +++ b/THIRD-PARTY-LICENSES.md @@ -14,7 +14,7 @@ Transitive dependencies should be audited before a final external release. | backend | production | Go | `github.com/Calcium-Ion/go-epay` | `v0.0.6` | MIT | | backend | production | Go | `github.com/ClickHouse/clickhouse-go/v2` | `v2.46.0` | Apache-2.0 | | backend | production | Go | `github.com/HugoSmits86/nativewebp` | `v1.3.0` | MIT | -| backend | production | Go | `github.com/MoeForge/moego` | `v0.1.0-alpha.3` | MIT | +| backend | production | Go | `github.com/MoeForge/moego` | `v0.1.0-alpha.5` | MIT | | backend | production | Go | `github.com/MoeForge/moejs` | `v0.1.0` | Apache-2.0 | | backend | production | Go | `github.com/abema/go-mp4` | `v1.4.1` | MIT | | backend | test | Go | `github.com/alicebob/miniredis/v2` | `v2.38.0` | MIT | diff --git a/controller/security_account_test.go b/controller/security_account_test.go index 60c5414e2d..0bbe955124 100644 --- a/controller/security_account_test.go +++ b/controller/security_account_test.go @@ -15,12 +15,12 @@ import ( "net/http" "net/http/httptest" "net/textproto" - "regexp" "strings" "sync" "testing" "time" + "github.com/MoeForge/moego/regexp" "github.com/QuantumNous/new-api/common" "github.com/QuantumNous/new-api/i18n" "github.com/QuantumNous/new-api/model" diff --git a/controller/task_plugin_test.go b/controller/task_plugin_test.go index 6f8e32bd7b..157f0ffd30 100644 --- a/controller/task_plugin_test.go +++ b/controller/task_plugin_test.go @@ -9,11 +9,11 @@ import ( "net" "net/http" "net/http/httptest" - "regexp" "slices" "strings" "testing" + "github.com/MoeForge/moego/regexp" "github.com/QuantumNous/new-api/common" "github.com/QuantumNous/new-api/constant" "github.com/QuantumNous/new-api/model" diff --git a/go.mod b/go.mod index 06ccfb7646..fd05a5c592 100644 --- a/go.mod +++ b/go.mod @@ -168,7 +168,7 @@ require ( require ( github.com/ClickHouse/clickhouse-go/v2 v2.46.0 - github.com/MoeForge/moego v0.1.0-alpha.4 + github.com/MoeForge/moego v0.1.0-alpha.5 github.com/MoeForge/moejs v0.1.0 github.com/QuantumNous/new-api/relaykit v0.0.0 github.com/QuantumNous/new-api/tokenkit v0.0.0 diff --git a/go.sum b/go.sum index 3495096a3b..5fb5b73792 100644 --- a/go.sum +++ b/go.sum @@ -672,8 +672,8 @@ github.com/Microsoft/hcsshim v0.9.6/go.mod h1:7pLA8lDk46WKDWlVsENo92gC0XFa8rbKfy github.com/Microsoft/hcsshim v0.11.0/go.mod h1:OEthFdQv/AD2RAdzR6Mm1N1KPCztGKDurW1Z8b8VGMM= github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5hlzMzRKMLyo42nCZ9oml8AdTlq/0cvIaBv6tK1RehU= github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= -github.com/MoeForge/moego v0.1.0-alpha.4 h1:LvS/mX3Hmk9up7auTUNw3v99JFlIN1ZSOHhJ/RDv7Zk= -github.com/MoeForge/moego v0.1.0-alpha.4/go.mod h1:SBNiQjCpWC3IEBMKFBOwOyhhQ3jywMrISqCwJTdr4aA= +github.com/MoeForge/moego v0.1.0-alpha.5 h1:/pFyEhm0GYdOGfwawNjzLx+DoDQVoCI0dLsu8Sbpac8= +github.com/MoeForge/moego v0.1.0-alpha.5/go.mod h1:SBNiQjCpWC3IEBMKFBOwOyhhQ3jywMrISqCwJTdr4aA= github.com/MoeForge/moejs v0.1.0 h1:w5/bM4wVRrnMdLbQG32BM+yVcoA9wjQqdGlX3XekzG4= github.com/MoeForge/moejs v0.1.0/go.mod h1:GDaH0vQSxKDN7FCyBaLEZgqsGKRyIYBfje/p74aZQ3k= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= diff --git a/relaykit/go.mod b/relaykit/go.mod index 8ad6626094..dc3415fd5d 100644 --- a/relaykit/go.mod +++ b/relaykit/go.mod @@ -3,7 +3,7 @@ module github.com/QuantumNous/new-api/relaykit go 1.25.1 require ( - github.com/MoeForge/moego v0.1.0-alpha.3 + github.com/MoeForge/moego v0.1.0-alpha.5 github.com/google/uuid v1.6.0 github.com/samber/lo v1.53.0 github.com/stretchr/testify v1.11.1 diff --git a/relaykit/go.sum b/relaykit/go.sum index 04621740a3..85ec2093d0 100644 --- a/relaykit/go.sum +++ b/relaykit/go.sum @@ -1,5 +1,5 @@ -github.com/MoeForge/moego v0.1.0-alpha.3 h1:sn8Kg4qY/gqGXU4CCJWfgzouaim6alkvXcob0uFDohg= -github.com/MoeForge/moego v0.1.0-alpha.3/go.mod h1:SBNiQjCpWC3IEBMKFBOwOyhhQ3jywMrISqCwJTdr4aA= +github.com/MoeForge/moego v0.1.0-alpha.5 h1:/pFyEhm0GYdOGfwawNjzLx+DoDQVoCI0dLsu8Sbpac8= +github.com/MoeForge/moego v0.1.0-alpha.5/go.mod h1:SBNiQjCpWC3IEBMKFBOwOyhhQ3jywMrISqCwJTdr4aA= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/relaykit/relayconvert/golden_test.go b/relaykit/relayconvert/golden_test.go index ef3a0d4224..3f1398d1d0 100644 --- a/relaykit/relayconvert/golden_test.go +++ b/relaykit/relayconvert/golden_test.go @@ -13,9 +13,9 @@ import ( "fmt" "os" "path/filepath" - "regexp" "testing" + "github.com/MoeForge/moego/regexp" "github.com/QuantumNous/new-api/relaykit/dto" "github.com/QuantumNous/new-api/relaykit/relayconvert/convmeta" "github.com/QuantumNous/new-api/relaykit/types" diff --git a/router/provider_plugin_relay_test.go b/router/provider_plugin_relay_test.go index e86d593274..e47f381c36 100644 --- a/router/provider_plugin_relay_test.go +++ b/router/provider_plugin_relay_test.go @@ -14,7 +14,6 @@ import ( "net/http" "net/http/httptest" "net/textproto" - "regexp" "slices" "strconv" "strings" @@ -36,6 +35,7 @@ import ( "github.com/QuantumNous/new-api/setting/ratio_setting" "github.com/QuantumNous/new-api/setting/request_plugin_setting" + "github.com/MoeForge/moego/regexp" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert"