New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4.6 to 0.4.7

2

dist/menhera.js

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

_.components = {};
_.cps = {};
_.hooks = {};

@@ -17,0 +17,0 @@ _.hooks._hooks = [_plugins._hooks];

@@ -72,4 +72,2 @@ "use strict";

cp = _ref5.cp;
var _$config$lifeCycle = _.config.lifeCycle,
lifeCycle = _$config$lifeCycle === undefined ? [] : _$config$lifeCycle;
var _iteratorNormalCompletion2 = true;

@@ -86,5 +84,5 @@ var _didIteratorError2 = false;

var key = _ref7[0];
var components = _ref7[1];
var cps = _ref7[1];
components.forEach(function () {
cps.forEach(function () {
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(component) {

@@ -99,18 +97,10 @@ var cp, name;

_.components[name] = cp;
_.cps[name] = cp;
lifeCycle.forEach(function (key) {
if (key.startsWith("_")) {
cp[key] && cp[key]();
}
});
_context.next = 6;
_context.next = 5;
return Object.keys(cp).forEach(function (_key) {
if (_key.startsWith("_")) {
(0, _utils.bindHook)({ _: _, _key: _key, cp: cp });
}
(0, _utils.bindHook)({ _: _, _key: _key, cp: cp });
});
case 6:
case 5:
case "end":

@@ -144,3 +134,3 @@ return _context.stop();

var initConfig = { lifeCycle: ["_awake", "awake"] };
var initConfig = { lifeCycle: ["awake", "start"] };
var _config = exports._config = function _config(_ref9) {

@@ -163,9 +153,9 @@ var _ = _ref9._,

cp = _ref10.cp;
var run = _val.run;
var start = _val.start;
if (run) {
var _$config$lifeCycle2 = _.config.lifeCycle,
lifeCycle = _$config$lifeCycle2 === undefined ? [] : _$config$lifeCycle2;
if (start) {
var _$config$lifeCycle = _.config.lifeCycle,
lifeCycle = _$config$lifeCycle === undefined ? [] : _$config$lifeCycle;
Object.values(_.components).forEach(function () {
Object.values(_.cps).forEach(function () {
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(cp) {

@@ -177,17 +167,7 @@ return regeneratorRuntime.wrap(function _callee2$(_context2) {

_context2.next = 2;
return Object.keys(cp).forEach(function (_key) {
if (!_key.startsWith("_")) {
(0, _utils.bindHook)({ _: _, _key: _key, cp: cp });
}
return lifeCycle.forEach(function (key) {
cp[key] && cp[key]();
});
case 2:
lifeCycle.forEach(function (key) {
if (!key.startsWith("_")) {
cp[key] && cp[key]();
}
});
case 3:
case "end":

@@ -194,0 +174,0 @@ return _context2.stop();

{
"name": "menhera",
"version": "0.4.6",
"version": "0.4.7",
"main": "dist",

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

@@ -12,3 +12,3 @@ # Menhera

const _data = ({ _key, _val, cp }) => {
const _data = ({ _val }) => {
const { data } = _val;

@@ -38,3 +38,3 @@ console.log(data);

_hooks: () => ({
_data: ({ _key, _val, cp }) => {
_data: ({ _val }) => {
const { data } = _val;

@@ -41,0 +41,0 @@ console.log(data);

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