electron-info
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21716
12
270
0