@continuous-excellence/ze-great-dashboard-aws 0.31.51 → 0.31.52
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/dist/cli.js +9 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5275,7 +5275,15 @@ async function runDoctor(options, dependencies = actualDependencies) {
|
|
|
5275
5275
|
await check("Hosted client", async () => {
|
|
5276
5276
|
if (!dependencies.packageVersion) throw new Error("installed package version is unavailable");
|
|
5277
5277
|
const url = `https://public-assets.zegreatrob.com/dashboard/${dependencies.packageVersion}/index.html`;
|
|
5278
|
-
|
|
5278
|
+
let response;
|
|
5279
|
+
for (let attempt = 1; ; attempt++) {
|
|
5280
|
+
try {
|
|
5281
|
+
response = await dependencies.fetch(url);
|
|
5282
|
+
break;
|
|
5283
|
+
} catch (error) {
|
|
5284
|
+
if (attempt === 3) throw error;
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5279
5287
|
if (!response.ok) throw new Error(`${url} returned HTTP ${response.status}`);
|
|
5280
5288
|
return `${url} returned HTTP ${response.status}`;
|
|
5281
5289
|
});
|
package/package.json
CHANGED