@player-ui/stage-revert-data-plugin 0.14.1-next.6 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -430,7 +430,7 @@ var StageRevertDataPlugin = function() {
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
|
-
var
|
|
433
|
+
var createObjectMatcher = function createObjectMatcher(partialObj) {
|
|
434
434
|
var pairs = traverseObj(partialObj);
|
|
435
435
|
var matchFunction = function(searchObj) {
|
|
436
436
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -2532,7 +2532,7 @@ var StageRevertDataPlugin = function() {
|
|
|
2532
2532
|
{
|
|
2533
2533
|
/** Add match -> value mapping to the registry */ key: "set",
|
|
2534
2534
|
value: function set(match, value) {
|
|
2535
|
-
var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ?
|
|
2535
|
+
var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ? createObjectMatcher(match) : createBasicMatcher(match);
|
|
2536
2536
|
this.store.insert({
|
|
2537
2537
|
key: match,
|
|
2538
2538
|
value: value,
|