@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.
- package/bundles/sumaris-net.ngx-components.umd.js +3 -3
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/observables.js +4 -4
- package/fesm2015/sumaris-net.ngx-components.js +3 -3
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -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(
|
|
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(
|
|
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
|
|
1082
|
+
return firstNotNil(obs).pipe(operators.takeUntil(rxjs.timer(opts.timeout))).toPromise();
|
|
1083
1083
|
}
|
|
1084
1084
|
return firstNotNil(obs).toPromise();
|
|
1085
1085
|
}
|