@sumaris-net/ngx-components 1.23.51 → 1.23.52

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.
@@ -1043,11 +1043,11 @@
1043
1043
  function filterFalse(obs, opts) {
1044
1044
  return obs.pipe(operators.filter(function (v) { return v === false; }));
1045
1045
  }
1046
- function decorateForFirst(obs, opts) {
1046
+ function decorateWithTakeUntil(obs, opts) {
1047
1047
  // Set take until notifier
1048
1048
  var takeUntil$ = (opts === null || opts === void 0 ? void 0 : opts.stop) || ((opts === null || opts === void 0 ? void 0 : opts.timeout) && rxjs.timer(opts.timeout));
1049
1049
  if (!takeUntil$)
1050
- return obs;
1050
+ return obs; // Skip
1051
1051
  // When stop, throw an error (useful when used with a toPromise())
1052
1052
  if (opts.stopError) {
1053
1053
  var error_1;
@@ -1068,15 +1068,15 @@
1068
1068
  .pipe(operators.takeUntil(takeUntil$));
1069
1069
  }
1070
1070
  function firstNotNil(obs, opts) {
1071
- return decorateForFirst(obs, opts).pipe(operators.first(isNotNil));
1071
+ return decorateWithTakeUntil(obs.pipe(operators.first(isNotNil)), opts);
1072
1072
  }
1073
1073
  function firstTrue(obs, opts) {
1074
- return decorateForFirst(obs.pipe(operators.first(function (v) { return v === true; }), operators.map(function (_) { }) // Convert to void
1074
+ return decorateWithTakeUntil(obs.pipe(operators.first(function (v) { return v === true; }), operators.map(function (_) { }) // Convert to void
1075
1075
  ), opts);
1076
1076
  }
1077
1077
  function firstFalse(obs, opts) {
1078
- return decorateForFirst(obs, opts).pipe(operators.first(function (v) { return v === false; }), operators.map(function (_) { }) // Convert to void
1079
- );
1078
+ return decorateWithTakeUntil(obs.pipe(operators.first(function (v) { return v === false; }), operators.map(function (_) { }) // Convert to void
1079
+ ), opts);
1080
1080
  }
1081
1081
  function firstTruePromise(obs, opts) {
1082
1082
  return firstTrue(obs, Object.assign({ stopError: true }, opts)).toPromise();