Compare commits

..

3 Commits
v0.0.2 ... main

Author SHA1 Message Date
e5c8180fdf update for gojs 2025-11-30 23:59:16 +08:00
64d3c24eab update gojs 2025-11-30 22:48:13 +08:00
5af97f8695 update packages 2025-06-25 22:50:02 +08:00
2 changed files with 13 additions and 13 deletions

View File

@ -161,9 +161,9 @@ func consolePrint(args goja.FunctionCall, typ string, vm *goja.Runtime) {
for i, arg := range args.Arguments { for i, arg := range args.Arguments {
if textColor != u.TextNone { if textColor != u.TextNone {
arr[i] = u.Color(u.StringP(arg.Export()), textColor, u.BgNone) arr[i] = u.Color(u.StringP(gojs.FixObject(arg.Export())), textColor, u.BgNone)
} else { } else {
arr[i] = u.StringP(arg.Export()) arr[i] = u.StringP(gojs.FixObject(arg.Export()))
} }
} }

22
go.mod
View File

@ -1,22 +1,22 @@
module apigo.cc/gojs/console module apigo.cc/gojs/console
go 1.18 go 1.24.0
require ( require (
apigo.cc/gojs v0.0.4 apigo.cc/gojs v0.0.30
github.com/ssgo/u v1.7.11 github.com/ssgo/u v1.7.23
) )
require ( require (
github.com/dlclark/regexp2 v1.11.4 // indirect github.com/dlclark/regexp2 v1.11.5 // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect github.com/google/pprof v0.0.0-20250903194437-c28834ac2320 // indirect
github.com/ssgo/config v1.7.9 // indirect github.com/ssgo/config v1.7.10 // indirect
github.com/ssgo/log v1.7.7 // indirect github.com/ssgo/log v1.7.9 // indirect
github.com/ssgo/standard v1.7.7 // indirect github.com/ssgo/standard v1.7.7 // indirect
github.com/ssgo/tool v0.4.27 // indirect github.com/ssgo/tool v0.4.29 // indirect
golang.org/x/sys v0.27.0 // indirect golang.org/x/sys v0.38.0 // indirect
golang.org/x/text v0.20.0 // indirect golang.org/x/text v0.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )