Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.3.3 to 1.4.0

4

dist/cjs/index.d.ts

@@ -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

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