@graphql-tools/wrap 8.0.5 → 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 +2 -5
- package/es5/index.mjs +2 -5
- package/es5/package.json +2 -2
- package/index.js +2 -5
- package/index.mjs +2 -5
- package/package.json +2 -2
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");
|
|
@@ -1108,7 +1105,7 @@ var TransformQuery = /** @class */ (function () {
|
|
|
1108
1105
|
}
|
|
1109
1106
|
newData[next] = this.resultTransformer(newData[next], delegationContext, transformationContext);
|
|
1110
1107
|
}
|
|
1111
|
-
return
|
|
1108
|
+
return data;
|
|
1112
1109
|
};
|
|
1113
1110
|
TransformQuery.prototype.transformErrors = function (errors) {
|
|
1114
1111
|
var _this = this;
|
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");
|
|
@@ -1104,7 +1101,7 @@ var TransformQuery = /** @class */ (function () {
|
|
|
1104
1101
|
}
|
|
1105
1102
|
newData[next] = this.resultTransformer(newData[next], delegationContext, transformationContext);
|
|
1106
1103
|
}
|
|
1107
|
-
return
|
|
1104
|
+
return data;
|
|
1108
1105
|
};
|
|
1109
1106
|
TransformQuery.prototype.transformErrors = function (errors) {
|
|
1110
1107
|
var _this = this;
|
package/es5/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/wrap/es5",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.9",
|
|
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"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/delegate": "8.0.
|
|
10
|
+
"@graphql-tools/delegate": "8.0.7",
|
|
11
11
|
"@graphql-tools/schema": "^8.0.2",
|
|
12
12
|
"@graphql-tools/utils": "8.0.2",
|
|
13
13
|
"tslib": "~2.3.0",
|
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`);
|
|
@@ -1008,7 +1005,7 @@ class TransformQuery {
|
|
|
1008
1005
|
}
|
|
1009
1006
|
newData[next] = this.resultTransformer(newData[next], delegationContext, transformationContext);
|
|
1010
1007
|
}
|
|
1011
|
-
return
|
|
1008
|
+
return data;
|
|
1012
1009
|
}
|
|
1013
1010
|
transformErrors(errors) {
|
|
1014
1011
|
return errors.map(error => {
|
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`);
|
|
@@ -1004,7 +1001,7 @@ class TransformQuery {
|
|
|
1004
1001
|
}
|
|
1005
1002
|
newData[next] = this.resultTransformer(newData[next], delegationContext, transformationContext);
|
|
1006
1003
|
}
|
|
1007
|
-
return
|
|
1004
|
+
return data;
|
|
1008
1005
|
}
|
|
1009
1006
|
transformErrors(errors) {
|
|
1010
1007
|
return errors.map(error => {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/wrap",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.9",
|
|
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"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/delegate": "8.0.
|
|
10
|
+
"@graphql-tools/delegate": "8.0.7",
|
|
11
11
|
"@graphql-tools/schema": "^8.0.2",
|
|
12
12
|
"@graphql-tools/utils": "8.0.2",
|
|
13
13
|
"tslib": "~2.3.0",
|