nativescript-cloud
Advanced tools
Comparing version 1.15.0 to 1.15.1
@@ -17,2 +17,3 @@ "use strict"; | ||
$injector.require("nsCloudKinveyUserService", path.join(__dirname, "services", "kinvey-user-service")); | ||
$injector.require("nsCloudLockService", path.join(__dirname, "services", "lock-service")); | ||
$injector.require("nsCloudTelerikUserService", path.join(__dirname, "services", "telerik-user-service")); | ||
@@ -19,0 +20,0 @@ $injector.require("nsCloudEmulatorDeviceDiscovery", path.join(__dirname, "mobile", "mobile-core", "cloud-emulator-device-discovery")); |
@@ -15,6 +15,6 @@ "use strict"; | ||
class EulaServiceBase { | ||
constructor($fs, $httpClient, $lockfile, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
this.$fs = $fs; | ||
this.$httpClient = $httpClient; | ||
this.$lockfile = $lockfile; | ||
this.$nsCloudLockService = $nsCloudLockService; | ||
this.$logger = $logger; | ||
@@ -91,11 +91,7 @@ this.$nsCloudHashService = $nsCloudHashService; | ||
const lockFilePath = this.getLockFilePath("download.lock"); | ||
yield this.$lockfile.lock(lockFilePath, this.getLockFileParams()); | ||
try { | ||
this.$nsCloudLockService.executeActionWithLock(() => __awaiter(this, void 0, void 0, function* () { | ||
this.$logger.trace(`Successfully downloaded EULA to ${tempEulaPath}.`); | ||
this.$fs.copyFile(tempEulaPath, this.getPathToEula()); | ||
this.$logger.trace(`Successfully copied EULA to ${this.getPathToEula()}.`); | ||
} | ||
finally { | ||
this.$lockfile.unlock(lockFilePath); | ||
} | ||
}), lockFilePath, this.getLockOptions()); | ||
} | ||
@@ -129,3 +125,3 @@ this.isEulaDownloadedInCurrentProcess = true; | ||
} | ||
getLockFileParams() { | ||
getLockOptions() { | ||
return { | ||
@@ -132,0 +128,0 @@ retryWait: 100, |
@@ -6,4 +6,4 @@ "use strict"; | ||
class EulaService extends eula_service_base_1.EulaServiceBase { | ||
constructor($fs, $httpClient, $lockfile, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
super($fs, $httpClient, $lockfile, $logger, $nsCloudHashService, $settingsService, $userSettingsService); | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
super($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService); | ||
} | ||
@@ -10,0 +10,0 @@ getAcceptedEulaHashPropertyName() { |
@@ -6,4 +6,4 @@ "use strict"; | ||
class KinveyEulaService extends eula_service_base_1.EulaServiceBase { | ||
constructor($fs, $httpClient, $lockfile, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
super($fs, $httpClient, $lockfile, $logger, $nsCloudHashService, $settingsService, $userSettingsService); | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
super($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService); | ||
} | ||
@@ -10,0 +10,0 @@ getAcceptedEulaHashPropertyName() { |
{ | ||
"name": "nativescript-cloud", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"description": "Used for cloud support in NativeScript CLI", | ||
@@ -26,3 +26,3 @@ "main": "lib/bootstrap.js", | ||
"@types/node-forge": "0.6.7", | ||
"@types/promise-retry": "1.1.1", | ||
"@types/promise-retry": "1.1.3", | ||
"@types/randomstring": "1.1.6", | ||
@@ -109,4 +109,3 @@ "@types/request": "0.0.45", | ||
"docs": "docs" | ||
}, | ||
"buildVersion": "272" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
406491
116
5601