backend-manager 5.9.3 → 5.9.4
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
|
@@ -14,6 +14,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
# [5.9.4] - 2026-06-21
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- **Download-app-link email had blank body.** Template passed `data: {}` so the card rendered logo + signoff + footer but no content. Now populates title, message, and "Download Now" button linking to `{brand.url}/download`.
|
|
21
|
+
|
|
17
22
|
# [5.9.3] - 2026-06-21
|
|
18
23
|
|
|
19
24
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
module.exports = function (payload, config) {
|
|
2
|
+
const brandName = config.brand.name || '';
|
|
3
|
+
const brandUrl = config.brand.url || '';
|
|
4
|
+
const downloadUrl = `${brandUrl}/download`;
|
|
5
|
+
const name = payload.name || '';
|
|
6
|
+
|
|
2
7
|
return {
|
|
3
8
|
// spamFilter: {
|
|
4
9
|
// ip: 3,
|
|
@@ -8,14 +13,26 @@ module.exports = function (payload, config) {
|
|
|
8
13
|
payload: {
|
|
9
14
|
to: {
|
|
10
15
|
email: payload.email,
|
|
11
|
-
name:
|
|
16
|
+
name: name,
|
|
12
17
|
},
|
|
13
18
|
sender: 'marketing',
|
|
14
19
|
categories: ['download'],
|
|
15
|
-
subject:
|
|
20
|
+
subject: `${name || 'Hey'}, your ${brandName} download link is ready!`,
|
|
16
21
|
template: 'card',
|
|
17
22
|
copy: false,
|
|
18
|
-
data: {
|
|
23
|
+
data: {
|
|
24
|
+
email: {
|
|
25
|
+
preview: `Your ${brandName} download link is inside`,
|
|
26
|
+
},
|
|
27
|
+
content: {
|
|
28
|
+
title: 'Your download link is ready!',
|
|
29
|
+
message: `Thanks for your interest in **${brandName}**! Click the button below to head to the download page and get started.`,
|
|
30
|
+
button: {
|
|
31
|
+
url: downloadUrl,
|
|
32
|
+
text: 'Download Now',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
19
36
|
}
|
|
20
37
|
}
|
|
21
38
|
}
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Sends a download link for the app
|
|
4
4
|
*/
|
|
5
5
|
module.exports = function (payload, config) {
|
|
6
|
+
const brandName = config.brand.name || '';
|
|
7
|
+
const brandUrl = config.brand.url || '';
|
|
8
|
+
const downloadUrl = `${brandUrl}/download`;
|
|
9
|
+
const name = payload.name || '';
|
|
10
|
+
|
|
6
11
|
return {
|
|
7
12
|
// spamFilter: {
|
|
8
13
|
// ip: 3,
|
|
@@ -12,14 +17,26 @@ module.exports = function (payload, config) {
|
|
|
12
17
|
payload: {
|
|
13
18
|
to: {
|
|
14
19
|
email: payload.email,
|
|
15
|
-
name:
|
|
20
|
+
name: name,
|
|
16
21
|
},
|
|
17
22
|
sender: 'marketing',
|
|
18
23
|
categories: ['download'],
|
|
19
|
-
subject: `${
|
|
24
|
+
subject: `${name || 'Hey'}, your ${brandName} download link is ready!`,
|
|
20
25
|
template: 'card',
|
|
21
26
|
copy: false,
|
|
22
|
-
data: {
|
|
27
|
+
data: {
|
|
28
|
+
email: {
|
|
29
|
+
preview: `Your ${brandName} download link is inside`,
|
|
30
|
+
},
|
|
31
|
+
content: {
|
|
32
|
+
title: 'Your download link is ready!',
|
|
33
|
+
message: `Thanks for your interest in **${brandName}**! Click the button below to head to the download page and get started.`,
|
|
34
|
+
button: {
|
|
35
|
+
url: downloadUrl,
|
|
36
|
+
text: 'Download Now',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
23
40
|
}
|
|
24
41
|
}
|
|
25
42
|
}
|