@graphql-tools/wrap 8.3.1-alpha-06eec860.0 → 8.3.3

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.
Files changed (3) hide show
  1. package/index.js +3 -2
  2. package/index.mjs +3 -2
  3. package/package.json +6 -5
package/index.js CHANGED
@@ -623,7 +623,7 @@ class TransformInputObjectFields {
623
623
  // Cast to NamedTypeNode required until upcomming graphql releases will have TypeNode paramter
624
624
  const varType = graphql.typeFromAST(delegationContext.transformedSchema, variableDef.type);
625
625
  if (!graphql.isInputType(varType)) {
626
- throw new Error(`Expected ${varType} to be an input type`);
626
+ continue;
627
627
  }
628
628
  variableValues[varName] = utils.transformInputValue(varType, variableValues[varName], undefined, (type, originalValue) => {
629
629
  var _a;
@@ -1701,7 +1701,8 @@ function introspectSchema(executor, context, options) {
1701
1701
  }))
1702
1702
  .then(introspection => {
1703
1703
  if (utils.isAsyncIterable(introspection)) {
1704
- return introspection.next().then(({ value }) => value);
1704
+ const iterator = introspection[Symbol.asyncIterator]();
1705
+ return iterator.next().then(({ value }) => value);
1705
1706
  }
1706
1707
  return introspection;
1707
1708
  })
package/index.mjs CHANGED
@@ -619,7 +619,7 @@ class TransformInputObjectFields {
619
619
  // Cast to NamedTypeNode required until upcomming graphql releases will have TypeNode paramter
620
620
  const varType = typeFromAST(delegationContext.transformedSchema, variableDef.type);
621
621
  if (!isInputType(varType)) {
622
- throw new Error(`Expected ${varType} to be an input type`);
622
+ continue;
623
623
  }
624
624
  variableValues[varName] = transformInputValue(varType, variableValues[varName], undefined, (type, originalValue) => {
625
625
  var _a;
@@ -1697,7 +1697,8 @@ function introspectSchema(executor, context, options) {
1697
1697
  }))
1698
1698
  .then(introspection => {
1699
1699
  if (isAsyncIterable(introspection)) {
1700
- return introspection.next().then(({ value }) => value);
1700
+ const iterator = introspection[Symbol.asyncIterator]();
1701
+ return iterator.next().then(({ value }) => value);
1701
1702
  }
1702
1703
  return introspection;
1703
1704
  })
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-tools/wrap",
3
- "version": "8.3.1-alpha-06eec860.0",
3
+ "version": "8.3.3",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/delegate": "8.4.1-alpha-06eec860.0",
11
- "@graphql-tools/schema": "8.3.1-alpha-06eec860.0",
12
- "@graphql-tools/utils": "8.6.0-alpha-06eec860.0",
10
+ "@graphql-tools/delegate": "^8.4.2",
11
+ "@graphql-tools/schema": "^8.3.1",
12
+ "@graphql-tools/utils": "^8.5.3",
13
13
  "tslib": "~2.3.0",
14
14
  "value-or-promise": "1.0.11"
15
15
  },
@@ -33,6 +33,7 @@
33
33
  "./*": {
34
34
  "require": "./*.js",
35
35
  "import": "./*.mjs"
36
- }
36
+ },
37
+ "./package.json": "./package.json"
37
38
  }
38
39
  }