@graphql-mesh/thrift 1.0.0-alpha-20230523154231-8c60b52d9 → 1.0.0-alpha-20230523155104-df277a22b
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 +2 -3
- package/esm/index.js +2 -3
- package/package.json +10 -7
package/cjs/index.js
CHANGED
|
@@ -44,7 +44,6 @@ class ThriftHandler {
|
|
|
44
44
|
return includesMap;
|
|
45
45
|
}
|
|
46
46
|
async getMeshSource({ fetchFn }) {
|
|
47
|
-
var _a, _b;
|
|
48
47
|
this.fetchFn = fetchFn;
|
|
49
48
|
const { serviceName, operationHeaders } = this.config;
|
|
50
49
|
const namespaceASTMap = await this.idl.getWithSet(async () => {
|
|
@@ -405,7 +404,7 @@ class ThriftHandler {
|
|
|
405
404
|
let fieldOutputType;
|
|
406
405
|
let fieldInputType;
|
|
407
406
|
const description = processComments(field.comments);
|
|
408
|
-
const processedFieldTypes = getGraphQLFunctionType(field.fieldType,
|
|
407
|
+
const processedFieldTypes = getGraphQLFunctionType(field.fieldType, field.fieldID?.value);
|
|
409
408
|
fieldOutputType = processedFieldTypes.outputType;
|
|
410
409
|
fieldInputType = processedFieldTypes.inputType;
|
|
411
410
|
if (field.requiredness === 'required') {
|
|
@@ -453,7 +452,7 @@ class ThriftHandler {
|
|
|
453
452
|
for (const field of fn.fields) {
|
|
454
453
|
const fieldName = field.name.value;
|
|
455
454
|
const fieldDescription = processComments(field.comments);
|
|
456
|
-
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType,
|
|
455
|
+
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType, field.fieldID?.value);
|
|
457
456
|
if (field.requiredness === 'required') {
|
|
458
457
|
fieldType = new graphql_1.GraphQLNonNull(fieldType);
|
|
459
458
|
}
|
package/esm/index.js
CHANGED
|
@@ -42,7 +42,6 @@ export default class ThriftHandler {
|
|
|
42
42
|
return includesMap;
|
|
43
43
|
}
|
|
44
44
|
async getMeshSource({ fetchFn }) {
|
|
45
|
-
var _a, _b;
|
|
46
45
|
this.fetchFn = fetchFn;
|
|
47
46
|
const { serviceName, operationHeaders } = this.config;
|
|
48
47
|
const namespaceASTMap = await this.idl.getWithSet(async () => {
|
|
@@ -403,7 +402,7 @@ export default class ThriftHandler {
|
|
|
403
402
|
let fieldOutputType;
|
|
404
403
|
let fieldInputType;
|
|
405
404
|
const description = processComments(field.comments);
|
|
406
|
-
const processedFieldTypes = getGraphQLFunctionType(field.fieldType,
|
|
405
|
+
const processedFieldTypes = getGraphQLFunctionType(field.fieldType, field.fieldID?.value);
|
|
407
406
|
fieldOutputType = processedFieldTypes.outputType;
|
|
408
407
|
fieldInputType = processedFieldTypes.inputType;
|
|
409
408
|
if (field.requiredness === 'required') {
|
|
@@ -451,7 +450,7 @@ export default class ThriftHandler {
|
|
|
451
450
|
for (const field of fn.fields) {
|
|
452
451
|
const fieldName = field.name.value;
|
|
453
452
|
const fieldDescription = processComments(field.comments);
|
|
454
|
-
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType,
|
|
453
|
+
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType, field.fieldID?.value);
|
|
455
454
|
if (field.requiredness === 'required') {
|
|
456
455
|
fieldType = new GraphQLNonNull(fieldType);
|
|
457
456
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/thrift",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230523155104-df277a22b",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "0.4.0-alpha-
|
|
7
|
-
"@graphql-mesh/store": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
9
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
10
|
-
"@graphql-tools/utils": "^9.2.1
|
|
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",
|
|
10
|
+
"@graphql-tools/utils": "^9.2.1",
|
|
11
11
|
"graphql": "*",
|
|
12
12
|
"tslib": "^2.4.0"
|
|
13
13
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@creditkarma/thrift-client": "1.0.4",
|
|
16
16
|
"@creditkarma/thrift-parser": "2.0.0",
|
|
17
17
|
"@creditkarma/thrift-server-core": "1.0.4",
|
|
18
|
-
"@graphql-mesh/string-interpolation": "0.5.0-alpha-
|
|
18
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523155104-df277a22b",
|
|
19
19
|
"graphql-scalars": "^1.20.4",
|
|
20
20
|
"pascal-case": "3.1.2",
|
|
21
21
|
"thrift": "0.18.1",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"directory": "packages/handlers/thrift"
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=16.0.0"
|
|
32
|
+
},
|
|
30
33
|
"main": "cjs/index.js",
|
|
31
34
|
"module": "esm/index.js",
|
|
32
35
|
"typings": "typings/index.d.ts",
|