Skip to content

Commit dc94f1d

Browse files
committed
docs: document the CDN manifest read helper
1 parent ec62c16 commit dc94f1d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/release/cdn-consistency.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ export function classifyCdnVersion(cdnVersion, npmLatest) {
4646
return diff > 0 ? 'ahead' : 'behind';
4747
}
4848

49+
/**
50+
* Read the version the CDN manifest currently advertises.
51+
*
52+
* Throws on transport, status and parse failures alike; the caller treats all
53+
* three the same way, so they are deliberately not distinguished here.
54+
*/
4955
async function readCdnVersion(fetchImpl, url) {
5056
const response = await fetchImpl(url);
5157
if (!response.ok) throw new Error(`HTTP ${response.status}`);

0 commit comments

Comments
 (0)