@eui/tools 6.20.10 → 6.20.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.
@@ -1 +1 @@
1
- 6.20.10
1
+ 6.20.11
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.20.11 (2024-08-07)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted MSTEAMS notifications to standalone pkg build - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([945f63da](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/945f63da34d51d32b73a4a7d6cd310f5a02cc088))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.20.10 (2024-08-07)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.10",
3
+ "version": "6.20.11",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -44,7 +44,7 @@ module.exports.pushMessage = (message) => {
44
44
  }
45
45
 
46
46
 
47
- const sendMessage = (config) => {
47
+ const sendMessage = (config, standalone = false) => {
48
48
  if (config.CLIENT === 'SLACK') {
49
49
  return Promise.resolve();
50
50
  }
@@ -52,7 +52,7 @@ const sendMessage = (config) => {
52
52
  return Promise.resolve()
53
53
  .then(() => {
54
54
  if (config.CLIENT === 'MSTEAMS') {
55
- return innerTeamsUtils.sendMessage(config, messageContent);
55
+ return innerTeamsUtils.sendMessage(config, messageContent, standalone);
56
56
  }
57
57
  })
58
58
  .catch((e) => {
@@ -71,7 +71,7 @@ module.exports.sendPackageMessage = (pkg) => {
71
71
 
72
72
  return Promise.resolve()
73
73
  .then(() => {
74
- return sendMessage(config);
74
+ return sendMessage(config, pkg.standalone);
75
75
  })
76
76
  .catch((e) => {
77
77
  throw e;
@@ -180,7 +180,7 @@ const createPayload = (messageContent) => {
180
180
  }
181
181
 
182
182
 
183
- module.exports.sendMessage = (config, messageContent) => {
183
+ module.exports.sendMessage = (config, messageContent, standalone = false) => {
184
184
  tools.logTitle('Sending MS teams message');
185
185
 
186
186
  const channelHook = getChannelHook(config.MSTEAMS_CHANNEL);
@@ -198,7 +198,13 @@ module.exports.sendMessage = (config, messageContent) => {
198
198
 
199
199
  return Promise.resolve()
200
200
  .then(() => {
201
- const host = configUtils.global.getConfigOptions().MSTEAMS_HOST;
201
+ let host;
202
+
203
+ if (standalone) {
204
+ host = configUtils.global.getConfigOptionsStandalone().MSTEAMS_HOST;
205
+ } else {
206
+ host = configUtils.global.getConfigOptions().MSTEAMS_HOST;
207
+ }
202
208
 
203
209
  return apiUtils.post(host, channelHook, JSON.parse(JSON.stringify(payload, null, 2)));
204
210
  })