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

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.
@@ -2655,7 +2655,7 @@ var AsyncNodePlugin = function() {
2655
2655
  value: function set(match, value) {
2656
2656
  var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ? createObjectMatcher(match) : createBasicMatcher(match);
2657
2657
  var existingIndex = this.store.findIndex(function(entry) {
2658
- return entry.matcher(match) && matcher(entry.key);
2658
+ return entry.matcher.count === matcher.count && entry.matcher(match) && matcher(entry.key);
2659
2659
  });
2660
2660
  if (existingIndex !== -1) {
2661
2661
  var _this_logger_debug, _this_logger;
@@ -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" : "unknown";
8076
+ var COMMIT = true ? "c938fcbdebeef8a3e04cd2b84014cfc82bf33591" : "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