Class: BaseThunderstoreService

(abstract) BaseThunderstoreService()

Services which query Thunderstore endpoints should extend BaseThunderstoreService

Constructor

(abstract) new BaseThunderstoreService()

Source:

Methods

(async) fetchPackageMetrics(pkg) → {Promise.<object>}

Fetches package metrics from the Thunderstore API.

Parameters:
Name Type Description
pkg object

Package specifier

Properties
Name Type Description
namespace string

the package namespace

packageName string

the package name

Source:
Returns:
  • Promise containing validated package metrics
Type
Promise.<object>