update for gojs
This commit is contained in:
parent
6321c9f3c5
commit
2a7e21be35
2
file.go
2
file.go
@ -245,7 +245,7 @@ func searchFile(searchPath, name string) string {
|
|||||||
|
|
||||||
func searchFileFromCurrent(vm *goja.Runtime, name string) string {
|
func searchFileFromCurrent(vm *goja.Runtime, name string) string {
|
||||||
searched := map[string]bool{}
|
searched := map[string]bool{}
|
||||||
startPath := u.String(vm.GoData["startPath"])
|
startPath := u.String(vm.GetData("startPath"))
|
||||||
filename := _searchFile(startPath, name, &searched)
|
filename := _searchFile(startPath, name, &searched)
|
||||||
if filename == "" {
|
if filename == "" {
|
||||||
currentPath, _ := os.Getwd()
|
currentPath, _ := os.Getwd()
|
||||||
|
14
go.mod
14
go.mod
@ -1,10 +1,10 @@
|
|||||||
module apigo.cc/gojs/file
|
module apigo.cc/gojs/file
|
||||||
|
|
||||||
go 1.23.0
|
go 1.24
|
||||||
|
|
||||||
require (
|
require (
|
||||||
apigo.cc/gojs v0.0.15
|
apigo.cc/gojs v0.0.25
|
||||||
github.com/ssgo/u v1.7.19
|
github.com/ssgo/u v1.7.21
|
||||||
gopkg.in/yaml.v3 v3.0.1
|
gopkg.in/yaml.v3 v3.0.1
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -12,11 +12,11 @@ require (
|
|||||||
github.com/dlclark/regexp2 v1.11.5 // indirect
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.9.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-20250607225305-033d6d78b36a // indirect
|
github.com/google/pprof v0.0.0-20250630185457-6e76a2b096b5 // indirect
|
||||||
github.com/ssgo/config v1.7.9 // 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/standard v1.7.7 // indirect
|
||||||
github.com/ssgo/tool v0.4.29 // indirect
|
github.com/ssgo/tool v0.4.29 // indirect
|
||||||
golang.org/x/sys v0.33.0 // indirect
|
golang.org/x/sys v0.34.0 // indirect
|
||||||
golang.org/x/text v0.26.0 // indirect
|
golang.org/x/text v0.27.0 // indirect
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user