object-invariant-test-helper
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -55,33 +55,14 @@ "use strict"; | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var keyArray = Object.keys(keys); | ||
try { | ||
for (var _iterator = Object.keys(keys)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var key = _step.value; | ||
for (var id in keyArray) { | ||
var key = keyArray[id]; | ||
var result = _detectMutations(isImmutable, trackedProperty.children[key], obj[key], sameRef, path.concat(key)); | ||
var result = _detectMutations(isImmutable, trackedProperty.children[key], obj[key], sameRef, path.concat(key)); | ||
if (result.wasMutated) { | ||
return result; | ||
} | ||
if (result.wasMutated) { | ||
return result; | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator["return"]) { | ||
_iterator["return"](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
return { wasMutated: false }; | ||
} | ||
module.exports = exports["default"]; |
{ | ||
"name": "object-invariant-test-helper", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
7577
82