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

electron-info

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-info - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

CHANGELOG.md

15

dist/cli.js

@@ -20,3 +20,4 @@ #!/usr/bin/env node

.description(description)
.option('-f, --force', 'Force downloading the latest release file')
.option('-f, --force', 'Force downloading the latest release file (default: false)')
.option('-r, --raw', 'Output raw JSON (default: false)')
.version(version, '-v, --version');

@@ -28,3 +29,3 @@ program

.arguments('[version]')
.action((version) => __awaiter(this, void 0, void 0, function* () {
.action((version, { parent }) => __awaiter(this, void 0, void 0, function* () {
if (!version) {

@@ -35,3 +36,3 @@ program.outputHelp();

try {
const releases = yield new ElectronInfo_1.ElectronInfo().getChromeVersion(version, true);
const releases = yield new ElectronInfo_1.ElectronInfo().getChromeVersion(version, !parent.raw);
console.log(releases);

@@ -48,3 +49,3 @@ }

.arguments('[version]')
.action((version) => __awaiter(this, void 0, void 0, function* () {
.action((version, { parent }) => __awaiter(this, void 0, void 0, function* () {
if (!version) {

@@ -55,3 +56,3 @@ program.outputHelp();

try {
const releases = yield new ElectronInfo_1.ElectronInfo().getElectronVersion(version, true);
const releases = yield new ElectronInfo_1.ElectronInfo().getElectronVersion(version, !parent.raw);
console.log(releases);

@@ -66,5 +67,5 @@ }

.description('Get informations about all Electron versions')
.action(() => __awaiter(this, void 0, void 0, function* () {
.action(({ parent }) => __awaiter(this, void 0, void 0, function* () {
try {
const releases = yield new ElectronInfo_1.ElectronInfo().getAll(true);
const releases = yield new ElectronInfo_1.ElectronInfo().getAll(!parent.raw);
console.log(releases);

@@ -71,0 +72,0 @@ }

@@ -30,6 +30,11 @@ export interface RawDeps {

constructor(options?: Options);
getAll(formatted?: false): Promise<RawReleaseInfo[]>;
getAll(formatted?: boolean): Promise<RawReleaseInfo[] | string>;
getAll(formatted: true): Promise<string>;
getAll(formatted?: false): Promise<RawReleaseInfo[]>;
getChromeVersion(version: string, formatted?: false): Promise<RawReleaseInfo | void>;
getChromeVersion(version: string, formatted?: boolean): Promise<RawReleaseInfo | string | void>;
getChromeVersion(version: string, formatted: true): Promise<string | void>;
getElectronVersion(version: string, formatted?: false): Promise<RawReleaseInfo | void>;
getElectronVersion(version: string, formatted?: boolean): Promise<RawReleaseInfo | string | void>;
getElectronVersion(version: string, formatted: true): Promise<string | void>;
private fileIsReadable;

@@ -36,0 +41,0 @@ private getReleases;

@@ -79,3 +79,3 @@ {

},
"version": "1.0.0"
"version": "1.1.0"
}

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