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-08 to 1.18.1-2019-08-16-10

25

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

@@ -36,3 +36,2 @@ "use strict";

yield _super.cleanup.call(this, exitCode);
console.log(this.id + " tsvetie: cleanup");
clearInterval(this.statusCheckInterval);

@@ -65,10 +64,6 @@ clearInterval(this.logsCheckInterval);

this.statusCheckInterval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
console.log(this.id + " tsvetie: statusCheckInterval await status", this.serverStatus);
this.serverStatus = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.statusUrl);
console.log(this.id + " tsvetie: statusCheckInterval", this.serverStatus);
if (this.serverStatus.status === CloudOperationV1.OPERATION_COMPLETE_STATUS) {
console.log(this.id + " tsvetie: statusCheckInterval OPERATION_COMPLETE_STATUS");
clearInterval(this.statusCheckInterval);
this.result = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.resultUrl);
console.log(this.id + " tsvetie: statusCheckInterval OPERATION_COMPLETE_STATUS result", this.result);
return resolve(this.result);

@@ -78,5 +73,3 @@ }

try {
console.log(this.id + " tsvetie: statusCheckInterval OPERATION_FAILED_STATUS");
this.result = yield this.$nsCloudS3Helper.getJsonObjectFromS3File(this.serverResponse.resultUrl);
console.log(this.id + " tsvetie: statusCheckInterval OPERATION_FAILED_STATUS result", this.result);
clearInterval(this.statusCheckInterval);

@@ -86,3 +79,2 @@ resolve(this.result);

catch (err) {
console.log(this.id + " tsvetie: statusCheckInterval err", err);
clearInterval(this.statusCheckInterval);

@@ -99,3 +91,2 @@ this.$logger.trace(err);

this.logsCheckInterval = setInterval(() => __awaiter(this, void 0, void 0, function* () {
console.log(this.id + " tsvetie: pollForLogs serverStatus", this.serverStatus.status);
if (this.snoozeLogPoll) {

@@ -106,6 +97,6 @@ console.log(this.id + " tsvetie: pollForLogs return");

this.snoozeLogPoll = true;
console.log(this.id + " tsvetie: pollForLogs snoozeLogPoll to true");
console.log(this.id + " tsvetie: pollForLogs, outputCursorPosition: ", this.outputCursorPosition);
yield this.getCloudOperationLogs();
console.log(this.id + " tsvetie: pollForLogs, outputCursorPosition: ", this.outputCursorPosition);
this.snoozeLogPoll = false;
console.log(this.id + " tsvetie: pollForLogs snoozeLogPoll to false");
const status = this.serverStatus.status;

@@ -123,9 +114,8 @@ if (status === cloud_operation_base_1.CloudOperationBase.OPERATION_COMPLETE_STATUS || status === cloud_operation_base_1.CloudOperationBase.OPERATION_FAILED_STATUS) {

const logs = yield this.$nsCloudS3Helper.getContentOfS3File(this.serverResponse.outputUrl);
console.log(this.id + " tsvetie: poll for logs with logs.length: ", logs.length);
console.log(this.id + " tsvetie: poll for logs with old outputCursorPosition: ", this.outputCursorPosition);
console.log(this.id + " tsvetie: poll for logs logs.length: ", logs.length);
console.log(this.id + " 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 with new outputCursorPosition: ", this.outputCursorPosition);
console.log(this.id + " tsvetie: poll for logs has contentToLog: ", !!contentToLog);
console.log(this.id + " tsvetie: poll for logs new outputCursorPosition: ", this.outputCursorPosition);
if (contentToLog) {

@@ -140,5 +130,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);
this.emit(constants_1.CloudCommunicationEvents.MESSAGE, data);
console.log(this.id + " tsvetie: poll for logs after emit: ");
console.log(this.id + " tsvetie: poll for logs outputCursorPosition: ", this.outputCursorPosition);
console.log(this.id + " tsvetie: poll for logs after emit");
}

@@ -149,3 +141,2 @@ }

this.$logger.trace(`Error while getting server logs: ${err}`);
console.log(this.id + " tsvetie: poll for logs err: ", err);
}

@@ -152,0 +143,0 @@ });

{
"name": "nativescript-cloud",
"version": "1.18.1-2019-08-16-08",
"version": "1.18.1-2019-08-16-10",
"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