@prose-reader/archive-reader 1.339.0 → 1.341.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/dist/comicInfo/resolve.d.ts +5 -5
- package/dist/index/index.cjs +1 -1
- package/dist/index/index.cjs.map +1 -1
- package/dist/index/index.js +25 -19
- package/dist/index/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/opf/resolve.d.ts +2 -2
- package/dist/types/resolvedMetadata.d.ts +11 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export type { ResolveMetadataSources } from './resolveMetadata.ts';
|
|
|
43
43
|
export { resolveMetadata } from './resolveMetadata.ts';
|
|
44
44
|
export { resolveArchiveToc } from './toc/resolveArchiveToc.ts';
|
|
45
45
|
export type { ArchiveTocItem } from './toc/types.ts';
|
|
46
|
-
export type { ResolvedAppleMetadata, ResolvedCollection, ResolvedComicMetadata, ResolvedConfidence, ResolvedContributor, ResolvedContributorRole, ResolvedCover, ResolvedDate, ResolvedKoboMetadata, ResolvedMetadata, ResolvedMetadataHome, ResolvedProperty, } from './types/resolvedMetadata.ts';
|
|
46
|
+
export type { ResolvedAppleMetadata, ResolvedCollection, ResolvedComicMetadata, ResolvedConfidence, ResolvedContributor, ResolvedContributorRole, ResolvedCover, ResolvedDate, ResolvedKoboMetadata, ResolvedMetadata, ResolvedMetadataHome, ResolvedProperty, ResolvedPublication, ResolvedPublicationInfo, } from './types/resolvedMetadata.ts';
|
|
47
47
|
export { normalizeGtin } from './utils/normalizeGtin.ts';
|
|
48
48
|
export { normalizeIsbn } from './utils/normalizeIsbn.ts';
|
|
49
49
|
export { parseW3cDtfDate } from './utils/parseW3cDtfDate.ts';
|
package/dist/opf/resolve.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ export declare const opfMetadataHomes: {
|
|
|
8
8
|
readonly title: "title";
|
|
9
9
|
readonly creators: "contributors";
|
|
10
10
|
readonly contributors: "contributors";
|
|
11
|
-
readonly publisher: "publisher";
|
|
11
|
+
readonly publisher: "publication.edition.publisher";
|
|
12
12
|
readonly description: "description";
|
|
13
13
|
readonly rights: "rights";
|
|
14
14
|
readonly languages: "languages";
|
|
15
15
|
readonly subjects: "subjects";
|
|
16
|
-
readonly date: "
|
|
16
|
+
readonly date: "publication.edition.date";
|
|
17
17
|
readonly coverHref: "cover";
|
|
18
18
|
readonly renditionLayoutMeta: "renditionLayout";
|
|
19
19
|
readonly renditionFlowMeta: "renditionFlow";
|
|
@@ -14,6 +14,15 @@ export type ResolvedDate = {
|
|
|
14
14
|
readonly month?: number;
|
|
15
15
|
readonly day?: number;
|
|
16
16
|
};
|
|
17
|
+
export type ResolvedPublication = {
|
|
18
|
+
readonly date?: ResolvedDate;
|
|
19
|
+
readonly publisher?: string;
|
|
20
|
+
readonly imprint?: string;
|
|
21
|
+
};
|
|
22
|
+
export type ResolvedPublicationInfo = {
|
|
23
|
+
readonly original?: ResolvedPublication;
|
|
24
|
+
readonly edition?: ResolvedPublication;
|
|
25
|
+
};
|
|
17
26
|
export type ResolvedProperty = {
|
|
18
27
|
readonly property?: string;
|
|
19
28
|
readonly refines?: string;
|
|
@@ -61,13 +70,11 @@ export type ResolvedMetadata = {
|
|
|
61
70
|
readonly title?: string;
|
|
62
71
|
readonly cover?: ResolvedCover;
|
|
63
72
|
readonly description?: string;
|
|
64
|
-
readonly
|
|
65
|
-
readonly imprint?: string;
|
|
73
|
+
readonly publication?: ResolvedPublicationInfo;
|
|
66
74
|
readonly rights?: string;
|
|
67
75
|
readonly languages?: ReadonlyArray<string>;
|
|
68
76
|
readonly subjects?: ReadonlyArray<string>;
|
|
69
77
|
readonly contributors?: ReadonlyArray<ResolvedContributor>;
|
|
70
|
-
readonly published?: ResolvedDate;
|
|
71
78
|
readonly readingDirection?: "ltr" | "rtl";
|
|
72
79
|
readonly renditionLayout?: "reflowable" | "pre-paginated";
|
|
73
80
|
readonly renditionFlow?: "scrolled-continuous" | "scrolled-doc" | "paginated" | "auto";
|
|
@@ -89,4 +96,4 @@ export type ResolvedMetadata = {
|
|
|
89
96
|
readonly apple?: ResolvedAppleMetadata;
|
|
90
97
|
readonly kobo?: ResolvedKoboMetadata;
|
|
91
98
|
};
|
|
92
|
-
export type ResolvedMetadataHome = Exclude<keyof ResolvedMetadata, "comic" | "apple" | "kobo" | "belongsTo"> | `comic.${keyof ResolvedComicMetadata}` | `apple.${keyof ResolvedAppleMetadata}` | `kobo.${keyof ResolvedKoboMetadata}` | `belongsTo.${"series" | "collection"}` | "readingOrder" | "toc" | "guide";
|
|
99
|
+
export type ResolvedMetadataHome = Exclude<keyof ResolvedMetadata, "comic" | "apple" | "kobo" | "belongsTo" | "publication"> | `comic.${keyof ResolvedComicMetadata}` | `apple.${keyof ResolvedAppleMetadata}` | `kobo.${keyof ResolvedKoboMetadata}` | `belongsTo.${"series" | "collection"}` | `publication.${keyof ResolvedPublicationInfo}` | `publication.${keyof ResolvedPublicationInfo}.${keyof ResolvedPublication}` | "readingOrder" | "toc" | "guide";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prose-reader/archive-reader",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.341.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index/index.cjs",
|
|
6
6
|
"module": "./dist/index/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"test:watch": "vitest watch"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@prose-reader/shared": "^1.
|
|
62
|
+
"@prose-reader/shared": "^1.341.0",
|
|
63
63
|
"xmldoc": "^2.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"node-unrar-js": "^2.0.2",
|
|
101
101
|
"unzipper": "^0.12.3"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "620bf290b88f12f2313f7b19aa4d4abdcf124ef1"
|
|
104
104
|
}
|