@player-ui/async-node-plugin 1.1.0-next.5 → 1.1.0-next.6

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.
@@ -8072,8 +8072,8 @@ var AsyncNodePlugin = function() {
8072
8072
  ref: Symbol("not-started"),
8073
8073
  status: "not-started"
8074
8074
  };
8075
- var PLAYER_VERSION = true ? "1.1.0-next.5" : "unknown";
8076
- var COMMIT = true ? "ea847f93628d716aba4e15caca69bd0ffd038a89" : "unknown";
8075
+ var PLAYER_VERSION = true ? "1.1.0-next.6" : "unknown";
8076
+ var COMMIT = true ? "09bdf3d700a632d6ae38bd0b56977d403e658c8c" : "unknown";
8077
8077
  var _Player = /*#__PURE__*/ function() {
8078
8078
  function _Player2(config) {
8079
8079
  var _this = this;
@@ -9003,7 +9003,7 @@ var AsyncNodePlugin = function() {
9003
9003
  key: "runAsyncNode",
9004
9004
  value: function runAsyncNode(node, context, options) {
9005
9005
  return _async_to_generator(function() {
9006
- var _this, _this_basePlugin, result, e, _this_basePlugin_getPlayerInstance, _this_basePlugin1, cause, playerState, _options_logger, error;
9006
+ var _this, _this_basePlugin, deliveredViaCallback, result, e, _this_basePlugin_getPlayerInstance, _this_basePlugin1, cause, playerState, _options_logger, error;
9007
9007
  return _ts_generator(this, function(_state) {
9008
9008
  switch(_state.label){
9009
9009
  case 0:
@@ -9016,16 +9016,20 @@ var AsyncNodePlugin = function() {
9016
9016
  ,
9017
9017
  4
9018
9018
  ]);
9019
+ deliveredViaCallback = false;
9019
9020
  return [
9020
9021
  4,
9021
- (_this_basePlugin = this.basePlugin) === null || _this_basePlugin === void 0 ? void 0 : _this_basePlugin.hooks.onAsyncNode.call(node, function(result2) {
9022
- _this.parseNodeAndUpdate(node, context, result2, options.parseNode);
9022
+ (_this_basePlugin = this.basePlugin) === null || _this_basePlugin === void 0 ? void 0 : _this_basePlugin.hooks.onAsyncNode.call(node, function(streamedResult) {
9023
+ deliveredViaCallback = true;
9024
+ _this.parseNodeAndUpdate(node, context, streamedResult, options.parseNode);
9023
9025
  })
9024
9026
  ];
9025
9027
  case 2:
9026
9028
  result = _state.sent();
9027
9029
  context.inProgressNodes.delete(node.id);
9028
- this.parseNodeAndUpdate(node, context, result, options.parseNode);
9030
+ if (!deliveredViaCallback && result != null) {
9031
+ this.parseNodeAndUpdate(node, context, result, options.parseNode);
9032
+ }
9029
9033
  return [
9030
9034
  3,
9031
9035
  4