@graphql-mesh/transform-hive 1.0.0-alpha-20230523154127-518d8667d → 1.0.0-alpha-20230523154231-8c60b52d9

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