@joystick.js/node-canary 0.0.0-canary.347 → 0.0.0-canary.349

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.
@@ -1,7 +1,7 @@
1
1
  import { MongoClient } from "mongodb";
2
2
  import { MEGABYTE } from "../lib/constants.js";
3
3
  const connect_mongodb = async () => {
4
- const client = new MongoClient("mongodb://localhost:27017");
4
+ const client = await MongoClient.connect("mongodb://localhost:27017");
5
5
  const db = client.db("push");
6
6
  await db.collection("logs").drop();
7
7
  await db.collection("metrics").drop();
@@ -33,6 +33,7 @@ var logs_default = async () => {
33
33
  process_id: process.pid,
34
34
  data
35
35
  });
36
+ return true;
36
37
  case "stderr":
37
38
  case "uncaughtException":
38
39
  case "unhandledRejection":
@@ -42,8 +43,9 @@ var logs_default = async () => {
42
43
  process_id: process.pid,
43
44
  data
44
45
  });
46
+ return true;
45
47
  default:
46
- return;
48
+ return true;
47
49
  }
48
50
  });
49
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.347",
3
+ "version": "0.0.0-canary.349",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",