@dereekb/rxjs 13.0.1 → 13.0.4

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/index.cjs.js CHANGED
@@ -4596,7 +4596,7 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4596
4596
  */ function onLockSetNextUnlock(param) {
4597
4597
  var lockSet = param.lockSet, fn = param.fn, inputTimeout = param.timeout, delayTime = param.delayTime;
4598
4598
  var timeoutTime = inputTimeout !== null && inputTimeout !== void 0 ? inputTimeout : util.MS_IN_SECOND * 50;
4599
- return lockSet.isUnlocked$.pipe(rxjs.filter(function(x) {
4599
+ var obs = lockSet.isUnlocked$.pipe(rxjs.filter(function(x) {
4600
4600
  return x;
4601
4601
  }), rxjs.delay(delayTime !== null && delayTime !== void 0 ? delayTime : 0), rxjs.timeout({
4602
4602
  first: timeoutTime,
@@ -4605,7 +4605,10 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4605
4605
  return console.warn('LockSet time out. Potential issue detected.');
4606
4606
  }));
4607
4607
  }
4608
- }), rxjs.first()).subscribe(fn);
4608
+ }), rxjs.first());
4609
+ return obs.subscribe({
4610
+ next: fn !== null && fn !== void 0 ? fn : undefined
4611
+ });
4609
4612
  }
4610
4613
  /**
4611
4614
  * Used for preventing an action until all keys are removed.
@@ -4614,6 +4617,7 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4614
4617
  */ var LockSet = /*#__PURE__*/ function() {
4615
4618
  function LockSet() {
4616
4619
  _class_call_check$1(this, LockSet);
4620
+ _define_property$1(this, "_isDestroyed", false);
4617
4621
  _define_property$1(this, "_onDestroy", new rxjs.Subject());
4618
4622
  _define_property$1(this, "_locks", new rxjs.BehaviorSubject(new Map()));
4619
4623
  _define_property$1(this, "_parentSub", new SubscriptionObject());
@@ -4742,7 +4746,13 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4742
4746
  }
4743
4747
  },
4744
4748
  {
4745
- // Cleanup
4749
+ key: "isDestroyed",
4750
+ get: // Cleanup
4751
+ function get() {
4752
+ return this._isDestroyed;
4753
+ }
4754
+ },
4755
+ {
4746
4756
  key: "destroyOnNextUnlock",
4747
4757
  value: function destroyOnNextUnlock(config, delayTime) {
4748
4758
  var _this = this;
@@ -4770,6 +4780,7 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4770
4780
  {
4771
4781
  key: "destroy",
4772
4782
  value: function destroy() {
4783
+ this._isDestroyed = true;
4773
4784
  this._locks.complete();
4774
4785
  this._parentSub.destroy();
4775
4786
  this._onDestroy.next();
@@ -5262,3 +5273,4 @@ exports.valueFromObservableOrValue = valueFromObservableOrValue;
5262
5273
  exports.valueFromObservableOrValueGetter = valueFromObservableOrValueGetter;
5263
5274
  exports.workFactory = workFactory;
5264
5275
  exports.workFactoryForConfigFactory = workFactoryForConfigFactory;
5276
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/index.esm.js CHANGED
@@ -4594,7 +4594,7 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4594
4594
  */ function onLockSetNextUnlock(param) {
4595
4595
  var lockSet = param.lockSet, fn = param.fn, inputTimeout = param.timeout, delayTime = param.delayTime;
4596
4596
  var timeoutTime = inputTimeout !== null && inputTimeout !== void 0 ? inputTimeout : MS_IN_SECOND * 50;
4597
- return lockSet.isUnlocked$.pipe(filter(function(x) {
4597
+ var obs = lockSet.isUnlocked$.pipe(filter(function(x) {
4598
4598
  return x;
4599
4599
  }), delay(delayTime !== null && delayTime !== void 0 ? delayTime : 0), timeout({
4600
4600
  first: timeoutTime,
@@ -4603,7 +4603,10 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4603
4603
  return console.warn('LockSet time out. Potential issue detected.');
4604
4604
  }));
4605
4605
  }
4606
- }), first()).subscribe(fn);
4606
+ }), first());
4607
+ return obs.subscribe({
4608
+ next: fn !== null && fn !== void 0 ? fn : undefined
4609
+ });
4607
4610
  }
4608
4611
  /**
4609
4612
  * Used for preventing an action until all keys are removed.
@@ -4612,6 +4615,7 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4612
4615
  */ var LockSet = /*#__PURE__*/ function() {
4613
4616
  function LockSet() {
4614
4617
  _class_call_check$1(this, LockSet);
4618
+ _define_property$1(this, "_isDestroyed", false);
4615
4619
  _define_property$1(this, "_onDestroy", new Subject());
4616
4620
  _define_property$1(this, "_locks", new BehaviorSubject(new Map()));
4617
4621
  _define_property$1(this, "_parentSub", new SubscriptionObject());
@@ -4740,7 +4744,13 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4740
4744
  }
4741
4745
  },
4742
4746
  {
4743
- // Cleanup
4747
+ key: "isDestroyed",
4748
+ get: // Cleanup
4749
+ function get() {
4750
+ return this._isDestroyed;
4751
+ }
4752
+ },
4753
+ {
4744
4754
  key: "destroyOnNextUnlock",
4745
4755
  value: function destroyOnNextUnlock(config, delayTime) {
4746
4756
  var _this = this;
@@ -4768,6 +4778,7 @@ var DEFAULT_LOCK_SET_TIME_LOCK_KEY = 'timelock';
4768
4778
  {
4769
4779
  key: "destroy",
4770
4780
  value: function destroy() {
4781
+ this._isDestroyed = true;
4771
4782
  this._locks.complete();
4772
4783
  this._parentSub.destroy();
4773
4784
  this._onDestroy.next();
@@ -5080,3 +5091,4 @@ function _define_property(obj, key, value) {
5080
5091
  }
5081
5092
 
5082
5093
  export { DEFAULT_ASYNC_PUSHER_THROTTLE, DEFAULT_FACTORY_TIMER_INTERVAL, DEFAULT_ITEM_PAGE_ITERATOR_MAX, DEFAULT_LOADING_EVENT_FOR_LOADING_PAIR_FUNCTION, DEFAULT_LOCK_SET_TIME_LOCK_KEY, FilterMap, FilterMapKeyInstance, FilterSource, FilterSourceConnector, FilterSourceInstance, ItemPageIterationInstance, ItemPageIterator, LoadingStateType, LockSet, MultiSubscriptionObject, PresetFilterSource, SimpleLoadingContext, SubscriptionObject, ValuesLoadingContext, WorkInstance, accumulatorCurrentPageListLoadingState, accumulatorFlattenPageListLoadingState, areAllLoadingStatesFinishedLoading, arrayValueFromFinishedLoadingState, asObservable, asObservableFromGetter, asyncPusher, asyncPusherCache, beginLoading, beginLoadingPage, catchLoadingStateErrorWithOperator, checkIs, cleanup, cleanupDestroyable, combineLatestFromArrayObsFn, combineLatestFromMapValuesObsFn, combineLatestFromObject, combineLatestMapFrom, combineLoadingStates, combineLoadingStatesStatus, currentValueFromLoadingState, distinctLoadingState, distinctUntilArrayLengthChanges, distinctUntilHasDifferentValues, distinctUntilItemsHaveDifferentValues, distinctUntilItemsValueChanges, distinctUntilKeysChange, distinctUntilMapHasDifferentKeys, distinctUntilModelIdChange, distinctUntilModelKeyChange, distinctUntilObjectKeyChange, distinctUntilObjectValuesChanged, emitAfterDelay, emitDelayObs, errorFromLoadingState, errorOnEmissionsInPeriod, errorPageResult, errorResult, factoryTimer, filterIfObjectValuesUnchanged, filterItemsWithObservableDecision, filterMaybe, filterMaybeArray, filterMaybeStrict, filterUnique, filterWithSearchString, flattenAccumulatorResultItemArray, idleLoadingState, incrementingNumberTimer, initialize, invertObservableDecision, isAnyLoadingStateInLoadingState, isItemPageIteratorResultEndResult, isListLoadingStateWithEmptyValue, isLoading, isLoadingStateEqual, isLoadingStateFinishedLoading, isLoadingStateFinishedLoadingWithDefinedValue, isLoadingStateFinishedLoadingWithError, isLoadingStateInErrorState, isLoadingStateInIdleState, isLoadingStateInLoadingState, isLoadingStateInSuccessState, isLoadingStateLoading, isLoadingStateMetadataEqual, isLoadingStateWithDefinedValue, isLoadingStateWithError, isLoadingStateWithStateType, isNot, isPageLoadingStateMetadataEqual, itemAccumulator, itemAccumulatorNextPageUntilResultsCount, iterationHasNextAndCanLoadMore, iteratorNextPageUntilMaxPageLoadLimit, iteratorNextPageUntilPage, keyValueMap, lazyFrom, listLoadingStateContext, loadingStateContext, loadingStateFromObs, loadingStateType, makeCheckIsFunction, makeIsModifiedFunction, makeIsModifiedFunctionObservable, makeMapFilterWithPresetFn, makeReturnIfIsFunction, mapEachAsync, mapFilterWithPreset, mapForEach, mapIf, mapIsListLoadingStateWithEmptyValue, mapItemIteration, mapKeysIntersectionToArray, mapLoadingState, mapLoadingStateResults, mapLoadingStateValueFunction, mapLoadingStateValueWithOperator, mapMaybe, mapMultipleLoadingStateResults, mappedPageItemIteration, maybeValueFromObservableOrValue, maybeValueFromObservableOrValueGetter, mergeLoadingStateWithError, mergeLoadingStateWithLoading, mergeLoadingStateWithValue, mergeLoadingStates, multiKeyValueMap, onFalseToTrue, onLockSetNextUnlock, onMatchDelta, onTrueToFalse, pageItemAccumulatorCurrentPage, pageLoadingStateFromObs, pipeIf, preventComplete, promiseFromLoadingState, randomDelay, randomDelayWithRandomFunction, returnIfIs, scanBuildArray, scanCount, scanIntoArray, setContainsAllValuesFrom, setContainsAnyValueFrom, setContainsNoValueFrom, skipAfterExpiration, skipAllInitialMaybe, skipExpired, skipInitialMaybe, skipMaybes, skipUntilExpiration, skipUntilTimeElapsedAfterLastEmission, startWithBeginLoading, successPageResult, successResult, switchMapFilterMaybe, switchMapMaybe, switchMapMaybeDefault, switchMapMaybeLoadingContextStream, switchMapObject, switchMapOnBoolean, switchMapToDefault, switchMapWhileFalse, switchMapWhileTrue, takeAfterTimeElapsedSinceLastEmission, tapAfterTimeout, tapFirst, tapLog, tapOnLoadingStateSuccess, tapOnLoadingStateType, throwErrorAfterTimeout, throwErrorFromLoadingStateError, timeoutStartWith, toExpiration, useAsObservable, useFirst, valueFromFinishedLoadingState, valueFromLoadingState, valueFromObservableOrValue, valueFromObservableOrValueGetter, workFactory, workFactoryForConfigFactory };
5094
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dereekb/rxjs",
3
- "version": "13.0.1",
3
+ "version": "13.0.4",
4
4
  "peerDependencies": {
5
5
  "rxjs": "^7.8.0",
6
- "@dereekb/util": "13.0.1"
6
+ "@dereekb/util": "13.0.4"
7
7
  },
8
8
  "exports": {
9
9
  "./package.json": "./package.json",
package/src/lib/lock.d.ts CHANGED
@@ -2,6 +2,9 @@ import { type ObservableOrValue } from './rxjs/getter';
2
2
  import { type Subscription, type Observable } from 'rxjs';
3
3
  import { type Destroyable, type Maybe } from '@dereekb/util';
4
4
  export type LockKey = string;
5
+ /**
6
+ * Called when the lock set becomes unlocked, or the unlock times out.
7
+ */
5
8
  export type OnLockSetUnlockedFunction = (unlocked: boolean) => void;
6
9
  export type RemoveLockFunction = () => void;
7
10
  export interface OnLockSetUnlockedConfig {
@@ -35,6 +38,7 @@ export declare function onLockSetNextUnlock({ lockSet, fn, timeout: inputTimeout
35
38
  */
36
39
  export declare class LockSet implements Destroyable {
37
40
  private static LOCK_SET_CHILD_INDEX_STEPPER;
41
+ private _isDestroyed;
38
42
  private readonly _onDestroy;
39
43
  private readonly _locks;
40
44
  private readonly _parentSub;
@@ -59,6 +63,7 @@ export declare class LockSet implements Destroyable {
59
63
  * Convenience function for watching a child lockset's locked state and propogating it upward.
60
64
  */
61
65
  addChildLockSet(lockSet: LockSet, key?: LockKey): RemoveLockFunction;
66
+ get isDestroyed(): boolean;
62
67
  destroyOnNextUnlock(config?: Maybe<DestroyOnNextUnlockConfig['fn'] | DestroyOnNextUnlockConfig>, delayTime?: number): void;
63
68
  destroy(): void;
64
69
  }