@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.
- package/dist/index.js +2 -5822
- package/package.json +5 -5
- package/dist/index.js.map +0 -1
- package/dist/streamer/src/archives/createArchiveFromArrayBufferList.d.ts +0 -10
- package/dist/streamer/src/archives/createArchiveFromJszip.d.ts +0 -34
- package/dist/streamer/src/generators/manifest/epub.d.ts +0 -12
- package/dist/streamer/src/generators/manifest/index.d.ts +0 -4
- package/dist/streamer/src/generators/resources.d.ts +0 -2
- package/dist/streamer/src/index.d.ts +0 -12
- package/dist/streamer/src/parsers/kobo.d.ts +0 -6
- package/dist/streamer/src/parsers/nav.d.ts +0 -5
- package/dist/streamer/src/utils/sortByTitleComparator.d.ts +0 -1
|
@@ -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,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 +0,0 @@
|
|
|
1
|
-
export declare const sortByTitleComparator: (a: string, b: string) => number;
|