@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.
- package/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{config-BQmQyP3s.mjs → config-C-EJTl6j.mjs} +13 -10
- package/dist/{config-BQmQyP3s.mjs.map → config-C-EJTl6j.mjs.map} +1 -1
- package/dist/{config-9u25nZDR.js → config-CZwHml_R.js} +3 -3
- package/dist/{config-9u25nZDR.js.map → config-CZwHml_R.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/io/folder_reader.d.ts +4 -1
- package/dist/v2/model/block_components.d.ts +57 -57
- package/dist/v2/model/block_description.d.ts +850 -850
- package/dist/v2/model/block_meta.d.ts +66 -66
- package/dist/v2/registry/registry_reader.d.ts +3 -1
- package/package.json +6 -6
- package/src/io/folder_reader.ts +7 -4
- package/src/v2/registry/registry_reader.ts +8 -2
|
@@ -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(
|
|
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(
|
|
128
|
+
Buffer.from(
|
|
129
|
+
await this.v2RootFolderReader.readFile(GlobalOverviewFileName, {
|
|
130
|
+
signal: options?.signal,
|
|
131
|
+
}),
|
|
132
|
+
).toString(),
|
|
127
133
|
),
|
|
128
134
|
);
|
|
129
135
|
|