Renames package to jsluice
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
sitter "github.com/smacker/go-tree-sitter"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import "testing"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"strings"
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
func matchJQuery() urlMatcher {
|
||||
func matchJQuery() URLMatcher {
|
||||
|
||||
return urlMatcher{"call_expression", func(n *sitter.Node, source []byte) *URL {
|
||||
return URLMatcher{"call_expression", func(n *sitter.Node, source []byte) *URL {
|
||||
callName := content(n.ChildByFieldName("function"), source)
|
||||
|
||||
if !slices.Contains(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"strings"
|
||||
@@ -32,10 +32,10 @@ func (c *nodeCache) get(k *sitter.Node) ([]*sitter.Node, bool) {
|
||||
return v, exists
|
||||
}
|
||||
|
||||
func matchXHR() urlMatcher {
|
||||
func matchXHR() URLMatcher {
|
||||
cache := newNodeCache()
|
||||
|
||||
return urlMatcher{"call_expression", func(n *sitter.Node, source []byte) *URL {
|
||||
return URLMatcher{"call_expression", func(n *sitter.Node, source []byte) *URL {
|
||||
callName := content(n.ChildByFieldName("function"), source)
|
||||
|
||||
// We don't know what the XMLHttpRequest object will be called,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package jsurls
|
||||
package jsluice
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
|
||||
Reference in New Issue
Block a user