@econneq/gql-auth 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,11 +14,9 @@ export async function queryServerGraphQL({ query, variables = {}, domain, config
14
14
  variables,
15
15
  fetchPolicy: 'no-cache',
16
16
  });
17
- console.log("getting @e-conneq/gql-auth ........");
18
17
  return result?.data;
19
18
  }
20
19
  catch (err) {
21
- console.error("GraphQL Server Error:", err);
22
20
  return null;
23
21
  }
24
22
  }
@@ -6,7 +6,7 @@ export async function uploadGraphQLMutation({ query, variables, fileMap, token,
6
6
  const host = production ? process.env.INTERNAL_API_URL : process.env.EXTERNAL_API_URL;
7
7
  let API_LINK;
8
8
  if (isServer) {
9
- API_LINK = `${protocol}${host}/graphql/`;
9
+ API_LINK = `http://${host}/graphql/`;
10
10
  }
11
11
  else {
12
12
  API_LINK = `/api/graphql`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@econneq/gql-auth",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",