This commit is contained in:
2025-05-12 05:38:44 +09:00
parent dced21c3f8
commit 6d78bfa46e
8120 changed files with 1161564 additions and 0 deletions

View File

@ -0,0 +1,15 @@
"use strict";
/**
* Test if a plugin is listed
* @param { {List<PluginDependency}} deps
* @param {string} plugin
* @param {string} version
* @return {boolean}
*/
Object.defineProperty(exports, "__esModule", { value: true });
function hasPlugin(deps, pluginName, version) {
return !!deps.find((dep) => {
return dep.getName() === pluginName && (!version || dep.getVersion() === version);
});
}
exports.default = hasPlugin;