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.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  moveChapter,
34
34
  packArchiveContext,
35
35
  parseLocatedWikiGraphUri as parseLocatedWikiGraphUri2,
36
- readArchivePage,
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) => await this.#readDocument(
2840
- async (document) => await readArchivePage(document, objectUri, {
2841
- ...options,
2842
- ...wikimediaOptions
2843
- }),
2844
- options
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
  );