@likecoin/epubcheck-ts 0.5.1 → 0.6.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/README.md +3 -3
- package/bin/epubcheck.js +15 -2
- package/bin/epubcheck.ts +15 -2
- package/dist/index.cjs +918 -244
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +918 -244
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1735,6 +1735,8 @@ interface PackageDocument {
|
|
|
1735
1735
|
version: EPUBVersion;
|
|
1736
1736
|
/** Whether the package@version attribute was present in the source (omitted = true) */
|
|
1737
1737
|
versionDeclared?: boolean;
|
|
1738
|
+
/** True when the package root uses the legacy OEBPS 1.2 namespace */
|
|
1739
|
+
isLegacyOebps12?: boolean;
|
|
1738
1740
|
/** Unique identifier reference (package@unique-identifier) */
|
|
1739
1741
|
uniqueIdentifier: string;
|
|
1740
1742
|
/** Package prefix declarations (EPUB 3) */
|
|
@@ -1926,6 +1928,7 @@ interface ValidationContext {
|
|
|
1926
1928
|
hasAudio?: boolean;
|
|
1927
1929
|
hasVideo?: boolean;
|
|
1928
1930
|
hasDictionary?: boolean;
|
|
1931
|
+
dictionaryContentPaths?: Set<string>;
|
|
1929
1932
|
hasIndex?: boolean;
|
|
1930
1933
|
hasLOI?: boolean;
|
|
1931
1934
|
hasLOT?: boolean;
|
|
@@ -1933,6 +1936,8 @@ interface ValidationContext {
|
|
|
1933
1936
|
hasLOV?: boolean;
|
|
1934
1937
|
hasMicrodata?: boolean;
|
|
1935
1938
|
hasRDFa?: boolean;
|
|
1939
|
+
sectionCount?: number;
|
|
1940
|
+
tocLinkCount?: number;
|
|
1936
1941
|
};
|
|
1937
1942
|
}
|
|
1938
1943
|
/**
|
|
@@ -2017,6 +2022,14 @@ declare class EpubCheck {
|
|
|
2017
2022
|
* Cross-document feature validation (Pattern B from Java EPUBCheck)
|
|
2018
2023
|
*/
|
|
2019
2024
|
private validateCrossDocumentFeatures;
|
|
2025
|
+
/**
|
|
2026
|
+
* Mirrors ../epubcheck/src/main/resources/com/adobe/epubcheck/schema/30/edupub/
|
|
2027
|
+
* edu-ocf-metadata.sch (META-INF/metadata.xml) and edu-opf.sch (each OPF).
|
|
2028
|
+
*
|
|
2029
|
+
* Non-primary OPFs are otherwise unreached: runPipeline only runs OPFValidator
|
|
2030
|
+
* on context.opfPath.
|
|
2031
|
+
*/
|
|
2032
|
+
private validateEdupubMultiRendition;
|
|
2020
2033
|
/**
|
|
2021
2034
|
* Validate NCX navigation document (EPUB 2 always, EPUB 3 when NCX present)
|
|
2022
2035
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1735,6 +1735,8 @@ interface PackageDocument {
|
|
|
1735
1735
|
version: EPUBVersion;
|
|
1736
1736
|
/** Whether the package@version attribute was present in the source (omitted = true) */
|
|
1737
1737
|
versionDeclared?: boolean;
|
|
1738
|
+
/** True when the package root uses the legacy OEBPS 1.2 namespace */
|
|
1739
|
+
isLegacyOebps12?: boolean;
|
|
1738
1740
|
/** Unique identifier reference (package@unique-identifier) */
|
|
1739
1741
|
uniqueIdentifier: string;
|
|
1740
1742
|
/** Package prefix declarations (EPUB 3) */
|
|
@@ -1926,6 +1928,7 @@ interface ValidationContext {
|
|
|
1926
1928
|
hasAudio?: boolean;
|
|
1927
1929
|
hasVideo?: boolean;
|
|
1928
1930
|
hasDictionary?: boolean;
|
|
1931
|
+
dictionaryContentPaths?: Set<string>;
|
|
1929
1932
|
hasIndex?: boolean;
|
|
1930
1933
|
hasLOI?: boolean;
|
|
1931
1934
|
hasLOT?: boolean;
|
|
@@ -1933,6 +1936,8 @@ interface ValidationContext {
|
|
|
1933
1936
|
hasLOV?: boolean;
|
|
1934
1937
|
hasMicrodata?: boolean;
|
|
1935
1938
|
hasRDFa?: boolean;
|
|
1939
|
+
sectionCount?: number;
|
|
1940
|
+
tocLinkCount?: number;
|
|
1936
1941
|
};
|
|
1937
1942
|
}
|
|
1938
1943
|
/**
|
|
@@ -2017,6 +2022,14 @@ declare class EpubCheck {
|
|
|
2017
2022
|
* Cross-document feature validation (Pattern B from Java EPUBCheck)
|
|
2018
2023
|
*/
|
|
2019
2024
|
private validateCrossDocumentFeatures;
|
|
2025
|
+
/**
|
|
2026
|
+
* Mirrors ../epubcheck/src/main/resources/com/adobe/epubcheck/schema/30/edupub/
|
|
2027
|
+
* edu-ocf-metadata.sch (META-INF/metadata.xml) and edu-opf.sch (each OPF).
|
|
2028
|
+
*
|
|
2029
|
+
* Non-primary OPFs are otherwise unreached: runPipeline only runs OPFValidator
|
|
2030
|
+
* on context.opfPath.
|
|
2031
|
+
*/
|
|
2032
|
+
private validateEdupubMultiRendition;
|
|
2020
2033
|
/**
|
|
2021
2034
|
* Validate NCX navigation document (EPUB 2 always, EPUB 3 when NCX present)
|
|
2022
2035
|
*/
|