@prose-reader/streamer 0.0.30 → 0.0.31

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,34 +0,0 @@
1
- /// <reference types="node" />
2
- import { Archive, StreamResult } from "./types";
3
- interface OutputByType {
4
- base64: string;
5
- string: string;
6
- text: string;
7
- binarystring: string;
8
- array: number[];
9
- uint8array: Uint8Array;
10
- arraybuffer: ArrayBuffer;
11
- blob: Blob;
12
- nodebuffer: Buffer;
13
- }
14
- declare type OutputType = keyof OutputByType;
15
- interface JSZipObject {
16
- name: string;
17
- dir: boolean;
18
- date: Date;
19
- comment: string;
20
- unixPermissions: number | string | null;
21
- dosPermissions: number | null;
22
- async<T extends OutputType>(type: T): Promise<OutputByType[T]>;
23
- internalStream?: (type?: `uint8array`) => StreamResult;
24
- }
25
- interface JSZip {
26
- files: {
27
- [key: string]: JSZipObject;
28
- };
29
- }
30
- export declare const createArchiveFromJszip: (jszip: JSZip, { orderByAlpha, name }?: {
31
- orderByAlpha?: boolean | undefined;
32
- name?: string | undefined;
33
- }) => Promise<Archive>;
34
- export {};
@@ -1,12 +0,0 @@
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>;
@@ -1,4 +0,0 @@
1
- import { Archive } from '../..';
2
- export declare const getManifestFromArchive: (archive: Archive, { baseUrl }?: {
3
- baseUrl?: string | undefined;
4
- }) => Promise<Response>;
@@ -1,2 +0,0 @@
1
- import { Archive } from '..';
2
- export declare const getResourceFromArchive: (archive: Archive, resourcePath: string) => Promise<Response>;
@@ -1,12 +0,0 @@
1
- import xmldoc from 'xmldoc';
2
- export { getResourceFromArchive } from './generators/resources';
3
- export { getManifestFromArchive } from './generators/manifest';
4
- export type { Manifest } from '@prose-reader/shared';
5
- export { Report } from './report';
6
- export { Archive } from './archives/types';
7
- export { getArchiveOpfInfo } from './archives/getArchiveOpfInfo';
8
- export { createArchiveFromUrls } from './archives/createArchiveFromUrls';
9
- export { createArchiveFromText } from './archives/createArchiveFromText';
10
- export { createArchiveFromJszip } from './archives/createArchiveFromJszip';
11
- export { createArchiveFromArrayBufferList } from './archives/createArchiveFromArrayBufferList';
12
- export { xmldoc };
@@ -1,6 +0,0 @@
1
- import { Archive } from '..';
2
- declare type KoboInformation = {
3
- renditionLayout?: `reflowable` | `pre-paginated` | undefined;
4
- };
5
- export declare const extractKoboInformationFromArchive: (archive: Archive) => Promise<KoboInformation>;
6
- export {};
@@ -1,5 +0,0 @@
1
- import xmldoc from 'xmldoc';
2
- import { Archive } from '..';
3
- export declare const parseToc: (opfXmlDoc: xmldoc.XmlDocument, archive: Archive, { baseUrl }: {
4
- baseUrl: string;
5
- }) => Promise<import("@prose-reader/shared").TocItem[] | undefined>;
@@ -1 +0,0 @@
1
- export declare const sortByTitleComparator: (a: string, b: string) => number;