MCPcopy
hub / github.com/vercel/hyper / getPluginVersions

Function getPluginVersions

app/plugins.ts:147–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147function getPluginVersions() {
148 const paths_ = paths.plugins.concat(paths.localPlugins);
149 return paths_.map((path_) => {
150 let version: string | null = null;
151 try {
152 // eslint-disable-next-line @typescript-eslint/no-var-requires
153 version = require(resolve(path_, 'package.json')).version;
154 //eslint-disable-next-line no-empty
155 } catch (err) {}
156 return [basename(path_), version];
157 });
158}
159
160function clearCache() {
161 // trigger unload hooks

Callers 1

updatePluginsFunction · 0.85

Calls 2

resolveFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected