wp-epub-gen 0.3.0 → 0.4.1
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/.vscode/settings.json +26 -0
- package/build/{index.mjs → index.cjs} +590 -348
- package/build/index.d.ts +13 -3
- package/build/index.js +573 -369
- package/build/logger.d.ts +40 -0
- package/build/parseContent.test.d.ts +1 -0
- package/build/templates.d.ts +1 -1
- package/build/types.d.ts +9 -0
- package/eslint.config.js +33 -0
- package/package.json +21 -6
- package/templates/epub3/toc.xhtml.ejs +1 -1
- package/vite.config.ts +8 -4
- package/vitest.config.ts +7 -1
- package/.eslintrc.js +0 -24
- package/.mocharc.json +0 -3
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { IEpubGenOptions, IOut } from './types';
|
|
2
|
-
export declare function epubGen(options: IEpubGenOptions,
|
|
1
|
+
import { IEpubGenOptions, IGenConfigs, IOut } from './types';
|
|
2
|
+
export declare function epubGen(options: IEpubGenOptions, configs?: IGenConfigs): Promise<IOut>;
|
|
3
3
|
export declare const gen: typeof epubGen;
|
|
4
4
|
export { errors } from './errors';
|
|
5
|
-
|
|
5
|
+
declare const _default: {
|
|
6
|
+
epubGen: typeof epubGen;
|
|
7
|
+
gen: typeof epubGen;
|
|
8
|
+
errors: {
|
|
9
|
+
no_output_path: string;
|
|
10
|
+
no_title: string;
|
|
11
|
+
no_content: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
export type { IChapter, IChapterData, IEpubData, IEpubGenOptions, IEpubImage, IOut } from './types';
|