mobx-state-tree 5.4.1 → 5.4.2
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.
|
@@ -865,14 +865,18 @@ function getMembers(target) {
|
|
|
865
865
|
reflected.volatile.push(key);
|
|
866
866
|
return;
|
|
867
867
|
}
|
|
868
|
-
if (descriptor.value.
|
|
869
|
-
reflected.actions.push(key);
|
|
870
|
-
if (descriptor.value._isFlowAction === true)
|
|
868
|
+
if (descriptor.value._isFlowAction === true) {
|
|
871
869
|
reflected.flowActions.push(key);
|
|
872
|
-
|
|
870
|
+
}
|
|
871
|
+
if (descriptor.value._isMSTAction === true) {
|
|
872
|
+
reflected.actions.push(key);
|
|
873
|
+
}
|
|
874
|
+
else if (isObservableProp(target, key)) {
|
|
873
875
|
reflected.volatile.push(key);
|
|
874
|
-
|
|
876
|
+
}
|
|
877
|
+
else {
|
|
875
878
|
reflected.views.push(key);
|
|
879
|
+
}
|
|
876
880
|
});
|
|
877
881
|
return reflected;
|
|
878
882
|
}
|
|
@@ -5902,7 +5906,7 @@ function toPropertiesObject(declaredProps) {
|
|
|
5902
5906
|
throw fail("Invalid type definition for property '" + key + "', cannot infer a type from a value like '" + value + "' (" + typeof value + ")");
|
|
5903
5907
|
}
|
|
5904
5908
|
return props;
|
|
5905
|
-
}, declaredProps);
|
|
5909
|
+
}, __assign({}, declaredProps));
|
|
5906
5910
|
}
|
|
5907
5911
|
/**
|
|
5908
5912
|
* @internal
|
|
@@ -869,14 +869,18 @@
|
|
|
869
869
|
reflected.volatile.push(key);
|
|
870
870
|
return;
|
|
871
871
|
}
|
|
872
|
-
if (descriptor.value.
|
|
873
|
-
reflected.actions.push(key);
|
|
874
|
-
if (descriptor.value._isFlowAction === true)
|
|
872
|
+
if (descriptor.value._isFlowAction === true) {
|
|
875
873
|
reflected.flowActions.push(key);
|
|
876
|
-
|
|
874
|
+
}
|
|
875
|
+
if (descriptor.value._isMSTAction === true) {
|
|
876
|
+
reflected.actions.push(key);
|
|
877
|
+
}
|
|
878
|
+
else if (mobx.isObservableProp(target, key)) {
|
|
877
879
|
reflected.volatile.push(key);
|
|
878
|
-
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
879
882
|
reflected.views.push(key);
|
|
883
|
+
}
|
|
880
884
|
});
|
|
881
885
|
return reflected;
|
|
882
886
|
}
|
|
@@ -5884,7 +5888,7 @@
|
|
|
5884
5888
|
throw fail("Invalid type definition for property '" + key + "', cannot infer a type from a value like '" + value + "' (" + typeof value + ")");
|
|
5885
5889
|
}
|
|
5886
5890
|
return props;
|
|
5887
|
-
}, declaredProps);
|
|
5891
|
+
}, __assign({}, declaredProps));
|
|
5888
5892
|
}
|
|
5889
5893
|
/**
|
|
5890
5894
|
* @internal
|