Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
duanlv committed Mar 2, 2023
1 parent 060fa99 commit a59d153
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions console/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions console/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions eventloop/eventloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion eventloop/eventloop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/dop251/goja"
"github.com/link-duan/goja"
)

func TestRun(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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=
Expand Down
4 changes: 2 additions & 2 deletions process/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions process/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions require/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion require/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion require/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path"
"strings"

js "github.com/dop251/goja"
js "github.com/link-duan/goja"
)

// NodeJS module search algorithm described by
Expand Down
4 changes: 2 additions & 2 deletions url/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions url/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions util/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions util/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a59d153

Please sign in to comment.