File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ app.enable('trust proxy');
2727// the project specified by the GOOGLE_CLOUD_PROJECT environment variable. See
2828// https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/docs/authentication.md
2929// These environment variables are set automatically on Google App Engine
30- const Datastore = require ( '@google-cloud/datastore' ) ;
30+ const { Datastore} = require ( '@google-cloud/datastore' ) ;
3131
3232// Instantiate a datastore client
33- const datastore = Datastore ( ) ;
33+ const datastore = new Datastore ( ) ;
3434
3535/**
3636 * Insert a visit record into the database.
Original file line number Diff line number Diff line change 1818 "test" : " npm run system-test"
1919 },
2020 "dependencies" : {
21- "@google-cloud/datastore" : " ^2 .0.0" ,
21+ "@google-cloud/datastore" : " ^3 .0.0" ,
2222 "express" : " ^4.16.4"
2323 },
2424 "devDependencies" : {
Original file line number Diff line number Diff line change 1515
1616'use strict' ;
1717
18- const Datastore = require ( '@google-cloud/datastore' ) ;
18+ const { Datastore} = require ( '@google-cloud/datastore' ) ;
1919
2020// Instantiates a client
21- const datastore = Datastore ( ) ;
21+ const datastore = new Datastore ( ) ;
2222
2323/**
2424 * Gets a Datastore key from the kind/key pair in the request.
Original file line number Diff line number Diff line change 1717 "test" : " npm run system-test"
1818 },
1919 "dependencies" : {
20- "@google-cloud/datastore" : " 2.0.0 " ,
20+ "@google-cloud/datastore" : " 3.1.2 " ,
2121 "supertest" : " ^3.0.0"
2222 },
2323 "devDependencies" : {
Original file line number Diff line number Diff line change 1616'use strict' ;
1717
1818const assert = require ( 'assert' ) ;
19- const Datastore = require ( '@google-cloud/datastore' ) ;
20- const datastore = Datastore ( ) ;
19+ const { Datastore} = require ( '@google-cloud/datastore' ) ;
20+ const datastore = new Datastore ( ) ;
2121const program = require ( '../' ) ;
2222const uuid = require ( 'uuid' ) ;
2323
You can’t perform that action at this time.
0 commit comments