Skip to content

Commit

Permalink
chore: update dependencies of graphql-client (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed May 6, 2021
1 parent 304cc18 commit 217004d
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 686 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-gorillas-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@accounts/graphql-client': patch
---

Upgrade dependencies
3 changes: 2 additions & 1 deletion packages/graphql-client/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ documents: ./src/**/*.graphql
generates:
./src/graphql-operations.ts:
plugins:
- add: /* eslint-disable */
- add:
content: '/* eslint-disable */'
- typescript
- typescript-operations
- typed-document-node
16 changes: 8 additions & 8 deletions packages/graphql-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
"dependencies": {
"@accounts/client": "^0.32.0",
"@accounts/types": "^0.32.0",
"@graphql-typed-document-node/core": "0.0.1",
"@graphql-typed-document-node/core": "3.1.0",
"tslib": "2.1.0"
},
"devDependencies": {
"@graphql-codegen/add": "1.17.4",
"@graphql-codegen/cli": "1.17.4",
"@graphql-codegen/typed-document-node": "1.17.4",
"@graphql-codegen/typescript": "1.17.4",
"@graphql-codegen/typescript-operations": "1.17.4",
"@types/jest": "25.2.3",
"@graphql-codegen/add": "2.0.2",
"@graphql-codegen/cli": "1.21.4",
"@graphql-codegen/typed-document-node": "1.18.5",
"@graphql-codegen/typescript": "1.22.0",
"@graphql-codegen/typescript-operations": "1.17.16",
"@types/jest": "26.0.23",
"graphql": "14.6.0",
"jest": "26.6.3",
"ts-jest": "26.5.0"
"ts-jest": "26.5.6"
}
}
2 changes: 1 addition & 1 deletion packages/graphql-client/src/graphql-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default class GraphQLClient implements TransportInterface {
// If we are executing a refresh token mutation do not call refresh session again
// otherwise it will end up in an infinite loop
const tokens =
mutation === RefreshTokensDocument
(mutation as any) === RefreshTokensDocument
? await this.client.getTokens()
: await this.client.refreshSession();

Expand Down

0 comments on commit 217004d

Please sign in to comment.