@graphql-mesh/graphql 0.94.0 → 0.94.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.
package/cjs/index.js CHANGED
@@ -50,8 +50,12 @@ class GraphQLHandler {
50
50
  });
51
51
  const endpointFactory = (0, string_interpolation_1.getInterpolatedStringFactory)(endpoint);
52
52
  const operationHeadersFactory = (0, string_interpolation_1.getInterpolatedHeadersFactory)(operationHeaders);
53
+ const subscriptionsEndpoint = httpSourceConfig.subscriptionsEndpoint
54
+ ? string_interpolation_1.stringInterpolator.parse(httpSourceConfig.subscriptionsEndpoint, { env: cross_helpers_1.process.env })
55
+ : undefined;
53
56
  const executor = this.urlLoader.getExecutorAsync(endpoint, {
54
57
  ...httpSourceConfig,
58
+ subscriptionsEndpoint,
55
59
  subscriptionsProtocol: httpSourceConfig.subscriptionsProtocol,
56
60
  customFetch: this.fetchFn,
57
61
  });
package/esm/index.js CHANGED
@@ -2,7 +2,7 @@ import { buildASTSchema, buildClientSchema, buildSchema, GraphQLSchema, Kind, pr
2
2
  import lodashGet from 'lodash.get';
3
3
  import { process, util } from '@graphql-mesh/cross-helpers';
4
4
  import { PredefinedProxyOptions, ValidationError } from '@graphql-mesh/store';
5
- import { getInterpolatedHeadersFactory, getInterpolatedStringFactory, parseInterpolationStrings, } from '@graphql-mesh/string-interpolation';
5
+ import { getInterpolatedHeadersFactory, getInterpolatedStringFactory, parseInterpolationStrings, stringInterpolator, } from '@graphql-mesh/string-interpolation';
6
6
  import { isUrl, loadFromModuleExportExpression, readFile, readFileOrUrl, readUrl, } from '@graphql-mesh/utils';
7
7
  import { UrlLoader } from '@graphql-tools/url-loader';
8
8
  import { getOperationASTFromRequest, isAsyncIterable, isDocumentNode, memoize1, parseSelectionSet, } from '@graphql-tools/utils';
@@ -47,8 +47,12 @@ export default class GraphQLHandler {
47
47
  });
48
48
  const endpointFactory = getInterpolatedStringFactory(endpoint);
49
49
  const operationHeadersFactory = getInterpolatedHeadersFactory(operationHeaders);
50
+ const subscriptionsEndpoint = httpSourceConfig.subscriptionsEndpoint
51
+ ? stringInterpolator.parse(httpSourceConfig.subscriptionsEndpoint, { env: process.env })
52
+ : undefined;
50
53
  const executor = this.urlLoader.getExecutorAsync(endpoint, {
51
54
  ...httpSourceConfig,
55
+ subscriptionsEndpoint,
52
56
  subscriptionsProtocol: httpSourceConfig.subscriptionsProtocol,
53
57
  customFetch: this.fetchFn,
54
58
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/graphql",
3
- "version": "0.94.0",
3
+ "version": "0.94.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/cross-helpers": "^0.4.0",