@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/datastore-lib",
3
- "version": "3.18.2",
3
+ "version": "3.18.3",
4
4
  "description": "Opinionated library to work with Google Datastore",
5
5
  "scripts": {
6
6
  "prepare": "husky install"
@@ -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']) {