@fncts/observable 0.0.21 → 0.0.22
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/Notification.d.ts +1 -1
- package/Observable/api/connectable.d.ts +1 -1
- package/Observable/api/raceWith.d.ts +2 -1
- package/Observable/api/retryWhen.d.ts +1 -1
- package/Observable/api/window.d.ts +1 -1
- package/Observable/api/windowCount.d.ts +1 -1
- package/Observable/api/windowToggle.d.ts +1 -1
- package/Observable/api/windowWhen.d.ts +1 -1
- package/Observable/api.d.ts +34 -34
- package/Observable.d.ts +16 -16
- package/ObservableRef.d.ts +2 -2
- package/_cjs/Action.cjs +2 -2
- package/_cjs/AnimationFrameAction.cjs +2 -2
- package/_cjs/AnimationFrameAction.cjs.map +1 -1
- package/_cjs/AnimationFrameScheduler.cjs +3 -4
- package/_cjs/AnimationFrameScheduler.cjs.map +1 -1
- package/_cjs/AsyncAction.cjs +2 -2
- package/_cjs/AsyncAction.cjs.map +1 -1
- package/_cjs/AsyncScheduler.cjs +3 -4
- package/_cjs/AsyncScheduler.cjs.map +1 -1
- package/_cjs/BehaviorSubject.cjs +2 -2
- package/_cjs/BehaviorSubject.cjs.map +1 -1
- package/_cjs/Notification.cjs +5 -10
- package/_cjs/Notification.cjs.map +1 -1
- package/_cjs/Observable/api/connect.cjs +2 -2
- package/_cjs/Observable/api/connectable.cjs +2 -2
- package/_cjs/Observable/api/connectable.cjs.map +1 -1
- package/_cjs/Observable/api/fromCallback.cjs +2 -3
- package/_cjs/Observable/api/fromCallback.cjs.map +1 -1
- package/_cjs/Observable/api/fromEvent.cjs +2 -2
- package/_cjs/Observable/api/race.cjs +2 -2
- package/_cjs/Observable/api/race.cjs.map +1 -1
- package/_cjs/Observable/api/raceWith.cjs +2 -2
- package/_cjs/Observable/api/raceWith.cjs.map +1 -1
- package/_cjs/Observable/api/repeatWhen.cjs +2 -2
- package/_cjs/Observable/api/repeatWhen.cjs.map +1 -1
- package/_cjs/Observable/api/retryWhen.cjs +2 -2
- package/_cjs/Observable/api/retryWhen.cjs.map +1 -1
- package/_cjs/Observable/api/share.cjs +2 -2
- package/_cjs/Observable/api/share.cjs.map +1 -1
- package/_cjs/Observable/api/window.cjs +2 -2
- package/_cjs/Observable/api/window.cjs.map +1 -1
- package/_cjs/Observable/api/windowCount.cjs +2 -2
- package/_cjs/Observable/api/windowCount.cjs.map +1 -1
- package/_cjs/Observable/api/windowTime.cjs +2 -2
- package/_cjs/Observable/api/windowTime.cjs.map +1 -1
- package/_cjs/Observable/api/windowToggle.cjs +5 -4
- package/_cjs/Observable/api/windowToggle.cjs.map +1 -1
- package/_cjs/Observable/api/windowWhen.cjs +2 -2
- package/_cjs/Observable/api/windowWhen.cjs.map +1 -1
- package/_cjs/Observable/api.cjs +76 -126
- package/_cjs/Observable/api.cjs.map +1 -1
- package/_cjs/Observable/definition.cjs +4 -6
- package/_cjs/Observable/definition.cjs.map +1 -1
- package/_cjs/Observable/dom/animationFrames.cjs +2 -2
- package/_cjs/Observable/dom/animationFrames.cjs.map +1 -1
- package/_cjs/Observable.cjs +64 -64
- package/_cjs/Observable.cjs.map +1 -1
- package/_cjs/ObservableRef/api.cjs +8 -9
- package/_cjs/ObservableRef/api.cjs.map +1 -1
- package/_cjs/ObservableRef/atomic.cjs +2 -2
- package/_cjs/ObservableRef/atomic.cjs.map +1 -1
- package/_cjs/ObservableRef/definition.cjs +2 -2
- package/_cjs/ObservableRef.cjs +8 -8
- package/_cjs/ObservableRef.cjs.map +1 -1
- package/_cjs/Operator.cjs +2 -2
- package/_cjs/Operator.cjs.map +1 -1
- package/_cjs/Scheduler.cjs +3 -4
- package/_cjs/Scheduler.cjs.map +1 -1
- package/_cjs/Subject.cjs +6 -6
- package/_cjs/Subject.cjs.map +1 -1
- package/_cjs/Subscriber.cjs +4 -6
- package/_cjs/Subscriber.cjs.map +1 -1
- package/_cjs/Subscription.cjs +5 -8
- package/_cjs/Subscription.cjs.map +1 -1
- package/_cjs/index.cjs +2 -2
- package/_cjs/internal/animationFrameProvider.cjs +3 -4
- package/_cjs/internal/animationFrameProvider.cjs.map +1 -1
- package/_cjs/internal/args.cjs +2 -2
- package/_cjs/internal/intervalProvider.cjs +1 -2
- package/_cjs/internal/intervalProvider.cjs.map +1 -1
- package/_cjs/internal/performanceTimestampProvider.cjs +1 -2
- package/_cjs/internal/performanceTimestampProvider.cjs.map +1 -1
- package/_cjs/internal/timeoutProvider.cjs +1 -2
- package/_cjs/internal/timeoutProvider.cjs.map +1 -1
- package/_cjs/internal/timestampProvider.cjs +1 -2
- package/_cjs/internal/timestampProvider.cjs.map +1 -1
- package/_cjs/internal/util.cjs +2 -2
- package/_cjs/internal/util.cjs.map +1 -1
- package/_mjs/AnimationFrameAction.mjs.map +1 -1
- package/_mjs/AnimationFrameScheduler.mjs.map +1 -1
- package/_mjs/AsyncAction.mjs.map +1 -1
- package/_mjs/AsyncScheduler.mjs.map +1 -1
- package/_mjs/BehaviorSubject.mjs.map +1 -1
- package/_mjs/Notification.mjs.map +1 -1
- package/_mjs/Observable/api/connectable.mjs.map +1 -1
- package/_mjs/Observable/api/fromCallback.mjs +0 -1
- package/_mjs/Observable/api/fromCallback.mjs.map +1 -1
- package/_mjs/Observable/api/race.mjs.map +1 -1
- package/_mjs/Observable/api/raceWith.mjs.map +1 -1
- package/_mjs/Observable/api/repeatWhen.mjs.map +1 -1
- package/_mjs/Observable/api/retryWhen.mjs.map +1 -1
- package/_mjs/Observable/api/share.mjs.map +1 -1
- package/_mjs/Observable/api/window.mjs.map +1 -1
- package/_mjs/Observable/api/windowCount.mjs.map +1 -1
- package/_mjs/Observable/api/windowTime.mjs.map +1 -1
- package/_mjs/Observable/api/windowToggle.mjs.map +1 -1
- package/_mjs/Observable/api/windowWhen.mjs.map +1 -1
- package/_mjs/Observable/api.mjs +9 -8
- package/_mjs/Observable/api.mjs.map +1 -1
- package/_mjs/Observable/definition.mjs +1 -1
- package/_mjs/Observable/definition.mjs.map +1 -1
- package/_mjs/Observable/dom/animationFrames.mjs.map +1 -1
- package/_mjs/Observable.mjs +19 -16
- package/_mjs/Observable.mjs.map +1 -1
- package/_mjs/ObservableRef/api.mjs +5 -5
- package/_mjs/ObservableRef/api.mjs.map +1 -1
- package/_mjs/ObservableRef.mjs +3 -2
- package/_mjs/ObservableRef.mjs.map +1 -1
- package/_mjs/Operator.mjs.map +1 -1
- package/_mjs/Scheduler.mjs +1 -2
- package/_mjs/Scheduler.mjs.map +1 -1
- package/_mjs/Subject.mjs +4 -4
- package/_mjs/Subject.mjs.map +1 -1
- package/_mjs/Subscriber.mjs.map +1 -1
- package/_mjs/Subscription.mjs.map +1 -1
- package/_mjs/internal/animationFrameProvider.mjs.map +1 -1
- package/_mjs/internal/util.mjs.map +1 -1
- package/_src/AsyncAction.ts +4 -1
- package/_src/Observable/api/fromCallback.ts +0 -1
- package/_src/Observable/api/raceWith.ts +1 -1
- package/_src/Observable/api.ts +5 -4
- package/_src/Observable/definition.ts +3 -3
- package/_src/Observable.ts +19 -16
- package/_src/ObservableRef/api.ts +12 -3
- package/_src/ObservableRef.ts +3 -2
- package/_src/Operator.ts +5 -1
- package/_src/Scheduler.ts +4 -1
- package/_src/Subject.ts +4 -1
- package/package.json +2 -2
package/_cjs/Observable/api.cjs
CHANGED
|
@@ -122,12 +122,14 @@ exports.zip = zip;
|
|
|
122
122
|
exports.zipWith = exports.zipLatest = void 0;
|
|
123
123
|
exports.zipWithLatest = zipWithLatest;
|
|
124
124
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api"));
|
|
125
|
-
var
|
|
125
|
+
var _util = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/internal/util"));
|
|
126
|
+
var tsplus_module_2 = _util;
|
|
126
127
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/util/predicates"));
|
|
127
128
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO"));
|
|
128
129
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/AsyncScheduler"));
|
|
129
130
|
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/Subscription"));
|
|
130
|
-
var
|
|
131
|
+
var _Scheduler = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/Scheduler"));
|
|
132
|
+
var tsplus_module_7 = _Scheduler;
|
|
131
133
|
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/Operator"));
|
|
132
134
|
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
|
|
133
135
|
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/runtime"));
|
|
@@ -144,111 +146,60 @@ var tsplus_module_20 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requir
|
|
|
144
146
|
var tsplus_module_21 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashSet/api"));
|
|
145
147
|
var _args = /*#__PURE__*/require("@fncts/observable/internal/args");
|
|
146
148
|
var _definition2 = /*#__PURE__*/require("@fncts/observable/Observable/definition");
|
|
147
|
-
function _getRequireWildcardCache(
|
|
148
|
-
function _interopRequireWildcard(
|
|
149
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
150
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
149
151
|
const fileName_1 = "(@fncts/observable) src/Observable/api.ts";
|
|
150
|
-
const defer = defer_1;
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
153
|
-
exports.
|
|
154
|
-
const
|
|
155
|
-
exports.
|
|
156
|
-
const
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
159
|
-
exports.
|
|
160
|
-
const
|
|
161
|
-
exports.
|
|
162
|
-
const
|
|
163
|
-
exports.
|
|
164
|
-
const
|
|
165
|
-
exports.
|
|
166
|
-
const
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
169
|
-
exports.
|
|
170
|
-
const
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
173
|
-
exports.
|
|
174
|
-
const
|
|
175
|
-
exports.
|
|
176
|
-
const
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
179
|
-
exports.
|
|
180
|
-
const
|
|
181
|
-
exports.
|
|
182
|
-
const
|
|
183
|
-
exports.
|
|
184
|
-
const
|
|
185
|
-
exports.
|
|
186
|
-
const
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
189
|
-
exports.
|
|
190
|
-
const
|
|
191
|
-
exports.
|
|
192
|
-
const
|
|
193
|
-
exports.
|
|
194
|
-
const
|
|
195
|
-
exports.
|
|
196
|
-
const
|
|
197
|
-
exports.
|
|
198
|
-
const
|
|
199
|
-
exports.
|
|
200
|
-
const
|
|
201
|
-
exports.audit = audit;
|
|
202
|
-
const catchAllCause = catchAllCause_1;
|
|
203
|
-
exports.catchAllCause = catchAllCause;
|
|
204
|
-
const concatAll = concatAll_1;
|
|
205
|
-
exports.concatAll = concatAll;
|
|
206
|
-
const concat = concat_1;
|
|
207
|
-
exports.concat = concat;
|
|
208
|
-
const countWithIndex = countWithIndex_1;
|
|
209
|
-
exports.countWithIndex = countWithIndex;
|
|
210
|
-
const zipLatest = zipLatest_1;
|
|
211
|
-
exports.zipLatest = zipLatest;
|
|
212
|
-
const delayWithIndex = delayWithIndex_1;
|
|
213
|
-
exports.delayWithIndex = delayWithIndex;
|
|
214
|
-
const delayWith = delayWith_1;
|
|
215
|
-
exports.delayWith = delayWith;
|
|
216
|
-
const exhaustMapWithIndex = exhaustMapWithIndex_1;
|
|
217
|
-
exports.exhaustMapWithIndex = exhaustMapWithIndex;
|
|
218
|
-
const expandWithIndex = expandWithIndex_1;
|
|
219
|
-
exports.expandWithIndex = expandWithIndex;
|
|
220
|
-
const findWithIndex = findWithIndex_1;
|
|
221
|
-
exports.findWithIndex = findWithIndex;
|
|
222
|
-
const findIndexWithIndex = findIndexWithIndex_1;
|
|
223
|
-
exports.findIndexWithIndex = findIndexWithIndex;
|
|
224
|
-
const mergeAll = mergeAll_1;
|
|
225
|
-
exports.mergeAll = mergeAll;
|
|
226
|
-
const mergeScanWithIndex = mergeScanWithIndex_1;
|
|
227
|
-
exports.mergeScanWithIndex = mergeScanWithIndex;
|
|
228
|
-
const onEmpty = onEmpty_1;
|
|
229
|
-
exports.onEmpty = onEmpty;
|
|
230
|
-
const sample = sample_1;
|
|
231
|
-
exports.sample = sample;
|
|
232
|
-
const scanLeftWithIndex = scanLeftWithIndex_1;
|
|
233
|
-
exports.scanLeftWithIndex = scanLeftWithIndex;
|
|
234
|
-
const serviceWithObservable = serviceWithObservable_1;
|
|
235
|
-
exports.serviceWithObservable = serviceWithObservable;
|
|
236
|
-
const switchMapWithIndex = switchMapWithIndex_1;
|
|
237
|
-
exports.switchMapWithIndex = switchMapWithIndex;
|
|
238
|
-
const switchMap = switchMap_1;
|
|
239
|
-
exports.switchMap = switchMap;
|
|
240
|
-
const switchScanWithIndex = switchScanWithIndex_1;
|
|
241
|
-
exports.switchScanWithIndex = switchScanWithIndex;
|
|
242
|
-
const take = take_1;
|
|
243
|
-
exports.take = take;
|
|
244
|
-
const takeWhileWithIndex = takeWhileWithIndex_1;
|
|
245
|
-
exports.takeWhileWithIndex = takeWhileWithIndex;
|
|
246
|
-
const throttle = throttle_1;
|
|
247
|
-
exports.throttle = throttle;
|
|
248
|
-
const toArray = toArray_1;
|
|
249
|
-
exports.toArray = toArray;
|
|
250
|
-
const uniqueUntilChanged = uniqueUntilChanged_1;
|
|
251
|
-
exports.uniqueUntilChanged = uniqueUntilChanged;
|
|
152
|
+
const defer = exports.defer = defer_1;
|
|
153
|
+
const empty = exports.empty = empty_1;
|
|
154
|
+
const environmentWithObservable = exports.environmentWithObservable = environmentWithObservable_1;
|
|
155
|
+
const fail = exports.fail = fail_1;
|
|
156
|
+
const from = exports.from = from_1;
|
|
157
|
+
const fromSubscribable = exports.fromSubscribable = fromSubscribable_1;
|
|
158
|
+
const interval = exports.interval = interval_1;
|
|
159
|
+
const of = exports.of = of_1;
|
|
160
|
+
const single = exports.single = single_1;
|
|
161
|
+
const scheduled = exports.scheduled = scheduled_1;
|
|
162
|
+
const timer = exports.timer = timer_1;
|
|
163
|
+
const fromIO = exports.fromIO = fromIO_1;
|
|
164
|
+
const zipWith = exports.zipWith = zipWith_1;
|
|
165
|
+
const mapWithIndex = exports.mapWithIndex = mapWithIndex_1;
|
|
166
|
+
const map_ = exports.map_ = map_1;
|
|
167
|
+
const as = exports.as = as_1;
|
|
168
|
+
const filterWithIndex = exports.filterWithIndex = filterWithIndex_1;
|
|
169
|
+
const filterMapWithIndex = exports.filterMapWithIndex = filterMapWithIndex_1;
|
|
170
|
+
const partitionWithIndex = exports.partitionWithIndex = partitionWithIndex_1;
|
|
171
|
+
const partitionMapWithIndex = exports.partitionMapWithIndex = partitionMapWithIndex_1;
|
|
172
|
+
const mergeMapWithIndex = exports.mergeMapWithIndex = mergeMapWithIndex_1;
|
|
173
|
+
const mergeMap = exports.mergeMap = mergeMap_1;
|
|
174
|
+
const contramapEnvironment = exports.contramapEnvironment = contramapEnvironment_1;
|
|
175
|
+
const foldLeftWithIndex = exports.foldLeftWithIndex = foldLeftWithIndex_1;
|
|
176
|
+
const foldLeft = exports.foldLeft = foldLeft_1;
|
|
177
|
+
const audit = exports.audit = audit_1;
|
|
178
|
+
const catchAllCause = exports.catchAllCause = catchAllCause_1;
|
|
179
|
+
const concatAll = exports.concatAll = concatAll_1;
|
|
180
|
+
const concat = exports.concat = concat_1;
|
|
181
|
+
const countWithIndex = exports.countWithIndex = countWithIndex_1;
|
|
182
|
+
const zipLatest = exports.zipLatest = zipLatest_1;
|
|
183
|
+
const delayWithIndex = exports.delayWithIndex = delayWithIndex_1;
|
|
184
|
+
const delayWith = exports.delayWith = delayWith_1;
|
|
185
|
+
const exhaustMapWithIndex = exports.exhaustMapWithIndex = exhaustMapWithIndex_1;
|
|
186
|
+
const expandWithIndex = exports.expandWithIndex = expandWithIndex_1;
|
|
187
|
+
const findWithIndex = exports.findWithIndex = findWithIndex_1;
|
|
188
|
+
const findIndexWithIndex = exports.findIndexWithIndex = findIndexWithIndex_1;
|
|
189
|
+
const mergeAll = exports.mergeAll = mergeAll_1;
|
|
190
|
+
const mergeScanWithIndex = exports.mergeScanWithIndex = mergeScanWithIndex_1;
|
|
191
|
+
const onEmpty = exports.onEmpty = onEmpty_1;
|
|
192
|
+
const sample = exports.sample = sample_1;
|
|
193
|
+
const scanLeftWithIndex = exports.scanLeftWithIndex = scanLeftWithIndex_1;
|
|
194
|
+
const serviceWithObservable = exports.serviceWithObservable = serviceWithObservable_1;
|
|
195
|
+
const switchMapWithIndex = exports.switchMapWithIndex = switchMapWithIndex_1;
|
|
196
|
+
const switchMap = exports.switchMap = switchMap_1;
|
|
197
|
+
const switchScanWithIndex = exports.switchScanWithIndex = switchScanWithIndex_1;
|
|
198
|
+
const take = exports.take = take_1;
|
|
199
|
+
const takeWhileWithIndex = exports.takeWhileWithIndex = takeWhileWithIndex_1;
|
|
200
|
+
const throttle = exports.throttle = throttle_1;
|
|
201
|
+
const toArray = exports.toArray = toArray_1;
|
|
202
|
+
const uniqueUntilChanged = exports.uniqueUntilChanged = uniqueUntilChanged_1;
|
|
252
203
|
/**
|
|
253
204
|
* @tsplus static fncts.observable.ObservableOps halt
|
|
254
205
|
*/
|
|
@@ -352,7 +303,7 @@ function fromPromise(promise) {
|
|
|
352
303
|
});
|
|
353
304
|
}
|
|
354
305
|
function fromReadableStreamLike(readableStream) {
|
|
355
|
-
return fromAsyncIterable((0,
|
|
306
|
+
return fromAsyncIterable((0, _util.readableStreamToAsyncGenerator)(readableStream));
|
|
356
307
|
}
|
|
357
308
|
/**
|
|
358
309
|
* @tsplus static fncts.observable.ObservableOps fromSubscribable
|
|
@@ -485,7 +436,7 @@ function scheduleIterable(input, scheduler) {
|
|
|
485
436
|
let iterator;
|
|
486
437
|
s.add(scheduler.schedule(() => {
|
|
487
438
|
iterator = input[Symbol.iterator]();
|
|
488
|
-
(0,
|
|
439
|
+
(0, _Scheduler.caughtSchedule)(s, scheduler, function () {
|
|
489
440
|
const {
|
|
490
441
|
value,
|
|
491
442
|
done
|
|
@@ -534,7 +485,7 @@ function schedulePromise(input, scheduler) {
|
|
|
534
485
|
});
|
|
535
486
|
}
|
|
536
487
|
function scheduleReadableStreamLike(input, scheduler) {
|
|
537
|
-
return scheduleAsyncIterable((0,
|
|
488
|
+
return scheduleAsyncIterable((0, _util.readableStreamToAsyncGenerator)(input), scheduler);
|
|
538
489
|
}
|
|
539
490
|
function timer_1(time = 0, intervalOrScheduler, scheduler = tsplus_module_5.asyncScheduler) {
|
|
540
491
|
let intervalDuration = -1;
|
|
@@ -621,11 +572,10 @@ function fromIO_1(io, scheduler = tsplus_module_5.asyncScheduler) {
|
|
|
621
572
|
/**
|
|
622
573
|
* @tsplus static fncts.observable.ObservableOps unit
|
|
623
574
|
*/
|
|
624
|
-
const unit = /*#__PURE__*/single_1(undefined);
|
|
575
|
+
const unit = exports.unit = /*#__PURE__*/single_1(undefined);
|
|
625
576
|
/**
|
|
626
577
|
* @tsplus pipeable fncts.observable.Observable zipWith
|
|
627
578
|
*/
|
|
628
|
-
exports.unit = unit;
|
|
629
579
|
function zipWith_1(fb, f) {
|
|
630
580
|
return fa => {
|
|
631
581
|
return mergeMap_1(a => map_1(b => f(a, b))(fb))(fa);
|
|
@@ -969,7 +919,7 @@ function bufferCount(bufferSize, startBufferEvery) {
|
|
|
969
919
|
}
|
|
970
920
|
if (toEmit) {
|
|
971
921
|
for (const buffer of toEmit) {
|
|
972
|
-
(0,
|
|
922
|
+
(0, _util.arrayRemove)(buffers, buffer);
|
|
973
923
|
subscriber.next(buffer);
|
|
974
924
|
}
|
|
975
925
|
}
|
|
@@ -1006,7 +956,7 @@ function bufferTime(config) {
|
|
|
1006
956
|
subs
|
|
1007
957
|
} = record;
|
|
1008
958
|
subs.unsubscribe();
|
|
1009
|
-
(0,
|
|
959
|
+
(0, _util.arrayRemove)(bufferRecords, record);
|
|
1010
960
|
subscriber.next(buffer);
|
|
1011
961
|
restartOnEmit && startBuffer();
|
|
1012
962
|
};
|
|
@@ -1065,7 +1015,7 @@ function bufferToggle(openings, closingSelector) {
|
|
|
1065
1015
|
buffers.push(buffer);
|
|
1066
1016
|
const closingSubscription = new tsplus_module_6.Subscription();
|
|
1067
1017
|
const emitBuffer = () => {
|
|
1068
|
-
(0,
|
|
1018
|
+
(0, _util.arrayRemove)(buffers, buffer);
|
|
1069
1019
|
subscriber.next(buffer);
|
|
1070
1020
|
closingSubscription.unsubscribe();
|
|
1071
1021
|
};
|
|
@@ -1465,7 +1415,7 @@ function forkJoin(...args) {
|
|
|
1465
1415
|
const {
|
|
1466
1416
|
args: sources,
|
|
1467
1417
|
keys
|
|
1468
|
-
} = (0,
|
|
1418
|
+
} = (0, _util.arrayOrObject)(args);
|
|
1469
1419
|
return new _definition2.Observable(s => {
|
|
1470
1420
|
const length = sources.length;
|
|
1471
1421
|
if (!length) {
|
|
@@ -1489,6 +1439,7 @@ function forkJoin(...args) {
|
|
|
1489
1439
|
if (! --remainingCompletions || !hasValue) {
|
|
1490
1440
|
if (!remainingEmissions) {
|
|
1491
1441
|
s.next(keys ? keys.reduce((b, k, i) => {
|
|
1442
|
+
// @ts-expect-error
|
|
1492
1443
|
b[k] = values[i];
|
|
1493
1444
|
return b;
|
|
1494
1445
|
}, {}) : values);
|
|
@@ -2035,21 +1986,20 @@ function tap(observer) {
|
|
|
2035
1986
|
})(fa);
|
|
2036
1987
|
};
|
|
2037
1988
|
}
|
|
2038
|
-
const defaultThrottleConfig = {
|
|
1989
|
+
const defaultThrottleConfig = exports.defaultThrottleConfig = {
|
|
2039
1990
|
leading: true,
|
|
2040
1991
|
trailing: false
|
|
2041
1992
|
};
|
|
2042
1993
|
/**
|
|
2043
1994
|
* @tsplus pipeable fncts.observable.Observable throttle
|
|
2044
1995
|
*/
|
|
2045
|
-
exports.defaultThrottleConfig = defaultThrottleConfig;
|
|
2046
1996
|
function throttle_1(durationSelector, {
|
|
2047
1997
|
leading,
|
|
2048
1998
|
trailing
|
|
2049
1999
|
} = defaultThrottleConfig) {
|
|
2050
2000
|
return fa => {
|
|
2051
2001
|
return tsplus_module_8.operate_((source, subscriber, environment) => {
|
|
2052
|
-
let sendValue = tsplus_module_17.nothing(fileName_1 + ":
|
|
2002
|
+
let sendValue = tsplus_module_17.nothing(fileName_1 + ":2375:51");
|
|
2053
2003
|
let throttled = null;
|
|
2054
2004
|
let isComplete = false;
|
|
2055
2005
|
const endThrottling = () => {
|
|
@@ -2073,14 +2023,14 @@ function throttle_1(durationSelector, {
|
|
|
2073
2023
|
const {
|
|
2074
2024
|
value
|
|
2075
2025
|
} = sendValue;
|
|
2076
|
-
sendValue = tsplus_module_17.nothing(fileName_1 + ":
|
|
2026
|
+
sendValue = tsplus_module_17.nothing(fileName_1 + ":2397:36");
|
|
2077
2027
|
subscriber.next(value);
|
|
2078
2028
|
!isComplete && startThrottling(value);
|
|
2079
2029
|
}
|
|
2080
2030
|
};
|
|
2081
2031
|
source.provideEnvironment(environment).subscribe(tsplus_module_8.operatorSubscriber(subscriber, {
|
|
2082
2032
|
next: value => {
|
|
2083
|
-
sendValue = tsplus_module_17.just(value, fileName_1 + ":
|
|
2033
|
+
sendValue = tsplus_module_17.just(value, fileName_1 + ":2405:29");
|
|
2084
2034
|
!(throttled && !throttled.closed) && (leading ? send() : startThrottling(value));
|
|
2085
2035
|
},
|
|
2086
2036
|
complete: () => {
|
|
@@ -2121,10 +2071,10 @@ function timeout(config) {
|
|
|
2121
2071
|
// eslint-disable-next-line prefer-const
|
|
2122
2072
|
let originalSourceSubscription;
|
|
2123
2073
|
let timerSubscription;
|
|
2124
|
-
let lastValue = tsplus_module_17.nothing(fileName_1 + ":
|
|
2074
|
+
let lastValue = tsplus_module_17.nothing(fileName_1 + ":2486:40");
|
|
2125
2075
|
let seen = 0;
|
|
2126
2076
|
const startTimer = delay => {
|
|
2127
|
-
timerSubscription = (0,
|
|
2077
|
+
timerSubscription = (0, _Scheduler.caughtSchedule)(subscriber, scheduler, () => {
|
|
2128
2078
|
originalSourceSubscription.unsubscribe();
|
|
2129
2079
|
from_1(_with({
|
|
2130
2080
|
meta,
|
|
@@ -2137,7 +2087,7 @@ function timeout(config) {
|
|
|
2137
2087
|
next: value => {
|
|
2138
2088
|
timerSubscription?.unsubscribe();
|
|
2139
2089
|
seen++;
|
|
2140
|
-
lastValue = tsplus_module_17.just(value, fileName_1 + ":
|
|
2090
|
+
lastValue = tsplus_module_17.just(value, fileName_1 + ":2514:31");
|
|
2141
2091
|
subscriber.next(value);
|
|
2142
2092
|
each > 0 && startTimer(each);
|
|
2143
2093
|
}
|
|
@@ -2145,7 +2095,7 @@ function timeout(config) {
|
|
|
2145
2095
|
if (!timerSubscription?.closed) {
|
|
2146
2096
|
timerSubscription?.unsubscribe();
|
|
2147
2097
|
}
|
|
2148
|
-
lastValue = tsplus_module_17.nothing(fileName_1 + ":
|
|
2098
|
+
lastValue = tsplus_module_17.nothing(fileName_1 + ":2523:32");
|
|
2149
2099
|
}));
|
|
2150
2100
|
startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each);
|
|
2151
2101
|
})(fa);
|
|
@@ -2255,12 +2205,12 @@ function findInternal(predicate, emit) {
|
|
|
2255
2205
|
next: value => {
|
|
2256
2206
|
const i = index++;
|
|
2257
2207
|
if (predicate(index++, value)) {
|
|
2258
|
-
subscriber.next(findIndex ? i : tsplus_module_17.just(value, fileName_1 + ":
|
|
2208
|
+
subscriber.next(findIndex ? i : tsplus_module_17.just(value, fileName_1 + ":2693:49"));
|
|
2259
2209
|
subscriber.complete();
|
|
2260
2210
|
}
|
|
2261
2211
|
},
|
|
2262
2212
|
complete: () => {
|
|
2263
|
-
subscriber.next(findIndex ? -1 : tsplus_module_17.nothing(fileName_1 + ":
|
|
2213
|
+
subscriber.next(findIndex ? -1 : tsplus_module_17.nothing(fileName_1 + ":2698:51"));
|
|
2264
2214
|
subscriber.complete();
|
|
2265
2215
|
}
|
|
2266
2216
|
}));
|