@adaptivestone/framework 3.0.8 → 3.0.11

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,21 @@
1
+ ### 3.0.11
2
+
3
+ [UPDATE] more verbose email error
4
+
5
+ ### 3.0.10
6
+
7
+ [UPDATE] update deps
8
+ [CHANGE] tests afterAll not using timeout anymore (conflict with jest 28-alpha)
9
+ [NEW] config for mail now supports "EMAIL_TRANSPORT" env variable. SMTP by default (as was)
10
+
11
+ ### 3.0.9
12
+
13
+ [UPDATE] update deps
14
+
15
+ ### 3.0.8
16
+
17
+ [UPDATE] update deps
18
+
1
19
  ### 3.0.7
2
20
 
3
21
  [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.8",
3
+ "version": "3.0.11",
4
4
  "description": "Adaptive stone node js framework",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -32,7 +32,9 @@ class Mail extends Base {
32
32
  this.template = `${__dirname}/templates/${path.basename(template)}`;
33
33
  } else {
34
34
  this.template = `${__dirname}/templates/emptyTemplate`;
35
- this.logger.error('not found');
35
+ this.logger.error(
36
+ `Template '${template}' not found. Using 'emptyTemplate' as a fallback`,
37
+ );
36
38
  }
37
39
  }
38
40
  this.templateData = templateData;
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
  });