@graphql-mesh/graphql 1.0.0-alpha-20230523155104-df277a22b → 1.0.0-alpha-20230523160518-5443a1139

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
@@ -169,7 +169,7 @@ class GraphQLHandler {
169
169
  });
170
170
  }
171
171
  else if (typeof schemaOrStringOrDocumentNode === 'object' &&
172
- schemaOrStringOrDocumentNode?.kind === graphql_1.Kind.DOCUMENT) {
172
+ (schemaOrStringOrDocumentNode === null || schemaOrStringOrDocumentNode === void 0 ? void 0 : schemaOrStringOrDocumentNode.kind) === graphql_1.Kind.DOCUMENT) {
173
173
  schema = (0, graphql_1.buildASTSchema)(schemaOrStringOrDocumentNode, {
174
174
  assumeValid: true,
175
175
  assumeValidSDL: true,
@@ -192,12 +192,13 @@ class GraphQLHandler {
192
192
  }
193
193
  getFallbackExecutor(executors) {
194
194
  return async function fallbackExecutor(params) {
195
+ var _a;
195
196
  let error;
196
197
  let response;
197
198
  for (const executor of executors) {
198
199
  try {
199
200
  const executorResponse = await executor(params);
200
- if ('errors' in executorResponse && executorResponse.errors?.length) {
201
+ if ('errors' in executorResponse && ((_a = executorResponse.errors) === null || _a === void 0 ? void 0 : _a.length)) {
201
202
  response = executorResponse;
202
203
  continue;
203
204
  }
package/esm/index.js CHANGED
@@ -166,7 +166,7 @@ export default class GraphQLHandler {
166
166
  });
167
167
  }
168
168
  else if (typeof schemaOrStringOrDocumentNode === 'object' &&
169
- schemaOrStringOrDocumentNode?.kind === Kind.DOCUMENT) {
169
+ (schemaOrStringOrDocumentNode === null || schemaOrStringOrDocumentNode === void 0 ? void 0 : schemaOrStringOrDocumentNode.kind) === Kind.DOCUMENT) {
170
170
  schema = buildASTSchema(schemaOrStringOrDocumentNode, {
171
171
  assumeValid: true,
172
172
  assumeValidSDL: true,
@@ -189,12 +189,13 @@ export default class GraphQLHandler {
189
189
  }
190
190
  getFallbackExecutor(executors) {
191
191
  return async function fallbackExecutor(params) {
192
+ var _a;
192
193
  let error;
193
194
  let response;
194
195
  for (const executor of executors) {
195
196
  try {
196
197
  const executorResponse = await executor(params);
197
- if ('errors' in executorResponse && executorResponse.errors?.length) {
198
+ if ('errors' in executorResponse && ((_a = executorResponse.errors) === null || _a === void 0 ? void 0 : _a.length)) {
198
199
  response = executorResponse;
199
200
  continue;
200
201
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@graphql-mesh/graphql",
3
- "version": "1.0.0-alpha-20230523155104-df277a22b",
3
+ "version": "1.0.0-alpha-20230523160518-5443a1139",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/cross-helpers": "0.4.0-alpha-20230523155104-df277a22b",
7
- "@graphql-mesh/store": "1.0.0-alpha-20230523155104-df277a22b",
8
- "@graphql-mesh/types": "1.0.0-alpha-20230523155104-df277a22b",
9
- "@graphql-mesh/utils": "1.0.0-alpha-20230523155104-df277a22b",
6
+ "@graphql-mesh/cross-helpers": "0.4.0-alpha-20230523160518-5443a1139",
7
+ "@graphql-mesh/store": "1.0.0-alpha-20230523160518-5443a1139",
8
+ "@graphql-mesh/types": "1.0.0-alpha-20230523160518-5443a1139",
9
+ "@graphql-mesh/utils": "1.0.0-alpha-20230523160518-5443a1139",
10
10
  "@graphql-tools/utils": "^9.2.1",
11
11
  "graphql": "*",
12
12
  "tslib": "^2.4.0"
13
13
  },
14
14
  "dependencies": {
15
- "@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523155104-df277a22b",
15
+ "@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523160518-5443a1139",
16
16
  "@graphql-tools/delegate": "^9.0.32",
17
17
  "@graphql-tools/url-loader": "^7.17.18",
18
18
  "@graphql-tools/wrap": "^9.4.2",
@@ -24,9 +24,6 @@
24
24
  "directory": "packages/handlers/graphql"
25
25
  },
26
26
  "license": "MIT",
27
- "engines": {
28
- "node": ">=16.0.0"
29
- },
30
27
  "main": "cjs/index.js",
31
28
  "module": "esm/index.js",
32
29
  "typings": "typings/index.d.ts",