@player-ui/stage-revert-data-plugin 0.10.4-next.2 → 0.10.4-next.3
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.
|
@@ -4396,6 +4396,15 @@ var StageRevertDataPlugin = function() {
|
|
|
4396
4396
|
]);
|
|
4397
4397
|
return Parser;
|
|
4398
4398
|
}();
|
|
4399
|
+
function unpackAndPush(item, initial) {
|
|
4400
|
+
if (Array.isArray(item)) {
|
|
4401
|
+
item.forEach(function(i) {
|
|
4402
|
+
unpackAndPush(i, initial);
|
|
4403
|
+
});
|
|
4404
|
+
} else {
|
|
4405
|
+
initial.push(item);
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4399
4408
|
var withContext = function(model) {
|
|
4400
4409
|
return {
|
|
4401
4410
|
get: function(binding, options) {
|
|
@@ -4616,7 +4625,13 @@ var StageRevertDataPlugin = function() {
|
|
|
4616
4625
|
var newValues = resolvedAST.values.map(function(mValue) {
|
|
4617
4626
|
var mTree = _this.computeTree(mValue, rawParentToPassIn, dataChanges, cacheUpdate, resolveOptions, resolvedAST, prevASTMap);
|
|
4618
4627
|
if (mTree.value !== void 0 && mTree.value !== null) {
|
|
4619
|
-
|
|
4628
|
+
if (mValue.type === "async" && mValue.flatten && mTree.value.asset && Array.isArray(mTree.value.asset.values)) {
|
|
4629
|
+
mTree.value.asset.values.forEach(function(v) {
|
|
4630
|
+
unpackAndPush(v, childValue);
|
|
4631
|
+
});
|
|
4632
|
+
} else {
|
|
4633
|
+
childValue.push(mTree.value);
|
|
4634
|
+
}
|
|
4620
4635
|
}
|
|
4621
4636
|
mTree.dependencies.forEach(function(bindingDep) {
|
|
4622
4637
|
return childDependencies.add(bindingDep);
|