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

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();
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.348",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",