Skip to content

Commit

Permalink
fix(deps): update dependency @google-cloud/bigquery to v2
Browse files Browse the repository at this point in the history
Fixes: #949
  • Loading branch information
fhinkel committed Dec 14, 2018
1 parent 7dd9375 commit 1abd5a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion functions/sendgrid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const uuid = require('uuid');
// Get a reference to the Cloud Storage component
const storage = require('@google-cloud/storage')();
// Get a reference to the BigQuery component
const bigquery = require('@google-cloud/bigquery')();
const {BigQuery} = require('@google-cloud/bigquery');
const bigquery = new BigQuery();
// [END functions_sendgrid_setup]

// [START functions_sendgrid_get_client]
Expand Down
16 changes: 8 additions & 8 deletions functions/sendgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"test": "ava -T 20s --verbose test/*.test.js"
},
"dependencies": {
"@google-cloud/bigquery": "0.12.0",
"@google-cloud/storage": "1.7.0",
"safe-buffer": "5.1.2",
"sendgrid": "5.2.3",
"uuid": "3.3.2"
"@google-cloud/bigquery": "^2.0.0",
"@google-cloud/storage": "^1.7.0",
"safe-buffer": "^5.1.2",
"sendgrid": "^5.2.3",
"uuid": "^3.3.2"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^2.3.0",
"ava": "0.25.0",
"proxyquire": "2.1.0",
"sinon": "4.0.2"
"ava": "^0.25.0",
"proxyquire": "^2.1.0",
"sinon": "^4.0.2"
},
"cloud-repo-tools": {
"requiresKeyFile": true,
Expand Down
2 changes: 1 addition & 1 deletion functions/sendgrid/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function getSample() {
const dataset = {table: sinon.stub().returns(table)};
dataset.get = sinon.stub().returns(Promise.resolve([dataset]));
const bigquery = {dataset: sinon.stub().returns(dataset)};
const BigQueryMock = sinon.stub().returns(bigquery);
const BigQueryMock = sinon.stub().returns({BigQuery: bigquery});
const StorageMock = sinon.stub().returns(storage);
const sendgrid = sinon.stub().returns(client);
const uuid = {v4: sinon.stub()};
Expand Down

0 comments on commit 1abd5a1

Please sign in to comment.