Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliytv committed Jan 2, 2024
1 parent efd4dac commit dffe964
Show file tree
Hide file tree
Showing 7 changed files with 1,471 additions and 1,357 deletions.
783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.3.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.2.3.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
8 changes: 4 additions & 4 deletions npm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nitra/graphql-request",
"description": "Graphql Request helper",
"version": "1.1.0",
"version": "1.2.0",
"type": "module",
"main": "src/index.js",
"files": [
Expand All @@ -19,8 +19,8 @@
"homepage": "https://github.com/nitra/graphql-request",
"license": "MIT",
"dependencies": {
"@nitra/check-env": "^2.0.7",
"graphql": "^16.6.0",
"graphql-request": "^6.0.0"
"@nitra/check-env": "^3.0.0",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0"
}
}
8 changes: 4 additions & 4 deletions npm/src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import checkEnv from '@nitra/check-env'
import { env, checkEnv } from '@nitra/check-env'
import { GraphQLClient, gql } from 'graphql-request'

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

export { gql }
export { gql, GraphQLClient }

export const graphQLClient = new GraphQLClient(process.env.QL, {
export const graphQLClient = new GraphQLClient(env.QL, {
fetch,
headers: {
'X-Hasura-Admin-Secret': process.env.X_HASURA_ADMIN_SECRET
'X-Hasura-Admin-Secret': env.X_HASURA_ADMIN_SECRET
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"@nitra/prettier-config": "^1.0.1"
},
"license": "MIT",
"packageManager": "yarn@3.2.3"
"packageManager": "yarn@4.0.2"
}
Loading

0 comments on commit dffe964

Please sign in to comment.