@omnigraph/grpc 0.2.5 → 0.2.6
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/grpcLoaderHelper.js
CHANGED
|
@@ -51,7 +51,9 @@ class GrpcLoaderHelper extends disposablestack_1.DisposableStack {
|
|
|
51
51
|
this.config.requestTimeout = this.config.requestTimeout || 200000;
|
|
52
52
|
this.logger.debug(`Getting channel credentials`);
|
|
53
53
|
const creds = await this.getCredentials();
|
|
54
|
-
|
|
54
|
+
if ('_unref' in creds && typeof creds._unref === 'function') {
|
|
55
|
+
this.defer(() => creds._unref());
|
|
56
|
+
}
|
|
55
57
|
this.logger.debug(`Getting stored root and decoded descriptor set objects`);
|
|
56
58
|
const descriptorSets = await this.getDescriptorSets(creds);
|
|
57
59
|
const directives = [];
|
package/esm/grpcLoaderHelper.js
CHANGED
|
@@ -47,7 +47,9 @@ export class GrpcLoaderHelper extends DisposableStack {
|
|
|
47
47
|
this.config.requestTimeout = this.config.requestTimeout || 200000;
|
|
48
48
|
this.logger.debug(`Getting channel credentials`);
|
|
49
49
|
const creds = await this.getCredentials();
|
|
50
|
-
|
|
50
|
+
if ('_unref' in creds && typeof creds._unref === 'function') {
|
|
51
|
+
this.defer(() => creds._unref());
|
|
52
|
+
}
|
|
51
53
|
this.logger.debug(`Getting stored root and decoded descriptor set objects`);
|
|
52
54
|
const descriptorSets = await this.getDescriptorSets(creds);
|
|
53
55
|
const directives = [];
|