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 +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
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);
|