@player-ui/async-node-plugin 0.14.1-next.1 → 0.14.1-next.2

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.
@@ -2368,13 +2368,13 @@ var AsyncNodePlugin = function() {
2368
2368
  ]);
2369
2369
  return SyncWaterfallHook;
2370
2370
  }(Hook);
2371
- var AsyncParallelBailHook = /*#__PURE__*/ function(Hook) {
2372
- _inherits(AsyncParallelBailHook, Hook);
2373
- function AsyncParallelBailHook() {
2374
- _class_call_check(this, AsyncParallelBailHook);
2375
- return _call_super(this, AsyncParallelBailHook, arguments);
2371
+ var AsyncSeriesBailHook = /*#__PURE__*/ function(Hook) {
2372
+ _inherits(AsyncSeriesBailHook, Hook);
2373
+ function AsyncSeriesBailHook() {
2374
+ _class_call_check(this, AsyncSeriesBailHook);
2375
+ return _call_super(this, AsyncSeriesBailHook, arguments);
2376
2376
  }
2377
- _create_class(AsyncParallelBailHook, [
2377
+ _create_class(AsyncSeriesBailHook, [
2378
2378
  {
2379
2379
  key: "call",
2380
2380
  value: function call() {
@@ -2382,7 +2382,7 @@ var AsyncNodePlugin = function() {
2382
2382
  args[_key] = arguments[_key];
2383
2383
  }
2384
2384
  return _async_to_generator(function() {
2385
- var _this_interceptions, ctx, rtn, e;
2385
+ var _this_interceptions, ctx, tapIndex, rtn, e;
2386
2386
  return _ts_generator(this, function(_state) {
2387
2387
  switch(_state.label){
2388
2388
  case 0:
@@ -2394,28 +2394,48 @@ var AsyncNodePlugin = function() {
2394
2394
  case 1:
2395
2395
  _state.trys.push([
2396
2396
  1,
2397
- 3,
2397
+ 6,
2398
2398
  ,
2399
- 4
2399
+ 7
2400
2400
  ]);
2401
+ tapIndex = 0;
2402
+ _state.label = 2;
2403
+ case 2:
2404
+ if (!(tapIndex < this.taps.length)) return [
2405
+ 3,
2406
+ 5
2407
+ ];
2401
2408
  return [
2402
2409
  4,
2403
- Promise.race(this.taps.map(function(tap) {
2404
- return callTap(tap, args, ctx);
2405
- }))
2410
+ callTap(this.taps[tapIndex], args, ctx)
2406
2411
  ];
2407
- case 2:
2412
+ case 3:
2408
2413
  rtn = _state.sent();
2409
- this.interceptions.result(rtn);
2414
+ if (rtn !== void 0) {
2415
+ this.interceptions.result(rtn);
2416
+ return [
2417
+ 2,
2418
+ rtn
2419
+ ];
2420
+ }
2421
+ _state.label = 4;
2422
+ case 4:
2423
+ tapIndex += 1;
2410
2424
  return [
2411
- 2,
2412
- rtn
2425
+ 3,
2426
+ 2
2413
2427
  ];
2414
- case 3:
2428
+ case 5:
2429
+ return [
2430
+ 3,
2431
+ 7
2432
+ ];
2433
+ case 6:
2415
2434
  e = _state.sent();
2416
2435
  this.interceptions.error(e);
2417
2436
  throw e;
2418
- case 4:
2437
+ case 7:
2438
+ this.interceptions.done();
2419
2439
  return [
2420
2440
  2
2421
2441
  ];
@@ -2425,7 +2445,7 @@ var AsyncNodePlugin = function() {
2425
2445
  }
2426
2446
  }
2427
2447
  ]);
2428
- return AsyncParallelBailHook;
2448
+ return AsyncSeriesBailHook;
2429
2449
  }(Hook);
2430
2450
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@player-ui+player@0.0.0/node_modules/@player-ui/player/dist/index.mjs
2431
2451
  var import_ts_nested_error = __toESM(require_nested_error(), 1);
@@ -8212,7 +8232,7 @@ var AsyncNodePlugin = function() {
8212
8232
  _class_call_check(this, _AsyncNodePlugin);
8213
8233
  this.symbol = _AsyncNodePlugin.Symbol;
8214
8234
  this.hooks = {
8215
- onAsyncNode: new AsyncParallelBailHook(),
8235
+ onAsyncNode: new AsyncSeriesBailHook(),
8216
8236
  onAsyncNodeError: new SyncBailHook()
8217
8237
  };
8218
8238
  this.name = "AsyncNode";