Update go dependencies (#3480)

* Bump golang.org/x/text from 0.3.7 to 0.3.8

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update go dependencies

* Update x/net

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
WithoutPants
2023-02-28 08:26:14 +11:00
committed by GitHub
parent 445e0a7311
commit 30809e16fa
417 changed files with 32289 additions and 17730 deletions

View File

@@ -10,11 +10,11 @@ import (
type parser struct {
lexer lexer.Lexer
err *gqlerror.Error
err error
peeked bool
peekToken lexer.Token
peekError *gqlerror.Error
peekError error
prev lexer.Token
}

View File

@@ -1,13 +1,12 @@
package parser
import (
"github.com/vektah/gqlparser/v2/gqlerror"
"github.com/vektah/gqlparser/v2/lexer"
. "github.com/vektah/gqlparser/v2/ast"
)
func ParseQuery(source *Source) (*QueryDocument, *gqlerror.Error) {
func ParseQuery(source *Source) (*QueryDocument, error) {
p := parser{
lexer: lexer.New(source),
}
@@ -337,7 +336,6 @@ func (p *parser) parseTypeReference() *Type {
}
if p.skip(lexer.Bang) {
typ.Position = p.peekPos()
typ.NonNull = true
}
return &typ

View File

@@ -2,11 +2,10 @@ package parser
import (
. "github.com/vektah/gqlparser/v2/ast"
"github.com/vektah/gqlparser/v2/gqlerror"
"github.com/vektah/gqlparser/v2/lexer"
)
func ParseSchema(source *Source) (*SchemaDocument, *gqlerror.Error) {
func ParseSchema(source *Source) (*SchemaDocument, error) {
p := parser{
lexer: lexer.New(source),
}
@@ -25,7 +24,7 @@ func ParseSchema(source *Source) (*SchemaDocument, *gqlerror.Error) {
return ast, nil
}
func ParseSchemas(inputs ...*Source) (*SchemaDocument, *gqlerror.Error) {
func ParseSchemas(inputs ...*Source) (*SchemaDocument, error) {
ast := &SchemaDocument{}
for _, input := range inputs {
inputAst, err := ParseSchema(input)

View File

@@ -643,4 +643,4 @@ fuzzer:
input: "\"\"\"\r"
error:
message: 'Unexpected <Invalid>'
locations: [{ line: 1, column: 5 }]
locations: [{ line: 2, column: 1 }]