Skip to content

Commit 60af91d

Browse files
authored
pubsub: pull grpc module from common-grpc (#2701)
1 parent bd61ae6 commit 60af91d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/pubsub/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@
5252
],
5353
"dependencies": {
5454
"@google-cloud/common": "^0.13.0",
55-
"@google-cloud/common-grpc": "^0.4.0",
55+
"@google-cloud/common-grpc": "^0.4.2",
5656
"arrify": "^1.0.0",
5757
"async-each": "^1.0.1",
5858
"extend": "^3.0.0",
5959
"google-auto-auth": "^0.7.1",
60-
"google-gax": "^0.14.2",
60+
"google-gax": "^0.13.0",
6161
"google-proto-files": "^0.13.1",
62-
"grpc": "^1.6.0",
6362
"is": "^3.0.1",
6463
"lodash.snakecase": "^4.1.1",
6564
"uuid": "^3.0.1"

packages/pubsub/src/connection-pool.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var arrify = require('arrify');
2424
var common = require('@google-cloud/common');
2525
var each = require('async-each');
2626
var events = require('events');
27-
var grpc = require('grpc');
27+
var grpc = require('@google-cloud/common-grpc').grpc;
2828
var is = require('is');
2929
var util = require('util');
3030
var uuid = require('uuid');

packages/pubsub/test/connection-pool.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ describe('ConnectionPool', function() {
9595
'@google-cloud/common': {
9696
util: fakeUtil
9797
},
98-
grpc: fakeGrpc,
98+
'@google-cloud/common-grpc': {
99+
grpc: fakeGrpc
100+
},
99101
uuid: fakeUuid,
100102
'./v1': fakeV1
101103
});

0 commit comments

Comments
 (0)