Class: Licenses#

@jupyterlite/licenses.Licenses

A JupyterLite implementation of the jupyterlab_server licenses route

Implements#

Constructors#

constructor#

new Licenses()

Accessors#

appLicensesUrl#

Protected get appLicensesUrl(): string

Get the well-known URL of the app licenses.

Returns#

string

Defined in#

packages/licenses/src/licenses.ts:47

appName#

Protected get appName(): string

Get the app name (or default).

Returns#

string

Defined in#

packages/licenses/src/licenses.ts:40

labExtensionsUrl#

Protected get labExtensionsUrl(): string

Get the lab extension base url.

Returns#

string

Defined in#

packages/licenses/src/licenses.ts:54

Methods#

_getAppLicenses#

_getAppLicenses(): Promise<ILicenseBundle>

Resolve the licenses for the app distribution itself, or the empty bundle.

Returns#

Promise<ILicenseBundle>

Defined in#

packages/licenses/src/licenses.ts:61

_getFederated#

_getFederated(): Promise<ILicenseBundles>

Resolve the licenses for all federated extensions.

Returns#

Promise<ILicenseBundles>

Defined in#

packages/licenses/src/licenses.ts:77

_getOneFederated#

_getOneFederated(ext, bundles): Promise<void>

Update the bundles with the extension’s licenses, or the empty bundle.

Parameters#

Name

Type

ext

IFederatedExtension

bundles

ILicenseBundles

Returns#

Promise<void>

Defined in#

packages/licenses/src/licenses.ts:105

get#

get(): Promise<ILicenseResponse>

A GET handler for the licenses

Returns#

Promise<ILicenseResponse>

Implementation of#

ILicenses.get

Defined in#

packages/licenses/src/licenses.ts:28