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
Fixes: #986
  • Loading branch information
fhinkel committed Dec 14, 2018
1 parent c2f246a commit 61e233e
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 @@ -92,7 +92,7 @@ function getSample() {
return {
program: proxyquire(`../`, {
sendgrid: sendgrid,
'@google-cloud/bigquery': BigQueryMock,
'@google-cloud/bigquery': {BigQuery: BigQueryMock},
'@google-cloud/storage': StorageMock,
'./config.json': config,
uuid: uuid,
Expand Down

0 comments on commit 61e233e

Please sign in to comment.