@gravity-ui/gateway 1.4.0 → 1.5.1

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.
@@ -42,6 +42,7 @@ const common_2 = require("../utils/common");
42
42
  const grpc_1 = require("../utils/grpc");
43
43
  const grpc_reflection_1 = require("../utils/grpc-reflection");
44
44
  const parse_error_1 = require("../utils/parse-error");
45
+ const proto_path_resolver_1 = require("../utils/proto-path-resolver");
45
46
  const redact_sensitive_headers_1 = require("../utils/redact-sensitive-headers");
46
47
  const validate_1 = require("../utils/validate");
47
48
  const reflectLoaderOptions = {
@@ -59,32 +60,11 @@ function createRoot(includeGrpcPaths) {
59
60
  // Load well-known internal protobufjs types
60
61
  root.loadSync('google/protobuf/struct.proto');
61
62
  root.loadSync('google/protobuf/wrappers.proto');
62
- addIncludePathResolver(root, includeGrpcPaths);
63
+ grpcLoaderOptions.includeDirs = [...grpcLoaderOptions.includeDirs, ...(includeGrpcPaths !== null && includeGrpcPaths !== void 0 ? includeGrpcPaths : [])];
64
+ (0, proto_path_resolver_1.patchProtoPathResolver)(root, grpcLoaderOptions.includeDirs);
63
65
  return root;
64
66
  }
65
67
  exports.createRoot = createRoot;
66
- function addIncludePathResolver(root, includeGrpcPaths) {
67
- grpcLoaderOptions.includeDirs = [...grpcLoaderOptions.includeDirs, ...(includeGrpcPaths !== null && includeGrpcPaths !== void 0 ? includeGrpcPaths : [])];
68
- const { includeDirs } = grpcLoaderOptions;
69
- const originalResolvePath = root.resolvePath;
70
- root.resolvePath = function (origin, target) {
71
- if (target in protobufjs.common || path_1.default.isAbsolute(target)) {
72
- return target;
73
- }
74
- for (let i = 0; i < includeDirs.length; i++) {
75
- const directory = includeDirs[i];
76
- const fullPath = path_1.default.join(directory, target);
77
- try {
78
- fs_1.default.accessSync(fullPath, fs_1.default.constants.R_OK);
79
- return fullPath;
80
- }
81
- catch (err) {
82
- continue;
83
- }
84
- }
85
- return originalResolvePath(origin, target);
86
- };
87
- }
88
68
  function getCredentialsMap(caCertificatePath) {
89
69
  let certificate;
90
70
  if (caCertificatePath && fs_1.default.existsSync(caCertificatePath)) {
@@ -238,12 +218,17 @@ async function refreshCache(actionEndpoint, config, endpointData, grpcOptions, c
238
218
  return;
239
219
  }
240
220
  lodash_1.default.set(reflectionCacheStatusMap, [config.protoKey, actionEndpoint], Object.assign(Object.assign({}, cacheStatus), { isRefresh: true }));
241
- const res = await getServiceInstanceReflect(config, endpointData, grpcOptions, credentials, true);
242
- lodash_1.default.set(reflectionServiceInstancesMap, [config.protoKey, actionEndpoint], Promise.resolve(res));
243
- lodash_1.default.set(reflectionCacheStatusMap, [config.protoKey, actionEndpoint], {
244
- time: Date.now() / 1000,
245
- isRefresh: false,
246
- });
221
+ try {
222
+ const res = await getServiceInstanceReflect(config, endpointData, grpcOptions, credentials, true);
223
+ lodash_1.default.set(reflectionServiceInstancesMap, [config.protoKey, actionEndpoint], Promise.resolve(res));
224
+ lodash_1.default.set(reflectionCacheStatusMap, [config.protoKey, actionEndpoint], {
225
+ time: Date.now() / 1000,
226
+ isRefresh: false,
227
+ });
228
+ }
229
+ catch (e) {
230
+ lodash_1.default.set(reflectionCacheStatusMap, [config.protoKey, actionEndpoint], Object.assign(Object.assign({}, cacheStatus), { isRefresh: false }));
231
+ }
247
232
  }
248
233
  function getServiceInstanceReflectCached(config, endpointData, grpcOptions, credentials) {
249
234
  if (config.reflection === common_1.GrpcReflection.OnEveryRequest) {
@@ -261,6 +246,9 @@ function getServiceInstanceReflectCached(config, endpointData, grpcOptions, cred
261
246
  }
262
247
  const service = getServiceInstanceReflect(config, endpointData, grpcOptions, credentials);
263
248
  lodash_1.default.set(reflectionServiceInstancesMap, cacheKey, service);
249
+ service.catch(() => {
250
+ lodash_1.default.set(reflectionServiceInstancesMap, cacheKey, undefined);
251
+ });
264
252
  return service;
265
253
  }
266
254
  async function getServiceInstanceReflect(config, endpointData, grpcOptions, credentials, isRefreshCache) {
@@ -270,21 +258,22 @@ async function getServiceInstanceReflect(config, endpointData, grpcOptions, cred
270
258
  : undefined;
271
259
  const isInsecure = config.insecure || endpointInsecure;
272
260
  const creds = isInsecure ? credentials.insecure : credentials.secure;
261
+ const endpointGrpcOptions = (0, common_2.isExtendedGrpcActionEndpoint)(endpointData)
262
+ ? endpointData.grpcOptions || {}
263
+ : {};
264
+ const combinedGrpcOptions = Object.assign(Object.assign(Object.assign({}, constants_1.DEFAULT_GRPC_OPTIONS), grpcOptions), endpointGrpcOptions);
273
265
  let loadedRoot;
274
266
  if (config.reflection === common_1.GrpcReflection.OnEveryRequest || isRefreshCache) {
275
- loadedRoot = await (0, grpc_reflection_1.getReflectionRoot)(actionEndpoint, config.protoKey, creds, isRefreshCache);
267
+ loadedRoot = await (0, grpc_reflection_1.getReflectionRoot)(actionEndpoint, config.protoKey, creds, combinedGrpcOptions, isRefreshCache);
276
268
  }
277
269
  else {
278
- loadedRoot = await (0, grpc_reflection_1.getCachedReflectionRoot)(actionEndpoint, config.protoKey, creds);
270
+ loadedRoot = await (0, grpc_reflection_1.getCachedReflectionRoot)(actionEndpoint, config.protoKey, creds, combinedGrpcOptions);
279
271
  }
280
272
  const descriptor = loadedRoot.toDescriptor('proto3');
281
273
  const definition = protoLoader.loadFileDescriptorSetFromObject(descriptor, reflectLoaderOptions);
282
274
  const packageObject = grpc.loadPackageDefinition(definition);
283
275
  const Service = lodash_1.default.get(packageObject, config.protoKey);
284
- const endpointGrpcOptions = (0, common_2.isExtendedGrpcActionEndpoint)(endpointData)
285
- ? endpointData.grpcOptions || {}
286
- : {};
287
- const serviceInstance = new Service(actionEndpoint, creds, Object.assign(Object.assign(Object.assign({}, constants_1.DEFAULT_GRPC_OPTIONS), grpcOptions), endpointGrpcOptions));
276
+ const serviceInstance = new Service(actionEndpoint, creds, combinedGrpcOptions);
288
277
  return serviceInstance;
289
278
  }
290
279
  function loadAndCachePackageObject(root, protoPath) {
@@ -1,22 +1,28 @@
1
1
  import type { ChannelCredentials } from '@grpc/grpc-js';
2
- import * as protobufjs from 'protobufjs';
2
+ type DescriptorExtensionProto = string[] | {
3
+ includeProtoRoots: string[];
4
+ filenames: string[];
5
+ };
3
6
  /**
4
7
  * @param actionEndpoint
5
8
  * @param protoKey
6
9
  * @param credentials
10
+ * @param grpcOptions
7
11
  * @param descriptorExtensionProto
8
12
  * @returns Promise<protobufjs.Root>.
9
13
  * use toDescriptor for use with protoLoader.
10
14
  * use toJSON for get a JSON descriptor.
11
15
  */
12
- export declare function getCachedReflectionRoot(actionEndpoint: string, protoKey: string, credentials: ChannelCredentials, descriptorExtensionProto?: string[]): Promise<protobufjs.Root>;
16
+ export declare function getCachedReflectionRoot(actionEndpoint: string, protoKey: string, credentials: ChannelCredentials, grpcOptions?: object, descriptorExtensionProto?: DescriptorExtensionProto): Promise<any>;
13
17
  /**
14
18
  * @param actionEndpoint
15
19
  * @param protoKey
16
20
  * @param credentials
21
+ * @param grpcOptions
17
22
  * @param addToCache
18
23
  * @returns Promise<protobufjs.Root>.
19
24
  * use toDescriptor for use with protoLoader.
20
25
  * use toJSON for get a JSON descriptor.
21
26
  */
22
- export declare function getReflectionRoot(actionEndpoint: string, protoKey: string, credentials: ChannelCredentials, addToCache?: boolean): Promise<protobufjs.Root>;
27
+ export declare function getReflectionRoot(actionEndpoint: string, protoKey: string, credentials: ChannelCredentials, grpcOptions?: object, addToCache?: boolean): Promise<any>;
28
+ export {};
@@ -1,36 +1,78 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  exports.getReflectionRoot = exports.getCachedReflectionRoot = void 0;
7
30
  const lodash_1 = __importDefault(require("lodash"));
31
+ const protobufjs = __importStar(require("protobufjs"));
32
+ const proto_path_resolver_1 = require("./proto-path-resolver");
8
33
  const reflectionClientsMap = {};
9
- const reflectionRootPromiseMap = {};
10
- function getCachedClient(actionEndpoint, credentials, descriptorExtensionProto) {
11
- let client = reflectionClientsMap[actionEndpoint];
12
- if (!client) {
34
+ function getCachedClient(actionEndpoint, credentials, grpcOptions, descriptorExtensionProto) {
35
+ const cacheKey = [actionEndpoint, JSON.stringify([grpcOptions, descriptorExtensionProto])];
36
+ let clientWithCache = lodash_1.default.get(reflectionClientsMap, cacheKey);
37
+ if (!clientWithCache) {
13
38
  const grpcReflection = require('grpc-reflection-js');
14
- client = new grpcReflection.Client(actionEndpoint, credentials, undefined, undefined, descriptorExtensionProto);
15
- reflectionClientsMap[actionEndpoint] = client;
39
+ let descriptorRoot;
40
+ if (descriptorExtensionProto) {
41
+ descriptorRoot = protobufjs.Root.fromJSON(require('protobufjs/ext/descriptor'));
42
+ if (Array.isArray(descriptorExtensionProto)) {
43
+ descriptorRoot.loadSync(descriptorExtensionProto);
44
+ }
45
+ else {
46
+ (0, proto_path_resolver_1.patchProtoPathResolver)(descriptorRoot, descriptorExtensionProto.includeProtoRoots);
47
+ descriptorRoot.loadSync(descriptorExtensionProto.filenames);
48
+ }
49
+ }
50
+ const client = new grpcReflection.Client(actionEndpoint, credentials, grpcOptions, undefined, descriptorRoot);
51
+ clientWithCache = { client, reflectionRootPromiseMap: {} };
52
+ lodash_1.default.set(reflectionClientsMap, cacheKey, clientWithCache);
16
53
  }
17
- return client;
54
+ return clientWithCache;
18
55
  }
19
56
  /**
20
57
  * @param actionEndpoint
21
58
  * @param protoKey
22
59
  * @param credentials
60
+ * @param grpcOptions
23
61
  * @param descriptorExtensionProto
24
62
  * @returns Promise<protobufjs.Root>.
25
63
  * use toDescriptor for use with protoLoader.
26
64
  * use toJSON for get a JSON descriptor.
27
65
  */
28
- async function getCachedReflectionRoot(actionEndpoint, protoKey, credentials, descriptorExtensionProto) {
29
- const client = getCachedClient(actionEndpoint, credentials, descriptorExtensionProto);
30
- let cachedRootPromise = lodash_1.default.get(reflectionRootPromiseMap, [actionEndpoint, protoKey]);
66
+ async function getCachedReflectionRoot(actionEndpoint, protoKey, credentials, grpcOptions, descriptorExtensionProto) {
67
+ const { client, reflectionRootPromiseMap } = getCachedClient(actionEndpoint, credentials, grpcOptions, descriptorExtensionProto);
68
+ const cacheKey = [actionEndpoint, protoKey];
69
+ let cachedRootPromise = lodash_1.default.get(reflectionRootPromiseMap, cacheKey);
31
70
  if (!cachedRootPromise) {
32
71
  cachedRootPromise = client.fileContainingSymbol(protoKey);
33
- lodash_1.default.set(reflectionRootPromiseMap, [actionEndpoint, protoKey], cachedRootPromise);
72
+ lodash_1.default.set(reflectionRootPromiseMap, cacheKey, cachedRootPromise);
73
+ cachedRootPromise.catch(() => {
74
+ lodash_1.default.set(reflectionRootPromiseMap, cacheKey, undefined);
75
+ });
34
76
  }
35
77
  const loadedRoot = await cachedRootPromise;
36
78
  return loadedRoot;
@@ -40,13 +82,14 @@ exports.getCachedReflectionRoot = getCachedReflectionRoot;
40
82
  * @param actionEndpoint
41
83
  * @param protoKey
42
84
  * @param credentials
85
+ * @param grpcOptions
43
86
  * @param addToCache
44
87
  * @returns Promise<protobufjs.Root>.
45
88
  * use toDescriptor for use with protoLoader.
46
89
  * use toJSON for get a JSON descriptor.
47
90
  */
48
- async function getReflectionRoot(actionEndpoint, protoKey, credentials, addToCache) {
49
- const client = getCachedClient(actionEndpoint, credentials);
91
+ async function getReflectionRoot(actionEndpoint, protoKey, credentials, grpcOptions, addToCache) {
92
+ const { client, reflectionRootPromiseMap } = getCachedClient(actionEndpoint, credentials, grpcOptions);
50
93
  const loadedRoot = await client.fileContainingSymbol(protoKey);
51
94
  if (addToCache) {
52
95
  lodash_1.default.set(reflectionRootPromiseMap, [actionEndpoint, protoKey], Promise.resolve(loadedRoot));
@@ -0,0 +1,2 @@
1
+ import * as protobufjs from 'protobufjs';
2
+ export declare function patchProtoPathResolver(root: protobufjs.Root, includeDirs: string[]): void;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.patchProtoPathResolver = void 0;
30
+ const fs_1 = __importDefault(require("fs"));
31
+ const path_1 = __importDefault(require("path"));
32
+ const protobufjs = __importStar(require("protobufjs"));
33
+ function patchProtoPathResolver(root, includeDirs) {
34
+ const originalResolvePath = root.resolvePath;
35
+ root.resolvePath = function (origin, target) {
36
+ if (target in protobufjs.common || path_1.default.isAbsolute(target)) {
37
+ return target;
38
+ }
39
+ for (let i = 0; i < includeDirs.length; i++) {
40
+ const directory = includeDirs[i];
41
+ const fullPath = path_1.default.join(directory, target);
42
+ try {
43
+ fs_1.default.accessSync(fullPath, fs_1.default.constants.R_OK);
44
+ return fullPath;
45
+ }
46
+ catch (err) {
47
+ continue;
48
+ }
49
+ }
50
+ return originalResolvePath(origin, target);
51
+ };
52
+ }
53
+ exports.patchProtoPathResolver = patchProtoPathResolver;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/gateway",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",
@@ -1,5 +1,5 @@
1
1
  diff --git a/node_modules/grpc-reflection-js/build/src/client.d.ts b/node_modules/grpc-reflection-js/build/src/client.d.ts
2
- index 72b4587..b4bb034 100644
2
+ index 72b4587..c082f16 100644
3
3
  --- a/node_modules/grpc-reflection-js/build/src/client.d.ts
4
4
  +++ b/node_modules/grpc-reflection-js/build/src/client.d.ts
5
5
  @@ -5,7 +5,8 @@ export declare class Client {
@@ -8,37 +8,36 @@ index 72b4587..b4bb034 100644
8
8
  private fileDescriptorCache;
9
9
  - constructor(url: string, credentials: ChannelCredentials, options?: object, metadata?: Metadata);
10
10
  + private descriptor;
11
- + constructor(url: string, credentials: ChannelCredentials, options?: object, metadata?: Metadata, descriptorExtensionProto?: string[]);
11
+ + constructor(url: string, credentials: ChannelCredentials, options?: object, metadata?: Metadata, descriptorRoot?: Root);
12
12
  listServices(): Promise<string[]>;
13
13
  fileContainingSymbol(symbol: string): Promise<Root>;
14
14
  fileByFilename(filename: string): Promise<Root>;
15
15
  diff --git a/node_modules/grpc-reflection-js/build/src/client.js b/node_modules/grpc-reflection-js/build/src/client.js
16
- index 3747349..bc2ac34 100644
16
+ index 3747349..3f29d3c 100644
17
17
  --- a/node_modules/grpc-reflection-js/build/src/client.js
18
18
  +++ b/node_modules/grpc-reflection-js/build/src/client.js
19
- @@ -27,14 +27,19 @@ const grpc_js_1 = require("@grpc/grpc-js");
19
+ @@ -27,14 +27,18 @@ const grpc_js_1 = require("@grpc/grpc-js");
20
20
  const descriptor_1 = require("./descriptor");
21
21
  const services = __importStar(require("./reflection_grpc_pb"));
22
22
  const reflection_pb_1 = require("./reflection_pb");
23
23
  -const descriptor_2 = require("protobufjs/ext/descriptor");
24
- +const protobufjs_1 = require("protobufjs");
24
+ +const descriptor_2 = __importDefault(require("protobufjs/ext/descriptor"));
25
25
  const lodash_set_1 = __importDefault(require("lodash.set"));
26
26
  class Client {
27
27
  - constructor(url, credentials, options, metadata) {
28
- + constructor(url, credentials, options, metadata, descriptorExtensionProto) {
28
+ + constructor(url, credentials, options, metadata, descriptorRoot) {
29
29
  this.fileDescriptorCache = new Map();
30
+ + this.descriptor = descriptor_2.default;
30
31
  this.fileDescriptorCache = new Map();
31
32
  this.metadata = metadata || new grpc_js_1.Metadata();
32
33
  this.grpcClient = new services.ServerReflectionClient(url, credentials, options);
33
- + const descriptorRoot = protobufjs_1.Root.fromJSON(require('protobufjs/google/protobuf/descriptor.json'));
34
- + if (descriptorExtensionProto) {
35
- + descriptorRoot.loadSync(descriptorExtensionProto);
34
+ + if (descriptorRoot) {
35
+ + this.descriptor = descriptorRoot.lookup('.google.protobuf');
36
36
  + }
37
- + this.descriptor = descriptorRoot.lookup('.google.protobuf');
38
37
  }
39
38
  listServices() {
40
39
  return new Promise((resolve, reject) => {
41
- @@ -79,7 +84,7 @@ class Client {
40
+ @@ -79,7 +83,7 @@ class Client {
42
41
  }
43
42
  async resolveFileDescriptorSet(fileDescriptorProtos) {
44
43
  const fileDescriptorMap = await this.resolveDescriptorRecursive(fileDescriptorProtos);
@@ -47,7 +46,7 @@ index 3747349..bc2ac34 100644
47
46
  lodash_set_1.default(fileDescriptorSet, 'file', Array.from(fileDescriptorMap.values()));
48
47
  return descriptor_1.getDescriptorRootFromDescriptorSet(fileDescriptorSet);
49
48
  }
50
- @@ -100,6 +105,7 @@ class Client {
49
+ @@ -100,6 +104,7 @@ class Client {
51
50
  }
52
51
  getFileContainingSymbol(symbol) {
53
52
  const fileDescriptorCache = this.fileDescriptorCache;
@@ -55,7 +54,7 @@ index 3747349..bc2ac34 100644
55
54
  return new Promise((resolve, reject) => {
56
55
  function dataCallback(response) {
57
56
  var _a;
58
- @@ -107,7 +113,7 @@ class Client {
57
+ @@ -107,7 +112,7 @@ class Client {
59
58
  const fileDescriptorProtoBytes = (((_a = response
60
59
  .getFileDescriptorResponse()) === null || _a === void 0 ? void 0 : _a.getFileDescriptorProtoList()) || []);
61
60
  resolve(fileDescriptorProtoBytes.map(descriptorByte => {
@@ -64,7 +63,7 @@ index 3747349..bc2ac34 100644
64
63
  fileDescriptorCache.set(fileDescriptorProto.name, fileDescriptorProto);
65
64
  return fileDescriptorProto;
66
65
  }));
67
- @@ -131,6 +137,7 @@ class Client {
66
+ @@ -131,6 +136,7 @@ class Client {
68
67
  getFilesByFilenames(symbols) {
69
68
  const result = [];
70
69
  const fileDescriptorCache = this.fileDescriptorCache;
@@ -72,7 +71,7 @@ index 3747349..bc2ac34 100644
72
71
  const symbolsToFetch = symbols.filter(symbol => {
73
72
  const cached = fileDescriptorCache.get(symbol);
74
73
  if (cached) {
75
- @@ -149,7 +156,7 @@ class Client {
74
+ @@ -149,7 +155,7 @@ class Client {
76
75
  (_b = (_a = response
77
76
  .getFileDescriptorResponse()) === null || _a === void 0 ? void 0 : _a.getFileDescriptorProtoList()) === null || _b === void 0 ? void 0 : _b.forEach(descriptorByte => {
78
77
  if (descriptorByte instanceof Uint8Array) {
@@ -82,11 +81,11 @@ index 3747349..bc2ac34 100644
82
81
  result.push(fileDescriptorProto);
83
82
  }
84
83
  diff --git a/node_modules/grpc-reflection-js/build/src/client.js.map b/node_modules/grpc-reflection-js/build/src/client.js.map
85
- index e589db9..0284c65 100644
84
+ index e589db9..e61c3b7 100644
86
85
  --- a/node_modules/grpc-reflection-js/build/src/client.js.map
87
86
  +++ b/node_modules/grpc-reflection-js/build/src/client.js.map
88
87
  @@ -1 +1 @@
89
88
  -{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,6CAAgE;AAChE,+DAAiD;AACjD,mDAGyB;AAEzB,0DAImC;AACnC,4DAA6B;AAE7B,MAAa,MAAM;IAIjB,YACE,GAAW,EACX,WAA+B,EAC/B,OAAgB,EAChB,QAAmB;QALb,wBAAmB,GAAsC,IAAI,GAAG,EAAE,CAAC;QAOzE,IAAI,CAAC,mBAAmB,GAAG,IAAI,GAAG,EAAE,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,IAAI,kBAAQ,EAAE,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,QAAQ,CAAC,sBAAsB,CACnD,GAAG,EACH,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IAED,YAAY;QACV,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,SAAS,YAAY,CAAC,QAAkC;;gBACtD,IAAI,QAAQ,CAAC,uBAAuB,EAAE,EAAE;oBACtC,MAAM,QAAQ,SAAG,QAAQ;yBACtB,uBAAuB,EAAE,0CACxB,cAAc,GACf,GAAG,CAAC,GAAG,CAAC,EAAE;wBACT,OAAO,GAAG,CAAC,OAAO,EAAE,CAAC;oB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