diff --git a/README.md b/README.md index 1cd219a..bcd95eb 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ Example: package main import ( - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) func main() { diff --git a/console/module.go b/console/module.go index 2e74449..2b00208 100644 --- a/console/module.go +++ b/console/module.go @@ -3,9 +3,9 @@ package console import ( "log" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" - "github.com/dop251/goja_nodejs/util" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" + "github.com/link-duan/goja_nodejs/util" ) const ModuleName = "node:console" diff --git a/console/module_test.go b/console/module_test.go index 5008809..ca6ae7d 100644 --- a/console/module_test.go +++ b/console/module_test.go @@ -3,8 +3,8 @@ package console import ( "testing" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) func TestConsole(t *testing.T) { diff --git a/eventloop/eventloop.go b/eventloop/eventloop.go index 582cbe5..10e9b4d 100644 --- a/eventloop/eventloop.go +++ b/eventloop/eventloop.go @@ -5,9 +5,9 @@ import ( "sync/atomic" "time" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/console" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/console" + "github.com/link-duan/goja_nodejs/require" ) type job struct { diff --git a/eventloop/eventloop_test.go b/eventloop/eventloop_test.go index 9338bca..cc0ffac 100644 --- a/eventloop/eventloop_test.go +++ b/eventloop/eventloop_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/dop251/goja" + "github.com/link-duan/goja" ) func TestRun(t *testing.T) { diff --git a/go.mod b/go.mod index 1f5b30e..6070100 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ -module github.com/dop251/goja_nodejs +module github.com/link-duan/goja_nodejs go 1.16 require ( - github.com/dop251/goja v0.0.0-20221118162653-d4bf6fde1b86 + github.com/link-duan/goja v1.0.0 golang.org/x/net v0.4.0 ) diff --git a/go.sum b/go.sum index 6eb9f01..f761447 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,6 @@ github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwu github.com/dlclark/regexp2 v1.7.0 h1:7lJfhqlPssTb1WQx4yvTHN0uElPEv52sbaECrAQxjAo= github.com/dlclark/regexp2 v1.7.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= github.com/dop251/goja v0.0.0-20211022113120-dc8c55024d06/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= -github.com/dop251/goja v0.0.0-20221118162653-d4bf6fde1b86 h1:E2wycakfddWJ26v+ZyEY91Lb/HEZyaiZhbMX+KQcdmc= -github.com/dop251/goja v0.0.0-20221118162653-d4bf6fde1b86/go.mod h1:yRkwfj0CBpOGre+TwBsqPV0IH0Pk73e4PXJOeNDboGs= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8aVqWbuLRMHItjPUyqdj+HWPvnQe8V8y1nDpIbM= github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= @@ -15,6 +13,8 @@ github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NB github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/link-duan/goja v1.0.0 h1:WgBJ9Bb8mILNspSE6K0vL/YKO7+e8suABbtASynVcsY= +github.com/link-duan/goja v1.0.0/go.mod h1:S3bockr2xYyfKf1ilMcS7mHP1jQKF63BFqjgE2M+tFY= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/process/module.go b/process/module.go index 99df44e..125e0f1 100644 --- a/process/module.go +++ b/process/module.go @@ -4,8 +4,8 @@ import ( "os" "strings" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) type Process struct { diff --git a/process/module_test.go b/process/module_test.go index 4935082..dd11464 100644 --- a/process/module_test.go +++ b/process/module_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) func TestProcessEnvStructure(t *testing.T) { diff --git a/require/module.go b/require/module.go index b79e569..bff8f85 100644 --- a/require/module.go +++ b/require/module.go @@ -10,8 +10,8 @@ import ( "syscall" "text/template" - js "github.com/dop251/goja" - "github.com/dop251/goja/parser" + js "github.com/link-duan/goja" + "github.com/link-duan/goja/parser" ) type ModuleLoader func(*js.Runtime, *js.Object) @@ -121,7 +121,7 @@ func DefaultSourceLoader(filename string) ([]byte, error) { if errors.Is(err, syscall.Errno(0x7b)) { // ERROR_INVALID_NAME, The filename, directory name, or volume label syntax is incorrect. err = ModuleFileDoesNotExistError } else { - // temporary workaround for https://github.com/dop251/goja_nodejs/issues/21 + // temporary workaround for https://github.com/link-duan/goja_nodejs/issues/21 fi, err1 := os.Stat(fp) if err1 == nil && fi.IsDir() { err = ModuleFileDoesNotExistError diff --git a/require/module_test.go b/require/module_test.go index 21adece..1cb32d2 100644 --- a/require/module_test.go +++ b/require/module_test.go @@ -9,7 +9,7 @@ import ( "path" "testing" - js "github.com/dop251/goja" + js "github.com/link-duan/goja" ) func mapFileSystemSourceLoader(files map[string]string) SourceLoader { diff --git a/require/resolve.go b/require/resolve.go index 99a975c..74f14fd 100644 --- a/require/resolve.go +++ b/require/resolve.go @@ -6,7 +6,7 @@ import ( "path" "strings" - js "github.com/dop251/goja" + js "github.com/link-duan/goja" ) // NodeJS module search algorithm described by diff --git a/url/module.go b/url/module.go index 6db6eb7..dbc9762 100644 --- a/url/module.go +++ b/url/module.go @@ -9,8 +9,8 @@ import ( "golang.org/x/net/idna" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) const ModuleName = "node:url" diff --git a/url/module_test.go b/url/module_test.go index 862922b..9a46abb 100644 --- a/url/module_test.go +++ b/url/module_test.go @@ -4,8 +4,8 @@ import ( _ "embed" "testing" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) func TestURL(t *testing.T) { diff --git a/util/module.go b/util/module.go index 9c31223..72f28b5 100644 --- a/util/module.go +++ b/util/module.go @@ -2,8 +2,8 @@ package util import ( "bytes" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) const ModuleName = "node:util" diff --git a/util/module_test.go b/util/module_test.go index b95ca84..bbbb5fc 100644 --- a/util/module_test.go +++ b/util/module_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/dop251/goja" - "github.com/dop251/goja_nodejs/require" + "github.com/link-duan/goja" + "github.com/link-duan/goja_nodejs/require" ) func TestUtil_Format(t *testing.T) {