Skip to content

core/fetcher ​

Interfaces ​

FetchResult ​

Defined in: venpm/src/core/fetcher.ts:11

Properties ​

git_ref? ​
ts
optional git_ref?: string;

Defined in: venpm/src/core/fetcher.ts:14

Git commit hash (only set when method === "git")

method ​
ts
method: FetchMethod;

Defined in: venpm/src/core/fetcher.ts:12

path? ​
ts
optional path?: string;

Defined in: venpm/src/core/fetcher.ts:16

Subdirectory path within the plugin dir (carried through from source)

Functions ​

fetchPlugin() ​

ts
function fetchPlugin(
   entry, 
   userpluginDir, 
ctx): Promise<FetchResult>;

Defined in: venpm/src/core/fetcher.ts:128

Parameters ​

ParameterType
entryInstallPlanEntry
userpluginDirstring
ctx{ fs: FileSystem; git: GitClient; http: HttpClient; }
ctx.fsFileSystem
ctx.gitGitClient
ctx.httpHttpClient

Returns ​

Promise<FetchResult>


fetchViaGit() ​

ts
function fetchViaGit(
   git, 
   fs, 
   gitUrl, 
   dest, 
options?): Promise<FetchResult>;

Defined in: venpm/src/core/fetcher.ts:21

Parameters ​

ParameterType
gitGitClient
fsFileSystem
gitUrlstring
deststring
options{ path?: string; tag?: string; }
options.path?string
options.tag?string

Returns ​

Promise<FetchResult>


fetchViaLocal() ​

ts
function fetchViaLocal(
   fs, 
   localPath, 
dest): Promise<FetchResult>;

Defined in: venpm/src/core/fetcher.ts:97

Parameters ​

ParameterType
fsFileSystem
localPathstring
deststring

Returns ​

Promise<FetchResult>


fetchViaTarball() ​

ts
function fetchViaTarball(
   http, 
   fs, 
   tarballUrl, 
dest): Promise<FetchResult>;

Defined in: venpm/src/core/fetcher.ts:67

Parameters ​

ParameterType
httpHttpClient
fsFileSystem
tarballUrlstring
deststring

Returns ​

Promise<FetchResult>

Disclaimer — Not affiliated with Discord Inc. or Vencord. Client mods are against Discord's ToS. Use at your own risk.