Socket
Socket
Sign inDemoInstall

electron-updater

Package Overview
Dependencies
Maintainers
3
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 1.4.1 to 1.4.2

13

out/api.js

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

exports.getDefaultChannelName = getDefaultChannelName;
exports.getCustomChannelName = getCustomChannelName;
exports.getCurrentPlatform = getCurrentPlatform;

@@ -18,8 +19,10 @@ exports.getChannelFilename = getChannelFilename;

function getDefaultChannelName() {
let channel = "latest";
if (getCurrentPlatform() === "darwin") {
channel += "-mac";
}
return channel;
return `latest${getChannelFilePrefix()}`;
}
function getChannelFilePrefix() {
return getCurrentPlatform() === "darwin" ? "-mac" : "";
}
function getCustomChannelName(channel) {
return `${channel}${getChannelFilePrefix()}`;
}
function getCurrentPlatform() {

@@ -26,0 +29,0 @@ return process.env.TEST_UPDATER_PLATFORM || process.platform;

@@ -23,2 +23,4 @@ declare module "electron-updater/out/api" {

export function getCustomChannelName(channel: string): string
export function getCurrentPlatform(): any

@@ -25,0 +27,0 @@

@@ -43,3 +43,3 @@ "use strict";

this.baseUrl = (_url || _load_url()).parse(this.configuration.url);
this.channel = this.configuration.channel || (0, (_api || _load_api()).getDefaultChannelName)();
this.channel = this.configuration.channel ? (0, (_api || _load_api()).getCustomChannelName)(this.configuration.channel) : (0, (_api || _load_api()).getDefaultChannelName)();
}

@@ -46,0 +46,0 @@ getLatestVersion() {

{
"name": "electron-updater",
"version": "1.4.1",
"version": "1.4.2",
"description": "NSIS Auto Updater",

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

Sorry, the diff of this file is not supported yet

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