Socket
Socket
Sign inDemoInstall

electron-updater

Package Overview
Dependencies
Maintainers
0
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 6.3.0-alpha.5 to 6.3.0-alpha.6

16

out/windowsExecutableCodeSignatureVerifier.js

@@ -7,2 +7,3 @@ "use strict";

const os = require("os");
const path = require("path");
// $certificateInfo = (Get-AuthenticodeSignature 'xxx\yyy.exe'

@@ -40,2 +41,3 @@ // | where {$_.Status.Equals([System.Management.Automation.SignatureStatus]::Valid) -and $_.SignerCertificate.Subject.Contains("CN=siemens.com")})

}, (error, stdout, stderr) => {
var _a;
try {

@@ -49,2 +51,15 @@ if (error != null || stderr) {

if (data.Status === 0) {
try {
const normlaizedUpdateFilePath = path.normalize(data.Path);
const normalizedTempUpdateFile = path.normalize(unescapedTempUpdateFile);
logger.info(`LiteralPath: ${normlaizedUpdateFilePath}. Update Path: ${normalizedTempUpdateFile}`);
if (normlaizedUpdateFilePath !== normalizedTempUpdateFile) {
handleError(logger, new Error(`LiteralPath of ${normlaizedUpdateFilePath} is different than ${normalizedTempUpdateFile}`), stderr, reject);
resolve(null);
return;
}
}
catch (error) {
logger.warn(`Unable to verify LiteralPath of update asset due to missing data.Path. Skipping this step of validation. Message: ${(_a = error.message) !== null && _a !== void 0 ? _a : error.stack}`);
}
const subject = (0, builder_util_runtime_1.parseDn)(data.SignerCertificate.Subject);

@@ -98,3 +113,2 @@ let match = false;

}
delete data.Path;
return data;

@@ -101,0 +115,0 @@ }

2

package.json
{
"name": "electron-updater",
"version": "6.3.0-alpha.5",
"version": "6.3.0-alpha.6",
"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