@likecoin/epubcheck-ts 0.5.0 → 0.6.0
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 +4 -4
- package/bin/epubcheck.js +1 -1
- package/bin/epubcheck.ts +1 -1
- package/dist/index.cjs +1253 -729
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1253 -729
- 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;
|
|
@@ -2017,6 +2020,14 @@ declare class EpubCheck {
|
|
|
2017
2020
|
* Cross-document feature validation (Pattern B from Java EPUBCheck)
|
|
2018
2021
|
*/
|
|
2019
2022
|
private validateCrossDocumentFeatures;
|
|
2023
|
+
/**
|
|
2024
|
+
* Mirrors ../epubcheck/src/main/resources/com/adobe/epubcheck/schema/30/edupub/
|
|
2025
|
+
* edu-ocf-metadata.sch (META-INF/metadata.xml) and edu-opf.sch (each OPF).
|
|
2026
|
+
*
|
|
2027
|
+
* Non-primary OPFs are otherwise unreached: runPipeline only runs OPFValidator
|
|
2028
|
+
* on context.opfPath.
|
|
2029
|
+
*/
|
|
2030
|
+
private validateEdupubMultiRendition;
|
|
2020
2031
|
/**
|
|
2021
2032
|
* Validate NCX navigation document (EPUB 2 always, EPUB 3 when NCX present)
|
|
2022
2033
|
*/
|
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;
|
|
@@ -2017,6 +2020,14 @@ declare class EpubCheck {
|
|
|
2017
2020
|
* Cross-document feature validation (Pattern B from Java EPUBCheck)
|
|
2018
2021
|
*/
|
|
2019
2022
|
private validateCrossDocumentFeatures;
|
|
2023
|
+
/**
|
|
2024
|
+
* Mirrors ../epubcheck/src/main/resources/com/adobe/epubcheck/schema/30/edupub/
|
|
2025
|
+
* edu-ocf-metadata.sch (META-INF/metadata.xml) and edu-opf.sch (each OPF).
|
|
2026
|
+
*
|
|
2027
|
+
* Non-primary OPFs are otherwise unreached: runPipeline only runs OPFValidator
|
|
2028
|
+
* on context.opfPath.
|
|
2029
|
+
*/
|
|
2030
|
+
private validateEdupubMultiRendition;
|
|
2020
2031
|
/**
|
|
2021
2032
|
* Validate NCX navigation document (EPUB 2 always, EPUB 3 when NCX present)
|
|
2022
2033
|
*/
|