@graphql-mesh/transport-grpc 0.3.15-alpha-20251103000320-0eb10bb65fedaf33990c08ccc9ba69fe2dd6d6a5 → 0.3.15
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 -1
- package/esm/index.js +3 -2
- package/package.json +3 -3
- package/typings/index.d.cts +3 -4
- package/typings/index.d.ts +3 -4
package/cjs/index.js
CHANGED
|
@@ -219,7 +219,7 @@ class GrpcTransportHelper extends disposablestack_1.DisposableStack {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
exports.GrpcTransportHelper = GrpcTransportHelper;
|
|
222
|
-
|
|
222
|
+
const transport = {
|
|
223
223
|
getSubgraphExecutor({ transportEntry, subgraph, cwd, logger }) {
|
|
224
224
|
const transport = new GrpcTransportHelper(transportEntry.subgraph, cwd, logger, transportEntry.location, transportEntry.options);
|
|
225
225
|
return (0, promise_helpers_1.handleMaybePromise)(() => transport.getCredentials(), creds => {
|
|
@@ -228,6 +228,7 @@ exports.default = {
|
|
|
228
228
|
});
|
|
229
229
|
},
|
|
230
230
|
};
|
|
231
|
+
exports.default = transport;
|
|
231
232
|
function identityFn(obj) {
|
|
232
233
|
return obj;
|
|
233
234
|
}
|
package/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import lodashGet from 'lodash.get';
|
|
|
4
4
|
import { fs, path, process } from '@graphql-mesh/cross-helpers';
|
|
5
5
|
import { stringInterpolator } from '@graphql-mesh/string-interpolation';
|
|
6
6
|
import { createDefaultExecutor, ObjMapScalar, } from '@graphql-mesh/transport-common';
|
|
7
|
-
import { getDirective, getDirectives, getRootTypes
|
|
7
|
+
import { getDirective, getDirectives, getRootTypes } from '@graphql-tools/utils';
|
|
8
8
|
import { credentials, loadPackageDefinition } from '@grpc/grpc-js';
|
|
9
9
|
import { fromJSON } from '@grpc/proto-loader';
|
|
10
10
|
import { DisposableStack } from '@whatwg-node/disposablestack';
|
|
@@ -214,7 +214,7 @@ export class GrpcTransportHelper extends DisposableStack {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
const transport = {
|
|
218
218
|
getSubgraphExecutor({ transportEntry, subgraph, cwd, logger }) {
|
|
219
219
|
const transport = new GrpcTransportHelper(transportEntry.subgraph, cwd, logger, transportEntry.location, transportEntry.options);
|
|
220
220
|
return handleMaybePromise(() => transport.getCredentials(), creds => {
|
|
@@ -223,6 +223,7 @@ export default {
|
|
|
223
223
|
});
|
|
224
224
|
},
|
|
225
225
|
};
|
|
226
|
+
export default transport;
|
|
226
227
|
function identityFn(obj) {
|
|
227
228
|
return obj;
|
|
228
229
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/transport-grpc",
|
|
3
|
-
"version": "0.3.15
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
10
10
|
"@graphql-mesh/string-interpolation": "^0.5.9",
|
|
11
11
|
"@graphql-mesh/transport-common": "^1.0.0",
|
|
12
|
-
"@graphql-mesh/types": "0.104.15
|
|
13
|
-
"@graphql-mesh/utils": "0.104.15
|
|
12
|
+
"@graphql-mesh/types": "^0.104.15",
|
|
13
|
+
"@graphql-mesh/utils": "^0.104.15",
|
|
14
14
|
"@graphql-tools/utils": "^10.8.0",
|
|
15
15
|
"@grpc/grpc-js": "^1.1.7",
|
|
16
16
|
"@grpc/proto-loader": "^0.8.0",
|
package/typings/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type GraphQLFieldResolver, type GraphQLSchema } from 'graphql';
|
|
2
2
|
import type protobufjs from 'protobufjs';
|
|
3
|
+
import { type Transport } from '@graphql-mesh/transport-common';
|
|
3
4
|
import type { Logger } from '@graphql-mesh/types';
|
|
4
5
|
import { type MaybePromise } from '@graphql-tools/utils';
|
|
5
6
|
import type { ChannelCredentials } from '@grpc/grpc-js';
|
|
@@ -68,7 +69,5 @@ export declare class GrpcTransportHelper extends DisposableStack {
|
|
|
68
69
|
creds: ChannelCredentials;
|
|
69
70
|
}): void;
|
|
70
71
|
}
|
|
71
|
-
declare const
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
export default _default;
|
|
72
|
+
declare const transport: Transport<gRPCTransportOptions>;
|
|
73
|
+
export default transport;
|
package/typings/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type GraphQLFieldResolver, type GraphQLSchema } from 'graphql';
|
|
2
2
|
import type protobufjs from 'protobufjs';
|
|
3
|
+
import { type Transport } from '@graphql-mesh/transport-common';
|
|
3
4
|
import type { Logger } from '@graphql-mesh/types';
|
|
4
5
|
import { type MaybePromise } from '@graphql-tools/utils';
|
|
5
6
|
import type { ChannelCredentials } from '@grpc/grpc-js';
|
|
@@ -68,7 +69,5 @@ export declare class GrpcTransportHelper extends DisposableStack {
|
|
|
68
69
|
creds: ChannelCredentials;
|
|
69
70
|
}): void;
|
|
70
71
|
}
|
|
71
|
-
declare const
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
export default _default;
|
|
72
|
+
declare const transport: Transport<gRPCTransportOptions>;
|
|
73
|
+
export default transport;
|