hyperbook 0.77.3 → 0.77.4

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/dist/index.js +6 -10
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -93494,6 +93494,7 @@ var getPagesAndSections = async (root) => {
93494
93494
  const pageNavigation = data.navigation === "default" || data.navigation === "hidden" ? data.navigation : void 0;
93495
93495
  const page = {
93496
93496
  ...data,
93497
+ isEmpty: file.markdown.content.trim() === "",
93497
93498
  navigation: pageNavigation,
93498
93499
  path: file.path
93499
93500
  };
@@ -93542,10 +93543,7 @@ var getPagesAndSections = async (root) => {
93542
93543
  var getPageList = (sections, pages) => {
93543
93544
  let pageList = [...pages];
93544
93545
  for (const section of sections) {
93545
- pageList = [
93546
- ...pageList,
93547
- ...getPageList(section.sections, section.pages)
93548
- ];
93546
+ pageList = [...pageList, ...getPageList(section.sections, section.pages)];
93549
93547
  }
93550
93548
  return pageList;
93551
93549
  };
@@ -193690,6 +193688,7 @@ var getPagesAndSections = async (root5) => {
193690
193688
  const pageNavigation = data.navigation === "default" || data.navigation === "hidden" ? data.navigation : void 0;
193691
193689
  const page = {
193692
193690
  ...data,
193691
+ isEmpty: file.markdown.content.trim() === "",
193693
193692
  navigation: pageNavigation,
193694
193693
  path: file.path
193695
193694
  };
@@ -193738,10 +193737,7 @@ var getPagesAndSections = async (root5) => {
193738
193737
  var getPageList = (sections, pages) => {
193739
193738
  let pageList = [...pages];
193740
193739
  for (const section of sections) {
193741
- pageList = [
193742
- ...pageList,
193743
- ...getPageList(section.sections, section.pages)
193744
- ];
193740
+ pageList = [...pageList, ...getPageList(section.sections, section.pages)];
193745
193741
  }
193746
193742
  return pageList;
193747
193743
  };
@@ -194906,7 +194902,7 @@ var createPageSorter = (orderBy) => {
194906
194902
 
194907
194903
  // src/remarkDirectivePagelist.ts
194908
194904
  var getPageList2 = (sections, pages) => {
194909
- let pageList = [...pages.filter((p4) => !p4.isEmpty)];
194905
+ let pageList = [...pages];
194910
194906
  for (const section of sections) {
194911
194907
  pageList = [
194912
194908
  ...pageList,
@@ -201779,7 +201775,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
201779
201775
  /***/ ((module) => {
201780
201776
 
201781
201777
  "use strict";
201782
- module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.77.3","author":"Mike Barkmin","homepage":"https://github.com/openpatch/hyperbook#readme","license":"MIT","bin":{"hyperbook":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/openpatch/hyperbook.git","directory":"packages/hyperbook"},"bugs":{"url":"https://github.com/openpatch/hyperbook/issues"},"engines":{"node":">=18"},"scripts":{"version":"pnpm build","lint":"tsc --noEmit","dev":"ncc build ./index.ts -w -o dist/","build":"rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register --external favicons --external sharp && node postbuild.mjs"},"dependencies":{"favicons":"^7.2.0"},"devDependencies":{"create-hyperbook":"workspace:*","@hyperbook/fs":"workspace:*","@hyperbook/markdown":"workspace:*","@hyperbook/types":"workspace:*","@pnpm/exportable-manifest":"1000.0.6","@types/archiver":"6.0.3","@types/async-retry":"1.4.9","@types/cross-spawn":"6.0.6","@types/lunr":"^2.3.7","@types/prompts":"2.4.9","@types/tar":"6.1.13","@types/ws":"^8.5.14","@vercel/ncc":"0.38.3","archiver":"7.0.1","async-retry":"1.3.3","chalk":"5.4.1","chokidar":"4.0.3","commander":"12.1.0","cpy":"11.1.0","cross-spawn":"7.0.6","domutils":"^3.2.2","extract-zip":"^2.0.1","got":"12.6.0","htmlparser2":"^10.0.0","lunr":"^2.3.9","lunr-languages":"^1.14.0","mime":"^4.0.6","prompts":"2.4.2","rimraf":"6.0.1","tar":"7.4.3","update-check":"1.5.4","ws":"^8.18.0"}}');
201778
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.77.4","author":"Mike Barkmin","homepage":"https://github.com/openpatch/hyperbook#readme","license":"MIT","bin":{"hyperbook":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/openpatch/hyperbook.git","directory":"packages/hyperbook"},"bugs":{"url":"https://github.com/openpatch/hyperbook/issues"},"engines":{"node":">=18"},"scripts":{"version":"pnpm build","lint":"tsc --noEmit","dev":"ncc build ./index.ts -w -o dist/","build":"rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register --external favicons --external sharp && node postbuild.mjs"},"dependencies":{"favicons":"^7.2.0"},"devDependencies":{"create-hyperbook":"workspace:*","@hyperbook/fs":"workspace:*","@hyperbook/markdown":"workspace:*","@hyperbook/types":"workspace:*","@pnpm/exportable-manifest":"1000.0.6","@types/archiver":"6.0.3","@types/async-retry":"1.4.9","@types/cross-spawn":"6.0.6","@types/lunr":"^2.3.7","@types/prompts":"2.4.9","@types/tar":"6.1.13","@types/ws":"^8.5.14","@vercel/ncc":"0.38.3","archiver":"7.0.1","async-retry":"1.3.3","chalk":"5.4.1","chokidar":"4.0.3","commander":"12.1.0","cpy":"11.1.0","cross-spawn":"7.0.6","domutils":"^3.2.2","extract-zip":"^2.0.1","got":"12.6.0","htmlparser2":"^10.0.0","lunr":"^2.3.9","lunr-languages":"^1.14.0","mime":"^4.0.6","prompts":"2.4.2","rimraf":"6.0.1","tar":"7.4.3","update-check":"1.5.4","ws":"^8.18.0"}}');
201783
201779
 
201784
201780
  /***/ })
201785
201781
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.77.3",
3
+ "version": "0.77.4",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -57,8 +57,8 @@
57
57
  "update-check": "1.5.4",
58
58
  "ws": "^8.18.0",
59
59
  "create-hyperbook": "0.3.2",
60
- "@hyperbook/fs": "0.24.0",
61
- "@hyperbook/markdown": "0.48.3",
60
+ "@hyperbook/fs": "0.24.1",
61
+ "@hyperbook/markdown": "0.48.4",
62
62
  "@hyperbook/types": "0.20.0"
63
63
  },
64
64
  "scripts": {