Skip to content

Commit

Permalink
fix(deps): update dependency @google-cloud/datastore to v3 (#1094)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency @google-cloud/datastore to v3

* Fix invocation of constructor
  • Loading branch information
renovate[bot] authored and fhinkel committed Mar 14, 2019
1 parent 62aa23c commit 867df69
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions appengine/datastore/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ app.enable('trust proxy');
// the project specified by the GOOGLE_CLOUD_PROJECT environment variable. See
// https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/docs/authentication.md
// These environment variables are set automatically on Google App Engine
const Datastore = require('@google-cloud/datastore');
const {Datastore} = require('@google-cloud/datastore');

// Instantiate a datastore client
const datastore = Datastore();
const datastore = new Datastore();

/**
* Insert a visit record into the database.
Expand Down
2 changes: 1 addition & 1 deletion appengine/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "npm run system-test"
},
"dependencies": {
"@google-cloud/datastore": "^2.0.0",
"@google-cloud/datastore": "^3.0.0",
"express": "^4.16.4"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions functions/datastore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

'use strict';

const Datastore = require('@google-cloud/datastore');
const {Datastore} = require('@google-cloud/datastore');

// Instantiates a client
const datastore = Datastore();
const datastore = new Datastore();

/**
* Gets a Datastore key from the kind/key pair in the request.
Expand Down
2 changes: 1 addition & 1 deletion functions/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "npm run system-test"
},
"dependencies": {
"@google-cloud/datastore": "2.0.0",
"@google-cloud/datastore": "3.1.2",
"supertest": "^3.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions functions/datastore/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
'use strict';

const assert = require('assert');
const Datastore = require('@google-cloud/datastore');
const datastore = Datastore();
const {Datastore} = require('@google-cloud/datastore');
const datastore = new Datastore();
const program = require('../');
const uuid = require('uuid');

Expand Down

0 comments on commit 867df69

Please sign in to comment.