@sap-ux/project-access 1.32.3 → 1.32.5

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.
@@ -154,7 +154,16 @@ async function convertDistTagToVersion(distTag, options) {
154
154
  logger?.debug(`Specification dist-tags not found at '${specificationDistTagPath}'. Trying to refresh.`);
155
155
  await refreshSpecificationDistTags({ logger });
156
156
  }
157
- const specificationDistTags = await (0, file_1.readJSON)(specificationDistTagPath);
157
+ let specificationDistTags = await (0, file_1.readJSON)(specificationDistTagPath);
158
+ // Validate the current dist-tags file
159
+ if ('error' in specificationDistTags &&
160
+ !(distTag in specificationDistTags) &&
161
+ !('latest' in specificationDistTags)) {
162
+ // Refresh if dist-tags are invalid
163
+ logger?.debug(`Specification dist-tags file has error at '${specificationDistTagPath}'. Trying to refresh.`);
164
+ await refreshSpecificationDistTags({ logger });
165
+ specificationDistTags = await (0, file_1.readJSON)(specificationDistTagPath);
166
+ }
158
167
  const version = specificationDistTags[distTag] ?? specificationDistTags.latest;
159
168
  return version;
160
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-access",
3
- "version": "1.32.3",
3
+ "version": "1.32.5",
4
4
  "description": "Library to access SAP Fiori tools projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "mem-fs-editor": "9.4.0",
31
31
  "semver": "7.5.4",
32
32
  "@sap-ux/i18n": "0.3.4",
33
- "@sap-ux/ui5-config": "0.29.7"
33
+ "@sap-ux/ui5-config": "0.29.8"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/mem-fs": "1.1.2",