wiki-graph-sdk 0.9.1 → 0.9.2
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/archives.cjs +10 -7
- package/dist/archives.cjs.map +1 -1
- package/dist/archives.js +11 -8
- package/dist/archives.js.map +1 -1
- package/dist/index.cjs +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/archives.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
moveChapter,
|
|
34
34
|
packArchiveContext,
|
|
35
35
|
parseLocatedWikiGraphUri as parseLocatedWikiGraphUri2,
|
|
36
|
-
|
|
36
|
+
prepareArchivePage,
|
|
37
37
|
readSearchIndexCapabilityStatus,
|
|
38
38
|
rebuildArchiveSearchIndex,
|
|
39
39
|
removeChapter,
|
|
@@ -2836,13 +2836,16 @@ var WikiGraphArchiveHandle = class {
|
|
|
2836
2836
|
return await this.#runtime.run(
|
|
2837
2837
|
async () => await withConfiguredWikimediaResolver(
|
|
2838
2838
|
objectUri,
|
|
2839
|
-
async (wikimediaOptions) =>
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2839
|
+
async (wikimediaOptions) => {
|
|
2840
|
+
const read2 = await this.#readDocument(
|
|
2841
|
+
async (document) => await prepareArchivePage(document, objectUri, {
|
|
2842
|
+
...options,
|
|
2843
|
+
...wikimediaOptions
|
|
2844
|
+
}),
|
|
2845
|
+
options
|
|
2846
|
+
);
|
|
2847
|
+
return await read2();
|
|
2848
|
+
}
|
|
2846
2849
|
),
|
|
2847
2850
|
options.signal
|
|
2848
2851
|
);
|