Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 670d549

Browse files
renovate[bot]JustinBeckwith
authored andcommitted
fix(deps): update dependency google-proto-files to ^0.18.0 (#348)
1 parent 87ca2ad commit 670d549

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@grpc/proto-loader": "^0.3.0",
1313
"duplexify": "^3.6.0",
1414
"google-auth-library": "^2.0.0",
15-
"google-proto-files": "^0.17.0",
15+
"google-proto-files": "^0.18.0",
1616
"grpc": "^1.15.1",
1717
"is-stream-ended": "^0.1.4",
1818
"lodash.at": "^4.6.0",

src/grpc.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import * as grpcProtoLoaderTypes from '@grpc/proto-loader'; // for types only
3434
import * as fs from 'fs';
3535
import {GoogleAuth, GoogleAuthOptions} from 'google-auth-library';
36+
import {getProtoPath} from 'google-proto-files';
3637
import * as grpcTypes from 'grpc'; // for types only
3738
import {OutgoingHttpHeaders} from 'http';
3839
import * as path from 'path';
@@ -42,9 +43,7 @@ import * as walk from 'walkdir';
4243

4344
import * as gax from './gax';
4445

45-
let googleProtoFilesDir = require('google-proto-files')('..');
46-
googleProtoFilesDir = path.normalize(googleProtoFilesDir);
47-
46+
const googleProtoFilesDir = path.normalize(getProtoPath('..'));
4847

4948
// INCLUDE_DIRS is passed to @grpc/proto-loader
5049
const INCLUDE_DIRS: string[] = [];

src/operations_client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* merge preserves those additions if the generated source changes.
2525
*/
2626

27+
import {getProtoPath} from 'google-proto-files';
28+
2729
import * as apiCallable from './api_callable';
2830
import * as gax from './gax';
2931
import * as pagedIteration from './paged_iteration';
@@ -431,9 +433,10 @@ export class OperationsClient {
431433
return this['_deleteOperation'](request, options, callback);
432434
}
433435
}
436+
434437
export class OperationsClientBuilder {
435438
constructor(gaxGrpc) {
436-
const protoFilesRoot = require('google-proto-files')('..');
439+
const protoFilesRoot = getProtoPath('..');
437440
const operationsClient = gaxGrpc.loadProto(
438441
protoFilesRoot, 'google/longrunning/operations.proto');
439442
Object.assign(this, operationsClient.google.longrunning);

0 commit comments

Comments
 (0)