New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

easy-extender

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-extender - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

45

index.js

@@ -54,2 +54,3 @@ var _ = require("lodash");

this.get(plugin).apply(null, [pluginOptions].concat(args));
this.enablePlugin(plugin);

@@ -107,3 +108,3 @@ }, this);

}
var name = _.isUndefined(module["plugin:name"]) ? _.uniqueId() : module["plugin:name"];

@@ -118,2 +119,4 @@

}
this.disablePlugin(name);

@@ -124,3 +127,43 @@ return this;

/**
*
* @param name
*/
EasyExtender.prototype.getPlugin = function (module) {
if (_.isString(module)) {
module = this.plugins[module];
}
if (!module) {
return false;
}
return module;
};
/**
*
* @param name
*/
EasyExtender.prototype.disablePlugin = function (module) {
module = this.getPlugin(module);
module._enabled = false;
return module;
};
/**
* @param name
*/
EasyExtender.prototype.enablePlugin = function (module) {
module = this.getPlugin(module);
module._enabled = true;
return module;
};
/**
* @param name
* @returns {*}

@@ -127,0 +170,0 @@ */

2

package.json
{
"name": "easy-extender",
"description": "plugin/hooks interface",
"version": "2.0.0",
"version": "2.1.0",
"homepage": "https://github.com/shakyshane/easy-extender",

@@ -6,0 +6,0 @@ "author": {

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