@eeacms/volto-eea-website-theme 0.7.3 → 0.7.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
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.7.4](https://github.com/eea/volto-eea-website-theme/compare/0.7.3...0.7.4) - 27 September 2022
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(voltoCustom.css): Better handle missing file on backend [Alin Voinea - [`679dcc8`](https://github.com/eea/volto-eea-website-theme/commit/679dcc8cbc94dcadec9e7b8c68f654d2d135186f)]
12
+ - fix(voltoCustom.css): resource.get(header) [Alin Voinea - [`708de42`](https://github.com/eea/volto-eea-website-theme/commit/708de42309043c72aea702acaa4a580cd0caea0f)]
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
7
17
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
8
18
 
9
19
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -13,19 +13,15 @@ function voltoCustomMiddleware(req, res, next) {
13
13
  .then((resource) => {
14
14
  // Just forward the headers that we need
15
15
  HEADERS.forEach((header) => {
16
- if (resource.get(header)) {
16
+ if (resource?.get?.(header)) {
17
17
  res.set(header, resource.get(header));
18
18
  }
19
19
  });
20
20
  res.status(resource.statusCode);
21
21
  res.send(resource.body);
22
22
  })
23
- .catch((resource) => {
24
- HEADERS.forEach((header) => {
25
- if (resource.get(header)) {
26
- res.set(header, resource.get(header));
27
- }
28
- });
23
+ .catch(() => {
24
+ res.set('Content-Type', 'text/css; charset=utf-8');
29
25
  res.status(200);
30
26
  res.send(
31
27
  '/* Override this by adding a File called voltoCustom.css to backend at portal_skins/custom/manage_main */',