@graphql-mesh/plugin-hive 0.98.10 → 0.98.11
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/cjs/index.js +6 -3
- package/esm/index.js +6 -3
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -20,7 +20,7 @@ function useMeshHive(pluginOptions) {
|
|
|
20
20
|
if (!token) {
|
|
21
21
|
return {};
|
|
22
22
|
}
|
|
23
|
-
let usage;
|
|
23
|
+
let usage = true;
|
|
24
24
|
if (pluginOptions.usage) {
|
|
25
25
|
usage = {
|
|
26
26
|
max: pluginOptions.usage.max,
|
|
@@ -62,10 +62,13 @@ function useMeshHive(pluginOptions) {
|
|
|
62
62
|
}),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
let agent = {
|
|
65
|
+
let agent = {
|
|
66
|
+
name: 'graphql-mesh',
|
|
67
|
+
logger: pluginOptions.logger,
|
|
68
|
+
};
|
|
66
69
|
if (pluginOptions.agent) {
|
|
67
70
|
agent = {
|
|
68
|
-
name: pluginOptions.agent.name,
|
|
71
|
+
name: pluginOptions.agent.name || 'graphql-mesh',
|
|
69
72
|
timeout: pluginOptions.agent.timeout,
|
|
70
73
|
maxRetries: pluginOptions.agent.maxRetries,
|
|
71
74
|
minTimeout: pluginOptions.agent.minTimeout,
|
package/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ export default function useMeshHive(pluginOptions) {
|
|
|
17
17
|
if (!token) {
|
|
18
18
|
return {};
|
|
19
19
|
}
|
|
20
|
-
let usage;
|
|
20
|
+
let usage = true;
|
|
21
21
|
if (pluginOptions.usage) {
|
|
22
22
|
usage = {
|
|
23
23
|
max: pluginOptions.usage.max,
|
|
@@ -59,10 +59,13 @@ export default function useMeshHive(pluginOptions) {
|
|
|
59
59
|
}),
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
let agent = {
|
|
62
|
+
let agent = {
|
|
63
|
+
name: 'graphql-mesh',
|
|
64
|
+
logger: pluginOptions.logger,
|
|
65
|
+
};
|
|
63
66
|
if (pluginOptions.agent) {
|
|
64
67
|
agent = {
|
|
65
|
-
name: pluginOptions.agent.name,
|
|
68
|
+
name: pluginOptions.agent.name || 'graphql-mesh',
|
|
66
69
|
timeout: pluginOptions.agent.timeout,
|
|
67
70
|
maxRetries: pluginOptions.agent.maxRetries,
|
|
68
71
|
minTimeout: pluginOptions.agent.minTimeout,
|