Fix type error in modifyNpmInfo.js

This commit is contained in:
Sander Declerck 2025-11-13 15:08:36 +01:00
parent 6ae93686b7
commit a9a4d76705
No known key found for this signature in database

View file

@ -81,7 +81,7 @@ export function modifyNpmInfoResponse(body) {
}
return Buffer.from(JSON.stringify(bodyJson));
} catch (err) {
} catch (/** @type {any} */ err) {
ui.writeVerbose(
`Safe-chain: Package metadata not in expected format - bypassing modification. Error: ${err.message}`
);