@gov-cy/dsf-email-templates 2.1.10 → 2.1.12

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
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v2.1.12] - 2025-10-23
9
+ ### Changed
10
+ - Fixed vulnerabilities
11
+
12
+ ## [v2.1.11] - 2025-10-23
13
+ ### Changed
14
+ - Updated `bodyKeyValue` component to separate key from value with a line
15
+
8
16
  ## [v2.1.10] - 2025-10-23
9
17
 
10
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gov-cy/dsf-email-templates",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "description": "This project can be used to produce html email templates to be used by DSF.",
5
5
  "author": "DMRID - DSF Team",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  {# for each item render list item #}
27
27
  {%- for item in params.items -%}
28
28
  {%- if item -%}
29
- <li><b>{{ item.key }}:</b> {{ item.value }}</li>
29
+ <li style="padding-bottom:10px;line-height: 1.6;"><b>{{ item.key }}</b><br>{{ item.value }}</li>
30
30
  {%- endif -%}
31
31
  {%- endfor -%}
32
32
  {{ closeHTML | safe }}
@@ -191,7 +191,7 @@ function renderChecks(renderedHTML, checksNum){
191
191
  //check for bodyKeyValue.njk macro render as expected
192
192
  it(checksNum+'13 `bodyKeyValue` macro render as expected', async () => {
193
193
  //check for structure of `ol` block
194
- let expectedRegex = /<body>([\s\S]*?)<ul([\s\S]*?)>\s*<li>\s*<b>\s*key1:<\/b> value 1\s*<\/li>\s*<li>\s*<b>\s*key2:<\/b> value 2\s*<\/li>\s*<\/ul>/;
194
+ let expectedRegex = /<body>([\s\S]*?)<ul([\s\S]*?)>\s*<li\s*style="padding-bottom:10px;line-height:\s*1.6;">\s*<b>\s*key1<\/b><br>value 1\s*<\/li>\s*<li\s*style="padding-bottom:10px;line-height:\s*1.6;">\s*<b>\s*key2<\/b><br>value 2\s*<\/li>\s*<\/ul>/;
195
195
  expect(renderedHTML).to.match(expectedRegex);
196
196
  })
197
197