@electron/get
Advanced tools
Comparing version 1.7.5 to 1.7.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61904
916