for-humanity 0.13.0 → 0.13.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.
@@ -1,7 +1,7 @@
1
1
  import { d as copy_error_missing_build, n as copy_error_config } from "./copy-C1uzvEnr.js";
2
2
  import { t as logger } from "./logger-Dv1i9xSV.js";
3
3
  import { n as site_config_absent, t as siteConfigSchema } from "./site-config-bllORGpm.js";
4
- import { n as font_cache_control, r as asset_font_dir, t as loadSite } from "./load-site-CbpLEhwu.js";
4
+ import { n as font_cache_control, r as asset_font_dir, t as loadSite } from "./load-site-B-u5-jv0.js";
5
5
  import { n as config_file_names, t as toErrorMessage } from "./to-error-message-pF6_7wGK.js";
6
6
  import { copyFile, mkdir, rm, writeFile } from "node:fs/promises";
7
7
  import { z } from "zod";
@@ -88,7 +88,7 @@ var runSiteCommand = async (params) => {
88
88
  return;
89
89
  }
90
90
  if (params.command === "dev") {
91
- await (await import("./start-dev-server-C4_Lu1nZ.js")).startDevServer({
91
+ await (await import("./start-dev-server-x7Ja5uwv.js")).startDevServer({
92
92
  root: docsRoot,
93
93
  kitRoot,
94
94
  site: siteConfig,
package/dist/site.js CHANGED
@@ -1 +1 @@
1
- export { t as loadSite } from "./load-site-CbpLEhwu.js";
1
+ export { t as loadSite } from "./load-site-B-u5-jv0.js";
@@ -96,7 +96,9 @@ var toDevConfig = (params) => {
96
96
  currentSite = nextSite;
97
97
  if (generation > 0) server.hot.send({ type: "full-reload" });
98
98
  },
99
- onError: (error) => server.config.logger.error(`${copy_error_prefix}: ${toErrorMessage(error)}`)
99
+ onError: (error) => {
100
+ return server.config.logger.error(`${copy_error_prefix}: ${toErrorMessage(error)}`);
101
+ }
100
102
  });
101
103
  const reload = debounce(refresh, 150);
102
104
  /**
@@ -126,7 +128,9 @@ var toDevConfig = (params) => {
126
128
  };
127
129
  prepare = refresh;
128
130
  },
129
- closeBundle: () => dispose?.()
131
+ closeBundle: () => {
132
+ return dispose?.();
133
+ }
130
134
  }, devServer({
131
135
  exclude: params.source ? [
132
136
  ...viteClientPaths,
@@ -137,13 +141,17 @@ var toDevConfig = (params) => {
137
141
  /^\/src\/entry\/browser\//
138
142
  ] : viteClientPaths,
139
143
  ignoreWatching: dev_ignored_paths,
140
- handleHotUpdate: (context) => context.file.endsWith(".css") ? void 0 : [],
144
+ handleHotUpdate: (context) => {
145
+ return context.file.endsWith(".css") ? void 0 : [];
146
+ },
141
147
  loadModule: async () => {
142
148
  ready ??= prepare?.();
143
149
  await ready;
144
150
  if (currentSite === void 0) throw new Error("문서 준비에 실패했습니다. 위 오류를 수정하면 다시 반영합니다.");
145
151
  const app = currentSite.app;
146
- return { fetch: async (request, env) => app.fetch(request, env) };
152
+ return { fetch: async (request, env) => {
153
+ return app.fetch(request, env);
154
+ } };
147
155
  }
148
156
  })]
149
157
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "for-humanity",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Documents written for humans to read: a docs kit with a sidebar, parts, sections and Mermaid diagrams, built on Hono JSX",
5
5
  "keywords": [
6
6
  "docs",