@graphql-mesh/thrift 1.0.0-alpha-20230523154841-376b13623 → 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 +3 -2
- package/esm/index.js +3 -2
- package/package.json +7 -10
package/cjs/index.js
CHANGED
|
@@ -44,6 +44,7 @@ class ThriftHandler {
|
|
|
44
44
|
return includesMap;
|
|
45
45
|
}
|
|
46
46
|
async getMeshSource({ fetchFn }) {
|
|
47
|
+
var _a, _b;
|
|
47
48
|
this.fetchFn = fetchFn;
|
|
48
49
|
const { serviceName, operationHeaders } = this.config;
|
|
49
50
|
const namespaceASTMap = await this.idl.getWithSet(async () => {
|
|
@@ -404,7 +405,7 @@ class ThriftHandler {
|
|
|
404
405
|
let fieldOutputType;
|
|
405
406
|
let fieldInputType;
|
|
406
407
|
const description = processComments(field.comments);
|
|
407
|
-
const processedFieldTypes = getGraphQLFunctionType(field.fieldType, field.fieldID
|
|
408
|
+
const processedFieldTypes = getGraphQLFunctionType(field.fieldType, (_a = field.fieldID) === null || _a === void 0 ? void 0 : _a.value);
|
|
408
409
|
fieldOutputType = processedFieldTypes.outputType;
|
|
409
410
|
fieldInputType = processedFieldTypes.inputType;
|
|
410
411
|
if (field.requiredness === 'required') {
|
|
@@ -452,7 +453,7 @@ class ThriftHandler {
|
|
|
452
453
|
for (const field of fn.fields) {
|
|
453
454
|
const fieldName = field.name.value;
|
|
454
455
|
const fieldDescription = processComments(field.comments);
|
|
455
|
-
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType, field.fieldID
|
|
456
|
+
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType, (_b = field.fieldID) === null || _b === void 0 ? void 0 : _b.value);
|
|
456
457
|
if (field.requiredness === 'required') {
|
|
457
458
|
fieldType = new graphql_1.GraphQLNonNull(fieldType);
|
|
458
459
|
}
|
package/esm/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export default class ThriftHandler {
|
|
|
42
42
|
return includesMap;
|
|
43
43
|
}
|
|
44
44
|
async getMeshSource({ fetchFn }) {
|
|
45
|
+
var _a, _b;
|
|
45
46
|
this.fetchFn = fetchFn;
|
|
46
47
|
const { serviceName, operationHeaders } = this.config;
|
|
47
48
|
const namespaceASTMap = await this.idl.getWithSet(async () => {
|
|
@@ -402,7 +403,7 @@ export default class ThriftHandler {
|
|
|
402
403
|
let fieldOutputType;
|
|
403
404
|
let fieldInputType;
|
|
404
405
|
const description = processComments(field.comments);
|
|
405
|
-
const processedFieldTypes = getGraphQLFunctionType(field.fieldType, field.fieldID
|
|
406
|
+
const processedFieldTypes = getGraphQLFunctionType(field.fieldType, (_a = field.fieldID) === null || _a === void 0 ? void 0 : _a.value);
|
|
406
407
|
fieldOutputType = processedFieldTypes.outputType;
|
|
407
408
|
fieldInputType = processedFieldTypes.inputType;
|
|
408
409
|
if (field.requiredness === 'required') {
|
|
@@ -450,7 +451,7 @@ export default class ThriftHandler {
|
|
|
450
451
|
for (const field of fn.fields) {
|
|
451
452
|
const fieldName = field.name.value;
|
|
452
453
|
const fieldDescription = processComments(field.comments);
|
|
453
|
-
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType, field.fieldID
|
|
454
|
+
let { inputType: fieldType, typeVal } = getGraphQLFunctionType(field.fieldType, (_b = field.fieldID) === null || _b === void 0 ? void 0 : _b.value);
|
|
454
455
|
if (field.requiredness === 'required') {
|
|
455
456
|
fieldType = new GraphQLNonNull(fieldType);
|
|
456
457
|
}
|
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-20230523160518-5443a1139",
|
|
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-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
|
+
"@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-20230523160518-5443a1139",
|
|
19
19
|
"graphql-scalars": "^1.20.4",
|
|
20
20
|
"pascal-case": "3.1.2",
|
|
21
21
|
"thrift": "0.18.1",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"directory": "packages/handlers/thrift"
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
|
-
"engines": {
|
|
31
|
-
"node": ">=16.0.0"
|
|
32
|
-
},
|
|
33
30
|
"main": "cjs/index.js",
|
|
34
31
|
"module": "esm/index.js",
|
|
35
32
|
"typings": "typings/index.d.ts",
|