hyperbook 0.68.0 → 0.68.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/dist/index.js +16 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -175629,15 +175629,19 @@ var readFile = (src, ctx) => {
|
|
|
175629
175629
|
try {
|
|
175630
175630
|
srcFile = external_fs_.readFileSync(external_path_.join(ctx.root, "book", src), "utf-8");
|
|
175631
175631
|
} catch (e2) {
|
|
175632
|
-
|
|
175633
|
-
|
|
175634
|
-
|
|
175635
|
-
|
|
175636
|
-
|
|
175637
|
-
|
|
175638
|
-
|
|
175639
|
-
|
|
175640
|
-
|
|
175632
|
+
try {
|
|
175633
|
+
srcFile = external_fs_.readFileSync(
|
|
175634
|
+
external_path_.join(
|
|
175635
|
+
ctx.root,
|
|
175636
|
+
"book",
|
|
175637
|
+
ctx.navigation.current?.path?.directory || "",
|
|
175638
|
+
src
|
|
175639
|
+
),
|
|
175640
|
+
"utf-8"
|
|
175641
|
+
);
|
|
175642
|
+
} catch (e3) {
|
|
175643
|
+
return null;
|
|
175644
|
+
}
|
|
175641
175645
|
}
|
|
175642
175646
|
}
|
|
175643
175647
|
return srcFile;
|
|
@@ -175702,7 +175706,7 @@ ${(code4.scripts ? [cdnLibraryUrl, ...code4.scripts] : []).map((src) => `<script
|
|
|
175702
175706
|
requestJS(file, ["code-input", "indent.min.js"]);
|
|
175703
175707
|
let srcFile = "";
|
|
175704
175708
|
if (src) {
|
|
175705
|
-
srcFile = readFile(src, ctx);
|
|
175709
|
+
srcFile = readFile(src, ctx) || "";
|
|
175706
175710
|
} else if (node3.children?.length > 0) {
|
|
175707
175711
|
srcFile = toText2(node3.children);
|
|
175708
175712
|
}
|
|
@@ -176102,7 +176106,7 @@ var remarkDirectivePyide_default = (ctx) => () => {
|
|
|
176102
176106
|
let tests = [];
|
|
176103
176107
|
let input = "";
|
|
176104
176108
|
if (src) {
|
|
176105
|
-
srcFile = readFile(src, ctx);
|
|
176109
|
+
srcFile = readFile(src, ctx) || "";
|
|
176106
176110
|
} else if (node3.children?.length > 0) {
|
|
176107
176111
|
tests = node3.children.filter((c) => c.type === "code").filter((c) => c.meta?.includes("test")).map((c, i) => ({
|
|
176108
176112
|
code: c.value,
|
|
@@ -183490,7 +183494,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
183490
183494
|
/***/ ((module) => {
|
|
183491
183495
|
|
|
183492
183496
|
"use strict";
|
|
183493
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.68.
|
|
183497
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.68.1","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":">=12.22.0"},"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":{"@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"}}');
|
|
183494
183498
|
|
|
183495
183499
|
/***/ })
|
|
183496
183500
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperbook",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.1",
|
|
4
4
|
"author": "Mike Barkmin",
|
|
5
5
|
"homepage": "https://github.com/openpatch/hyperbook#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"update-check": "1.5.4",
|
|
58
58
|
"ws": "^8.18.0",
|
|
59
59
|
"@hyperbook/fs": "0.20.0",
|
|
60
|
-
"@hyperbook/markdown": "0.42.
|
|
60
|
+
"@hyperbook/markdown": "0.42.1",
|
|
61
61
|
"@hyperbook/types": "0.18.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|