epub-codec 1.0.0 → 1.0.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/dist/codec.d.cts +37 -1
- package/dist/codec.d.ts +37 -1
- package/package.json +2 -2
package/dist/codec.d.cts
CHANGED
|
@@ -70,6 +70,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
70
70
|
markdown: "markdown";
|
|
71
71
|
pdf: "pdf";
|
|
72
72
|
epub: "epub";
|
|
73
|
+
rtf: "rtf";
|
|
73
74
|
}>;
|
|
74
75
|
xml: z.ZodString;
|
|
75
76
|
}, z.core.$strict>>>;
|
|
@@ -197,6 +198,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
197
198
|
markdown: "markdown";
|
|
198
199
|
pdf: "pdf";
|
|
199
200
|
epub: "epub";
|
|
201
|
+
rtf: "rtf";
|
|
200
202
|
}>;
|
|
201
203
|
xml: z.ZodString;
|
|
202
204
|
}, z.core.$strict>>>;
|
|
@@ -324,6 +326,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
324
326
|
markdown: "markdown";
|
|
325
327
|
pdf: "pdf";
|
|
326
328
|
epub: "epub";
|
|
329
|
+
rtf: "rtf";
|
|
327
330
|
}>;
|
|
328
331
|
xml: z.ZodString;
|
|
329
332
|
}, z.core.$strict>>>;
|
|
@@ -451,6 +454,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
451
454
|
markdown: "markdown";
|
|
452
455
|
pdf: "pdf";
|
|
453
456
|
epub: "epub";
|
|
457
|
+
rtf: "rtf";
|
|
454
458
|
}>;
|
|
455
459
|
xml: z.ZodString;
|
|
456
460
|
}, z.core.$strict>>>;
|
|
@@ -537,6 +541,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
537
541
|
markdown: "markdown";
|
|
538
542
|
pdf: "pdf";
|
|
539
543
|
epub: "epub";
|
|
544
|
+
rtf: "rtf";
|
|
540
545
|
}>;
|
|
541
546
|
xml: z.ZodString;
|
|
542
547
|
}, z.core.$strict>>;
|
|
@@ -608,6 +613,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
608
613
|
markdown: "markdown";
|
|
609
614
|
pdf: "pdf";
|
|
610
615
|
epub: "epub";
|
|
616
|
+
rtf: "rtf";
|
|
611
617
|
}>;
|
|
612
618
|
xml: z.ZodString;
|
|
613
619
|
}, z.core.$strict>>>;
|
|
@@ -701,6 +707,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
701
707
|
markdown: "markdown";
|
|
702
708
|
pdf: "pdf";
|
|
703
709
|
epub: "epub";
|
|
710
|
+
rtf: "rtf";
|
|
704
711
|
}>;
|
|
705
712
|
xml: z.ZodString;
|
|
706
713
|
}, z.core.$strict>>;
|
|
@@ -798,6 +805,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
798
805
|
markdown: "markdown";
|
|
799
806
|
pdf: "pdf";
|
|
800
807
|
epub: "epub";
|
|
808
|
+
rtf: "rtf";
|
|
801
809
|
}>;
|
|
802
810
|
xml: z.ZodString;
|
|
803
811
|
}, z.core.$strict>>;
|
|
@@ -826,6 +834,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
826
834
|
markdown: "markdown";
|
|
827
835
|
pdf: "pdf";
|
|
828
836
|
epub: "epub";
|
|
837
|
+
rtf: "rtf";
|
|
829
838
|
}>;
|
|
830
839
|
xml: z.ZodString;
|
|
831
840
|
}, z.core.$strict>>;
|
|
@@ -958,6 +967,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
958
967
|
markdown: "markdown";
|
|
959
968
|
pdf: "pdf";
|
|
960
969
|
epub: "epub";
|
|
970
|
+
rtf: "rtf";
|
|
961
971
|
}>;
|
|
962
972
|
xml: z.ZodString;
|
|
963
973
|
}, z.core.$strict>>;
|
|
@@ -1070,6 +1080,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1070
1080
|
markdown: "markdown";
|
|
1071
1081
|
pdf: "pdf";
|
|
1072
1082
|
epub: "epub";
|
|
1083
|
+
rtf: "rtf";
|
|
1073
1084
|
}>;
|
|
1074
1085
|
xml: z.ZodString;
|
|
1075
1086
|
}, z.core.$strict>>;
|
|
@@ -1117,6 +1128,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1117
1128
|
markdown: "markdown";
|
|
1118
1129
|
pdf: "pdf";
|
|
1119
1130
|
epub: "epub";
|
|
1131
|
+
rtf: "rtf";
|
|
1120
1132
|
}>;
|
|
1121
1133
|
xml: z.ZodString;
|
|
1122
1134
|
}, z.core.$strict>>;
|
|
@@ -1182,9 +1194,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1182
1194
|
endColumn: z.ZodNumber;
|
|
1183
1195
|
}, z.core.$strip>>;
|
|
1184
1196
|
type: z.ZodEnum<{
|
|
1197
|
+
list: "list";
|
|
1185
1198
|
date: "date";
|
|
1186
1199
|
custom: "custom";
|
|
1187
|
-
list: "list";
|
|
1188
1200
|
time: "time";
|
|
1189
1201
|
whole: "whole";
|
|
1190
1202
|
decimal: "decimal";
|
|
@@ -1229,6 +1241,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1229
1241
|
markdown: "markdown";
|
|
1230
1242
|
pdf: "pdf";
|
|
1231
1243
|
epub: "epub";
|
|
1244
|
+
rtf: "rtf";
|
|
1232
1245
|
}>;
|
|
1233
1246
|
xml: z.ZodString;
|
|
1234
1247
|
}, z.core.$strict>>;
|
|
@@ -1272,6 +1285,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1272
1285
|
markdown: "markdown";
|
|
1273
1286
|
pdf: "pdf";
|
|
1274
1287
|
epub: "epub";
|
|
1288
|
+
rtf: "rtf";
|
|
1275
1289
|
}>;
|
|
1276
1290
|
xml: z.ZodString;
|
|
1277
1291
|
}, z.core.$strict>>;
|
|
@@ -1299,6 +1313,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1299
1313
|
markdown: "markdown";
|
|
1300
1314
|
pdf: "pdf";
|
|
1301
1315
|
epub: "epub";
|
|
1316
|
+
rtf: "rtf";
|
|
1302
1317
|
}>;
|
|
1303
1318
|
xml: z.ZodString;
|
|
1304
1319
|
}, z.core.$strict>>;
|
|
@@ -1331,6 +1346,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1331
1346
|
markdown: "markdown";
|
|
1332
1347
|
pdf: "pdf";
|
|
1333
1348
|
epub: "epub";
|
|
1349
|
+
rtf: "rtf";
|
|
1334
1350
|
}>;
|
|
1335
1351
|
xml: z.ZodString;
|
|
1336
1352
|
}, z.core.$strict>>;
|
|
@@ -1358,6 +1374,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1358
1374
|
markdown: "markdown";
|
|
1359
1375
|
pdf: "pdf";
|
|
1360
1376
|
epub: "epub";
|
|
1377
|
+
rtf: "rtf";
|
|
1361
1378
|
}>;
|
|
1362
1379
|
xml: z.ZodString;
|
|
1363
1380
|
}, z.core.$strict>>;
|
|
@@ -1394,6 +1411,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1394
1411
|
markdown: "markdown";
|
|
1395
1412
|
pdf: "pdf";
|
|
1396
1413
|
epub: "epub";
|
|
1414
|
+
rtf: "rtf";
|
|
1397
1415
|
}>;
|
|
1398
1416
|
xml: z.ZodString;
|
|
1399
1417
|
}, z.core.$strict>>;
|
|
@@ -1421,6 +1439,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1421
1439
|
markdown: "markdown";
|
|
1422
1440
|
pdf: "pdf";
|
|
1423
1441
|
epub: "epub";
|
|
1442
|
+
rtf: "rtf";
|
|
1424
1443
|
}>;
|
|
1425
1444
|
xml: z.ZodString;
|
|
1426
1445
|
}, z.core.$strict>>;
|
|
@@ -1462,6 +1481,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1462
1481
|
markdown: "markdown";
|
|
1463
1482
|
pdf: "pdf";
|
|
1464
1483
|
epub: "epub";
|
|
1484
|
+
rtf: "rtf";
|
|
1465
1485
|
}>;
|
|
1466
1486
|
xml: z.ZodString;
|
|
1467
1487
|
}, z.core.$strict>>;
|
|
@@ -1489,6 +1509,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1489
1509
|
markdown: "markdown";
|
|
1490
1510
|
pdf: "pdf";
|
|
1491
1511
|
epub: "epub";
|
|
1512
|
+
rtf: "rtf";
|
|
1492
1513
|
}>;
|
|
1493
1514
|
xml: z.ZodString;
|
|
1494
1515
|
}, z.core.$strict>>;
|
|
@@ -1523,6 +1544,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1523
1544
|
markdown: "markdown";
|
|
1524
1545
|
pdf: "pdf";
|
|
1525
1546
|
epub: "epub";
|
|
1547
|
+
rtf: "rtf";
|
|
1526
1548
|
}>;
|
|
1527
1549
|
xml: z.ZodString;
|
|
1528
1550
|
}, z.core.$strict>>;
|
|
@@ -1550,6 +1572,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1550
1572
|
markdown: "markdown";
|
|
1551
1573
|
pdf: "pdf";
|
|
1552
1574
|
epub: "epub";
|
|
1575
|
+
rtf: "rtf";
|
|
1553
1576
|
}>;
|
|
1554
1577
|
xml: z.ZodString;
|
|
1555
1578
|
}, z.core.$strict>>;
|
|
@@ -1593,6 +1616,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1593
1616
|
markdown: "markdown";
|
|
1594
1617
|
pdf: "pdf";
|
|
1595
1618
|
epub: "epub";
|
|
1619
|
+
rtf: "rtf";
|
|
1596
1620
|
}>;
|
|
1597
1621
|
xml: z.ZodString;
|
|
1598
1622
|
}, z.core.$strict>>;
|
|
@@ -1620,6 +1644,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1620
1644
|
markdown: "markdown";
|
|
1621
1645
|
pdf: "pdf";
|
|
1622
1646
|
epub: "epub";
|
|
1647
|
+
rtf: "rtf";
|
|
1623
1648
|
}>;
|
|
1624
1649
|
xml: z.ZodString;
|
|
1625
1650
|
}, z.core.$strict>>;
|
|
@@ -1666,6 +1691,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1666
1691
|
markdown: "markdown";
|
|
1667
1692
|
pdf: "pdf";
|
|
1668
1693
|
epub: "epub";
|
|
1694
|
+
rtf: "rtf";
|
|
1669
1695
|
}>;
|
|
1670
1696
|
xml: z.ZodString;
|
|
1671
1697
|
}, z.core.$strict>>;
|
|
@@ -1722,6 +1748,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1722
1748
|
markdown: "markdown";
|
|
1723
1749
|
pdf: "pdf";
|
|
1724
1750
|
epub: "epub";
|
|
1751
|
+
rtf: "rtf";
|
|
1725
1752
|
}>;
|
|
1726
1753
|
xml: z.ZodString;
|
|
1727
1754
|
}, z.core.$strict>>;
|
|
@@ -1764,6 +1791,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1764
1791
|
markdown: "markdown";
|
|
1765
1792
|
pdf: "pdf";
|
|
1766
1793
|
epub: "epub";
|
|
1794
|
+
rtf: "rtf";
|
|
1767
1795
|
}>;
|
|
1768
1796
|
xml: z.ZodString;
|
|
1769
1797
|
}, z.core.$strict>>;
|
|
@@ -1784,6 +1812,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1784
1812
|
markdown: "markdown";
|
|
1785
1813
|
pdf: "pdf";
|
|
1786
1814
|
epub: "epub";
|
|
1815
|
+
rtf: "rtf";
|
|
1787
1816
|
}>;
|
|
1788
1817
|
xml: z.ZodString;
|
|
1789
1818
|
}, z.core.$strict>>;
|
|
@@ -1881,6 +1910,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1881
1910
|
markdown: "markdown";
|
|
1882
1911
|
pdf: "pdf";
|
|
1883
1912
|
epub: "epub";
|
|
1913
|
+
rtf: "rtf";
|
|
1884
1914
|
}>;
|
|
1885
1915
|
xml: z.ZodString;
|
|
1886
1916
|
}, z.core.$strict>>;
|
|
@@ -1938,6 +1968,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1938
1968
|
markdown: "markdown";
|
|
1939
1969
|
pdf: "pdf";
|
|
1940
1970
|
epub: "epub";
|
|
1971
|
+
rtf: "rtf";
|
|
1941
1972
|
}>;
|
|
1942
1973
|
xml: z.ZodString;
|
|
1943
1974
|
}, z.core.$strict>>;
|
|
@@ -1993,6 +2024,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1993
2024
|
markdown: "markdown";
|
|
1994
2025
|
pdf: "pdf";
|
|
1995
2026
|
epub: "epub";
|
|
2027
|
+
rtf: "rtf";
|
|
1996
2028
|
}>;
|
|
1997
2029
|
xml: z.ZodString;
|
|
1998
2030
|
}, z.core.$strict>>;
|
|
@@ -2044,6 +2076,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2044
2076
|
markdown: "markdown";
|
|
2045
2077
|
pdf: "pdf";
|
|
2046
2078
|
epub: "epub";
|
|
2079
|
+
rtf: "rtf";
|
|
2047
2080
|
}>;
|
|
2048
2081
|
xml: z.ZodString;
|
|
2049
2082
|
}, z.core.$strict>>;
|
|
@@ -2131,6 +2164,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2131
2164
|
markdown: "markdown";
|
|
2132
2165
|
pdf: "pdf";
|
|
2133
2166
|
epub: "epub";
|
|
2167
|
+
rtf: "rtf";
|
|
2134
2168
|
}>;
|
|
2135
2169
|
xml: z.ZodString;
|
|
2136
2170
|
}, z.core.$strict>>;
|
|
@@ -2157,6 +2191,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2157
2191
|
markdown: "markdown";
|
|
2158
2192
|
pdf: "pdf";
|
|
2159
2193
|
epub: "epub";
|
|
2194
|
+
rtf: "rtf";
|
|
2160
2195
|
}>;
|
|
2161
2196
|
xml: z.ZodString;
|
|
2162
2197
|
}, z.core.$strict>>;
|
|
@@ -2244,6 +2279,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2244
2279
|
markdown: "markdown";
|
|
2245
2280
|
pdf: "pdf";
|
|
2246
2281
|
epub: "epub";
|
|
2282
|
+
rtf: "rtf";
|
|
2247
2283
|
}>;
|
|
2248
2284
|
xml: z.ZodString;
|
|
2249
2285
|
}, z.core.$strict>>;
|
package/dist/codec.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
70
70
|
markdown: "markdown";
|
|
71
71
|
pdf: "pdf";
|
|
72
72
|
epub: "epub";
|
|
73
|
+
rtf: "rtf";
|
|
73
74
|
}>;
|
|
74
75
|
xml: z.ZodString;
|
|
75
76
|
}, z.core.$strict>>>;
|
|
@@ -197,6 +198,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
197
198
|
markdown: "markdown";
|
|
198
199
|
pdf: "pdf";
|
|
199
200
|
epub: "epub";
|
|
201
|
+
rtf: "rtf";
|
|
200
202
|
}>;
|
|
201
203
|
xml: z.ZodString;
|
|
202
204
|
}, z.core.$strict>>>;
|
|
@@ -324,6 +326,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
324
326
|
markdown: "markdown";
|
|
325
327
|
pdf: "pdf";
|
|
326
328
|
epub: "epub";
|
|
329
|
+
rtf: "rtf";
|
|
327
330
|
}>;
|
|
328
331
|
xml: z.ZodString;
|
|
329
332
|
}, z.core.$strict>>>;
|
|
@@ -451,6 +454,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
451
454
|
markdown: "markdown";
|
|
452
455
|
pdf: "pdf";
|
|
453
456
|
epub: "epub";
|
|
457
|
+
rtf: "rtf";
|
|
454
458
|
}>;
|
|
455
459
|
xml: z.ZodString;
|
|
456
460
|
}, z.core.$strict>>>;
|
|
@@ -537,6 +541,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
537
541
|
markdown: "markdown";
|
|
538
542
|
pdf: "pdf";
|
|
539
543
|
epub: "epub";
|
|
544
|
+
rtf: "rtf";
|
|
540
545
|
}>;
|
|
541
546
|
xml: z.ZodString;
|
|
542
547
|
}, z.core.$strict>>;
|
|
@@ -608,6 +613,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
608
613
|
markdown: "markdown";
|
|
609
614
|
pdf: "pdf";
|
|
610
615
|
epub: "epub";
|
|
616
|
+
rtf: "rtf";
|
|
611
617
|
}>;
|
|
612
618
|
xml: z.ZodString;
|
|
613
619
|
}, z.core.$strict>>>;
|
|
@@ -701,6 +707,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
701
707
|
markdown: "markdown";
|
|
702
708
|
pdf: "pdf";
|
|
703
709
|
epub: "epub";
|
|
710
|
+
rtf: "rtf";
|
|
704
711
|
}>;
|
|
705
712
|
xml: z.ZodString;
|
|
706
713
|
}, z.core.$strict>>;
|
|
@@ -798,6 +805,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
798
805
|
markdown: "markdown";
|
|
799
806
|
pdf: "pdf";
|
|
800
807
|
epub: "epub";
|
|
808
|
+
rtf: "rtf";
|
|
801
809
|
}>;
|
|
802
810
|
xml: z.ZodString;
|
|
803
811
|
}, z.core.$strict>>;
|
|
@@ -826,6 +834,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
826
834
|
markdown: "markdown";
|
|
827
835
|
pdf: "pdf";
|
|
828
836
|
epub: "epub";
|
|
837
|
+
rtf: "rtf";
|
|
829
838
|
}>;
|
|
830
839
|
xml: z.ZodString;
|
|
831
840
|
}, z.core.$strict>>;
|
|
@@ -958,6 +967,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
958
967
|
markdown: "markdown";
|
|
959
968
|
pdf: "pdf";
|
|
960
969
|
epub: "epub";
|
|
970
|
+
rtf: "rtf";
|
|
961
971
|
}>;
|
|
962
972
|
xml: z.ZodString;
|
|
963
973
|
}, z.core.$strict>>;
|
|
@@ -1070,6 +1080,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1070
1080
|
markdown: "markdown";
|
|
1071
1081
|
pdf: "pdf";
|
|
1072
1082
|
epub: "epub";
|
|
1083
|
+
rtf: "rtf";
|
|
1073
1084
|
}>;
|
|
1074
1085
|
xml: z.ZodString;
|
|
1075
1086
|
}, z.core.$strict>>;
|
|
@@ -1117,6 +1128,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1117
1128
|
markdown: "markdown";
|
|
1118
1129
|
pdf: "pdf";
|
|
1119
1130
|
epub: "epub";
|
|
1131
|
+
rtf: "rtf";
|
|
1120
1132
|
}>;
|
|
1121
1133
|
xml: z.ZodString;
|
|
1122
1134
|
}, z.core.$strict>>;
|
|
@@ -1182,9 +1194,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1182
1194
|
endColumn: z.ZodNumber;
|
|
1183
1195
|
}, z.core.$strip>>;
|
|
1184
1196
|
type: z.ZodEnum<{
|
|
1197
|
+
list: "list";
|
|
1185
1198
|
date: "date";
|
|
1186
1199
|
custom: "custom";
|
|
1187
|
-
list: "list";
|
|
1188
1200
|
time: "time";
|
|
1189
1201
|
whole: "whole";
|
|
1190
1202
|
decimal: "decimal";
|
|
@@ -1229,6 +1241,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1229
1241
|
markdown: "markdown";
|
|
1230
1242
|
pdf: "pdf";
|
|
1231
1243
|
epub: "epub";
|
|
1244
|
+
rtf: "rtf";
|
|
1232
1245
|
}>;
|
|
1233
1246
|
xml: z.ZodString;
|
|
1234
1247
|
}, z.core.$strict>>;
|
|
@@ -1272,6 +1285,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1272
1285
|
markdown: "markdown";
|
|
1273
1286
|
pdf: "pdf";
|
|
1274
1287
|
epub: "epub";
|
|
1288
|
+
rtf: "rtf";
|
|
1275
1289
|
}>;
|
|
1276
1290
|
xml: z.ZodString;
|
|
1277
1291
|
}, z.core.$strict>>;
|
|
@@ -1299,6 +1313,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1299
1313
|
markdown: "markdown";
|
|
1300
1314
|
pdf: "pdf";
|
|
1301
1315
|
epub: "epub";
|
|
1316
|
+
rtf: "rtf";
|
|
1302
1317
|
}>;
|
|
1303
1318
|
xml: z.ZodString;
|
|
1304
1319
|
}, z.core.$strict>>;
|
|
@@ -1331,6 +1346,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1331
1346
|
markdown: "markdown";
|
|
1332
1347
|
pdf: "pdf";
|
|
1333
1348
|
epub: "epub";
|
|
1349
|
+
rtf: "rtf";
|
|
1334
1350
|
}>;
|
|
1335
1351
|
xml: z.ZodString;
|
|
1336
1352
|
}, z.core.$strict>>;
|
|
@@ -1358,6 +1374,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1358
1374
|
markdown: "markdown";
|
|
1359
1375
|
pdf: "pdf";
|
|
1360
1376
|
epub: "epub";
|
|
1377
|
+
rtf: "rtf";
|
|
1361
1378
|
}>;
|
|
1362
1379
|
xml: z.ZodString;
|
|
1363
1380
|
}, z.core.$strict>>;
|
|
@@ -1394,6 +1411,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1394
1411
|
markdown: "markdown";
|
|
1395
1412
|
pdf: "pdf";
|
|
1396
1413
|
epub: "epub";
|
|
1414
|
+
rtf: "rtf";
|
|
1397
1415
|
}>;
|
|
1398
1416
|
xml: z.ZodString;
|
|
1399
1417
|
}, z.core.$strict>>;
|
|
@@ -1421,6 +1439,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1421
1439
|
markdown: "markdown";
|
|
1422
1440
|
pdf: "pdf";
|
|
1423
1441
|
epub: "epub";
|
|
1442
|
+
rtf: "rtf";
|
|
1424
1443
|
}>;
|
|
1425
1444
|
xml: z.ZodString;
|
|
1426
1445
|
}, z.core.$strict>>;
|
|
@@ -1462,6 +1481,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1462
1481
|
markdown: "markdown";
|
|
1463
1482
|
pdf: "pdf";
|
|
1464
1483
|
epub: "epub";
|
|
1484
|
+
rtf: "rtf";
|
|
1465
1485
|
}>;
|
|
1466
1486
|
xml: z.ZodString;
|
|
1467
1487
|
}, z.core.$strict>>;
|
|
@@ -1489,6 +1509,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1489
1509
|
markdown: "markdown";
|
|
1490
1510
|
pdf: "pdf";
|
|
1491
1511
|
epub: "epub";
|
|
1512
|
+
rtf: "rtf";
|
|
1492
1513
|
}>;
|
|
1493
1514
|
xml: z.ZodString;
|
|
1494
1515
|
}, z.core.$strict>>;
|
|
@@ -1523,6 +1544,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1523
1544
|
markdown: "markdown";
|
|
1524
1545
|
pdf: "pdf";
|
|
1525
1546
|
epub: "epub";
|
|
1547
|
+
rtf: "rtf";
|
|
1526
1548
|
}>;
|
|
1527
1549
|
xml: z.ZodString;
|
|
1528
1550
|
}, z.core.$strict>>;
|
|
@@ -1550,6 +1572,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1550
1572
|
markdown: "markdown";
|
|
1551
1573
|
pdf: "pdf";
|
|
1552
1574
|
epub: "epub";
|
|
1575
|
+
rtf: "rtf";
|
|
1553
1576
|
}>;
|
|
1554
1577
|
xml: z.ZodString;
|
|
1555
1578
|
}, z.core.$strict>>;
|
|
@@ -1593,6 +1616,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1593
1616
|
markdown: "markdown";
|
|
1594
1617
|
pdf: "pdf";
|
|
1595
1618
|
epub: "epub";
|
|
1619
|
+
rtf: "rtf";
|
|
1596
1620
|
}>;
|
|
1597
1621
|
xml: z.ZodString;
|
|
1598
1622
|
}, z.core.$strict>>;
|
|
@@ -1620,6 +1644,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1620
1644
|
markdown: "markdown";
|
|
1621
1645
|
pdf: "pdf";
|
|
1622
1646
|
epub: "epub";
|
|
1647
|
+
rtf: "rtf";
|
|
1623
1648
|
}>;
|
|
1624
1649
|
xml: z.ZodString;
|
|
1625
1650
|
}, z.core.$strict>>;
|
|
@@ -1666,6 +1691,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1666
1691
|
markdown: "markdown";
|
|
1667
1692
|
pdf: "pdf";
|
|
1668
1693
|
epub: "epub";
|
|
1694
|
+
rtf: "rtf";
|
|
1669
1695
|
}>;
|
|
1670
1696
|
xml: z.ZodString;
|
|
1671
1697
|
}, z.core.$strict>>;
|
|
@@ -1722,6 +1748,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1722
1748
|
markdown: "markdown";
|
|
1723
1749
|
pdf: "pdf";
|
|
1724
1750
|
epub: "epub";
|
|
1751
|
+
rtf: "rtf";
|
|
1725
1752
|
}>;
|
|
1726
1753
|
xml: z.ZodString;
|
|
1727
1754
|
}, z.core.$strict>>;
|
|
@@ -1764,6 +1791,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1764
1791
|
markdown: "markdown";
|
|
1765
1792
|
pdf: "pdf";
|
|
1766
1793
|
epub: "epub";
|
|
1794
|
+
rtf: "rtf";
|
|
1767
1795
|
}>;
|
|
1768
1796
|
xml: z.ZodString;
|
|
1769
1797
|
}, z.core.$strict>>;
|
|
@@ -1784,6 +1812,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1784
1812
|
markdown: "markdown";
|
|
1785
1813
|
pdf: "pdf";
|
|
1786
1814
|
epub: "epub";
|
|
1815
|
+
rtf: "rtf";
|
|
1787
1816
|
}>;
|
|
1788
1817
|
xml: z.ZodString;
|
|
1789
1818
|
}, z.core.$strict>>;
|
|
@@ -1881,6 +1910,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1881
1910
|
markdown: "markdown";
|
|
1882
1911
|
pdf: "pdf";
|
|
1883
1912
|
epub: "epub";
|
|
1913
|
+
rtf: "rtf";
|
|
1884
1914
|
}>;
|
|
1885
1915
|
xml: z.ZodString;
|
|
1886
1916
|
}, z.core.$strict>>;
|
|
@@ -1938,6 +1968,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1938
1968
|
markdown: "markdown";
|
|
1939
1969
|
pdf: "pdf";
|
|
1940
1970
|
epub: "epub";
|
|
1971
|
+
rtf: "rtf";
|
|
1941
1972
|
}>;
|
|
1942
1973
|
xml: z.ZodString;
|
|
1943
1974
|
}, z.core.$strict>>;
|
|
@@ -1993,6 +2024,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1993
2024
|
markdown: "markdown";
|
|
1994
2025
|
pdf: "pdf";
|
|
1995
2026
|
epub: "epub";
|
|
2027
|
+
rtf: "rtf";
|
|
1996
2028
|
}>;
|
|
1997
2029
|
xml: z.ZodString;
|
|
1998
2030
|
}, z.core.$strict>>;
|
|
@@ -2044,6 +2076,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2044
2076
|
markdown: "markdown";
|
|
2045
2077
|
pdf: "pdf";
|
|
2046
2078
|
epub: "epub";
|
|
2079
|
+
rtf: "rtf";
|
|
2047
2080
|
}>;
|
|
2048
2081
|
xml: z.ZodString;
|
|
2049
2082
|
}, z.core.$strict>>;
|
|
@@ -2131,6 +2164,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2131
2164
|
markdown: "markdown";
|
|
2132
2165
|
pdf: "pdf";
|
|
2133
2166
|
epub: "epub";
|
|
2167
|
+
rtf: "rtf";
|
|
2134
2168
|
}>;
|
|
2135
2169
|
xml: z.ZodString;
|
|
2136
2170
|
}, z.core.$strict>>;
|
|
@@ -2157,6 +2191,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2157
2191
|
markdown: "markdown";
|
|
2158
2192
|
pdf: "pdf";
|
|
2159
2193
|
epub: "epub";
|
|
2194
|
+
rtf: "rtf";
|
|
2160
2195
|
}>;
|
|
2161
2196
|
xml: z.ZodString;
|
|
2162
2197
|
}, z.core.$strict>>;
|
|
@@ -2244,6 +2279,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2244
2279
|
markdown: "markdown";
|
|
2245
2280
|
pdf: "pdf";
|
|
2246
2281
|
epub: "epub";
|
|
2282
|
+
rtf: "rtf";
|
|
2247
2283
|
}>;
|
|
2248
2284
|
xml: z.ZodString;
|
|
2249
2285
|
}, z.core.$strict>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epub-codec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "EPUB 2/3 reading and deterministic EPUB 3 writing against the shared document-schema.js content pivot.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"license": "MIT",
|
|
76
76
|
"packageManager": "pnpm@11.6.0",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"document-schema.js": "^5.
|
|
78
|
+
"document-schema.js": "^5.5.0",
|
|
79
79
|
"fast-xml-parser": "^5.10.1",
|
|
80
80
|
"fflate": "^0.8.3",
|
|
81
81
|
"zod": "^4.4.3"
|