@player-ui/beacon-plugin 0.10.4-next.1 → 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.
@@ -4480,6 +4480,15 @@ var BeaconPlugin = function() {
4480
4480
  ]);
4481
4481
  return Parser;
4482
4482
  }();
4483
+ function unpackAndPush(item, initial) {
4484
+ if (Array.isArray(item)) {
4485
+ item.forEach(function(i) {
4486
+ unpackAndPush(i, initial);
4487
+ });
4488
+ } else {
4489
+ initial.push(item);
4490
+ }
4491
+ }
4483
4492
  var withContext = function(model) {
4484
4493
  return {
4485
4494
  get: function(binding, options) {
@@ -4700,7 +4709,13 @@ var BeaconPlugin = function() {
4700
4709
  var newValues = resolvedAST.values.map(function(mValue) {
4701
4710
  var mTree = _this.computeTree(mValue, rawParentToPassIn, dataChanges, cacheUpdate, resolveOptions, resolvedAST, prevASTMap);
4702
4711
  if (mTree.value !== void 0 && mTree.value !== null) {
4703
- childValue.push(mTree.value);
4712
+ if (mValue.type === "async" && mValue.flatten && mTree.value.asset && Array.isArray(mTree.value.asset.values)) {
4713
+ mTree.value.asset.values.forEach(function(v) {
4714
+ unpackAndPush(v, childValue);
4715
+ });
4716
+ } else {
4717
+ childValue.push(mTree.value);
4718
+ }
4704
4719
  }
4705
4720
  mTree.dependencies.forEach(function(bindingDep) {
4706
4721
  return childDependencies.add(bindingDep);