SetupConfiguration

SetupConfiguration

A library of package management commands which are used by various interfaces around the software.

Constructor

new SetupConfiguration()

Source:

Members

(static) setupURL

Source:

A reference to the setup URL used under the current route prefix, if any

Methods

(async, static) checkPackage(type, name, manifest) → {Promise.<Object>}

Source:

Check with the server whether a package of a certain type is able to be installed or updated.

Parameters:
Name Type Description
type string

The package type to check

name string

The package name to check

manifest string

The manifest URL to check

Returns:

The return manifest

Type
Promise.<Object>

(async, static) getPackages(type) → {Promise.<Array.<Object>>}

Source:

Get an Array of available packages of a given type which may be installed

Parameters:
Name Type Description
type string
Returns:
Type
Promise.<Array.<Object>>

(static) getPackageScopes() → {Array.<string>}

Source:

Return the named scopes which can exist for packages. Scopes are returned in the prioritization order that their content is loaded.

Returns:

An array of string package scopes

Type
Array.<string>