@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.
- package/dist/generators/manifest/comicInfo.d.ts +10 -0
- package/dist/generators/manifest/default.d.ts +6 -0
- package/dist/generators/manifest/epub.d.ts +12 -0
- package/dist/generators/manifest/index.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5822 -2
- package/dist/index.js.map +1 -0
- package/dist/report.d.ts +1 -1
- package/dist/streamer/src/archives/createArchiveFromArrayBufferList.d.ts +10 -0
- package/dist/streamer/src/archives/createArchiveFromJszip.d.ts +34 -0
- package/dist/streamer/src/generators/manifest/epub.d.ts +12 -0
- package/dist/streamer/src/generators/manifest/index.d.ts +4 -0
- package/dist/streamer/src/generators/resources.d.ts +2 -0
- package/dist/streamer/src/index.d.ts +12 -0
- package/dist/streamer/src/parsers/kobo.d.ts +6 -0
- package/dist/streamer/src/parsers/nav.d.ts +5 -0
- package/dist/streamer/src/utils/sortByTitleComparator.d.ts +1 -0
- package/package.json +5 -5
- package/dist/generators/manifest.d.ts +0 -10
|
@@ -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 @@
|
|
|
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.
|
|
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.
|
|
33
|
-
"jest": "^27.
|
|
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.
|
|
36
|
+
"webpack": "^5.65.0",
|
|
37
37
|
"webpack-cli": "^4.9.1",
|
|
38
38
|
"webpack-dev-server": "^4.6.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
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
|
-
}[];
|