Skip to content

Commit

Permalink
Merge pull request #53 from aidantwoods/v2-package-path
Browse files Browse the repository at this point in the history
Add v2 in path for v2 alpha
  • Loading branch information
aidantwoods authored Oct 2, 2024
2 parents 9bc11b0 + f8e847f commit 3b1f947
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion claims_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module aidanwoods.dev/go-paseto
module aidanwoods.dev/go-paseto/v2

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"crypto/rand"
"testing"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package paseto
import (
"strings"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
t "aidanwoods.dev/go-result"
)

Expand Down
2 changes: 1 addition & 1 deletion parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package paseto_test
import (
"testing"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package paseto
import (
"crypto/ed25519"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/hashing"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/hashing"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
"golang.org/x/crypto/chacha20poly1305"
)
Expand Down
4 changes: 2 additions & 2 deletions v2_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/ed25519"
"encoding/hex"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
)

Expand Down
4 changes: 2 additions & 2 deletions v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"crypto/sha512"
"math/big"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
)

Expand Down
4 changes: 2 additions & 2 deletions v3_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"io"
"math/big"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
"golang.org/x/crypto/hkdf"
)
Expand Down
6 changes: 3 additions & 3 deletions v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"crypto/ed25519"
"crypto/hmac"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/hashing"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/hashing"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
"golang.org/x/crypto/chacha20"
)
Expand Down
6 changes: 3 additions & 3 deletions v4_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package paseto
import (
"crypto/ed25519"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/hashing"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/hashing"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
)

Expand Down
2 changes: 1 addition & 1 deletion vectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
ty "aidanwoods.dev/go-result"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 3b1f947

Please sign in to comment.