@graphql-tools/wrap 8.0.8 → 8.0.9
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/es5/index.js +1 -4
- package/es5/index.mjs +1 -4
- package/es5/package.json +1 -1
- package/index.js +1 -4
- package/index.mjs +1 -4
- package/package.json +1 -1
package/es5/index.js
CHANGED
|
@@ -680,10 +680,7 @@ var TransformInputObjectFields = /** @class */ (function () {
|
|
|
680
680
|
for (var variableDefs_1 = (e_3 = void 0, tslib.__values(variableDefs)), variableDefs_1_1 = variableDefs_1.next(); !variableDefs_1_1.done; variableDefs_1_1 = variableDefs_1.next()) {
|
|
681
681
|
var variableDef = variableDefs_1_1.value;
|
|
682
682
|
var varName = variableDef.variable.name.value;
|
|
683
|
-
|
|
684
|
-
throw new Error("Expected " + variableDef.type + " to be a named type");
|
|
685
|
-
}
|
|
686
|
-
// requirement for 'as NamedTypeNode' appears to be a bug within types, as function should take any TypeNode
|
|
683
|
+
// Cast to NamedTypeNode required until upcomming graphql releases will have TypeNode paramter
|
|
687
684
|
var varType = graphql.typeFromAST(delegationContext.transformedSchema, variableDef.type);
|
|
688
685
|
if (!graphql.isInputType(varType)) {
|
|
689
686
|
throw new Error("Expected " + varType + " to be an input type");
|
package/es5/index.mjs
CHANGED
|
@@ -676,10 +676,7 @@ var TransformInputObjectFields = /** @class */ (function () {
|
|
|
676
676
|
for (var variableDefs_1 = (e_3 = void 0, __values(variableDefs)), variableDefs_1_1 = variableDefs_1.next(); !variableDefs_1_1.done; variableDefs_1_1 = variableDefs_1.next()) {
|
|
677
677
|
var variableDef = variableDefs_1_1.value;
|
|
678
678
|
var varName = variableDef.variable.name.value;
|
|
679
|
-
|
|
680
|
-
throw new Error("Expected " + variableDef.type + " to be a named type");
|
|
681
|
-
}
|
|
682
|
-
// requirement for 'as NamedTypeNode' appears to be a bug within types, as function should take any TypeNode
|
|
679
|
+
// Cast to NamedTypeNode required until upcomming graphql releases will have TypeNode paramter
|
|
683
680
|
var varType = typeFromAST(delegationContext.transformedSchema, variableDef.type);
|
|
684
681
|
if (!isInputType(varType)) {
|
|
685
682
|
throw new Error("Expected " + varType + " to be an input type");
|
package/es5/package.json
CHANGED
package/index.js
CHANGED
|
@@ -620,10 +620,7 @@ class TransformInputObjectFields {
|
|
|
620
620
|
if (variableDefs != null) {
|
|
621
621
|
for (const variableDef of variableDefs) {
|
|
622
622
|
const varName = variableDef.variable.name.value;
|
|
623
|
-
|
|
624
|
-
throw new Error(`Expected ${variableDef.type} to be a named type`);
|
|
625
|
-
}
|
|
626
|
-
// requirement for 'as NamedTypeNode' appears to be a bug within types, as function should take any TypeNode
|
|
623
|
+
// Cast to NamedTypeNode required until upcomming graphql releases will have TypeNode paramter
|
|
627
624
|
const varType = graphql.typeFromAST(delegationContext.transformedSchema, variableDef.type);
|
|
628
625
|
if (!graphql.isInputType(varType)) {
|
|
629
626
|
throw new Error(`Expected ${varType} to be an input type`);
|
package/index.mjs
CHANGED
|
@@ -616,10 +616,7 @@ class TransformInputObjectFields {
|
|
|
616
616
|
if (variableDefs != null) {
|
|
617
617
|
for (const variableDef of variableDefs) {
|
|
618
618
|
const varName = variableDef.variable.name.value;
|
|
619
|
-
|
|
620
|
-
throw new Error(`Expected ${variableDef.type} to be a named type`);
|
|
621
|
-
}
|
|
622
|
-
// requirement for 'as NamedTypeNode' appears to be a bug within types, as function should take any TypeNode
|
|
619
|
+
// Cast to NamedTypeNode required until upcomming graphql releases will have TypeNode paramter
|
|
623
620
|
const varType = typeFromAST(delegationContext.transformedSchema, variableDef.type);
|
|
624
621
|
if (!isInputType(varType)) {
|
|
625
622
|
throw new Error(`Expected ${varType} to be an input type`);
|