nativescript-cloud
Advanced tools
Comparing version 0.7.1 to 0.7.2
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
class CloudDeviceEmulatorWrapper { | ||
@@ -11,6 +19,6 @@ constructor($options, $usbLiveSyncService, $processService) { | ||
get cloudDeviceEmulatorInstance() { | ||
this._isCloudDeviceEmulatorInstanceInitialized = true; | ||
return require("cloud-device-emulator"); | ||
} | ||
get deviceEmitter() { | ||
this._isCloudDeviceEmulatorInstanceInitialized = true; | ||
return this.cloudDeviceEmulatorInstance.deviceEmitter; | ||
@@ -25,3 +33,7 @@ } | ||
killServer() { | ||
return this.cloudDeviceEmulatorInstance.killServer(); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this._isCloudDeviceEmulatorInstanceInitialized) { | ||
return this.cloudDeviceEmulatorInstance.killServer(); | ||
} | ||
}); | ||
} | ||
@@ -28,0 +40,0 @@ dispose() { |
{ | ||
"name": "nativescript-cloud", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"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
128061
2086