Description

Repository type handlers for the PluginLoader.

TODO documentation

Details

Methods


<inner> proxify( url, proxy )

Passes the URL through a CORS proxy.

Description

Passes the URL through a CORS proxy.

Parameters
Name Type Description
url string

URL

proxy boolean

Convenience param, whether to proxy the URL.


<static> plain( proxy, suffix, url, pluginName ) → {string}

Plain repository handler.

Description

Plain repository handler.

Parameters
Name Type Description
proxy boolean

Whether to put the request through a CORS proxy.

suffix string

File name suffix, defaults to .js.

url string

Base repository URL.

pluginName string

Plugin name.

Returns

Plugin URL.

Details

<static> github( repository, version, path, suffix, pluginName ) → {string}

GitHub repository handler.

Description

GitHub repository handler.

Parameters
Name Type Description
repository string

GitHub repository, e.g. XHerna/fm-publicbot.

version string

Repository release, commit, or branch, defaults to master.

path string

Path within the repository, defaults to src.

suffix string

File name suffix, defaults to .js.

pluginName string

Plugin name.

Returns

Plugin URL.

Details