book-index-ui 0.2.12 → 0.2.13
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.cjs +3 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +757 -760
- package/dist/{storage-entry-sPrgfaS5.cjs → storage-entry-QB1IoDUU.cjs} +1 -1
- package/dist/{storage-entry-CWocbrbM.js → storage-entry-UQLfmeLb.js} +250 -221
- package/dist/storage.cjs +1 -1
- package/dist/storage.d.ts +4 -0
- package/dist/storage.js +1 -1
- package/package.json +1 -1
package/dist/storage.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./storage-entry-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./storage-entry-QB1IoDUU.cjs");exports.BidLink=r.BidLink;exports.BookIndexError=r.BookIndexError;exports.BookIndexManager=r.BookIndexManager;exports.BookIndexStorage=r.BookIndexStorage;exports.BundleStorage=r.BundleStorage;exports.ConfigError=r.ConfigError;exports.GithubStorage=r.GithubStorage;exports.IdGenerationError=r.IdGenerationError;exports.IdGenerator=r.IdGenerator;exports.LocalStorage=r.LocalStorage;exports.MigrationError=r.MigrationError;exports.StorageError=r.StorageError;exports.extractIdFromUrl=r.extractIdFromUrl;exports.validateResource=r.validateResource;
|
package/dist/storage.d.ts
CHANGED
|
@@ -264,6 +264,10 @@ export declare class BundleStorage implements IndexStorage {
|
|
|
264
264
|
search(query: string, type: IndexType, options: LoadOptions): Promise<PageResult<IndexEntry>>;
|
|
265
265
|
searchAll(query: string, limit?: number): Promise<GroupedSearchResult>;
|
|
266
266
|
getItem(id: string): Promise<Record<string, unknown> | null>;
|
|
267
|
+
/**
|
|
268
|
+
* 优先用 chunk 构造 IndexEntry,避免触发 ensureLoaded() 拉全量 index.json。
|
|
269
|
+
* 旧 bundle 没有把 has_collated 等字段注入 chunk 时回退到 ensureLoaded。
|
|
270
|
+
*/
|
|
267
271
|
getEntry(id: string): Promise<IndexEntry | null>;
|
|
268
272
|
getAllEntries(): Promise<IndexEntry[]>;
|
|
269
273
|
saveItem(): Promise<{
|
package/dist/storage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as o, b as e, c as s, d as t, f as n, C as d, G as g, I as i, g as I, L as B, M as S, S as x, o as E, v as c } from "./storage-entry-
|
|
1
|
+
import { B as o, b as e, c as s, d as t, f as n, C as d, G as g, I as i, g as I, L as B, M as S, S as x, o as E, v as c } from "./storage-entry-UQLfmeLb.js";
|
|
2
2
|
export {
|
|
3
3
|
o as BidLink,
|
|
4
4
|
e as BookIndexError,
|