Fix more documentation issues

This commit is contained in:
Reinier Criel 2025-11-03 10:53:35 -08:00
parent f7e08bbea8
commit 86f82d6065
3 changed files with 4 additions and 0 deletions

View file

@ -49,6 +49,7 @@ let cachedPath = null;
* - Includes Safe Chain CA (for MITM of known registries)
* - Includes Mozilla roots via npm `certifi` (public HTTPS)
* - Includes Node's built-in root certificates as a portable fallback
* @returns {string} Path to the combined CA bundle PEM file
*/
export function getCombinedCaBundlePath() {
if (cachedPath && fs.existsSync(cachedPath)) return cachedPath;

View file

@ -35,6 +35,7 @@ export function parsePackageFromUrl(url) {
/**
* @param {string} url
* @param {string} registry
* @returns {{packageName: string | undefined, version: string | undefined}}
*/
function parseJsPackageFromUrl(url, registry) {
let packageName, version;
@ -78,6 +79,7 @@ function parseJsPackageFromUrl(url, registry) {
/**
* @param {string} url
* @param {string} registry
* @returns {{packageName: string | undefined, version: string | undefined}}
*/
function parsePipPackageFromUrl(url, registry) {
let packageName, version