Socket
Socket
Sign inDemoInstall

base-option

Package Overview
Dependencies
41
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.8.1

4

index.js

@@ -12,5 +12,5 @@ /*!

module.exports = function(options, types) {
module.exports = function(options) {
return function fn(app) {
if (!utils.isValid(app, types)) return;
if (!utils.isValid(app)) return;

@@ -17,0 +17,0 @@ var Options = utils.Options;

{
"name": "base-option",
"description": "Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.",
"version": "0.8.0",
"version": "0.8.1",
"homepage": "https://github.com/node-base/base-option",

@@ -27,3 +27,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"is-registered": "^0.1.4",
"is-valid-instance": "^0.1.0",
"isobject": "^2.1.0",
"lazy-cache": "^2.0.1",

@@ -30,0 +30,0 @@ "mixin-deep": "^1.1.3",

@@ -14,3 +14,3 @@ 'use strict';

require('is-registered');
require('is-valid-instance');
require('isobject', 'isObject');
require('mixin-deep', 'merge');

@@ -25,6 +25,11 @@ require('option-cache', 'Options');

utils.isValid = function(app, types) {
if (!utils.isValidInstance(app, types || ['app', 'views', 'collection', 'list'])) {
utils.isValid = function(app) {
if (!utils.isObject(app)) {
return false;
}
if (typeof app.get !== 'function' && typeof app.set !== 'function') {
return false;
}
if (utils.isRegistered(app, 'base-option')) {

@@ -31,0 +36,0 @@ return false;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc