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

menhera

Package Overview
Dependencies
Maintainers
2
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.9.6 to 0.9.7

147

dist/index.js

@@ -100,5 +100,16 @@ 'use strict';

var _hooks = {
_: function _(_ref) {
_: function (_2) {
function _(_x) {
return _2.apply(this, arguments);
}
_.toString = function () {
return _2.toString();
};
return _;
}(function (_ref) {
var _val = _ref._val,
cp = _ref.cp;
cp = _ref.cp,
_ = _ref._;
var uuid$$1 = cp.uuid;

@@ -110,7 +121,7 @@

_val = _ref2._val;
var target = get(menhera[HOOKS], depth);
var target = get(_[HOOKS], depth);
if (!target) {
target = new Map([[uuid$$1, _val.bind(cp)]]);
set$1(menhera[HOOKS], depth, target);
set$1(_[HOOKS], depth, target);
} else {

@@ -124,3 +135,3 @@ target.set(uuid$$1, _val.bind(cp));

_val = _ref3._val;
var target = get(menhera[HOOKS], depth);
var target = get(_[HOOKS], depth);
_val = new Set(_val.map(function (v) {

@@ -132,3 +143,3 @@ return v.bind(cp);

target = new Map([[uuid$$1, _val]]);
set$1(menhera[HOOKS], depth, target);
set$1(_[HOOKS], depth, target);
} else {

@@ -158,6 +169,16 @@ target.set(uuid$$1, _val);

}
}
})
};
var _unhooks = {
_: function _(_ref5) {
_: function (_3) {
function _(_x2) {
return _3.apply(this, arguments);
}
_.toString = function () {
return _3.toString();
};
return _;
}(function (_ref5) {
var _val = _ref5._val,

@@ -171,3 +192,3 @@ cp = _ref5.cp;

_val = _ref6._val;
var target = get(menhera[HOOKS], depth);
var target = get(_[HOOKS], depth);
if (!target) return;

@@ -195,13 +216,24 @@ target.delete(uuid$$1);

}
}
})
};
var _metas = {
_: function _(_ref8) {
_: function (_4) {
function _(_x3) {
return _4.apply(this, arguments);
}
_.toString = function () {
return _4.toString();
};
return _;
}(function (_ref8) {
var _val = _ref8._val;
$set$$1(menhera, _val);
}
$set$$1(_, _val);
})
};
var _mount = {
$: function $$$1(_ref9) {
var _val = _ref9._val;
var _val = _ref9._val,
_ = _ref9._;
var cps = Array.isArray(_val) ? _val : [_val];

@@ -211,7 +243,7 @@

var cp = typeof component === 'function' ? component({
_: menhera
_: _
}) : component;
var name = cp.name;
if (menhera[name]) {
if (_[name]) {
console.log("_mount: name \"".concat(name, "\" exists"));

@@ -221,5 +253,5 @@ return;

menhera[name] = cp;
_[name] = cp;
menhera.$use(menhera[name]);
_.use(_[name]);
});

@@ -231,3 +263,4 @@ }

var _val = _ref10._val,
cp = _ref10.cp;
cp = _ref10.cp,
_ = _ref10._;
var cps = Array.isArray(_val) ? _val : [_val];

@@ -237,6 +270,6 @@

var cp = typeof component === 'function' ? component({
_: menhera
_: _
}) : component;
menhera.$use(cp);
_.use(cp);
});

@@ -261,3 +294,3 @@ }

var key = "".concat(name, ".").concat(_key);
set$1(menhera, key, _val);
set$1(Mhr, key, _val);
}

@@ -272,3 +305,3 @@ };

var key = "".concat(name, ".").concat(_key);
set$1(menhera, key, _val);
set$1(Mhr, key, _val);
}

@@ -281,4 +314,4 @@ };

var _val = _ref3._val;
var target = get(menhera, name, []);
set$1(menhera, name, _toConsumableArray(target).concat([_val]));
var target = get(Mhr, name, []);
set$1(Mhr, name, [].concat(_toConsumableArray(target), [_val]));
}

@@ -291,4 +324,4 @@ };

var _val = _ref4._val;
var target = get(menhera, name, {});
set$1(menhera, name, Object.assign({}, target, _val));
var target = get(Mhr, name, {});
set$1(Mhr, name, Object.assign({}, target, _val));
}

@@ -303,4 +336,4 @@ };

var key = "".concat(name, ".").concat(_key);
var target = get(menhera, key, []);
set$1(menhera, key, _toConsumableArray(target).concat(_toConsumableArray(_val)));
var target = get(Mhr, key, []);
set$1(Mhr, key, [].concat(_toConsumableArray(target), _toConsumableArray(_val)));
}

@@ -315,4 +348,4 @@ };

var key = "".concat(name, ".").concat(_key);
var target = get(menhera, key, {});
set$1(menhera, key, Object.assign({}, target, _val));
var target = get(Mhr, key, {});
set$1(Mhr, key, Object.assign({}, target, _val));
}

@@ -327,3 +360,3 @@ };

var key = "".concat(name, ".").concat(_key);
set$1(menhera, key, _val);
set$1(Mhr, key, _val);
}

@@ -336,4 +369,4 @@ };

var _val = _ref8._val;
var target = get(menhera, name, []);
set$1(menhera, name, _toConsumableArray(target).concat(_toConsumableArray(_val)));
var target = get(Mhr, name, []);
set$1(Mhr, name, [].concat(_toConsumableArray(target), _toConsumableArray(_val)));
}

@@ -347,3 +380,3 @@ };

_val = _ref9._val;
return menhera.$use(_defineProperty({}, key, _val));
return Mhr.use(_defineProperty({}, key, _val));
}

@@ -381,5 +414,7 @@ };

};
var use$$1 = function use$$1(data) {
$use$$1(menhera, $compile$$1(menhera, data));
return menhera;
var use$$1 = function use$$1(_) {
return function (data) {
$use$$1(_, $compile$$1(_, data));
return _;
};
};

@@ -443,5 +478,7 @@ var $use$$1 = function $use$$1(_, _object) {

};
var unuse$$1 = function unuse$$1(data) {
$unuse$$1(menhera, $compile$$1(menhera, data));
return menhera;
var unuse$$1 = function unuse$$1(_) {
return function (data) {
$unuse$$1(_, $compile$$1(_, data));
return _;
};
};

@@ -454,6 +491,2 @@ var $unuse$$1 = function $unuse$$1(_, _object) {

_hooks = _object._hooks;
$use$$1(_, {
uuid: uuid$$1,
_unhooks: _hooks
});
return _;

@@ -1522,11 +1555,21 @@ };

var _menhera;
var menhera = (_menhera = {}, _defineProperty(_menhera, HOOKS, initHooks()), _defineProperty(_menhera, "_scanHooks", _scanHooks$$1), _defineProperty(_menhera, "_compilers", _compilers), _defineProperty(_menhera, "use", use$$1), _defineProperty(_menhera, "$use", use$$1), _defineProperty(_menhera, "unuse", unuse$$1), _menhera);
menhera.use({
$compilers: utils.injectObject('_compilers'),
$scanHooks: utils.injectObjectDeep('_scanHooks')
});
var core = function core(_, options) {
var _Object$assign;
Object.assign(_, (_Object$assign = {}, _defineProperty(_Object$assign, HOOKS, initHooks()), _defineProperty(_Object$assign, "_scanHooks", _scanHooks$$1), _defineProperty(_Object$assign, "_compilers", _compilers), _defineProperty(_Object$assign, "use", use$$1(_)), _defineProperty(_Object$assign, "unuse", unuse$$1(_)), _Object$assign));
_.use({
$compilers: utils.injectObject('_compilers'),
$scanHooks: utils.injectObjectDeep('_scanHooks')
});
return _;
};
var Mhr = core(function (options) {
return core({}, options);
}, {});
exports.uuid = uuid;
exports.default = menhera;
exports.core = core;
exports.default = Mhr;
exports.utils = utils;

@@ -1533,0 +1576,0 @@ exports.HOOKS = HOOKS;

{
"name": "menhera",
"version": "0.9.6",
"version": "0.9.7",
"main": "dist/index.js",
"license": "MIT",
"files": [
"dist"
],
"types": "index.d.ts",
"scripts": {
"build": "bili --filename index.js",
"build": "bili ./index.js",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@babel/preset-env": "^7.3.1",
"@types/uuid": "^3.4.3",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-3": "^6.24.1",
"bili": "^3.4.2",

@@ -18,0 +15,0 @@ "menhera": "^0.8.1-rc1",

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