Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Mar 8, 2024
1 parent e32483b commit 1d4c15f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/dtslint/src/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ export async function checkNpmVersionAndGetMatchingImplementationPackage(
const typesPackageVersion = `${packageJson.libraryMajorVersion}.${packageJson.libraryMinorVersion}`;
let packageId;
try {
packageId = await retryNon404Errors(
() => attw.resolveImplementationPackageForTypesPackage(packageJson.name, `${typesPackageVersion}.9999`, {
packageId = await retryNon404Errors(() =>
attw.resolveImplementationPackageForTypesPackage(packageJson.name, `${typesPackageVersion}.9999`, {
allowDeprecated: true,
}),
);
Expand Down Expand Up @@ -331,8 +331,10 @@ async function retryNon404Errors<T>(action: () => Promise<T>): Promise<T | undef
}
}
}
throw new Error(`Skipping attw due to unexpected error fetching implementation package in multiple attempts. Last error: ${lastError?.stack ?? lastError?.message}`);

throw new Error(
`Skipping attw due to unexpected error fetching implementation package in multiple attempts. Last error: ${lastError?.stack ?? lastError?.message}`,
);

function delay(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms));
}
Expand Down

0 comments on commit 1d4c15f

Please sign in to comment.