godprotocol 2.2.56 → 2.2.57

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.56",
3
+ "version": "2.2.57",
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",
@@ -9,7 +9,7 @@ class DB {
9
9
  db_url: config.db_url,
10
10
  db_name: config.db_name || router?.gp?.platform_uri.replace(/\./g, "-"),
11
11
  };
12
- console.log(conf);
12
+
13
13
  this.db = new Mongo(conf);
14
14
 
15
15
  this.folders = {};
@@ -204,7 +204,7 @@ class Headers extends Services {
204
204
 
205
205
  let checks = {
206
206
  api_key: () => !!headers["x-api-key"],
207
- bearer_token: () => !!headers["authorization"],
207
+ auth_token: () => !!headers["authorization"],
208
208
  xplatform: () => !!headers["x-platform"],
209
209
  };
210
210
 
@@ -1,10 +1,10 @@
1
1
  import Headers from "./Header.js";
2
2
 
3
3
  let securities = {
4
- both: ["api_key", "bearer_token"],
5
- first: ["api_key"],
6
- second: ["bearer_token"],
7
- all: ["api_key", "bearer_token", "xplatform"],
4
+ both: ["api_key", "auth_token"],
5
+ api_key: ["api_key"],
6
+ auth_token: ["auth_token"],
7
+ all: ["api_key", "auth_token", "xplatform"],
8
8
  none: [],
9
9
  };
10
10