Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Sep 18, 2024
1 parent 6a7fc61 commit 84699ab
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions packages/publisher/src/publish-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,21 +235,14 @@ interface Registry {
async function generateRegistry(typings: readonly TypingsData[]): Promise<Registry> {
return {
entries: Object.fromEntries(
await nAtATime(
10,
typings,
async (typing) => {
const tags = await retry(
async () => (await pacote.packument(typing.name, { cache: cacheDir }))["dist-tags"],
/*count*/ 2,
/*delaySeconds*/ 5,
);
return [
typing.typesDirectoryName,
filterTags(tags),
];
},
),
await nAtATime(10, typings, async (typing) => {
const tags = await retry(
async () => (await pacote.packument(typing.name, { cache: cacheDir }))["dist-tags"],
/*count*/ 2,
/*delaySeconds*/ 5,
);
return [typing.typesDirectoryName, filterTags(tags)];
}),
),
};

Expand Down

0 comments on commit 84699ab

Please sign in to comment.