@player-ui/check-path-plugin 0.10.4-next.2 → 0.10.4
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.
|
@@ -4431,6 +4431,15 @@ var CheckPathPlugin = function() {
|
|
|
4431
4431
|
]);
|
|
4432
4432
|
return Parser;
|
|
4433
4433
|
}();
|
|
4434
|
+
function unpackAndPush(item, initial) {
|
|
4435
|
+
if (Array.isArray(item)) {
|
|
4436
|
+
item.forEach(function(i) {
|
|
4437
|
+
unpackAndPush(i, initial);
|
|
4438
|
+
});
|
|
4439
|
+
} else {
|
|
4440
|
+
initial.push(item);
|
|
4441
|
+
}
|
|
4442
|
+
}
|
|
4434
4443
|
var withContext = function(model) {
|
|
4435
4444
|
return {
|
|
4436
4445
|
get: function(binding, options) {
|
|
@@ -4651,7 +4660,13 @@ var CheckPathPlugin = function() {
|
|
|
4651
4660
|
var newValues = resolvedAST.values.map(function(mValue) {
|
|
4652
4661
|
var mTree = _this.computeTree(mValue, rawParentToPassIn, dataChanges, cacheUpdate, resolveOptions, resolvedAST, prevASTMap);
|
|
4653
4662
|
if (mTree.value !== void 0 && mTree.value !== null) {
|
|
4654
|
-
|
|
4663
|
+
if (mValue.type === "async" && mValue.flatten && mTree.value.asset && Array.isArray(mTree.value.asset.values)) {
|
|
4664
|
+
mTree.value.asset.values.forEach(function(v) {
|
|
4665
|
+
unpackAndPush(v, childValue);
|
|
4666
|
+
});
|
|
4667
|
+
} else {
|
|
4668
|
+
childValue.push(mTree.value);
|
|
4669
|
+
}
|
|
4655
4670
|
}
|
|
4656
4671
|
mTree.dependencies.forEach(function(bindingDep) {
|
|
4657
4672
|
return childDependencies.add(bindingDep);
|