mobx 6.13.7 → 6.15.0

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.
@@ -1006,7 +1006,8 @@ function make_$5(adm, key, descriptor, source) {
1006
1006
  // lone setter -> action setter
1007
1007
  if (descriptor.set) {
1008
1008
  // TODO make action applicable to setter and delegate to action.make_
1009
- var set = createAction(key.toString(), descriptor.set);
1009
+ var set = isAction(descriptor.set) ? descriptor.set // See #4553
1010
+ : createAction(key.toString(), descriptor.set);
1010
1011
  // own
1011
1012
  if (source === adm.target_) {
1012
1013
  return adm.defineProperty_(key, {
@@ -1371,13 +1372,14 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
1371
1372
  _this.equals = equals;
1372
1373
  _this.value_ = enhancer(value, undefined, name_);
1373
1374
  if ( notifySpy && isSpyEnabled()) {
1375
+ var _this$value_;
1374
1376
  // only notify spy if this is a stand-alone observable
1375
1377
  spyReport({
1376
1378
  type: CREATE,
1377
1379
  object: _this,
1378
1380
  observableKind: "value",
1379
1381
  debugObjectName: _this.name_,
1380
- newValue: "" + _this.value_
1382
+ newValue: "" + ((_this$value_ = _this.value_) == null ? void 0 : _this$value_.toString())
1381
1383
  });
1382
1384
  }
1383
1385
  return _this;
@@ -2545,6 +2547,9 @@ var Reaction = /*#__PURE__*/function () {
2545
2547
  };
2546
2548
  abortSignal == null || abortSignal.addEventListener == null || abortSignal.addEventListener("abort", dispose);
2547
2549
  dispose[$mobx] = this;
2550
+ if ("dispose" in Symbol && typeof Symbol.dispose === "symbol") {
2551
+ dispose[Symbol.dispose] = dispose;
2552
+ }
2548
2553
  return dispose;
2549
2554
  };
2550
2555
  _proto.toString = function toString() {