@layr-labs/ecloud-sdk 0.4.0-dev.4 → 0.4.0-dev.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.
package/dist/index.js CHANGED
@@ -4833,7 +4833,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4833
4833
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4834
4834
  var CanUpdateAppProfilePermission = "0x036fef61";
4835
4835
  function getDefaultClientId() {
4836
- const version = true ? "0.4.0-dev.4" : "0.0.0";
4836
+ const version = true ? "0.4.0-dev.5" : "0.0.0";
4837
4837
  return `ecloud-sdk/v${version}`;
4838
4838
  }
4839
4839
  var UserApiClient = class {
@@ -5202,6 +5202,8 @@ async function watchUntilRunning(options, logger) {
5202
5202
  }
5203
5203
  return false;
5204
5204
  };
5205
+ const startTime = Date.now();
5206
+ let lastLoggedStatus;
5205
5207
  while (true) {
5206
5208
  try {
5207
5209
  const info = await userApiClient.getInfos([appId], 1);
@@ -5212,6 +5214,11 @@ async function watchUntilRunning(options, logger) {
5212
5214
  const appInfo = info[0];
5213
5215
  const currentStatus = appInfo.status;
5214
5216
  const currentIP = appInfo.ip || "";
5217
+ const elapsed = Math.round((Date.now() - startTime) / 1e3);
5218
+ if (currentStatus !== lastLoggedStatus) {
5219
+ logger.info(`Status: ${currentStatus} (${elapsed}s)`);
5220
+ lastLoggedStatus = currentStatus;
5221
+ }
5215
5222
  if (stopCondition(currentStatus, currentIP)) {
5216
5223
  return currentIP || void 0;
5217
5224
  }