godprotocol 2.3.25 → 2.3.26

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.25",
3
+ "version": "2.3.26",
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",
@@ -144,7 +144,7 @@ class Headers extends Services {
144
144
  {
145
145
  api_key,
146
146
  token: authorization,
147
- api_version: "v3",
147
+ api_version: "identity:v3",
148
148
  },
149
149
  );
150
150
 
@@ -213,6 +213,7 @@ class Headers extends Services {
213
213
  {
214
214
  token: authorization,
215
215
  xplatform,
216
+ api_version: "identity:v3",
216
217
  },
217
218
  );
218
219
 
@@ -82,8 +82,8 @@ class Services {
82
82
  "Content-Type": "application/json",
83
83
  Accept: "application/json",
84
84
  "x-api-version": servic.local
85
- ? `${servic.local}:${servic.api_version || header.api_version}`
86
- : servic.api_version || header.api_version || "v1",
85
+ ? `${servic.local}:${header.api_version || servic.api_version}`
86
+ : header.api_version || servic.api_version || "v1",
87
87
  };
88
88
 
89
89
  if (header?.api_key) {
@@ -132,9 +132,11 @@ class Services {
132
132
  },
133
133
  );
134
134
 
135
+ let reply = await response.json();
136
+
135
137
  this.get_version(prev_version);
136
138
 
137
- return await response.json();
139
+ return reply;
138
140
  } catch (e) {
139
141
  return {
140
142
  ok: false,