godprotocol 2.2.61 → 2.2.63

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.61",
3
+ "version": "2.2.63",
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",
@@ -1,6 +1,6 @@
1
1
  import { DB } from "./Header.js";
2
2
 
3
- let DEV = true;
3
+ let DEV = false;
4
4
  let gp_services = {
5
5
  profile: DEV
6
6
  ? "http://localhost:4000"
@@ -61,6 +61,11 @@ const version_middleware = async (req, res, routers) => {
61
61
  try {
62
62
  applyCors(req, res);
63
63
 
64
+ if (req.method === "OPTIONS") {
65
+ res.statusCode = 204;
66
+ return res.end();
67
+ }
68
+
64
69
  const version = req.headers["x-api-version"] || "v1";
65
70
 
66
71
  const versionRouter = routers.get_version(version);