@eui/tools 6.14.17 → 6.14.18
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/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/sandbox.js +10 -0
- package/scripts/csdr/metadata/package.js +32 -18
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.14.
|
|
1
|
+
6.14.18
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.14.18 (2023-12-13)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* versions fetch of package from npm when new pkg is created - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([42adf054](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/42adf054f0882068eb18b3f5413e04adb7cd8c26))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.14.17 (2023-12-11)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1501,3 +1501,13 @@ const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
|
1501
1501
|
// // const test = configUtils.packages.isRemote('sedia-mop-ui');
|
|
1502
1502
|
// // console.log(test);
|
|
1503
1503
|
// })
|
|
1504
|
+
|
|
1505
|
+
Promise.resolve()
|
|
1506
|
+
.then(() => {
|
|
1507
|
+
const pkg = configUtils.packages.getPackage('pmob-sysper-ui', true);
|
|
1508
|
+
|
|
1509
|
+
return metadataUtils.package.isNewPackageBuild(pkg);
|
|
1510
|
+
})
|
|
1511
|
+
.then((output) => {
|
|
1512
|
+
console.log(output);
|
|
1513
|
+
})
|
|
@@ -180,30 +180,44 @@ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
|
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
const getPackageVersions = (module.exports.getPackageVersions = (pkg) => {
|
|
183
|
+
let npmOutput;
|
|
183
184
|
try {
|
|
184
|
-
|
|
185
|
+
npmOutput = execa.sync('npm', ['view', pkg.npmPkg, '--json']).stdout;
|
|
185
186
|
if (npmOutput.trim() === '') {
|
|
186
187
|
npmOutput = execa.sync('npm', ['view', `${pkg.npmPkg}@snapshot`, '--json']).stdout;
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
name: pkg.name,
|
|
193
|
-
version: v,
|
|
194
|
-
major: v.split('.')[0],
|
|
195
|
-
snapshot: v.indexOf('snapshot') > -1,
|
|
196
|
-
hotfix: v.indexOf('snapshot') === -1 && v.indexOf('-rc.') === -1 && v.indexOf('-') > -1,
|
|
197
|
-
rc: v.indexOf('-rc.') > -1,
|
|
198
|
-
date: json.time[v],
|
|
199
|
-
};
|
|
200
|
-
});
|
|
189
|
+
} catch(e) {
|
|
190
|
+
npmOutput = e.stdout;
|
|
191
|
+
}
|
|
192
|
+
const json = JSON.parse(npmOutput);
|
|
201
193
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
let versions = [];
|
|
195
|
+
|
|
196
|
+
if (json.error) {
|
|
197
|
+
tools.logWarning('Error detected while trying to fetch the pkg version');
|
|
198
|
+
console.log(json.error);
|
|
199
|
+
|
|
200
|
+
} else {
|
|
201
|
+
if (json.versions) {
|
|
202
|
+
versions = json.versions.map((v) => {
|
|
203
|
+
return {
|
|
204
|
+
name: pkg.name,
|
|
205
|
+
version: v,
|
|
206
|
+
major: v.split('.')[0],
|
|
207
|
+
snapshot: v.indexOf('snapshot') > -1,
|
|
208
|
+
hotfix: v.indexOf('snapshot') === -1 && v.indexOf('-rc.') === -1 && v.indexOf('-') > -1,
|
|
209
|
+
rc: v.indexOf('-rc.') > -1,
|
|
210
|
+
date: json.time[v],
|
|
211
|
+
};
|
|
212
|
+
});
|
|
213
|
+
}
|
|
206
214
|
}
|
|
215
|
+
|
|
216
|
+
if (versions.length === 0) {
|
|
217
|
+
tools.logWarning(`Pkg versions not found for ${pkg.name} - ${pkg.npmPkg}`);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return versions;
|
|
207
221
|
});
|
|
208
222
|
|
|
209
223
|
module.exports.getPackageVersionsLatest = (pkg) => {
|