@sap-ux/project-access 1.32.5 → 1.32.6
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.
|
@@ -107,6 +107,10 @@ async function refreshSpecificationDistTags(options) {
|
|
|
107
107
|
logger
|
|
108
108
|
});
|
|
109
109
|
const distTags = JSON.parse(distTagsString);
|
|
110
|
+
if ('error' in distTags) {
|
|
111
|
+
// Abort writing cache: received error in dist-tags response
|
|
112
|
+
throw new Error(distTagsString);
|
|
113
|
+
}
|
|
110
114
|
await (0, file_1.writeFile)(specificationDistTagPath, JSON.stringify(distTags, null, 4));
|
|
111
115
|
const uniqueVersions = new Set(Object.values(distTags));
|
|
112
116
|
// Check if we have cached versions that are not required anymore
|