book-text-util 0.1.6 → 0.1.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/dist/index.cjs CHANGED
@@ -941,6 +941,7 @@ async function runCompare(input) {
941
941
  input.isVariant !== void 0 ? Promise.resolve(input.isVariant) : loadVariantTest()
942
942
  ]);
943
943
  if (!baseIndex) throw new Error("no-base-index");
944
+ if (baseIndex.text_layout?.mode === "vol-collection-juan") throw new Error("no-target");
944
945
  if (!targetIndex) throw new Error("no-target");
945
946
  const chapters = baseIndex.chapters;
946
947
  const at = chapters.findIndex((c) => c.file === base.chapter);
package/dist/index.js CHANGED
@@ -869,6 +869,7 @@ async function runCompare(input) {
869
869
  input.isVariant !== void 0 ? Promise.resolve(input.isVariant) : loadVariantTest()
870
870
  ]);
871
871
  if (!baseIndex) throw new Error("no-base-index");
872
+ if (baseIndex.text_layout?.mode === "vol-collection-juan") throw new Error("no-target");
872
873
  if (!targetIndex) throw new Error("no-target");
873
874
  const chapters = baseIndex.chapters;
874
875
  const at = chapters.findIndex((c) => c.file === base.chapter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "book-text-util",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "古籍文本处理工具:下载导出 guji-markdown、版本对校、字形转换。网站与命令行脚本共用。",
5
5
  "license": "CC-BY-SA-4.0",
6
6
  "publishConfig": { "access": "public", "provenance": true },