@platforma-sdk/block-tools 2.7.22 → 2.7.24

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.
@@ -112,7 +112,9 @@ export class RegistryV2Reader {
112
112
  private listCacheTimestamp: number = 0;
113
113
  private listCache: BlockPackOverviewNoRegistryId[] | undefined = undefined;
114
114
 
115
- public async listBlockPacks(): Promise<BlockPackOverviewNoRegistryId[]> {
115
+ public async listBlockPacks(options?: {
116
+ signal?: AbortSignal;
117
+ }): Promise<BlockPackOverviewNoRegistryId[]> {
116
118
  if (
117
119
  this.listCache !== undefined &&
118
120
  Date.now() - this.listCacheTimestamp <= this.ops.cacheBlockListFor
@@ -123,7 +125,11 @@ export class RegistryV2Reader {
123
125
  // const rootContentReader = this.v2RootFolderReader.getContentReader();
124
126
  const globalOverview = GlobalOverviewReg.parse(
125
127
  JSON.parse(
126
- Buffer.from(await this.v2RootFolderReader.readFile(GlobalOverviewFileName)).toString(),
128
+ Buffer.from(
129
+ await this.v2RootFolderReader.readFile(GlobalOverviewFileName, {
130
+ signal: options?.signal,
131
+ }),
132
+ ).toString(),
127
133
  ),
128
134
  );
129
135