Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-plugin

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-plugin - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

2

package.json
{
"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",

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc