Socket
Socket
Sign inDemoInstall

nativescript-cloud

Package Overview
Dependencies
Maintainers
7
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-cloud - npm Package Compare versions

Comparing version 1.18.1-2019-08-16-10 to 1.18.1-2019-08-16-11

27

lib/cloud-operation/cloud-operation-v1.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc