node-csfd-api 5.6.0 → 5.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +6 -6
- package/package.js +1 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -107,7 +107,7 @@ async function main() {
|
|
|
107
107
|
}
|
|
108
108
|
case "--version":
|
|
109
109
|
case "-v":
|
|
110
|
-
console.log(c.bold("5.6.
|
|
110
|
+
console.log(c.bold("5.6.1"));
|
|
111
111
|
break;
|
|
112
112
|
case "update":
|
|
113
113
|
await runUpdate();
|
|
@@ -200,15 +200,15 @@ async function checkForUpdateInBackground() {
|
|
|
200
200
|
} catch {}
|
|
201
201
|
}
|
|
202
202
|
} catch {}
|
|
203
|
-
if (!latestVersion || compareSemver("5.6.
|
|
203
|
+
if (!latestVersion || compareSemver("5.6.1", latestVersion) >= 0) return;
|
|
204
204
|
console.log("");
|
|
205
205
|
console.log(c.dim(" " + "─".repeat(44)));
|
|
206
|
-
console.log(` ${c.yellow(c.bold("↑ Update available:"))} ${c.dim("5.6.
|
|
206
|
+
console.log(` ${c.yellow(c.bold("↑ Update available:"))} ${c.dim("5.6.1")} → ${c.bold(c.green(latestVersion))}`);
|
|
207
207
|
console.log(` ${c.dim("Run")} ${c.cyan(getCommandName() + " update")} ${c.dim("for upgrade instructions.")}`);
|
|
208
208
|
} catch {}
|
|
209
209
|
}
|
|
210
210
|
async function runUpdate() {
|
|
211
|
-
console.log(c.dim("Current version: ") + c.bold("5.6.
|
|
211
|
+
console.log(c.dim("Current version: ") + c.bold("5.6.1"));
|
|
212
212
|
console.log(c.dim("Checking for updates..."));
|
|
213
213
|
let latest;
|
|
214
214
|
try {
|
|
@@ -221,7 +221,7 @@ async function runUpdate() {
|
|
|
221
221
|
console.error(err("Could not determine latest version."));
|
|
222
222
|
process.exit(1);
|
|
223
223
|
}
|
|
224
|
-
const cmp = compareSemver("5.6.
|
|
224
|
+
const cmp = compareSemver("5.6.1", latest);
|
|
225
225
|
if (cmp === 0) {
|
|
226
226
|
console.log(c.green("✔ Already up to date."));
|
|
227
227
|
return;
|
|
@@ -234,7 +234,7 @@ async function runUpdate() {
|
|
|
234
234
|
}
|
|
235
235
|
function printUsage() {
|
|
236
236
|
const cmd = getCommandName();
|
|
237
|
-
const header = c.bold(c.cyan("csfd")) + " " + c.dim(`v5.6.
|
|
237
|
+
const header = c.bold(c.cyan("csfd")) + " " + c.dim(`v5.6.1`);
|
|
238
238
|
const usage = c.bold("Usage:") + ` ${c.cyan(cmd)} ${c.dim("<command> [options]")}`;
|
|
239
239
|
const section = (title) => c.bold(title);
|
|
240
240
|
const cmd_ = (name) => " " + c.cyan(name);
|
package/package.js
CHANGED