Staticdependencies{} The module.
Optionaltracked: { [_: string]: string[] }A dependency graph.
StaticdependencyParses a dependency string into its components.
The dependency is a string of the format 'module-name' or 'module-name@version'.
See documentation for Plugin.versionParse for a description of the format.
This function can also handle dependencies that are already resolved (e.g. a module object).
{string} The dependency of the format 'module-name' or 'module-name@version'.
The dependency parsed into its components.
StaticisReturns true if plugin.for is applicable to module by comparing against module.name and module.version.
If plugin.for is not specified then it is assumed to be applicable.
The value of plugin.for is a string of the format 'module-name' or 'module-name@version'.
true if plugin.for is applicable to module, otherwise false.
StaticisStaticregisterStaticresolveStatictoStaticuseInstalls the plugins by calling plugin.install on each plugin specified in plugins if passed, otherwise module.uses.
For installing plugins on Matter see the convenience function Matter.use.
Plugins may be specified either by their name or a reference to the plugin object.
Plugins themselves may specify further dependencies, but each plugin is installed only once.
Order is important, a topological sort is performed to find the best resulting order of installation.
This sorting attempts to satisfy every dependency's requested ordering, but may not be exact in all cases.
This function logs the resulting status of each dependency in the console, along with any warnings.
StaticversionParses a version string into its components.
Versions are strictly of the format x.y.z (as in semver).
Versions may optionally have a prerelease tag in the format x.y.z-alpha.
Ranges are a strict subset of npm ranges.
Only the following range types are supported:
~1.2.3^1.2.31.2.3*{string} The version string.
The version range parsed into its components.
StaticversionReturns true if version satisfies the given range.
See documentation for Plugin.versionParse for a description of the format.
If a version or range is not specified, then any version (*) is assumed to satisfy.
{string} The version string.
{string} The range string.
true if version satisfies range, otherwise false.
Recursively finds all of a module's dependencies and returns a flat dependency graph.