@joystick.js/node-canary 0.0.0-canary.43 → 0.0.0-canary.45

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.
@@ -17,7 +17,7 @@ var mongodb_default = async (settings = {}, databasePort = 2610) => {
17
17
  const connectionOptions = {
18
18
  useNewUrlParser: true,
19
19
  useUnifiedTopology: true,
20
- ssl: !process.env.NODE_ENV?.includes("development"),
20
+ ssl: !["development", "test"].includes(process.env.NODE_ENV),
21
21
  ...settings?.options || {}
22
22
  };
23
23
  if (settings?.options?.ca) {
package/dist/app/index.js CHANGED
@@ -143,7 +143,9 @@ class App {
143
143
  process.BUILD_ERROR = JSON.parse(message);
144
144
  }
145
145
  });
146
- console.log(`App running at: http://localhost:${express.port}`);
146
+ if (process.env.NODE_ENV !== "test") {
147
+ console.log(`App running at: http://localhost:${express.port}`);
148
+ }
147
149
  }
148
150
  setMachineId() {
149
151
  generateMachineId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.43",
3
+ "version": "0.0.0-canary.45",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",