fix
This commit is contained in:
15
book/node_modules/honkit/lib/modifiers/config/hasPlugin.js
generated
vendored
Normal file
15
book/node_modules/honkit/lib/modifiers/config/hasPlugin.js
generated
vendored
Normal 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;
|
Reference in New Issue
Block a user