mobx 6.13.2 → 6.13.3
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/CHANGELOG.md +6 -0
- package/dist/mobx.cjs.development.js +12 -5
- package/dist/mobx.cjs.development.js.map +1 -1
- package/dist/mobx.cjs.production.min.js +1 -1
- package/dist/mobx.cjs.production.min.js.map +1 -1
- package/dist/mobx.esm.development.js +12 -5
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +12 -5
- package/dist/mobx.esm.js.map +1 -1
- package/dist/mobx.esm.production.min.js +1 -1
- package/dist/mobx.esm.production.min.js.map +1 -1
- package/dist/mobx.umd.development.js +12 -5
- package/dist/mobx.umd.development.js.map +1 -1
- package/dist/mobx.umd.production.min.js +1 -1
- package/dist/mobx.umd.production.min.js.map +1 -1
- package/package.json +1 -1
- package/src/types/actionannotation.ts +12 -7
package/dist/mobx.esm.js
CHANGED
|
@@ -706,12 +706,19 @@ function decorate_20223_$1(mthd, context) {
|
|
|
706
706
|
var _ann$options_$name, _ann$options_, _ann$options_$autoAct, _ann$options_2;
|
|
707
707
|
return createAction((_ann$options_$name = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.name) != null ? _ann$options_$name : name.toString(), m, (_ann$options_$autoAct = (_ann$options_2 = ann.options_) == null ? void 0 : _ann$options_2.autoAction) != null ? _ann$options_$autoAct : false);
|
|
708
708
|
};
|
|
709
|
-
// Backwards/Legacy behavior, expects makeObservable(this)
|
|
710
709
|
if (kind == "field") {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
710
|
+
return function (initMthd) {
|
|
711
|
+
var _ann$options_3;
|
|
712
|
+
var mthd = initMthd;
|
|
713
|
+
if (!isAction(mthd)) {
|
|
714
|
+
mthd = _createAction(mthd);
|
|
715
|
+
}
|
|
716
|
+
if ((_ann$options_3 = ann.options_) != null && _ann$options_3.bound) {
|
|
717
|
+
mthd = mthd.bind(this);
|
|
718
|
+
mthd.isMobxAction = true;
|
|
719
|
+
}
|
|
720
|
+
return mthd;
|
|
721
|
+
};
|
|
715
722
|
}
|
|
716
723
|
if (kind == "method") {
|
|
717
724
|
var _this$options_2;
|