fluncle 0.163.0 → 0.164.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 (2) hide show
  1. package/bin/fluncle.mjs +5 -5
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -561,7 +561,7 @@ function parseVersion(version) {
561
561
  var currentVersion;
562
562
  var init_version = __esm(() => {
563
563
  init_output();
564
- currentVersion = "0.163.0".trim() ? "0.163.0".trim() : "0.1.0";
564
+ currentVersion = "0.164.0".trim() ? "0.164.0".trim() : "0.1.0";
565
565
  });
566
566
 
567
567
  // src/update-notifier.ts
@@ -2189,7 +2189,7 @@ function parseVersion2(version) {
2189
2189
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2190
2190
  var init_version2 = __esm(() => {
2191
2191
  init_output();
2192
- currentVersion2 = "0.163.0".trim() ? "0.163.0".trim() : "0.1.0";
2192
+ currentVersion2 = "0.164.0".trim() ? "0.164.0".trim() : "0.1.0";
2193
2193
  });
2194
2194
 
2195
2195
  // ../../packages/registry/src/index.ts
@@ -5353,7 +5353,7 @@ import { existsSync as existsSync5, readFileSync as readFileSync5 } from "node:f
5353
5353
  async function logbookGapsCommand(limit) {
5354
5354
  const query = typeof limit === "number" ? `?limit=${encodeURIComponent(String(limit))}` : "";
5355
5355
  const response = await adminApiGet(`/api/admin/logbook/gaps${query}`);
5356
- return response.gaps;
5356
+ return { gaps: response.gaps, spent: response.spent };
5357
5357
  }
5358
5358
  function resolveBody(options) {
5359
5359
  if (options.body !== undefined) {
@@ -10960,9 +10960,9 @@ async function runNewsletterList(options, newsletterListCommand2) {
10960
10960
  }
10961
10961
  async function runLogbookGaps(options, logbookGapsCommand2) {
10962
10962
  const limit = options.limit === undefined ? undefined : Number.parseInt(options.limit, 10);
10963
- const gaps = await logbookGapsCommand2(limit !== undefined && Number.isFinite(limit) ? limit : undefined);
10963
+ const { gaps, spent } = await logbookGapsCommand2(limit !== undefined && Number.isFinite(limit) ? limit : undefined);
10964
10964
  if (options.json) {
10965
- printJson({ gaps, ok: true });
10965
+ printJson({ gaps, ok: true, spent });
10966
10966
  return;
10967
10967
  }
10968
10968
  if (gaps.length === 0) {
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  "url": "git+https://github.com/mauricekleine/fluncle.git"
32
32
  },
33
33
  "type": "module",
34
- "version": "0.163.0"
34
+ "version": "0.164.0"
35
35
  }