@naturalcycles/datastore-lib 3.18.2 → 3.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datastore.db.js +0 -1
- package/package.json +1 -1
- package/src/datastore.db.ts +0 -2
package/dist/datastore.db.js
CHANGED
|
@@ -35,7 +35,6 @@ class DatastoreDB extends db_lib_1.BaseCommonDB {
|
|
|
35
35
|
const datastoreLib = require('@google-cloud/datastore');
|
|
36
36
|
const DS = datastoreLib.Datastore;
|
|
37
37
|
(_a = this.cfg).projectId || (_a.projectId = this.cfg.credentials?.project_id || process.env['GOOGLE_CLOUD_PROJECT']);
|
|
38
|
-
(0, js_lib_1._assert)(this.cfg.projectId, '"projectId" is not set for DatastoreDB');
|
|
39
38
|
if (this.cfg.projectId) {
|
|
40
39
|
this.cfg.logger.log(`DatastoreDB connected to ${(0, colors_1.boldWhite)(this.cfg.projectId)}`);
|
|
41
40
|
}
|
package/package.json
CHANGED
package/src/datastore.db.ts
CHANGED
|
@@ -84,8 +84,6 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
|
|
|
84
84
|
const DS = datastoreLib.Datastore as typeof Datastore
|
|
85
85
|
this.cfg.projectId ||= this.cfg.credentials?.project_id || process.env['GOOGLE_CLOUD_PROJECT']
|
|
86
86
|
|
|
87
|
-
_assert(this.cfg.projectId, '"projectId" is not set for DatastoreDB')
|
|
88
|
-
|
|
89
87
|
if (this.cfg.projectId) {
|
|
90
88
|
this.cfg.logger.log(`DatastoreDB connected to ${boldWhite(this.cfg.projectId)}`)
|
|
91
89
|
} else if (process.env['GOOGLE_APPLICATION_CREDENTIALS']) {
|