@electron/get
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -1,2 +0,2 @@ | ||
import { ElectronArtifactDetails, ElectronDownloadRequestOptions } from './types'; | ||
import { ElectronDownloadRequestOptions, ElectronPlatformArtifactDetailsWithDefaults } from './types'; | ||
export { getHostArch } from './utils'; | ||
@@ -17,2 +17,2 @@ export * from './types'; | ||
*/ | ||
export declare function downloadArtifact(_artifactDetails: ElectronArtifactDetails): Promise<string>; | ||
export declare function downloadArtifact(_artifactDetails: ElectronPlatformArtifactDetailsWithDefaults): Promise<string>; |
@@ -82,3 +82,4 @@ "use strict"; | ||
case 0: | ||
artifactDetails = __assign({}, _artifactDetails); | ||
artifactDetails = _artifactDetails.isGeneric | ||
? __assign({}, _artifactDetails) : __assign({ platform: process.platform, arch: utils_1.getHostArch() }, _artifactDetails); | ||
utils_1.ensureIsTruthyString(artifactDetails, 'version'); | ||
@@ -85,0 +86,0 @@ artifactDetails.version = utils_1.normalizeVersion(artifactDetails.version); |
@@ -83,2 +83,7 @@ import { Downloader } from './Downloader'; | ||
export declare type ElectronArtifactDetails = ElectronPlatformArtifactDetails | ElectronGenericArtifactDetails; | ||
export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
export declare type ElectronPlatformArtifactDetailsWithDefaults = (Omit<ElectronPlatformArtifactDetails, 'platform' | 'arch'> & { | ||
platform?: string; | ||
arch?: string; | ||
}) | ElectronGenericArtifactDetails; | ||
export declare type DownloadOptions = any; |
@@ -1,2 +0,2 @@ | ||
import { ElectronArtifactDetails, ElectronDownloadRequestOptions } from './types'; | ||
import { ElectronDownloadRequestOptions, ElectronPlatformArtifactDetailsWithDefaults } from './types'; | ||
export { getHostArch } from './utils'; | ||
@@ -17,2 +17,2 @@ export * from './types'; | ||
*/ | ||
export declare function downloadArtifact(_artifactDetails: ElectronArtifactDetails): Promise<string>; | ||
export declare function downloadArtifact(_artifactDetails: ElectronPlatformArtifactDetailsWithDefaults): Promise<string>; |
@@ -78,3 +78,4 @@ var __assign = (this && this.__assign) || function () { | ||
case 0: | ||
artifactDetails = __assign({}, _artifactDetails); | ||
artifactDetails = _artifactDetails.isGeneric | ||
? __assign({}, _artifactDetails) : __assign({ platform: process.platform, arch: getHostArch() }, _artifactDetails); | ||
ensureIsTruthyString(artifactDetails, 'version'); | ||
@@ -81,0 +82,0 @@ artifactDetails.version = normalizeVersion(artifactDetails.version); |
@@ -83,2 +83,7 @@ import { Downloader } from './Downloader'; | ||
export declare type ElectronArtifactDetails = ElectronPlatformArtifactDetails | ElectronGenericArtifactDetails; | ||
export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
export declare type ElectronPlatformArtifactDetailsWithDefaults = (Omit<ElectronPlatformArtifactDetails, 'platform' | 'arch'> & { | ||
platform?: string; | ||
arch?: string; | ||
}) | ElectronGenericArtifactDetails; | ||
export declare type DownloadOptions = any; |
{ | ||
"name": "@electron/get", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"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
90809
1399