Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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