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.15.0 to 1.15.1

lib/services/lock-service.js

1

lib/bootstrap.js

@@ -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"));

14

lib/services/eula-service-base.js

@@ -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

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