Socket
Socket
Sign inDemoInstall

nativescript-cloud

Package Overview
Dependencies
Maintainers
8
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.20.0 to 1.20.1

lib/services/temp-service.js

1

lib/bootstrap.js

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

7

lib/services/eula-service-base.js

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