@docubook/flame 1.3.6 → 1.3.7
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/.docu/node/build.ts +1 -1
- package/.docu/node/server.ts +3 -2
- package/package.json +3 -3
package/.docu/node/build.ts
CHANGED
|
@@ -220,7 +220,7 @@ async function build() {
|
|
|
220
220
|
|
|
221
221
|
const hasPlugins = !!docuConfig.plugins?.length;
|
|
222
222
|
const builder = hasPlugins ? new BuildPluginBuilder(docuConfig) : null;
|
|
223
|
-
if (
|
|
223
|
+
if (builder) {
|
|
224
224
|
const plugins = await loadPlugins(docuConfig.plugins!);
|
|
225
225
|
for (const plugin of plugins) {
|
|
226
226
|
await plugin.setup(builder);
|
package/.docu/node/server.ts
CHANGED
|
@@ -19,7 +19,8 @@ import { wrapPluginResponse } from "./security";
|
|
|
19
19
|
|
|
20
20
|
const docuConfig = loadDocuConfig();
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const parsedPort = parseInt(process.env.PORT ?? "3000", 10);
|
|
23
|
+
const PORT = Number.isInteger(parsedPort) && parsedPort > 0 && parsedPort <= 65535 ? parsedPort : 3000;
|
|
23
24
|
|
|
24
25
|
logger.buildStart();
|
|
25
26
|
|
|
@@ -42,7 +43,7 @@ logger.routes();
|
|
|
42
43
|
// Plugin setup — all hooks active (onLoad, remark/rehype, frontmatter, head/body, html transform, handleRequest)
|
|
43
44
|
const hasPlugins = !!docuConfig.plugins?.length;
|
|
44
45
|
const builder = hasPlugins ? new BuildPluginBuilder(docuConfig) : null;
|
|
45
|
-
if (
|
|
46
|
+
if (builder) {
|
|
46
47
|
const plugins = await loadPlugins(docuConfig.plugins!);
|
|
47
48
|
for (const plugin of plugins) {
|
|
48
49
|
await plugin.setup(builder);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docubook/flame",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"unified": "^11.0.0",
|
|
55
55
|
"@docubook/core": "^1.7.2",
|
|
56
56
|
"@docubook/mdx-content": "^3.2.2",
|
|
57
|
-
"@docubook/
|
|
58
|
-
"@docubook/
|
|
57
|
+
"@docubook/themes-colors": "^0.10.2",
|
|
58
|
+
"@docubook/ui-react": "^0.1.4"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@sentry/bun": "^10.0.0"
|