@eui/tools 6.1.7 → 6.1.8

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.1.7
1
+ 6.1.8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.1.8 (2022-11-08)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * fetch project version when version is not found in deps composite - MWP-8946 [MWP-8946](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8946) ([fc4e6688](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/fc4e66889cd92ac5174c96e9ecb88c4b0c8672f9))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.1.7 (2022-11-08)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.1.7",
3
+ "version": "6.1.8",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -232,18 +232,24 @@ const getEuiVersionCore = (project) => {
232
232
  } else {
233
233
  const jsonFileContnet = JSON.parse(tools.getFileContent(depsCompositeFile));
234
234
  const deps = jsonFileContnet.dependencies;
235
- const euiDepsBase = deps['@eui/deps-base'];
236
235
 
237
- if (euiDepsBase) {
238
- let euiVersion = euiDepsBase.split('.')[0];
236
+ if (!deps) {
237
+ version = 'DEFAULT';
239
238
 
240
- if (euiVersion.substr(0,1) === '^') {
241
- euiVersion = euiVersion.substr(1);
242
- }
243
- version = `${euiVersion}.x`;
239
+ } else {
240
+ const euiDepsBase = deps['@eui/deps-base'];
241
+
242
+ if (euiDepsBase) {
243
+ let euiVersion = euiDepsBase.split('.')[0];
244
244
 
245
- if (version === '7.x') {
246
- version = 'DEFAULT';
245
+ if (euiVersion.substr(0,1) === '^') {
246
+ euiVersion = euiVersion.substr(1);
247
+ }
248
+ version = `${euiVersion}.x`;
249
+
250
+ if (version === '7.x') {
251
+ version = 'DEFAULT';
252
+ }
247
253
  }
248
254
  }
249
255
  }