@prose-reader/metadata-fetcher 1.339.0 → 1.340.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.
@@ -1,7 +1,7 @@
1
1
  import { ResolvedMetadata } from '@prose-reader/archive-reader';
2
2
  /**
3
3
  * Whether a catalog has anything to go on, so a lookup with nothing to ask
4
- * about costs no round trip. Descriptive fields alone a publisher, a
5
- * language, a page count — narrow a search but cannot start one.
4
+ * about costs no round trip. Publication details, a language, or a page count
5
+ * narrow a search but cannot start one.
6
6
  */
7
7
  export declare const hasSearchTerms: (metadata: ResolvedMetadata) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prose-reader/metadata-fetcher",
3
- "version": "1.339.0",
3
+ "version": "1.340.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -29,8 +29,9 @@
29
29
  "test:watch": "vitest watch"
30
30
  },
31
31
  "dependencies": {
32
- "@prose-reader/archive-reader": "^1.339.0",
33
- "@prose-reader/shared": "^1.339.0"
32
+ "@prose-reader/archive-reader": "^1.340.0",
33
+ "@prose-reader/shared": "^1.340.0",
34
+ "xmldoc": "^2.0.0"
34
35
  },
35
- "gitHead": "6f3954f75cc72da91902eb091d5600575f6eaabb"
36
+ "gitHead": "b8aea840260994b069963e15474aa1dfdbb685e7"
36
37
  }
@@ -1,15 +0,0 @@
1
- import { ResolvedMetadata } from '@prose-reader/archive-reader';
2
- export type OpenLibraryProjectGutenbergLookup = {
3
- readonly id: string;
4
- /** The book's exact identifier spelling, echoed only after OL confirms it. */
5
- readonly identifier: {
6
- readonly value: string;
7
- readonly scheme?: string;
8
- };
9
- };
10
- /**
11
- * Open Library-specific crosswalk: its `id_project_gutenberg` search field
12
- * stores the numeric id encoded by official Gutenberg URLs. Other providers
13
- * own their own identifier conventions; this is intentionally not generic.
14
- */
15
- export declare const projectGutenbergLookupFromMetadata: (metadata: ResolvedMetadata) => OpenLibraryProjectGutenbergLookup | undefined;