@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.cjs CHANGED
@@ -4982,7 +4982,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4982
4982
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4983
4983
  var CanUpdateAppProfilePermission = "0x036fef61";
4984
4984
  function getDefaultClientId() {
4985
- const version = true ? "0.4.0-dev.4" : "0.0.0";
4985
+ const version = true ? "0.4.0-dev.5" : "0.0.0";
4986
4986
  return `ecloud-sdk/v${version}`;
4987
4987
  }
4988
4988
  var UserApiClient = class {
@@ -5351,6 +5351,8 @@ async function watchUntilRunning(options, logger) {
5351
5351
  }
5352
5352
  return false;
5353
5353
  };
5354
+ const startTime = Date.now();
5355
+ let lastLoggedStatus;
5354
5356
  while (true) {
5355
5357
  try {
5356
5358
  const info = await userApiClient.getInfos([appId], 1);
@@ -5361,6 +5363,11 @@ async function watchUntilRunning(options, logger) {
5361
5363
  const appInfo = info[0];
5362
5364
  const currentStatus = appInfo.status;
5363
5365
  const currentIP = appInfo.ip || "";
5366
+ const elapsed = Math.round((Date.now() - startTime) / 1e3);
5367
+ if (currentStatus !== lastLoggedStatus) {
5368
+ logger.info(`Status: ${currentStatus} (${elapsed}s)`);
5369
+ lastLoggedStatus = currentStatus;
5370
+ }
5364
5371
  if (stopCondition(currentStatus, currentIP)) {
5365
5372
  return currentIP || void 0;
5366
5373
  }