docs(installer): update JSDoc to mention HTTP support in cloneRepo

Add HTTP to the cloneRepo method's JSDoc param description.
Also fixes minor spacing in empty arrow functions (formatting).
This commit is contained in:
关惠民 2026-04-27 16:04:58 +08:00
parent e597645d3b
commit 5425449302
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class CustomModuleManager {
/** /**
* Clone a custom module repository to cache. * Clone a custom module repository to cache.
* Supports any Git host (GitHub, GitLab, Bitbucket, self-hosted, etc.). * Supports any Git host (GitHub, GitLab, Bitbucket, self-hosted, etc.).
* @param {string} sourceInput - Git URL (HTTPS or SSH) * `@param` {string} sourceInput - Git URL (HTTPS, HTTP, or SSH)
* @param {Object} [options] - Clone options * @param {Object} [options] - Clone options
* @param {boolean} [options.silent] - Suppress spinner output * @param {boolean} [options.silent] - Suppress spinner output
* @param {boolean} [options.skipInstall] - Skip npm install (for browsing before user confirms) * @param {boolean} [options.skipInstall] - Skip npm install (for browsing before user confirms)
@ -336,7 +336,7 @@ class CustomModuleManager {
const createSpinner = async () => { const createSpinner = async () => {
if (silent) { if (silent) {
return { start() {}, stop() {}, error() {} }; return { start() { }, stop() { }, error() { } };
} }
return await prompts.spinner(); return await prompts.spinner();
}; };