@architect/inventory 4.0.8 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -79,6 +79,10 @@ module.exports = async function getPluginModules ({ arc, inventory, errors }) {
|
|
|
79
79
|
if (type === 'macro') {
|
|
80
80
|
plugins[name] = { deploy: { start: require(pluginPath) } }
|
|
81
81
|
}
|
|
82
|
+
// Check the plugin has at least one recognised method configured
|
|
83
|
+
if (![ 'set', ...pluginMethods ].some((method) => plugins[name][method])) {
|
|
84
|
+
errors.push(`No recognized methods for plugin: ${name}`)
|
|
85
|
+
}
|
|
82
86
|
// Walk each plugin and build the method tree
|
|
83
87
|
Object.entries(plugins[name]).forEach(([ method, item ]) => {
|
|
84
88
|
// Primitive setters
|