@adaptivestone/framework 3.0.9 → 3.0.10

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 3.0.10
2
+
3
+ [UPDATE] update deps
4
+ [CHANGE] tests afterAll not using timeout anymore (conflict with jest 28-alpha)
5
+ [NEW] config for mail now supports "EMAIL_TRANSPORT" env variable. SMTP by default (as was)
6
+
1
7
  ### 3.0.9
2
8
 
3
9
  [UPDATE] update deps
package/config/mail.js CHANGED
@@ -17,7 +17,7 @@ module.exports = {
17
17
  connectionTimeout: 10000, // timeout to 10 seconds
18
18
  },
19
19
  },
20
- transport: 'smtp',
20
+ transport: process.env.EMAIL_TRANSPORT || 'smtp',
21
21
  webResources: {
22
22
  // https://github.com/jrit/web-resource-inliner path to find resources
23
23
  relativeTo: 'build',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptivestone/framework",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "description": "Adaptive stone node js framework",
5
5
  "main": "index.js",
6
6
  "repository": {
package/tests/setup.js CHANGED
@@ -67,11 +67,11 @@ afterAll(async () => {
67
67
  global.server.app.httpServer.shutdown();
68
68
  global.server.app.events.emit('shutdown');
69
69
  }
70
- setTimeout(async () => {
71
- if (typeof global.testSetup.afterAll === 'function') {
72
- await global.testSetup.afterAll();
73
- }
74
- await mongoose.disconnect();
75
- await mongoMemoryServerInstance.stop();
76
- }, 2000);
70
+ // setTimeout(async () => {
71
+ if (typeof global.testSetup.afterAll === 'function') {
72
+ await global.testSetup.afterAll();
73
+ }
74
+ await mongoose.disconnect();
75
+ await mongoMemoryServerInstance.stop();
76
+ // }, 2000);
77
77
  });