use-plugin
Advanced tools
Comparing version 8.1.0 to 8.2.0
{ | ||
"name": "use-plugin", | ||
"version": "8.1.0", | ||
"version": "8.2.0", | ||
"description": "Generic plugin loader functionality for Node.js frameworks.", | ||
@@ -5,0 +5,0 @@ "main": "use.js", |
16
use.js
@@ -117,6 +117,10 @@ /* Copyright © 2014-2020 Richard Rodger and other contributors, MIT License. */ | ||
plugin_desc.init && | ||
Joi.isSchema(plugin_desc.init.defaults, { legacy: true }) | ||
(Joi.isSchema(plugin_desc.init.defaults, { legacy: true }) || | ||
'function' === typeof plugin_desc.init.defaults) | ||
) { | ||
defaults = plugin_desc.init.defaults | ||
} else if (Joi.isSchema(plugin_desc.defaults, { legacy: true })) { | ||
} else if ( | ||
Joi.isSchema(plugin_desc.defaults, { legacy: true }) || | ||
'function' === typeof plugin_desc.defaults | ||
) { | ||
defaults = plugin_desc.defaults | ||
@@ -131,10 +135,2 @@ } else { | ||
/* | ||
var defaults = Object.assign( | ||
{}, | ||
plugin_desc.defaults, | ||
plugin_desc.init && plugin_desc.init.defaults | ||
) | ||
*/ | ||
plugin_desc.defaults = defaults | ||
@@ -141,0 +137,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24196
438