godprotocol 2.3.34 → 2.3.36

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.3.34",
3
+ "version": "2.3.36",
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",
@@ -39,13 +39,11 @@ class Services {
39
39
  version: this.gp.__gp_version,
40
40
  });
41
41
 
42
- let ftch = await gp_profile.call(`get_token`, {
42
+ let token = await gp_profile.call(`get_token`, {
43
43
  platform_uri: service.uri,
44
44
  ...id,
45
45
  });
46
46
 
47
- token = await ftch.json();
48
-
49
47
  if (token?.ok) {
50
48
  await db.save_cache(
51
49
  { id: id.profile, platform_uri: service.uri },
@@ -109,6 +107,8 @@ class Services {
109
107
  headers["x-platform"] = this.platform_uri;
110
108
  }
111
109
 
110
+ if (header.xplatform) headers["x-platform"] = header.xplatform;
111
+
112
112
  if (
113
113
  !headers["x-api-key"] &&
114
114
  !headers["Authorization"] &&