htmlhost-cli 2.6.0 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htmlhost-cli",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Deploy HTML files from the terminal — htmlhost.co CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -5,7 +5,7 @@ import { bold, dim, cyan, err } from "./ui.mjs";
5
5
  import { ApiError } from "./api.mjs";
6
6
  import { startUpdateCheck, applyUpdate } from "./update.mjs";
7
7
 
8
- const VERSION = "2.6.0";
8
+ const VERSION = "2.6.1";
9
9
 
10
10
  const HELP = `
11
11
  ${bold("htmlhost")} ${dim(`v${VERSION}`)} — deploy HTML from the terminal
@@ -13,7 +13,7 @@ function readSlugFromLink(dir = process.cwd()) {
13
13
  if (!existsSync(linkPath)) return null;
14
14
  try {
15
15
  const data = JSON.parse(readFileSync(linkPath, "utf8"));
16
- return data.slug || null;
16
+ return data.multipage?.slug || data.slug || null;
17
17
  } catch {
18
18
  return null;
19
19
  }