Socket
Socket
Sign inDemoInstall

@electron/get

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/get - npm Package Compare versions

Comparing version 1.7.5 to 1.7.6

7

dist/cjs/index.js

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

function download(version, options) {
return downloadArtifact(Object.assign({}, options, { version, platform: process.platform, arch: utils_1.getHostArch(), artifactName: 'electron' }));
return downloadArtifact(Object.assign({}, options, { version, platform: process.platform, arch: process.arch, artifactName: 'electron' }));
}

@@ -38,5 +38,8 @@ exports.download = download;

const artifactDetails = _artifactDetails.isGeneric
? Object.assign({}, _artifactDetails) : Object.assign({ platform: process.platform, arch: utils_1.getHostArch() }, _artifactDetails);
? Object.assign({}, _artifactDetails) : Object.assign({ platform: process.platform, arch: process.arch }, _artifactDetails);
utils_1.ensureIsTruthyString(artifactDetails, 'version');
artifactDetails.version = utils_1.normalizeVersion(artifactDetails.version);
if (artifactDetails.hasOwnProperty('arch')) {
artifactDetails.arch = utils_1.getNodeArch(artifactDetails.arch);
}
const fileName = artifact_utils_1.getArtifactFileName(artifactDetails);

@@ -43,0 +46,0 @@ const url = artifact_utils_1.getArtifactRemoteURL(artifactDetails);

@@ -8,3 +8,3 @@ import debug from 'debug';

import { initializeProxy } from './proxy';
import { withTempDirectoryIn, normalizeVersion, getHostArch, ensureIsTruthyString, isOfficialLinuxIA32Download, } from './utils';
import { withTempDirectoryIn, normalizeVersion, getNodeArch, ensureIsTruthyString, isOfficialLinuxIA32Download, } from './utils';
export { getHostArch } from './utils';

@@ -23,3 +23,3 @@ export { initializeProxy } from './proxy';

export function download(version, options) {
return downloadArtifact(Object.assign({}, options, { version, platform: process.platform, arch: getHostArch(), artifactName: 'electron' }));
return downloadArtifact(Object.assign({}, options, { version, platform: process.platform, arch: process.arch, artifactName: 'electron' }));
}

@@ -34,5 +34,8 @@ /**

const artifactDetails = _artifactDetails.isGeneric
? Object.assign({}, _artifactDetails) : Object.assign({ platform: process.platform, arch: getHostArch() }, _artifactDetails);
? Object.assign({}, _artifactDetails) : Object.assign({ platform: process.platform, arch: process.arch }, _artifactDetails);
ensureIsTruthyString(artifactDetails, 'version');
artifactDetails.version = normalizeVersion(artifactDetails.version);
if (artifactDetails.hasOwnProperty('arch')) {
artifactDetails.arch = getNodeArch(artifactDetails.arch);
}
const fileName = getArtifactFileName(artifactDetails);

@@ -39,0 +42,0 @@ const url = getArtifactRemoteURL(artifactDetails);

{
"name": "@electron/get",
"version": "1.7.5",
"version": "1.7.6",
"description": "Utility for downloading artifacts from different versions of Electron",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.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