shelving 1.57.0 → 1.57.1

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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "state-management",
12
12
  "query-builder"
13
13
  ],
14
- "version": "1.57.0",
14
+ "version": "1.57.1",
15
15
  "repository": "https://github.com/dhoulb/shelving",
16
16
  "author": "Dave Houlbrooke <dave@shax.com>",
17
17
  "license": "0BSD",
@@ -40,7 +40,7 @@ export interface Observer<T> {
40
40
  */
41
41
  readonly from?: (source: Subscribable<T>) => this;
42
42
  /** Receive the next value. */
43
- readonly next: Dispatcher<[T]>;
43
+ readonly next?: Dispatcher<[T]>;
44
44
  /** End the subscription with an error. */
45
45
  readonly error?: Handler;
46
46
  /** End the subscription with success. */
@@ -17,8 +17,9 @@ export function subscribe(source, target) {
17
17
  }
18
18
  /** Dispatch the next value to an observer (and if the next value errors, calls a handler). */
19
19
  export function dispatchNext(observer, value) {
20
+ var _a;
20
21
  try {
21
- observer.next(value);
22
+ (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value);
22
23
  }
23
24
  catch (thrown) {
24
25
  logError(thrown);