@likecoin/epubcheck-ts 0.3.5 → 0.3.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.d.cts CHANGED
@@ -19,6 +19,8 @@ interface ManifestItem {
19
19
  * Represents a spine itemref in the OPF
20
20
  */
21
21
  interface SpineItemRef {
22
+ /** Optional ID attribute on the itemref element */
23
+ id?: string;
22
24
  /** Reference to manifest item ID */
23
25
  idref: string;
24
26
  /** Whether this item is part of the linear reading order */
@@ -909,6 +911,11 @@ declare const MessageDefs: {
909
911
  readonly severity: "warning";
910
912
  readonly description: "Property is deprecated";
911
913
  };
914
+ readonly OPF_086b: {
915
+ readonly id: "OPF-086b";
916
+ readonly severity: "usage";
917
+ readonly description: "epub:type value is deprecated";
918
+ };
912
919
  readonly OPF_087: {
913
920
  readonly id: "OPF-087";
914
921
  readonly severity: "usage";
@@ -1532,7 +1539,7 @@ declare const MessageDefs: {
1532
1539
  readonly NAV_001: {
1533
1540
  readonly id: "NAV-001";
1534
1541
  readonly severity: "error";
1535
- readonly description: "Nav file not supported for EPUB v2";
1542
+ readonly description: "Navigation Document must have a nav element with epub:type=\"toc\"";
1536
1543
  };
1537
1544
  readonly NAV_002: {
1538
1545
  readonly id: "NAV-002";
package/dist/index.d.ts CHANGED
@@ -19,6 +19,8 @@ interface ManifestItem {
19
19
  * Represents a spine itemref in the OPF
20
20
  */
21
21
  interface SpineItemRef {
22
+ /** Optional ID attribute on the itemref element */
23
+ id?: string;
22
24
  /** Reference to manifest item ID */
23
25
  idref: string;
24
26
  /** Whether this item is part of the linear reading order */
@@ -909,6 +911,11 @@ declare const MessageDefs: {
909
911
  readonly severity: "warning";
910
912
  readonly description: "Property is deprecated";
911
913
  };
914
+ readonly OPF_086b: {
915
+ readonly id: "OPF-086b";
916
+ readonly severity: "usage";
917
+ readonly description: "epub:type value is deprecated";
918
+ };
912
919
  readonly OPF_087: {
913
920
  readonly id: "OPF-087";
914
921
  readonly severity: "usage";
@@ -1532,7 +1539,7 @@ declare const MessageDefs: {
1532
1539
  readonly NAV_001: {
1533
1540
  readonly id: "NAV-001";
1534
1541
  readonly severity: "error";
1535
- readonly description: "Nav file not supported for EPUB v2";
1542
+ readonly description: "Navigation Document must have a nav element with epub:type=\"toc\"";
1536
1543
  };
1537
1544
  readonly NAV_002: {
1538
1545
  readonly id: "NAV-002";