godprotocol 2.2.55 → 2.2.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "2.2.55",
3
+ "version": "2.2.56",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
@@ -7,7 +7,7 @@ class DB {
7
7
 
8
8
  let conf = {
9
9
  db_url: config.db_url,
10
- db_name: router?.gp?.platform_uri.replace(/\./g, "-"),
10
+ db_name: config.db_name || router?.gp?.platform_uri.replace(/\./g, "-"),
11
11
  };
12
12
  console.log(conf);
13
13
  this.db = new Mongo(conf);
@@ -15,6 +15,7 @@ class Route_table extends Headers {
15
15
  this.gp = gp;
16
16
  this.db_config = gp.db_config;
17
17
  this.api_key = gp.api_key;
18
+ this.platform_uri = gp.platform_uri;
18
19
  this.versions = {};
19
20
  this.validators = {};
20
21
  }