From 568678fb14a4e58a997f37994cd823d16b7e5a50 Mon Sep 17 00:00:00 2001 From: vitaliytv Date: Tue, 18 Jun 2024 12:15:39 +0300 Subject: [PATCH] eslint --- npm/package.json | 3 +++ npm/src/index.js | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/npm/package.json b/npm/package.json index c28220e..9eae8b7 100644 --- a/npm/package.json +++ b/npm/package.json @@ -22,5 +22,8 @@ "@nitra/check-env": "^3.2.0", "graphql": "^16.8.2", "graphql-request": "^7.0.1" + }, + "engines": { + "node": ">=22.0.0" } } diff --git a/npm/src/index.js b/npm/src/index.js index 3f7b8d1..918c8a0 100644 --- a/npm/src/index.js +++ b/npm/src/index.js @@ -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'