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

menhera

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

menhera - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

119

dist/plugins.js

@@ -15,38 +15,5 @@ "use strict";

_.hooks._hooks = [function (_ref2) {
var key = _ref2.key,
val = _ref2.val,
var _key = _ref2._key,
_val = _ref2._val,
cp = _ref2.cp;
if (val) {
if (!_.hooks[key]) {
_.hooks[key] = [];
}
_.hooks[key].push(val);
}
}];
}
};
};
var v1 = exports.v1 = function v1(_ref3) {
var _ = _ref3._;
return {
name: "v1",
_hooks: {
_methods: function _methods(_ref4) {
var key = _ref4.key,
val = _ref4.val,
cp = _ref4.cp;
if (!cp[key]) {
cp[key] = val;
} else {
console.warn(cp.name + " : \"" + key + "\" in methods is valid, Please use another one");
}
},
_data: function _data(_ref5) {
var _val = _ref5._val,
cp = _ref5.cp;
var props = _val();
var _iteratorNormalCompletion = true;

@@ -57,14 +24,15 @@ var _didIteratorError = false;

try {
for (var _iterator = Object.entries(props)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _ref6 = _step.value;
for (var _iterator = Object.entries(_val())[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _ref3 = _step.value;
var _ref7 = _slicedToArray(_ref6, 2);
var _ref4 = _slicedToArray(_ref3, 2);
var key = _ref7[0];
var val = _ref7[1];
var key = _ref4[0];
var val = _ref4[1];
if (!cp[key]) {
cp[key] = val;
} else {
console.warn(cp.name + " : \"" + key + " \" is data is valid, Please use another one");
if (val) {
if (!_.hooks[key]) {
_.hooks[key] = [];
}
_.hooks[key].push(val.bind(cp));
}

@@ -86,5 +54,66 @@ }

}
}
}];
}
};
};
var v1 = exports.v1 = function v1(_ref5) {
var _ = _ref5._;
return {
name: "v1",
_hooks: function _hooks() {
return {
_methods: function _methods(_ref6) {
var key = _ref6.key,
val = _ref6.val,
cp = _ref6.cp;
if (!cp[key]) {
cp[key] = val;
} else {
console.warn(cp.name + " : \"" + key + "\" in methods is valid, Please use another one");
}
},
_data: function _data(_ref7) {
var _val = _ref7._val,
cp = _ref7.cp;
var props = _val();
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = Object.entries(props)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var _ref8 = _step2.value;
var _ref9 = _slicedToArray(_ref8, 2);
var key = _ref9[0];
var val = _ref9[1];
if (!cp[key]) {
cp[key] = val;
} else {
console.warn(cp.name + " : \"" + key + " \" is data is valid, Please use another one");
}
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2.return) {
_iterator2.return();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}
}
};
}
};
};
{
"name": "menhera",
"version": "0.3.2",
"version": "0.3.3",
"main": "dist",

@@ -5,0 +5,0 @@ "files": [

@@ -33,10 +33,12 @@ # Menhera

},
_hooks: {
onCli({ key, val, cp }) {
const { exec } = val;
this.structs[key] = val;
if (exec) {
this.Event.on(key, exec.bind(cp));
_hooks() {
return {
onCli({ key, val, cp }) {
const { exec } = val;
this.structs[key] = val;
if (exec) {
this.Event.on(key, exec.bind(cp));
}
}
}
};
}

@@ -43,0 +45,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