@prose-reader/streamer 1.74.0 → 1.76.0

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,5 +1,4 @@
1
1
  import { Archive } from './types';
2
-
3
2
  export declare const createArchiveFromArrayBufferList: (list: {
4
3
  isDir: boolean;
5
4
  name: string;
@@ -1,5 +1,4 @@
1
1
  import { Archive, StreamResult } from './types';
2
-
3
2
  interface OutputByType {
4
3
  base64: string;
5
4
  string: string;
@@ -1,5 +1,4 @@
1
1
  import { Archive } from './types';
2
-
3
2
  interface ArchiveReader {
4
3
  getFilesArray(): Promise<any[]>;
5
4
  /**
@@ -1,5 +1,4 @@
1
1
  import { Archive } from './types';
2
-
3
2
  /**
4
3
  * Useful to create archive from txt content
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { Archive } from './types';
2
-
3
2
  /**
4
3
  * @important
5
4
  * Make sure the urls are on the same origin or the cors header is set otherwise
@@ -1,5 +1,4 @@
1
1
  import { Archive } from './types';
2
-
3
2
  export declare const getArchiveOpfInfo: (archive: Archive) => {
4
3
  data: {
5
4
  dir: boolean;
@@ -1,5 +1,4 @@
1
1
  import { Archive } from '../archives/types';
2
-
3
2
  export declare const getSpineItemFilesFromArchive: ({ archive, }: {
4
3
  archive: Archive;
5
4
  }) => Promise<{
@@ -1,6 +1,5 @@
1
1
  import { Manifest } from '@prose-reader/shared';
2
2
  import { Archive } from '../../../archives/types';
3
-
4
3
  /**
5
4
  * Handle archive which contains ComicInfo.xml. This is a meta file
6
5
  * used to define cbz, etc. I believe it comes from some sites or apps.
@@ -1,6 +1,5 @@
1
1
  import { Manifest } from '@prose-reader/shared';
2
2
  import { Archive } from '../../../archives/types';
3
-
4
3
  export declare const defaultHook: ({ archive, baseUrl }: {
5
4
  archive: Archive;
6
5
  baseUrl: string;
@@ -1,7 +1,6 @@
1
1
  import { default as xmldoc } from 'xmldoc';
2
2
  import { Manifest } from '@prose-reader/shared';
3
3
  import { Archive } from '../../../archives/types';
4
-
5
4
  export declare const getItemsFromDoc: (doc: xmldoc.XmlDocument) => {
6
5
  href: string;
7
6
  id: string;
@@ -1,6 +1,5 @@
1
1
  import { Manifest } from '@prose-reader/shared';
2
2
  import { Archive } from '../../../archives/types';
3
-
4
3
  export declare const epubOptimizerHook: ({ archive }: {
5
4
  archive: Archive;
6
5
  baseUrl: string;
@@ -1,6 +1,5 @@
1
1
  import { Manifest } from '@prose-reader/shared';
2
2
  import { Archive } from '../../../archives/types';
3
-
4
3
  /**
5
4
  * In case no navigation was generated prior to this hook, we will try
6
5
  * to generate something based on the structure of the archive.
@@ -1,6 +1,5 @@
1
1
  import { Manifest } from '@prose-reader/shared';
2
2
  import { Archive } from '../../archives/types';
3
-
4
3
  export declare const generateManifestFromArchive: (archive: Archive, { baseUrl }?: {
5
4
  baseUrl?: string;
6
5
  }) => Promise<Manifest>;
@@ -1,6 +1,5 @@
1
1
  import { Archive } from '../../../archives/types';
2
2
  import { HookResource } from './types';
3
-
4
3
  export declare const calibreFixHook: ({ archive, resourcePath }: {
5
4
  archive: Archive;
6
5
  resourcePath: string;
@@ -1,6 +1,5 @@
1
1
  import { Archive } from '../../../archives/types';
2
2
  import { HookResource } from './types';
3
-
4
3
  export declare const cssFixHook: ({ archive, resourcePath }: {
5
4
  archive: Archive;
6
5
  resourcePath: string;
@@ -1,6 +1,5 @@
1
1
  import { Archive } from '../../../archives/types';
2
2
  import { HookResource } from './types';
3
-
4
3
  export declare const defaultHook: ({ archive, resourcePath }: {
5
4
  archive: Archive;
6
5
  resourcePath: string;
@@ -1,5 +1,4 @@
1
1
  import { Archive } from '../..';
2
-
3
2
  export declare const generateResourceFromArchive: (archive: Archive, resourcePath: string) => Promise<{
4
3
  body: string | Blob;
5
4
  params: {
@@ -1,5 +1,4 @@
1
1
  import { Archive } from '..';
2
-
3
2
  type KoboInformation = {
4
3
  renditionLayout?: `reflowable` | `pre-paginated` | undefined;
5
4
  };
@@ -1,6 +1,5 @@
1
1
  import { default as xmldoc } from 'xmldoc';
2
2
  import { Archive } from '..';
3
-
4
3
  export declare const parseToc: (opfXmlDoc: xmldoc.XmlDocument, archive: Archive, { baseUrl }: {
5
4
  baseUrl: string;
6
5
  }) => Promise<import('@prose-reader/shared').TocItem[] | undefined>;
@@ -1 +0,0 @@
1
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prose-reader/streamer",
3
- "version": "1.74.0",
3
+ "version": "1.76.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -24,13 +24,13 @@
24
24
  "test:watch": "vitest watch"
25
25
  },
26
26
  "dependencies": {
27
- "@prose-reader/shared": "^1.74.0"
27
+ "@prose-reader/shared": "^1.76.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "buffer": "^6.0.3",
31
31
  "xmldoc": "^1.1.2"
32
32
  },
33
- "gitHead": "339c36c0f3926b238e49702046b390b716bdd33d",
33
+ "gitHead": "da454cac961a817b57e53b32e78fac5f9064e104",
34
34
  "devDependencies": {
35
35
  "buffer": "^6.0.3",
36
36
  "xmldoc": "^1.2.0"