@epubook/core 0.0.12-beta.1 → 0.0.12-beta.4
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.d.mts +2 -4
- package/dist/index.mjs +3 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as _$_epubook_xml0 from "@epubook/xml";
|
|
2
1
|
import { XHTMLMeta } from "@epubook/xml";
|
|
3
|
-
|
|
4
2
|
//#region src/utils/types.d.ts
|
|
5
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
3
|
+
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
6
4
|
//#endregion
|
|
7
5
|
//#region src/constant.d.ts
|
|
8
6
|
declare const MIMETYPE = "application/epub+zip";
|
|
@@ -141,7 +139,7 @@ declare class Navigation extends Resource {
|
|
|
141
139
|
update(nav: NavList, options?: Partial<NavOption>): this;
|
|
142
140
|
generate(): {
|
|
143
141
|
filename: string;
|
|
144
|
-
meta:
|
|
142
|
+
meta: import("@epubook/xml").XHTMLMeta;
|
|
145
143
|
content: string;
|
|
146
144
|
};
|
|
147
145
|
bundle(): Promise<Uint8Array>;
|
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,7 @@ const defu = createDefu((obj, key, value) => {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/epub/spine.ts
|
|
15
15
|
var Spine = class {
|
|
16
|
+
rendition;
|
|
16
17
|
_itemrefs = [];
|
|
17
18
|
constructor(rendition) {
|
|
18
19
|
this.rendition = rendition;
|
|
@@ -45,6 +46,7 @@ var Spine = class {
|
|
|
45
46
|
//#endregion
|
|
46
47
|
//#region src/epub/manifest.ts
|
|
47
48
|
var Manifest = class Manifest {
|
|
49
|
+
rendition;
|
|
48
50
|
_resources = [];
|
|
49
51
|
constructor(rendition) {
|
|
50
52
|
this.rendition = rendition;
|
|
@@ -343,7 +345,7 @@ var Image = class extends Resource {
|
|
|
343
345
|
return this;
|
|
344
346
|
}
|
|
345
347
|
async bundle() {
|
|
346
|
-
if (!this._data) return new Uint8Array(0);
|
|
348
|
+
if (!this._data) return /* @__PURE__ */ new Uint8Array(0);
|
|
347
349
|
return this._data;
|
|
348
350
|
}
|
|
349
351
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epubook/core",
|
|
3
|
-
"version": "0.0.12-beta.
|
|
3
|
+
"version": "0.0.12-beta.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ebook",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
35
|
+
"@epubook/xml": "0.0.12-beta.4",
|
|
36
|
+
"defu": "^6.1.7",
|
|
37
|
+
"fast-xml-parser": "^5.7.2",
|
|
38
|
+
"fflate": "^0.8.3",
|
|
39
|
+
"pathe": "^2.0.3"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=v20.10.0"
|