Comparing version 0.9.6-rc1 to 0.9.6
@@ -874,3 +874,4 @@ 'use strict'; | ||
var hooks = get(_[HOOKS], key); | ||
hooks instanceof Map && hooks && $M(hooks, function (uuid$$1, h) { | ||
if (!hooks) return; | ||
$M(hooks, function (uuid$$1, h) { | ||
if (h instanceof Set) { | ||
@@ -907,3 +908,3 @@ var _iteratorNormalCompletion = true; | ||
} | ||
} else { | ||
} else if (typeof h == 'function') { | ||
h({ | ||
@@ -925,2 +926,3 @@ _: _, | ||
depth = _ref2.depth, | ||
_key = _ref2._key, | ||
key = _ref2.key, | ||
@@ -930,3 +932,4 @@ _val = _ref2._val, | ||
var hooks = get(_[HOOKS], key); | ||
hooks instanceof Map && hooks && $(_val, function (key, val) { | ||
if (!hooks) return; | ||
$(_val, function (k, v) { | ||
$M(hooks, function (uuid$$1, h) { | ||
@@ -944,4 +947,4 @@ if (h instanceof Set) { | ||
depth: depth, | ||
_key: key, | ||
_val: val, | ||
_key: k, | ||
_val: v, | ||
cp: _object, | ||
@@ -965,11 +968,13 @@ parent: object | ||
} | ||
} else { | ||
} else if (typeof h == 'function') { | ||
h({ | ||
_: _, | ||
depth: depth, | ||
_key: key, | ||
_val: val, | ||
_key: k, | ||
_val: v, | ||
cp: _object, | ||
parent: object | ||
}); | ||
} else { | ||
_.use(_defineProperty({}, key, v)); | ||
} | ||
@@ -1051,2 +1056,3 @@ }); | ||
depth: depth, | ||
_key: _key, | ||
key: key, | ||
@@ -1069,2 +1075,3 @@ _val: _val, | ||
depth: depth, | ||
_key: _key, | ||
key: key, | ||
@@ -1145,2 +1152,3 @@ _val: _val, | ||
depth: depth, | ||
_key: _key, | ||
key: key, | ||
@@ -1163,2 +1171,3 @@ _val: _val, | ||
depth: depth, | ||
_key: _key, | ||
key: key, | ||
@@ -1382,27 +1391,39 @@ _val: _val, | ||
var $M = function $M(map, cb) { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
if (map instanceof Map) { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
try { | ||
for (var _iterator = map[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var _step$value = _slicedToArray(_step.value, 2), | ||
key = _step$value[0], | ||
val = _step$value[1]; | ||
try { | ||
for (var _iterator = map[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var _step$value = _slicedToArray(_step.value, 2), | ||
key = _step$value[0], | ||
val = _step$value[1]; | ||
cb(key, val); | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
cb(key, val); | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
} else { | ||
var _arr2 = Object.entries(map); | ||
for (var _i2 = 0; _i2 < _arr2.length; _i2++) { | ||
var _arr2$_i = _slicedToArray(_arr2[_i2], 2), | ||
key = _arr2$_i[0], | ||
val = _arr2$_i[1]; | ||
cb(key, val); | ||
} | ||
} | ||
@@ -1409,0 +1430,0 @@ }; |
{ | ||
"name": "menhera", | ||
"version": "0.9.6-rc1", | ||
"version": "0.9.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39997
1435
0