Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jun 27, 2022
1 parent bb88ad2 commit df65cff
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stealth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:

- uses: actions/setup-node@v1
- uses: actions/setup-node@v3

- uses: actions/setup-go@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ run:
linters:
enable:
- gofmt
- golint
- revive
- gocyclo
- misspell
- bodyclose

gocyclo:
min-complexity: 15
Expand Down
4 changes: 2 additions & 2 deletions assets.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Example_main() {
/*
Output:
js: 92e4bbbf8bd3ad1d67486452008d59f3
js: 173d23e3db48bf47441b2f4735bbc631
User Agent (Old): true
Expand Down
11 changes: 4 additions & 7 deletions generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"os/exec"
"path/filepath"
"regexp"
"strings"
Expand Down Expand Up @@ -30,12 +29,12 @@ const JS = {{.js}}

utils.E(utils.OutputFile(slash("assets.go"), build))

utils.Exec("go", "install", "github.com/ysmood/golangci-lint@latest")
utils.Exec("golangci-lint")
utils.ExecLine(true, "go install github.com/ysmood/golangci-lint@latest")
utils.ExecLine(true, "golangci-lint")
}

func fetchJS() string {
utils.Exec("npx", "extract-stealth-evasions@latest")
utils.ExecLine(true, "npx -ys -- extract-stealth-evasions@latest")

code, err := utils.ReadString("stealth.min.js")
utils.E(err)
Expand All @@ -47,9 +46,7 @@ func fetchJS() string {
}

func version() string {
b, err := exec.Command("npx", "extract-stealth-evasions@latest", "--version").CombinedOutput()
utils.E(err)
return strings.TrimSpace(string(b))
return strings.TrimSpace(utils.ExecLine(false, "npx -ys -- extract-stealth-evasions@latest --version"))
}

// not using encoding like base64 or gzip because of they will make git diff every large for small change
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/go-rod/stealth

go 1.15

require github.com/go-rod/rod v0.106.2
require github.com/go-rod/rod v0.107.3
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
github.com/go-rod/rod v0.106.2 h1:mRnF4ZyuUOacq5kcfhDCq+6+8vZnUcHm+joFhAN961s=
github.com/go-rod/rod v0.106.2/go.mod h1:Q+T5M7AREns3ZrOV89XnnHN2TMSvzKNCpqbUS58+VMk=
github.com/go-rod/rod v0.107.3 h1:s+auNxQW4CTV2DhZ8S6ooQ7CXED4xLJBZPvZTDFA4CA=
github.com/go-rod/rod v0.107.3/go.mod h1:4SqYRUrcc4dSr9iT36YRZ4hdUAPg3A0O8RhxAMh0eCQ=
github.com/ysmood/goob v0.4.0 h1:HsxXhyLBeGzWXnqVKtmT9qM7EuVs/XOgkX7T6r1o1AQ=
github.com/ysmood/goob v0.4.0/go.mod h1:u6yx7ZhS4Exf2MwciFr6nIM8knHQIE22lFpWHnfql18=
github.com/ysmood/got v0.28.1 h1:hl/tniuYxrZ1eA3WU2Wj4h+Zmc7ZF11LxXvD/bGxIwY=
github.com/ysmood/got v0.28.1/go.mod h1:pE1l4LOwOBhQg6A/8IAatkGp7uZjnalzrZolnlhhMgY=
github.com/ysmood/got v0.31.2 h1:+aNBkkXrVqZ0UJfeiOfuGbKq3kiJarjNl371Nxz6zLA=
github.com/ysmood/got v0.31.2/go.mod h1:pE1l4LOwOBhQg6A/8IAatkGp7uZjnalzrZolnlhhMgY=
github.com/ysmood/gotrace v0.6.0 h1:SyI1d4jclswLhg7SWTL6os3L1WOKeNn/ZtzVQF8QmdY=
github.com/ysmood/gotrace v0.6.0/go.mod h1:TzhIG7nHDry5//eYZDYcTzuJLYQIkykJzCRIo4/dzQM=
github.com/ysmood/gson v0.7.1 h1:zKL2MTGtynxdBdlZjyGsvEOZ7dkxaY5TH6QhAbTgz0Q=
Expand Down

0 comments on commit df65cff

Please sign in to comment.