Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliytv committed Jun 18, 2024
1 parent bb58e3f commit 568678f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"@nitra/check-env": "^3.2.0",
"graphql": "^16.8.2",
"graphql-request": "^7.0.1"
},
"engines": {
"node": ">=22.0.0"
}
}
7 changes: 3 additions & 4 deletions npm/src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { env, checkEnv } from '@nitra/check-env'
import { GraphQLClient, gql } from 'graphql-request'
import { checkEnv, env } from '@nitra/check-env'
import { GraphQLClient } from 'graphql-request'

checkEnv(['QL', 'X_HASURA_ADMIN_SECRET'])

export { gql, GraphQLClient }

export const graphQLClient = new GraphQLClient(env.QL, {
fetch,
headers: {
'X-Hasura-Admin-Secret': env.X_HASURA_ADMIN_SECRET
}
})
export { GraphQLClient, gql } from 'graphql-request'

0 comments on commit 568678f

Please sign in to comment.