@airmoney-degn/airmoney-cli 0.19.5 → 0.19.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.
package/dist/config.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.19.5"
2
+ "version": "0.19.6"
3
3
  }
@@ -46,10 +46,17 @@ async function loadMetadata(projectPath = '.', appUrl) {
46
46
  if (appUrl) {
47
47
  // Fetch from remote URL
48
48
  const url = (0, remote_1.buildRemoteUrl)(appUrl, 'metadata.json');
49
- const fetchedRaw = await (0, remote_1.fetchRemoteText)(url);
50
- if (fetchedRaw === null) {
51
- (0, LogService_1.log)('Error loading metadata from remote URL').red();
52
- return null;
49
+ let fetchedRaw = null;
50
+ let hasLogged = false;
51
+ while (fetchedRaw === null) {
52
+ fetchedRaw = await (0, remote_1.fetchRemoteText)(url);
53
+ if (fetchedRaw === null) {
54
+ if (!hasLogged) {
55
+ (0, LogService_1.log)(`Wating for ${appUrl.endsWith('/') ? appUrl : appUrl + '/'}metadata.json...`).white();
56
+ hasLogged = true;
57
+ }
58
+ await new Promise(resolve => setTimeout(resolve, 1000));
59
+ }
53
60
  }
54
61
  raw = fetchedRaw;
55
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airmoney-degn/airmoney-cli",
3
- "version": "0.19.5",
3
+ "version": "0.19.6",
4
4
  "description": "airmoney-cli is a command-line interface tool designed to facilitate the development and management of decentralized applications (DApps) for Airmoney.",
5
5
  "publishConfig": {
6
6
  "access": "public"