@graphql-mesh/grpc 0.94.1 → 0.94.2
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 +4 -2
- package/esm/index.js +4 -2
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -36,9 +36,9 @@ class GrpcHandler {
|
|
|
36
36
|
}
|
|
37
37
|
async processReflection(creds) {
|
|
38
38
|
this.logger.debug(`Using the reflection`);
|
|
39
|
-
const
|
|
39
|
+
const reflectionEndpoint = string_interpolation_1.stringInterpolator.parse(this.config.endpoint, { env: cross_helpers_1.process.env });
|
|
40
40
|
this.logger.debug(`Creating gRPC Reflection Client`);
|
|
41
|
-
const reflectionClient = new grpc_reflection_js_1.Client(
|
|
41
|
+
const reflectionClient = new grpc_reflection_js_1.Client(reflectionEndpoint, creds);
|
|
42
42
|
const subId = this.pubsub.subscribe('destroy', () => {
|
|
43
43
|
reflectionClient.grpcClient.close();
|
|
44
44
|
this.pubsub.unsubscribe(subId);
|
|
@@ -64,6 +64,7 @@ class GrpcHandler {
|
|
|
64
64
|
else {
|
|
65
65
|
fileName = this.config.source;
|
|
66
66
|
}
|
|
67
|
+
fileName = string_interpolation_1.stringInterpolator.parse(fileName, { env: cross_helpers_1.process.env });
|
|
67
68
|
const absoluteFilePath = cross_helpers_1.path.isAbsolute(fileName)
|
|
68
69
|
? fileName
|
|
69
70
|
: cross_helpers_1.path.join(this.baseDir, fileName);
|
|
@@ -114,6 +115,7 @@ class GrpcHandler {
|
|
|
114
115
|
else {
|
|
115
116
|
fileGlob = this.config.source;
|
|
116
117
|
}
|
|
118
|
+
fileGlob = string_interpolation_1.stringInterpolator.parse(fileGlob, { env: cross_helpers_1.process.env });
|
|
117
119
|
const fileNames = await (0, globby_1.default)(fileGlob, {
|
|
118
120
|
cwd: this.baseDir,
|
|
119
121
|
});
|
package/esm/index.js
CHANGED
|
@@ -33,9 +33,9 @@ export default class GrpcHandler {
|
|
|
33
33
|
}
|
|
34
34
|
async processReflection(creds) {
|
|
35
35
|
this.logger.debug(`Using the reflection`);
|
|
36
|
-
const
|
|
36
|
+
const reflectionEndpoint = stringInterpolator.parse(this.config.endpoint, { env: process.env });
|
|
37
37
|
this.logger.debug(`Creating gRPC Reflection Client`);
|
|
38
|
-
const reflectionClient = new Client(
|
|
38
|
+
const reflectionClient = new Client(reflectionEndpoint, creds);
|
|
39
39
|
const subId = this.pubsub.subscribe('destroy', () => {
|
|
40
40
|
reflectionClient.grpcClient.close();
|
|
41
41
|
this.pubsub.unsubscribe(subId);
|
|
@@ -61,6 +61,7 @@ export default class GrpcHandler {
|
|
|
61
61
|
else {
|
|
62
62
|
fileName = this.config.source;
|
|
63
63
|
}
|
|
64
|
+
fileName = stringInterpolator.parse(fileName, { env: process.env });
|
|
64
65
|
const absoluteFilePath = path.isAbsolute(fileName)
|
|
65
66
|
? fileName
|
|
66
67
|
: path.join(this.baseDir, fileName);
|
|
@@ -111,6 +112,7 @@ export default class GrpcHandler {
|
|
|
111
112
|
else {
|
|
112
113
|
fileGlob = this.config.source;
|
|
113
114
|
}
|
|
115
|
+
fileGlob = stringInterpolator.parse(fileGlob, { env: process.env });
|
|
114
116
|
const fileNames = await globby(fileGlob, {
|
|
115
117
|
cwd: this.baseDir,
|
|
116
118
|
});
|