@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/README.md +2 -2
- package/VERSION +2 -2
- package/dist/browser.cjs +1 -1
- package/dist/browser.js +1 -1
- package/dist/compute.cjs +8 -1
- package/dist/compute.cjs.map +1 -1
- package/dist/compute.js +8 -1
- package/dist/compute.js.map +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tools/tls-keygen-linux-amd64 +0 -0
package/dist/compute.js
CHANGED
|
@@ -4689,7 +4689,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
4689
4689
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
4690
4690
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
4691
4691
|
function getDefaultClientId() {
|
|
4692
|
-
const version = true ? "0.4.0-dev.
|
|
4692
|
+
const version = true ? "0.4.0-dev.5" : "0.0.0";
|
|
4693
4693
|
return `ecloud-sdk/v${version}`;
|
|
4694
4694
|
}
|
|
4695
4695
|
var UserApiClient = class {
|
|
@@ -5058,6 +5058,8 @@ async function watchUntilRunning(options, logger) {
|
|
|
5058
5058
|
}
|
|
5059
5059
|
return false;
|
|
5060
5060
|
};
|
|
5061
|
+
const startTime = Date.now();
|
|
5062
|
+
let lastLoggedStatus;
|
|
5061
5063
|
while (true) {
|
|
5062
5064
|
try {
|
|
5063
5065
|
const info = await userApiClient.getInfos([appId], 1);
|
|
@@ -5068,6 +5070,11 @@ async function watchUntilRunning(options, logger) {
|
|
|
5068
5070
|
const appInfo = info[0];
|
|
5069
5071
|
const currentStatus = appInfo.status;
|
|
5070
5072
|
const currentIP = appInfo.ip || "";
|
|
5073
|
+
const elapsed = Math.round((Date.now() - startTime) / 1e3);
|
|
5074
|
+
if (currentStatus !== lastLoggedStatus) {
|
|
5075
|
+
logger.info(`Status: ${currentStatus} (${elapsed}s)`);
|
|
5076
|
+
lastLoggedStatus = currentStatus;
|
|
5077
|
+
}
|
|
5071
5078
|
if (stopCondition(currentStatus, currentIP)) {
|
|
5072
5079
|
return currentIP || void 0;
|
|
5073
5080
|
}
|