Socket
Socket
Sign inDemoInstall

electron-updater

Package Overview
Dependencies
Maintainers
2
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-updater - npm Package Compare versions

Comparing version 4.6.3 to 4.6.4

6

CHANGELOG.md
## 4.3.0
## 4.6.4
### Patch Changes
- [#6450](https://github.com/electron-userland/electron-builder/pull/6450) [`661a6522`](https://github.com/electron-userland/electron-builder/commit/661a6522520e9ea59549cb7e18986fcfb58e873a) Thanks [@robertpatrick](https://github.com/robertpatrick)! - fix(nsis): fix per-machine installs to properly elevate during silent install/updates
## 4.6.3

@@ -4,0 +10,0 @@

18

out/BaseUpdater.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseUpdater = void 0;
const fs = require("fs");
const path = require("path");
const AppUpdater_1 = require("./AppUpdater");

@@ -53,15 +51,3 @@ class BaseUpdater extends AppUpdater_1.AppUpdater {

try {
let installPathRequiresElevation = false;
if (process.platform === "win32") {
try {
const accessTestPath = path.join(path.dirname(process.execPath), `access-${Math.floor(Math.random() * 100)}.tmp`);
fs.writeFileSync(accessTestPath, " ");
fs.rmSync(accessTestPath);
}
catch (err) {
// Require admin rights if needed
installPathRequiresElevation = true;
}
}
this._logger.info(`Install: isSilent: ${isSilent}, isForceRunAfter: ${isForceRunAfter}, installPathRequiresElevation: ${installPathRequiresElevation}`);
this._logger.info(`Install: isSilent: ${isSilent}, isForceRunAfter: ${isForceRunAfter}`);
return this.doInstall({

@@ -71,3 +57,3 @@ installerPath,

isForceRunAfter,
isAdminRightsRequired: installPathRequiresElevation || downloadedFileInfo.isAdminRightsRequired,
isAdminRightsRequired: downloadedFileInfo.isAdminRightsRequired,
});

@@ -74,0 +60,0 @@ }

{
"name": "electron-updater",
"version": "4.6.3",
"version": "4.6.4",
"description": "Cross platform updater for electron applications",

@@ -5,0 +5,0 @@ "main": "out/main.js",

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