Adapt doc

This commit is contained in:
Reinier Criel 2026-03-19 16:07:31 -07:00
parent 2f4268f1af
commit 07e315a382
5 changed files with 18 additions and 8 deletions

View file

@ -85,7 +85,7 @@ export async function main(args) {
ui.writeInformation(
`${chalk.yellow(
"",
)} Safe-chain: Some package versions were suppressed due to minimum age requirement.`,
)} Safe-chain: Some package versions were suppressed during package metadata resolution due to minimum package age.`,
);
ui.writeInformation(
` To disable this check, use: ${chalk.cyan(

View file

@ -232,7 +232,7 @@ function verifyNoMinimumAgeBlockedRequests() {
ui.writeInformation(
`Safe-chain: ${chalk.bold(
`blocked ${state.blockedMinimumAgeRequests.length} package downloads due to minimum age`
`blocked ${state.blockedMinimumAgeRequests.length} direct package download request(s) due to minimum package age`
)}:`
);
@ -248,7 +248,7 @@ function verifyNoMinimumAgeBlockedRequests() {
ui.emptyLine();
ui.writeError(
"Safe-chain: Exiting without installing packages blocked by minimum age."
"Safe-chain: Exiting without installing packages blocked by the direct download minimum package age check."
);
ui.emptyLine();

View file

@ -51,7 +51,7 @@ export async function openNewPackagesDatabase() {
} catch (/** @type {any} */ error) {
if (!hasWarnedAboutUnavailableNewPackagesDatabase) {
ui.writeWarning(
`Failed to load the new packages list. Continuing without tarball minimum age fallback. ${error.message}`
`Failed to load the new packages list used for direct package download request blocking. Continuing with metadata-based minimum age checks only. ${error.message}`
);
hasWarnedAboutUnavailableNewPackagesDatabase = true;
}
@ -112,14 +112,14 @@ async function getNewPackagesList() {
return newPackagesList;
} else {
ui.writeWarning(
"The new packages list was downloaded, but could not be cached due to a missing version."
"The new packages list for direct package download request blocking was downloaded, but could not be cached due to a missing version."
);
return newPackagesList;
}
} catch (/** @type {any} */ error) {
if (cachedList) {
ui.writeWarning(
"Failed to fetch the latest new packages list. Using cached version."
"Failed to fetch the latest new packages list for direct package download request blocking. Using cached version."
);
return cachedList;
}

View file

@ -243,7 +243,7 @@ describe("newPackagesDatabase", async () => {
assert.strictEqual(writeWarningCalls.length, 1);
assert.ok(
writeWarningCalls[0].includes(
"Continuing without tarball minimum age fallback"
"Continuing with metadata-based minimum age checks only"
)
);
});