godprotocol 2.3.18 → 2.3.19

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/Godprotocol.js CHANGED
@@ -5,6 +5,7 @@ import version_middleware from "./server/version_control.js";
5
5
  class GodProtocol {
6
6
  constructor(config) {
7
7
  this.db_config = config.db_config;
8
+ this.server = config.server;
8
9
 
9
10
  this.resource = new Resource(this);
10
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "2.3.18",
3
+ "version": "2.3.19",
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",
@@ -80,6 +80,10 @@ const respond = (result, res) => {
80
80
  response.next = result.next;
81
81
  }
82
82
 
83
+ if (result?.status_code) {
84
+ response.status_code = result.status_code;
85
+ }
86
+
83
87
  const status = result?.status || (result?.ok ? 200 : 403);
84
88
 
85
89
  res.statusCode = status;