@graphql-hive/gateway-runtime 2.4.1-rc-452244aa391f6f5f782b0aa4c48bd40336b32c96 → 2.4.1-rc-b43b342206f6361f87360a84a94f5cf09ae6409f

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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # @graphql-hive/gateway-runtime
2
2
 
3
- ## 2.4.1-rc-452244aa391f6f5f782b0aa4c48bd40336b32c96
3
+ ## 2.4.1-rc-b43b342206f6361f87360a84a94f5cf09ae6409f
4
4
  ### Patch Changes
5
5
 
6
6
 
7
7
 
8
8
  - [#1777](https://github.com/graphql-hive/gateway/pull/1777) [`7e33249`](https://github.com/graphql-hive/gateway/commit/7e332496179d213cf10f055b282ce30ab68279d1) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Hive console client agent inherits the plugin's root logger
9
9
 
10
+
11
+
12
+ - [#1781](https://github.com/graphql-hive/gateway/pull/1781) [`db20a29`](https://github.com/graphql-hive/gateway/commit/db20a298c57c717495cbdbcaa6a8aa5b369da909) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Debug is determined by Hive Logger and does not need to be set for Hive Console's plugin
13
+
14
+
15
+
16
+ - [#1781](https://github.com/graphql-hive/gateway/pull/1781) [`db20a29`](https://github.com/graphql-hive/gateway/commit/db20a298c57c717495cbdbcaa6a8aa5b369da909) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Do not print token info by default when using Hive Console
17
+
10
18
  - Updated dependencies []:
11
19
  - @graphql-mesh/fusion-runtime@1.6.2
12
20
  - @graphql-mesh/hmac-upstream-signature@2.0.8
package/dist/index.cjs CHANGED
@@ -58,20 +58,9 @@ function getEnvStr(key, opts = {}) {
58
58
  }
59
59
  return variable?.trim();
60
60
  }
61
- function getEnvBool(key, opts = {}) {
62
- return strToBool(getEnvStr(key, opts));
63
- }
64
61
  function getNodeEnv(opts = {}) {
65
62
  return getEnvStr("NODE_ENV", opts);
66
63
  }
67
- function strToBool(str) {
68
- return ["1", "t", "true", "y", "yes", "on", "enabled"].includes(
69
- (str || "").toLowerCase()
70
- );
71
- }
72
- function isDebug() {
73
- return getEnvBool("DEBUG");
74
- }
75
64
 
76
65
  function checkIfDataSatisfiesSelectionSet(selectionSet, data) {
77
66
  if (Array.isArray(data)) {
@@ -575,8 +564,8 @@ function useHiveConsole({
575
564
  throw new Error("Hive plugin is enabled but the token is not provided");
576
565
  }
577
566
  return yoga.useHive({
578
- debug: isDebug(),
579
567
  logger: options.log,
568
+ printTokenInfo: false,
580
569
  ...options,
581
570
  enabled: !!enabled,
582
571
  token,
package/dist/index.js CHANGED
@@ -57,20 +57,9 @@ function getEnvStr(key, opts = {}) {
57
57
  }
58
58
  return variable?.trim();
59
59
  }
60
- function getEnvBool(key, opts = {}) {
61
- return strToBool(getEnvStr(key, opts));
62
- }
63
60
  function getNodeEnv(opts = {}) {
64
61
  return getEnvStr("NODE_ENV", opts);
65
62
  }
66
- function strToBool(str) {
67
- return ["1", "t", "true", "y", "yes", "on", "enabled"].includes(
68
- (str || "").toLowerCase()
69
- );
70
- }
71
- function isDebug() {
72
- return getEnvBool("DEBUG");
73
- }
74
63
 
75
64
  function checkIfDataSatisfiesSelectionSet(selectionSet, data) {
76
65
  if (Array.isArray(data)) {
@@ -574,8 +563,8 @@ function useHiveConsole({
574
563
  throw new Error("Hive plugin is enabled but the token is not provided");
575
564
  }
576
565
  return useHive({
577
- debug: isDebug(),
578
566
  logger: options.log,
567
+ printTokenInfo: false,
579
568
  ...options,
580
569
  enabled: !!enabled,
581
570
  token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway-runtime",
3
- "version": "2.4.1-rc-452244aa391f6f5f782b0aa4c48bd40336b32c96",
3
+ "version": "2.4.1-rc-b43b342206f6361f87360a84a94f5cf09ae6409f",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",