node-csfd-api 5.6.0-next.3 → 5.6.0

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.
Files changed (3) hide show
  1. package/cli.js +6 -6
  2. package/package.js +1 -1
  3. 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.0-next.3"));
110
+ console.log(c.bold("5.6.0"));
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.0-next.3", latestVersion) >= 0) return;
203
+ if (!latestVersion || compareSemver("5.6.0", 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.0-next.3")} → ${c.bold(c.green(latestVersion))}`);
206
+ console.log(` ${c.yellow(c.bold("↑ Update available:"))} ${c.dim("5.6.0")} → ${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.0-next.3"));
211
+ console.log(c.dim("Current version: ") + c.bold("5.6.0"));
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.0-next.3", latest);
224
+ const cmp = compareSemver("5.6.0", 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.0-next.3`);
237
+ const header = c.bold(c.cyan("csfd")) + " " + c.dim(`v5.6.0`);
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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  //#region package.json
3
3
  var name = "node-csfd-api";
4
- var version = "5.6.0-next.3";
4
+ var version = "5.6.0";
5
5
  var homepage = "https://github.com/bartholomej/node-csfd-api#readme";
6
6
 
7
7
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-csfd-api",
3
- "version": "5.6.0-next.3",
3
+ "version": "5.6.0",
4
4
  "description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",
5
5
  "author": "BART! <bart@bartweb.cz>",
6
6
  "publishConfig": {