nativescript-cloud
Advanced tools
Comparing version 1.18.1-2019-08-16-10 to 1.18.1-2019-08-16-11
@@ -23,2 +23,4 @@ "use strict"; | ||
this.$nsCloudS3Helper = $nsCloudS3Helper; | ||
this.test1 = 0; | ||
this.test2 = 0; | ||
this.outputCursorPosition = 0; | ||
@@ -64,3 +66,5 @@ } | ||
this.statusCheckInterval = setInterval(() => __awaiter(this, void 0, void 0, function* () { | ||
console.log(this.id + ` ${this.test1} tsvetie: before get serverStatus`); | ||
this.serverStatus = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.statusUrl); | ||
console.log(this.id + ` ${this.test1++} tsvetie: serverStatus`, this.serverStatus); | ||
if (this.serverStatus.status === CloudOperationV1.OPERATION_COMPLETE_STATUS) { | ||
@@ -90,9 +94,10 @@ clearInterval(this.statusCheckInterval); | ||
if (this.snoozeLogPoll) { | ||
console.log(this.id + " tsvetie: pollForLogs return"); | ||
console.log(this.id + ` ${this.test2} tsvetie: pollForLogs return`); | ||
return; | ||
} | ||
this.snoozeLogPoll = true; | ||
console.log(this.id + " tsvetie: pollForLogs, outputCursorPosition: ", this.outputCursorPosition); | ||
console.log(this.id + ` ${this.test2} tsvetie: pollForLogs, outputCursorPosition: `, this.outputCursorPosition); | ||
yield this.getCloudOperationLogs(); | ||
console.log(this.id + " tsvetie: pollForLogs, outputCursorPosition: ", this.outputCursorPosition); | ||
console.log(this.id + ` ${this.test2} tsvetie: pollForLogs, outputCursorPosition: `, this.outputCursorPosition); | ||
this.test2++; | ||
this.snoozeLogPoll = false; | ||
@@ -109,10 +114,10 @@ const status = this.serverStatus.status; | ||
try { | ||
console.log(this.id + " tsvetie: poll for logs"); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs`); | ||
const logs = yield this.$nsCloudS3Helper.getContentOfS3File(this.serverResponse.outputUrl); | ||
console.log(this.id + " tsvetie: poll for logs logs.length: ", logs.length); | ||
console.log(this.id + " tsvetie: poll for logs old outputCursorPosition: ", this.outputCursorPosition); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs logs.length: `, logs.length); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs old outputCursorPosition: `, this.outputCursorPosition); | ||
// 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)); | ||
this.outputCursorPosition = logs.length <= 0 ? 0 : logs.length - 1; | ||
console.log(this.id + " tsvetie: poll for logs new outputCursorPosition: ", this.outputCursorPosition); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs new outputCursorPosition: `, this.outputCursorPosition); | ||
if (contentToLog) { | ||
@@ -127,7 +132,7 @@ const data = { | ||
}; | ||
console.log(this.id + " tsvetie: poll for logs outputCursorPosition: ", this.outputCursorPosition); | ||
console.log(this.id + " tsvetie: poll for logs before emit: ", contentToLog.length); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs outputCursorPosition: `, this.outputCursorPosition); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs before emit: `, contentToLog.length); | ||
this.emit(constants_1.CloudCommunicationEvents.MESSAGE, data); | ||
console.log(this.id + " tsvetie: poll for logs outputCursorPosition: ", this.outputCursorPosition); | ||
console.log(this.id + " tsvetie: poll for logs after emit"); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs outputCursorPosition: `, this.outputCursorPosition); | ||
console.log(this.id + ` ${this.test2} tsvetie: poll for logs after emit`); | ||
} | ||
@@ -134,0 +139,0 @@ } |
{ | ||
"name": "nativescript-cloud", | ||
"version": "1.18.1-2019-08-16-10", | ||
"version": "1.18.1-2019-08-16-11", | ||
"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
465515
6234