@prose-reader/streamer 0.0.26 → 0.0.30

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.
@@ -0,0 +1,10 @@
1
+ import { Manifest } from '@prose-reader/shared';
2
+ import { Archive } from '../../archives/types';
3
+ /**
4
+ * Handle archive which contains ComicInfo.xml. This is a meta file
5
+ * used to define cbz, etc. I believe it comes from some sites or apps.
6
+ */
7
+ export declare const comicInfoGenerator: ({ archive, baseUrl }: {
8
+ archive: Archive;
9
+ baseUrl: string;
10
+ }) => (manifest: Manifest) => Promise<Manifest>;
@@ -0,0 +1,6 @@
1
+ import { Manifest } from '@prose-reader/shared';
2
+ import { Archive } from '../../archives/types';
3
+ export declare const defaultGenerator: ({ archive, baseUrl }: {
4
+ archive: Archive;
5
+ baseUrl: string;
6
+ }) => (manifest: Manifest) => Promise<Manifest>;
@@ -0,0 +1,12 @@
1
+ import xmldoc from 'xmldoc';
2
+ import type { Manifest } from '@prose-reader/shared';
3
+ import { Archive } from '../..';
4
+ export declare const getItemsFromDoc: (doc: xmldoc.XmlDocument) => {
5
+ href: string;
6
+ id: string;
7
+ mediaType: string | undefined;
8
+ }[];
9
+ export declare const epubGenerator: ({ archive, baseUrl }: {
10
+ archive: Archive;
11
+ baseUrl: string;
12
+ }) => (manifest: Manifest) => Promise<Manifest>;
@@ -0,0 +1,4 @@
1
+ import { Archive } from '../..';
2
+ export declare const getManifestFromArchive: (archive: Archive, { baseUrl }?: {
3
+ baseUrl?: string | undefined;
4
+ }) => Promise<Response>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import xmldoc from 'xmldoc';
1
2
  export { getResourceFromArchive } from './generators/resources';
2
3
  export { getManifestFromArchive } from './generators/manifest';
3
4
  export type { Manifest } from '@prose-reader/shared';
@@ -8,3 +9,4 @@ export { createArchiveFromUrls } from './archives/createArchiveFromUrls';
8
9
  export { createArchiveFromText } from './archives/createArchiveFromText';
9
10
  export { createArchiveFromJszip } from './archives/createArchiveFromJszip';
10
11
  export { createArchiveFromArrayBufferList } from './archives/createArchiveFromArrayBufferList';
12
+ export { xmldoc };