@adaptivestone/framework 3.0.10 → 3.0.13
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,16 @@
|
|
|
1
|
+
### 3.0.13
|
|
2
|
+
|
|
3
|
+
[UPDATE] bug fix with "mergeParams"
|
|
4
|
+
|
|
5
|
+
### 3.0.12
|
|
6
|
+
|
|
7
|
+
[NEW] ability to pass "mergeParams" options to express router
|
|
8
|
+
[UPDATE] update deps
|
|
9
|
+
|
|
10
|
+
### 3.0.11
|
|
11
|
+
|
|
12
|
+
[UPDATE] more verbose email error
|
|
13
|
+
|
|
1
14
|
### 3.0.10
|
|
2
15
|
|
|
3
16
|
[UPDATE] update deps
|
|
@@ -16,11 +16,13 @@ const Auth = require('../services/http/middleware/Auth');
|
|
|
16
16
|
* In most cases you will want to have a 'home' route that not include controller name. For this case please check 'getExpressPath'
|
|
17
17
|
*/
|
|
18
18
|
class AbstractController extends Base {
|
|
19
|
-
constructor(app, prefix) {
|
|
19
|
+
constructor(app, prefix, isExpressMergeParams = false) {
|
|
20
20
|
const time = Date.now();
|
|
21
21
|
super(app);
|
|
22
22
|
this.prefix = prefix;
|
|
23
|
-
this.router = express.Router(
|
|
23
|
+
this.router = express.Router({
|
|
24
|
+
mergeParams: isExpressMergeParams,
|
|
25
|
+
});
|
|
24
26
|
const { routes } = this;
|
|
25
27
|
const expressPath = this.getExpressPath();
|
|
26
28
|
|
package/package.json
CHANGED
|
@@ -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(
|
|
35
|
+
this.logger.error(
|
|
36
|
+
`Template '${template}' not found. Using 'emptyTemplate' as a fallback`,
|
|
37
|
+
);
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
this.templateData = templateData;
|