nativescript-cloud
Advanced tools
Comparing version 0.19.0 to 0.19.1
@@ -13,2 +13,3 @@ "use strict"; | ||
const constants_1 = require("../constants"); | ||
const temp = require("temp"); | ||
class EulaService { | ||
@@ -82,2 +83,4 @@ constructor($httpClient, $userSettingsService, $logger, $fs, $nsCloudDateTimeService, $lockfile, $options) { | ||
try { | ||
const tempEulaPath = temp.path({ prefix: "eula", suffix: ".pdf" }); | ||
temp.track(); | ||
yield this.$lockfile.lock(lockFilePath, this.getLockFileParams()); | ||
@@ -87,6 +90,8 @@ this.$logger.trace(`Downloading EULA to ${this.pathToEula}.`); | ||
url: constants_1.EulaConstants.eulaUrl, | ||
pipeTo: this.$fs.createWriteStream(this.pathToEula), | ||
pipeTo: this.$fs.createWriteStream(tempEulaPath), | ||
timeout: constants_1.EulaConstants.timeout | ||
}); | ||
this.$logger.trace(`Successfully downloaded EULA to ${this.pathToEula}.`); | ||
this.$logger.trace(`Successfully downloaded EULA to ${tempEulaPath}.`); | ||
this.$fs.copyFile(tempEulaPath, this.pathToEula); | ||
this.$logger.trace(`Successfully copied EULA to ${this.pathToEula}.`); | ||
this.isEulaDownloadedInCurrentProcess = true; | ||
@@ -93,0 +98,0 @@ } |
{ | ||
"name": "nativescript-cloud", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"description": "Used for cloud support in NativeScript CLI", | ||
@@ -60,2 +60,3 @@ "main": "lib/bootstrap.js", | ||
"simple-plist": "0.2.1", | ||
"temp": "0.8.3", | ||
"uuid": "3.0.1", | ||
@@ -62,0 +63,0 @@ "xml-escape": "1.1.0" |
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
225110
3694
15
+ Addedtemp@0.8.3