@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.
Files changed (140) hide show
  1. package/Notification.d.ts +1 -1
  2. package/Observable/api/connectable.d.ts +1 -1
  3. package/Observable/api/raceWith.d.ts +2 -1
  4. package/Observable/api/retryWhen.d.ts +1 -1
  5. package/Observable/api/window.d.ts +1 -1
  6. package/Observable/api/windowCount.d.ts +1 -1
  7. package/Observable/api/windowToggle.d.ts +1 -1
  8. package/Observable/api/windowWhen.d.ts +1 -1
  9. package/Observable/api.d.ts +34 -34
  10. package/Observable.d.ts +16 -16
  11. package/ObservableRef.d.ts +2 -2
  12. package/_cjs/Action.cjs +2 -2
  13. package/_cjs/AnimationFrameAction.cjs +2 -2
  14. package/_cjs/AnimationFrameAction.cjs.map +1 -1
  15. package/_cjs/AnimationFrameScheduler.cjs +3 -4
  16. package/_cjs/AnimationFrameScheduler.cjs.map +1 -1
  17. package/_cjs/AsyncAction.cjs +2 -2
  18. package/_cjs/AsyncAction.cjs.map +1 -1
  19. package/_cjs/AsyncScheduler.cjs +3 -4
  20. package/_cjs/AsyncScheduler.cjs.map +1 -1
  21. package/_cjs/BehaviorSubject.cjs +2 -2
  22. package/_cjs/BehaviorSubject.cjs.map +1 -1
  23. package/_cjs/Notification.cjs +5 -10
  24. package/_cjs/Notification.cjs.map +1 -1
  25. package/_cjs/Observable/api/connect.cjs +2 -2
  26. package/_cjs/Observable/api/connectable.cjs +2 -2
  27. package/_cjs/Observable/api/connectable.cjs.map +1 -1
  28. package/_cjs/Observable/api/fromCallback.cjs +2 -3
  29. package/_cjs/Observable/api/fromCallback.cjs.map +1 -1
  30. package/_cjs/Observable/api/fromEvent.cjs +2 -2
  31. package/_cjs/Observable/api/race.cjs +2 -2
  32. package/_cjs/Observable/api/race.cjs.map +1 -1
  33. package/_cjs/Observable/api/raceWith.cjs +2 -2
  34. package/_cjs/Observable/api/raceWith.cjs.map +1 -1
  35. package/_cjs/Observable/api/repeatWhen.cjs +2 -2
  36. package/_cjs/Observable/api/repeatWhen.cjs.map +1 -1
  37. package/_cjs/Observable/api/retryWhen.cjs +2 -2
  38. package/_cjs/Observable/api/retryWhen.cjs.map +1 -1
  39. package/_cjs/Observable/api/share.cjs +2 -2
  40. package/_cjs/Observable/api/share.cjs.map +1 -1
  41. package/_cjs/Observable/api/window.cjs +2 -2
  42. package/_cjs/Observable/api/window.cjs.map +1 -1
  43. package/_cjs/Observable/api/windowCount.cjs +2 -2
  44. package/_cjs/Observable/api/windowCount.cjs.map +1 -1
  45. package/_cjs/Observable/api/windowTime.cjs +2 -2
  46. package/_cjs/Observable/api/windowTime.cjs.map +1 -1
  47. package/_cjs/Observable/api/windowToggle.cjs +5 -4
  48. package/_cjs/Observable/api/windowToggle.cjs.map +1 -1
  49. package/_cjs/Observable/api/windowWhen.cjs +2 -2
  50. package/_cjs/Observable/api/windowWhen.cjs.map +1 -1
  51. package/_cjs/Observable/api.cjs +76 -126
  52. package/_cjs/Observable/api.cjs.map +1 -1
  53. package/_cjs/Observable/definition.cjs +4 -6
  54. package/_cjs/Observable/definition.cjs.map +1 -1
  55. package/_cjs/Observable/dom/animationFrames.cjs +2 -2
  56. package/_cjs/Observable/dom/animationFrames.cjs.map +1 -1
  57. package/_cjs/Observable.cjs +64 -64
  58. package/_cjs/Observable.cjs.map +1 -1
  59. package/_cjs/ObservableRef/api.cjs +8 -9
  60. package/_cjs/ObservableRef/api.cjs.map +1 -1
  61. package/_cjs/ObservableRef/atomic.cjs +2 -2
  62. package/_cjs/ObservableRef/atomic.cjs.map +1 -1
  63. package/_cjs/ObservableRef/definition.cjs +2 -2
  64. package/_cjs/ObservableRef.cjs +8 -8
  65. package/_cjs/ObservableRef.cjs.map +1 -1
  66. package/_cjs/Operator.cjs +2 -2
  67. package/_cjs/Operator.cjs.map +1 -1
  68. package/_cjs/Scheduler.cjs +3 -4
  69. package/_cjs/Scheduler.cjs.map +1 -1
  70. package/_cjs/Subject.cjs +6 -6
  71. package/_cjs/Subject.cjs.map +1 -1
  72. package/_cjs/Subscriber.cjs +4 -6
  73. package/_cjs/Subscriber.cjs.map +1 -1
  74. package/_cjs/Subscription.cjs +5 -8
  75. package/_cjs/Subscription.cjs.map +1 -1
  76. package/_cjs/index.cjs +2 -2
  77. package/_cjs/internal/animationFrameProvider.cjs +3 -4
  78. package/_cjs/internal/animationFrameProvider.cjs.map +1 -1
  79. package/_cjs/internal/args.cjs +2 -2
  80. package/_cjs/internal/intervalProvider.cjs +1 -2
  81. package/_cjs/internal/intervalProvider.cjs.map +1 -1
  82. package/_cjs/internal/performanceTimestampProvider.cjs +1 -2
  83. package/_cjs/internal/performanceTimestampProvider.cjs.map +1 -1
  84. package/_cjs/internal/timeoutProvider.cjs +1 -2
  85. package/_cjs/internal/timeoutProvider.cjs.map +1 -1
  86. package/_cjs/internal/timestampProvider.cjs +1 -2
  87. package/_cjs/internal/timestampProvider.cjs.map +1 -1
  88. package/_cjs/internal/util.cjs +2 -2
  89. package/_cjs/internal/util.cjs.map +1 -1
  90. package/_mjs/AnimationFrameAction.mjs.map +1 -1
  91. package/_mjs/AnimationFrameScheduler.mjs.map +1 -1
  92. package/_mjs/AsyncAction.mjs.map +1 -1
  93. package/_mjs/AsyncScheduler.mjs.map +1 -1
  94. package/_mjs/BehaviorSubject.mjs.map +1 -1
  95. package/_mjs/Notification.mjs.map +1 -1
  96. package/_mjs/Observable/api/connectable.mjs.map +1 -1
  97. package/_mjs/Observable/api/fromCallback.mjs +0 -1
  98. package/_mjs/Observable/api/fromCallback.mjs.map +1 -1
  99. package/_mjs/Observable/api/race.mjs.map +1 -1
  100. package/_mjs/Observable/api/raceWith.mjs.map +1 -1
  101. package/_mjs/Observable/api/repeatWhen.mjs.map +1 -1
  102. package/_mjs/Observable/api/retryWhen.mjs.map +1 -1
  103. package/_mjs/Observable/api/share.mjs.map +1 -1
  104. package/_mjs/Observable/api/window.mjs.map +1 -1
  105. package/_mjs/Observable/api/windowCount.mjs.map +1 -1
  106. package/_mjs/Observable/api/windowTime.mjs.map +1 -1
  107. package/_mjs/Observable/api/windowToggle.mjs.map +1 -1
  108. package/_mjs/Observable/api/windowWhen.mjs.map +1 -1
  109. package/_mjs/Observable/api.mjs +9 -8
  110. package/_mjs/Observable/api.mjs.map +1 -1
  111. package/_mjs/Observable/definition.mjs +1 -1
  112. package/_mjs/Observable/definition.mjs.map +1 -1
  113. package/_mjs/Observable/dom/animationFrames.mjs.map +1 -1
  114. package/_mjs/Observable.mjs +19 -16
  115. package/_mjs/Observable.mjs.map +1 -1
  116. package/_mjs/ObservableRef/api.mjs +5 -5
  117. package/_mjs/ObservableRef/api.mjs.map +1 -1
  118. package/_mjs/ObservableRef.mjs +3 -2
  119. package/_mjs/ObservableRef.mjs.map +1 -1
  120. package/_mjs/Operator.mjs.map +1 -1
  121. package/_mjs/Scheduler.mjs +1 -2
  122. package/_mjs/Scheduler.mjs.map +1 -1
  123. package/_mjs/Subject.mjs +4 -4
  124. package/_mjs/Subject.mjs.map +1 -1
  125. package/_mjs/Subscriber.mjs.map +1 -1
  126. package/_mjs/Subscription.mjs.map +1 -1
  127. package/_mjs/internal/animationFrameProvider.mjs.map +1 -1
  128. package/_mjs/internal/util.mjs.map +1 -1
  129. package/_src/AsyncAction.ts +4 -1
  130. package/_src/Observable/api/fromCallback.ts +0 -1
  131. package/_src/Observable/api/raceWith.ts +1 -1
  132. package/_src/Observable/api.ts +5 -4
  133. package/_src/Observable/definition.ts +3 -3
  134. package/_src/Observable.ts +19 -16
  135. package/_src/ObservableRef/api.ts +12 -3
  136. package/_src/ObservableRef.ts +3 -2
  137. package/_src/Operator.ts +5 -1
  138. package/_src/Scheduler.ts +4 -1
  139. package/_src/Subject.ts +4 -1
  140. package/package.json +2 -2
@@ -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 tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/internal/util"));
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 tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/observable/Scheduler"));
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(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
148
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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.defer = defer;
152
- const empty = empty_1;
153
- exports.empty = empty;
154
- const environmentWithObservable = environmentWithObservable_1;
155
- exports.environmentWithObservable = environmentWithObservable;
156
- const fail = fail_1;
157
- exports.fail = fail;
158
- const from = from_1;
159
- exports.from = from;
160
- const fromSubscribable = fromSubscribable_1;
161
- exports.fromSubscribable = fromSubscribable;
162
- const interval = interval_1;
163
- exports.interval = interval;
164
- const of = of_1;
165
- exports.of = of;
166
- const single = single_1;
167
- exports.single = single;
168
- const scheduled = scheduled_1;
169
- exports.scheduled = scheduled;
170
- const timer = timer_1;
171
- exports.timer = timer;
172
- const fromIO = fromIO_1;
173
- exports.fromIO = fromIO;
174
- const zipWith = zipWith_1;
175
- exports.zipWith = zipWith;
176
- const mapWithIndex = mapWithIndex_1;
177
- exports.mapWithIndex = mapWithIndex;
178
- const map_ = map_1;
179
- exports.map_ = map_;
180
- const as = as_1;
181
- exports.as = as;
182
- const filterWithIndex = filterWithIndex_1;
183
- exports.filterWithIndex = filterWithIndex;
184
- const filterMapWithIndex = filterMapWithIndex_1;
185
- exports.filterMapWithIndex = filterMapWithIndex;
186
- const partitionWithIndex = partitionWithIndex_1;
187
- exports.partitionWithIndex = partitionWithIndex;
188
- const partitionMapWithIndex = partitionMapWithIndex_1;
189
- exports.partitionMapWithIndex = partitionMapWithIndex;
190
- const mergeMapWithIndex = mergeMapWithIndex_1;
191
- exports.mergeMapWithIndex = mergeMapWithIndex;
192
- const mergeMap = mergeMap_1;
193
- exports.mergeMap = mergeMap;
194
- const contramapEnvironment = contramapEnvironment_1;
195
- exports.contramapEnvironment = contramapEnvironment;
196
- const foldLeftWithIndex = foldLeftWithIndex_1;
197
- exports.foldLeftWithIndex = foldLeftWithIndex;
198
- const foldLeft = foldLeft_1;
199
- exports.foldLeft = foldLeft;
200
- const audit = audit_1;
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, tsplus_module_2.readableStreamToAsyncGenerator)(readableStream));
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, tsplus_module_7.caughtSchedule)(s, scheduler, function () {
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, tsplus_module_2.readableStreamToAsyncGenerator)(input), scheduler);
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, tsplus_module_2.arrayRemove)(buffers, buffer);
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, tsplus_module_2.arrayRemove)(bufferRecords, record);
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, tsplus_module_2.arrayRemove)(buffers, buffer);
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, tsplus_module_2.arrayOrObject)(args);
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 + ":2374:51");
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 + ":2396:36");
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 + ":2404:29");
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 + ":2485:40");
2074
+ let lastValue = tsplus_module_17.nothing(fileName_1 + ":2486:40");
2125
2075
  let seen = 0;
2126
2076
  const startTimer = delay => {
2127
- timerSubscription = (0, tsplus_module_7.caughtSchedule)(subscriber, scheduler, () => {
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 + ":2513:31");
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 + ":2522:32");
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 + ":2692:49"));
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 + ":2697:51"));
2213
+ subscriber.next(findIndex ? -1 : tsplus_module_17.nothing(fileName_1 + ":2698:51"));
2264
2214
  subscriber.complete();
2265
2215
  }
2266
2216
  }));