From 2a7e21be357671e2abcb8aa939612df61967e51f Mon Sep 17 00:00:00 2001 From: Star Date: Mon, 28 Jul 2025 22:50:54 +0800 Subject: [PATCH] update for gojs --- file.go | 2 +- go.mod | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/file.go b/file.go index 1ed7179..1d40c93 100644 --- a/file.go +++ b/file.go @@ -245,7 +245,7 @@ func searchFile(searchPath, name string) string { func searchFileFromCurrent(vm *goja.Runtime, name string) string { searched := map[string]bool{} - startPath := u.String(vm.GoData["startPath"]) + startPath := u.String(vm.GetData("startPath")) filename := _searchFile(startPath, name, &searched) if filename == "" { currentPath, _ := os.Getwd() diff --git a/go.mod b/go.mod index 8732376..0525302 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module apigo.cc/gojs/file -go 1.23.0 +go 1.24 require ( - apigo.cc/gojs v0.0.15 - github.com/ssgo/u v1.7.19 + apigo.cc/gojs v0.0.25 + github.com/ssgo/u v1.7.21 gopkg.in/yaml.v3 v3.0.1 ) @@ -12,11 +12,11 @@ require ( github.com/dlclark/regexp2 v1.11.5 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect - github.com/google/pprof v0.0.0-20250607225305-033d6d78b36a // indirect + github.com/google/pprof v0.0.0-20250630185457-6e76a2b096b5 // indirect github.com/ssgo/config v1.7.9 // 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/tool v0.4.29 // indirect - golang.org/x/sys v0.33.0 // indirect - golang.org/x/text v0.26.0 // indirect + golang.org/x/sys v0.34.0 // indirect + golang.org/x/text v0.27.0 // indirect )