@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,2 @@
1
+ import { Archive } from '..';
2
+ export declare const getResourceFromArchive: (archive: Archive, resourcePath: string) => Promise<Response>;
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,6 @@
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 {};
@@ -0,0 +1,5 @@
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>;
@@ -0,0 +1 @@
1
+ export declare const sortByTitleComparator: (a: string, b: string) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prose-reader/streamer",
3
- "version": "0.0.26",
3
+ "version": "0.0.30",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -29,13 +29,13 @@
29
29
  "eslint-plugin-import": "^2.25.2",
30
30
  "eslint-plugin-jest": "^25.3.0",
31
31
  "eslint-plugin-node": "^11.1.0",
32
- "eslint-plugin-promise": "^5.1.1",
33
- "jest": "^27.3.1",
32
+ "eslint-plugin-promise": "^5.2.0",
33
+ "jest": "^27.4.4",
34
34
  "ts-loader": "^9.2.6",
35
35
  "typescript": "*",
36
- "webpack": "^5.64.3",
36
+ "webpack": "^5.65.0",
37
37
  "webpack-cli": "^4.9.1",
38
38
  "webpack-dev-server": "^4.6.0"
39
39
  },
40
- "gitHead": "b2fd1f7f7423279991c74f2e7dff3d0f6ac52607"
40
+ "gitHead": "61fb143e4b0072a043c5d1ae00f91de31eaebd0a"
41
41
  }
@@ -1,10 +0,0 @@
1
- import xmldoc from 'xmldoc';
2
- import { Archive } from '..';
3
- export declare const getManifestFromArchive: (archive: Archive, { baseUrl }?: {
4
- baseUrl?: string | undefined;
5
- }) => Promise<Response>;
6
- export declare const getItemsFromDoc: (doc: xmldoc.XmlDocument) => {
7
- href: string;
8
- id: string;
9
- mediaType: string | undefined;
10
- }[];