@sumaris-net/ngx-components 1.23.1-rc1 → 1.23.1-rc2

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.
@@ -1067,19 +1067,19 @@
1067
1067
  }
1068
1068
  function firstTruePromise(obs, opts) {
1069
1069
  if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1070
- return obs.pipe(operators.first(function (v) { return v === true; }), operators.takeUntil(rxjs.timer(1000))).toPromise();
1070
+ return obs.pipe(operators.first(function (v) { return v === true; }), operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
1071
1071
  }
1072
1072
  return obs.pipe(operators.first(function (v) { return v === true; })).toPromise();
1073
1073
  }
1074
1074
  function firstFalsePromise(obs, opts) {
1075
1075
  if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1076
- return obs.pipe(operators.first(function (v) { return v === false; }), operators.takeUntil(rxjs.timer(1000))).toPromise();
1076
+ return obs.pipe(operators.first(function (v) { return v === false; }), operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
1077
1077
  }
1078
1078
  return obs.pipe(operators.first(function (v) { return v === false; })).toPromise();
1079
1079
  }
1080
1080
  function firstNotNilPromise(obs, opts) {
1081
1081
  if ((opts === null || opts === void 0 ? void 0 : opts.timeout) > 0) {
1082
- return firstNotNil(obs).pipe(operators.takeUntil(rxjs.timer(opts === null || opts === void 0 ? void 0 : opts.timeout))).toPromise();
1082
+ return firstNotNil(obs).pipe(operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
1083
1083
  }
1084
1084
  return firstNotNil(obs).toPromise();
1085
1085
  }