nativescript-cloud
Advanced tools
Comparing version 1.18.1-2019-08-16-01 to 1.18.1-2019-08-16-02
@@ -36,2 +36,3 @@ "use strict"; | ||
yield _super.cleanup.call(this, exitCode); | ||
console.log("tsvetie: cleanup"); | ||
clearInterval(this.statusCheckInterval); | ||
@@ -64,10 +65,10 @@ clearInterval(this.logsCheckInterval); | ||
this.statusCheckInterval = setInterval(() => __awaiter(this, void 0, void 0, function* () { | ||
console.log("statusCheckInterval await status", this.serverStatus); | ||
console.log("tsvetie: statusCheckInterval await status", this.serverStatus); | ||
this.serverStatus = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.statusUrl); | ||
console.log("statusCheckInterval", this.serverStatus); | ||
console.log("tsvetie: statusCheckInterval", this.serverStatus); | ||
if (this.serverStatus.status === CloudOperationV1.OPERATION_COMPLETE_STATUS) { | ||
console.log("statusCheckInterval OPERATION_COMPLETE_STATUS"); | ||
console.log("tsvetie: statusCheckInterval OPERATION_COMPLETE_STATUS"); | ||
clearInterval(this.statusCheckInterval); | ||
this.result = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.resultUrl); | ||
console.log("statusCheckInterval OPERATION_COMPLETE_STATUS result", this.result); | ||
console.log("tsvetie: statusCheckInterval OPERATION_COMPLETE_STATUS result", this.result); | ||
return resolve(this.result); | ||
@@ -77,5 +78,5 @@ } | ||
try { | ||
console.log("statusCheckInterval OPERATION_FAILED_STATUS"); | ||
console.log("tsvetie: statusCheckInterval OPERATION_FAILED_STATUS"); | ||
this.result = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.resultUrl); | ||
console.log("statusCheckInterval OPERATION_FAILED_STATUS result", this.result); | ||
console.log("tsvetie: statusCheckInterval OPERATION_FAILED_STATUS result", this.result); | ||
clearInterval(this.statusCheckInterval); | ||
@@ -85,2 +86,3 @@ resolve(this.result); | ||
catch (err) { | ||
console.log("tsvetie: statusCheckInterval err", err); | ||
clearInterval(this.statusCheckInterval); | ||
@@ -108,8 +110,8 @@ this.$logger.trace(err); | ||
try { | ||
console.log("poll for logs"); | ||
console.log("tsvetie: poll for logs"); | ||
const logs = yield this.$nsCloudS3Helper.getContentOfS3File(this.serverResponse.outputUrl); | ||
console.log("poll for logs with logs.length: ", logs.length); | ||
console.log("tsvetie: poll for logs with logs.length: ", logs.length); | ||
// The logs variable will contain the full server log and we need to log only the logs that we don't have. | ||
const contentToLog = this.$nsCloudOutputFilter.filter(logs.substr(this.outputCursorPosition)); | ||
console.log("poll for logs has contentToLog: ", !!contentToLog); | ||
console.log("tsvetie: poll for logs has contentToLog: ", !!contentToLog); | ||
if (contentToLog) { | ||
@@ -124,7 +126,9 @@ const data = { | ||
}; | ||
console.log("tsvetie: poll for logs before emit: ", contentToLog.length); | ||
this.emit(constants_1.CloudCommunicationEvents.MESSAGE, data); | ||
console.log("tsvetie: poll for logs after emit: "); | ||
} | ||
console.log("poll for logs with old outputCursorPosition: ", this.outputCursorPosition); | ||
console.log("tsvetie: poll for logs with old outputCursorPosition: ", this.outputCursorPosition); | ||
this.outputCursorPosition = logs.length <= 0 ? 0 : logs.length - 1; | ||
console.log("poll for logs with new outputCursorPosition: ", this.outputCursorPosition); | ||
console.log("tsvetie: poll for logs with new outputCursorPosition: ", this.outputCursorPosition); | ||
} | ||
@@ -134,3 +138,3 @@ catch (err) { | ||
this.$logger.trace(`Error while getting server logs: ${err}`); | ||
console.log("poll for logs err: ", err); | ||
console.log("tsvetie: poll for logs err: ", err); | ||
} | ||
@@ -137,0 +141,0 @@ }); |
{ | ||
"name": "nativescript-cloud", | ||
"version": "1.18.1-2019-08-16-01", | ||
"version": "1.18.1-2019-08-16-02", | ||
"description": "Used for cloud support in NativeScript CLI", | ||
@@ -5,0 +5,0 @@ "main": "lib/bootstrap.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
465235
6229
1