@prose-reader/metadata-fetcher 1.345.0 → 1.347.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +341 -384
- package/dist/index.js.map +1 -1
- package/dist/providers/googleBooks/resolve.d.ts +0 -22
- package/dist/providers/openLibrary/resolve.d.ts +0 -18
- package/dist/providers/projectGutenberg/resolve.d.ts +0 -16
- package/package.json +4 -4
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
import { MetadataIdentifier, ResolvedMetadata } from '@prose-reader/archive-reader';
|
|
2
2
|
import { GoogleBooksImageLinks, GoogleBooksVolume } from './parse.ts';
|
|
3
3
|
export declare const GOOGLE_BOOKS_MAX_SUBJECTS = 25;
|
|
4
|
-
/** Compile-enforced homes for the top-level Volume resource fields. */
|
|
5
|
-
export declare const googleBooksVolumeMetadataHomes: {
|
|
6
|
-
id: "identifiers";
|
|
7
|
-
volumeInfo: "metadata";
|
|
8
|
-
};
|
|
9
|
-
/** Compile-enforced map from every parsed Google Books field to its home. */
|
|
10
|
-
export declare const googleBooksVolumeInfoMetadataHomes: {
|
|
11
|
-
title: "title";
|
|
12
|
-
subtitle: "title";
|
|
13
|
-
authors: "contributors";
|
|
14
|
-
publisher: "publication.edition.publisher";
|
|
15
|
-
publishedDate: "publication.edition.date";
|
|
16
|
-
description: "description";
|
|
17
|
-
industryIdentifiers: "identifiers";
|
|
18
|
-
pageCount: "numberOfPages";
|
|
19
|
-
categories: "subjects";
|
|
20
|
-
language: "languages";
|
|
21
|
-
imageLinks: "cover";
|
|
22
|
-
infoLink: "candidate.url";
|
|
23
|
-
canonicalVolumeLink: "candidate.url";
|
|
24
|
-
seriesInfo: "title";
|
|
25
|
-
};
|
|
26
4
|
/**
|
|
27
5
|
* Prefer the largest cover Google announced and force HTTPS. Preserve the
|
|
28
6
|
* query exactly: changing Google's `zoom`, `edge` or signed `imgtk` parameters
|
|
@@ -6,24 +6,6 @@ import { OpenLibraryDoc } from './parse.ts';
|
|
|
6
6
|
* consumer persists. The API puts the meaningful ones first.
|
|
7
7
|
*/
|
|
8
8
|
export declare const OPEN_LIBRARY_MAX_SUBJECTS = 25;
|
|
9
|
-
/**
|
|
10
|
-
* Where every {@link OpenLibraryDoc} field lands in {@link ResolvedMetadata},
|
|
11
|
-
* compile-enforced: adding a field to the parser without declaring its home is
|
|
12
|
-
* a type error. The archive parsers' losslessness contract, and the mapping
|
|
13
|
-
* documentation.
|
|
14
|
-
*/
|
|
15
|
-
export declare const openLibraryMetadataHomes: {
|
|
16
|
-
readonly key: "identifiers";
|
|
17
|
-
readonly title: "title";
|
|
18
|
-
readonly subtitle: "title";
|
|
19
|
-
readonly author_name: "contributors";
|
|
20
|
-
readonly first_publish_year: "publication.original.date";
|
|
21
|
-
readonly language: "languages";
|
|
22
|
-
readonly subject: "subjects";
|
|
23
|
-
readonly number_of_pages_median: "numberOfPages";
|
|
24
|
-
readonly cover_i: "cover";
|
|
25
|
-
readonly id_project_gutenberg: "identifiers";
|
|
26
|
-
};
|
|
27
9
|
export declare const OPEN_LIBRARY_IDENTIFIER_SCHEME = "OpenLibrary";
|
|
28
10
|
/**
|
|
29
11
|
* Normalizes one search hit into the cross-format vocabulary. Two choices
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { MetadataIdentifier, ResolvedMetadata } from '@prose-reader/archive-reader';
|
|
2
2
|
import { ProjectGutenbergRecord } from './parse.ts';
|
|
3
3
|
export declare const PROJECT_GUTENBERG_MAX_SUBJECTS = 25;
|
|
4
|
-
/** Compile-enforced map from every parsed RDF field to its resolved home. */
|
|
5
|
-
export declare const projectGutenbergMetadataHomes: {
|
|
6
|
-
readonly id: "identifiers";
|
|
7
|
-
readonly title: "title";
|
|
8
|
-
readonly publisher: "publication.edition.publisher";
|
|
9
|
-
readonly issued: "publication.edition.date";
|
|
10
|
-
readonly originalPublication: "publication.original";
|
|
11
|
-
readonly rights: "rights";
|
|
12
|
-
readonly description: "description";
|
|
13
|
-
readonly summary: "description";
|
|
14
|
-
readonly languages: "languages";
|
|
15
|
-
readonly subjects: "subjects";
|
|
16
|
-
readonly bookshelves: "subjects";
|
|
17
|
-
readonly contributors: "contributors";
|
|
18
|
-
readonly cover: "cover";
|
|
19
|
-
};
|
|
20
4
|
export declare const resolveProjectGutenbergRecord: (record: ProjectGutenbergRecord, options: {
|
|
21
5
|
readonly baseUrl: string;
|
|
22
6
|
readonly matchedIdentifier: MetadataIdentifier;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prose-reader/metadata-fetcher",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.347.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"test:watch": "vitest watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@prose-reader/archive-reader": "^1.
|
|
33
|
-
"@prose-reader/shared": "^1.
|
|
32
|
+
"@prose-reader/archive-reader": "^1.347.0",
|
|
33
|
+
"@prose-reader/shared": "^1.347.0",
|
|
34
34
|
"xmldoc": "^2.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "a5e60d258dbed8d4e2a4bed78680c3b9b3455418"
|
|
37
37
|
}
|