@graphql-mesh/plugin-hive 1.0.0-alpha-20230523153903-5443a1139 → 1.0.0-alpha-20230523154127-518d8667d

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 CHANGED
@@ -4,7 +4,6 @@ const client_1 = require("@graphql-hive/client");
4
4
  const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
5
5
  const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
6
6
  function useMeshHive(pluginOptions) {
7
- var _a;
8
7
  const token = string_interpolation_1.stringInterpolator.parse(pluginOptions.token, {
9
8
  env: cross_helpers_1.process.env,
10
9
  });
@@ -20,7 +19,7 @@ function useMeshHive(pluginOptions) {
20
19
  sampleRate: pluginOptions.usage.sampleRate,
21
20
  processVariables: pluginOptions.usage.processVariables,
22
21
  };
23
- if ((_a = pluginOptions.usage) === null || _a === void 0 ? void 0 : _a.clientInfo) {
22
+ if (pluginOptions.usage?.clientInfo) {
24
23
  usage.clientInfo = function (context) {
25
24
  return {
26
25
  name: string_interpolation_1.stringInterpolator.parse(pluginOptions.usage.clientInfo.name, {
package/esm/index.js CHANGED
@@ -2,7 +2,6 @@ import { createHive, useHive } from '@graphql-hive/client';
2
2
  import { process } from '@graphql-mesh/cross-helpers';
3
3
  import { stringInterpolator } from '@graphql-mesh/string-interpolation';
4
4
  export default function useMeshHive(pluginOptions) {
5
- var _a;
6
5
  const token = stringInterpolator.parse(pluginOptions.token, {
7
6
  env: process.env,
8
7
  });
@@ -18,7 +17,7 @@ export default function useMeshHive(pluginOptions) {
18
17
  sampleRate: pluginOptions.usage.sampleRate,
19
18
  processVariables: pluginOptions.usage.processVariables,
20
19
  };
21
- if ((_a = pluginOptions.usage) === null || _a === void 0 ? void 0 : _a.clientInfo) {
20
+ if (pluginOptions.usage?.clientInfo) {
22
21
  usage.clientInfo = function (context) {
23
22
  return {
24
23
  name: stringInterpolator.parse(pluginOptions.usage.clientInfo.name, {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@graphql-mesh/plugin-hive",
3
- "version": "1.0.0-alpha-20230523153903-5443a1139",
3
+ "version": "1.0.0-alpha-20230523154127-518d8667d",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/cross-helpers": "0.4.0-alpha-20230523153903-5443a1139",
7
- "@graphql-mesh/types": "1.0.0-alpha-20230523153903-5443a1139",
6
+ "@graphql-mesh/cross-helpers": "0.4.0-alpha-20230523154127-518d8667d",
7
+ "@graphql-mesh/types": "1.0.0-alpha-20230523154127-518d8667d",
8
8
  "graphql": "*",
9
9
  "tslib": "^2.4.0"
10
10
  },
11
11
  "dependencies": {
12
12
  "@graphql-hive/client": "0.23.1",
13
- "@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523153903-5443a1139"
13
+ "@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523154127-518d8667d"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -18,6 +18,9 @@
18
18
  "directory": "packages/plugins/hive"
19
19
  },
20
20
  "license": "MIT",
21
+ "engines": {
22
+ "node": ">=16.0.0"
23
+ },
21
24
  "main": "cjs/index.js",
22
25
  "module": "esm/index.js",
23
26
  "typings": "typings/index.d.ts",