nativescript-cloud
Advanced tools
Comparing version 1.20.0 to 1.20.1
@@ -58,2 +58,3 @@ "use strict"; | ||
$injector.require("nsCloudPlatformService", path.join(__dirname, "services", "cloud-platform-service")); | ||
$injector.require("nsCloudTempService", path.join(__dirname, "services", "temp-service")); | ||
$injector.requireCommand("config|*get", path.join(__dirname, "commands", "config", "config-get")); | ||
@@ -60,0 +61,0 @@ $injector.requireCommand("config|apply", path.join(__dirname, "commands", "config", "config-apply")); |
@@ -13,5 +13,4 @@ "use strict"; | ||
const constants_1 = require("../constants"); | ||
const temp = require("temp"); | ||
class EulaServiceBase { | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService, $nsCloudTempService) { | ||
this.$fs = $fs; | ||
@@ -24,2 +23,3 @@ this.$httpClient = $httpClient; | ||
this.$userSettingsService = $userSettingsService; | ||
this.$nsCloudTempService = $nsCloudTempService; | ||
this.isEulaDownloadedInCurrentProcess = false; | ||
@@ -77,4 +77,3 @@ } | ||
try { | ||
const tempEulaPath = temp.path({ prefix: "eula", suffix: ".pdf" }); | ||
temp.track(); | ||
const tempEulaPath = yield this.$nsCloudTempService.path({ prefix: "eula", suffix: ".pdf" }); | ||
this.$logger.trace(`Downloading EULA to ${this.getPathToEula()}.`); | ||
@@ -81,0 +80,0 @@ const eulaFstat = this.getEulaFsStat(); |
@@ -6,4 +6,4 @@ "use strict"; | ||
class EulaService extends eula_service_base_1.EulaServiceBase { | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
super($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService); | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService, $nsCloudTempService) { | ||
super($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService, $nsCloudTempService); | ||
} | ||
@@ -10,0 +10,0 @@ getAcceptedEulaHashPropertyName() { |
@@ -6,4 +6,4 @@ "use strict"; | ||
class KinveyEulaService extends eula_service_base_1.EulaServiceBase { | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService) { | ||
super($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService); | ||
constructor($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService, $nsCloudTempService) { | ||
super($fs, $httpClient, $nsCloudLockService, $logger, $nsCloudHashService, $settingsService, $userSettingsService, $nsCloudTempService); | ||
} | ||
@@ -10,0 +10,0 @@ getAcceptedEulaHashPropertyName() { |
@@ -11,6 +11,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const temp = require("temp"); | ||
const helpers_1 = require("../helpers"); | ||
class PolicyService { | ||
constructor($nsCloudErrorsService, $fs, $httpClient, $nsCloudHashService, $userSettingsService) { | ||
constructor($nsCloudErrorsService, $fs, $httpClient, $nsCloudHashService, $userSettingsService, $nsCloudTempService) { | ||
this.$nsCloudErrorsService = $nsCloudErrorsService; | ||
@@ -21,2 +20,3 @@ this.$fs = $fs; | ||
this.$userSettingsService = $userSettingsService; | ||
this.$nsCloudTempService = $nsCloudTempService; | ||
} | ||
@@ -76,4 +76,3 @@ shouldAcceptPolicy(data) { | ||
if (helpers_1.isUrl(data.policyUri)) { | ||
const tempPolicyFile = temp.path({ prefix: data.policyName, suffix: ".txt" }); | ||
temp.track(); | ||
const tempPolicyFile = yield this.$nsCloudTempService.path({ prefix: data.policyName, suffix: ".txt" }); | ||
yield this.$httpClient.httpRequest({ | ||
@@ -80,0 +79,0 @@ url: data.policyUri, |
{ | ||
"name": "nativescript-cloud", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"description": "Used for cloud support in NativeScript CLI", | ||
@@ -108,4 +108,3 @@ "main": "lib/bootstrap.js", | ||
"docs": "docs" | ||
}, | ||
"buildVersion": "357" | ||
} | ||
} |
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
447546
125
6208