@singularsystems/neo-react 1.0.0-beta.5 → 1.0.0-beta.6
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.
|
@@ -27,11 +27,11 @@ var ReactModelCreator = /** @class */ (function (_super) {
|
|
|
27
27
|
model.isSuspended = false;
|
|
28
28
|
};
|
|
29
29
|
ReactModelCreator.prototype.setupObject = function (typeInfo, object, options) {
|
|
30
|
-
var _a, _b
|
|
30
|
+
var _a, _b;
|
|
31
31
|
var annotations = {};
|
|
32
32
|
var observables = {};
|
|
33
|
-
for (var _i = 0,
|
|
34
|
-
var propertyInfo =
|
|
33
|
+
for (var _i = 0, _c = typeInfo.properties; _i < _c.length; _i++) {
|
|
34
|
+
var propertyInfo = _c[_i];
|
|
35
35
|
if (propertyInfo.isObservable !== false) {
|
|
36
36
|
var propertyName = propertyInfo.propertyName, makeObservable_1 = (_a = propertyInfo.isObservable) !== null && _a !== void 0 ? _a : options.makeObservable;
|
|
37
37
|
var propertyInstance = void 0;
|
|
@@ -56,9 +56,9 @@ var ReactModelCreator = /** @class */ (function (_super) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
for (var
|
|
60
|
-
var methodInfo =
|
|
61
|
-
if ((
|
|
59
|
+
for (var _d = 0, _e = Array.from(typeInfo.methods.values()); _d < _e.length; _d++) {
|
|
60
|
+
var methodInfo = _e[_d];
|
|
61
|
+
if ((_b = methodInfo.isAction) !== null && _b !== void 0 ? _b : options.autoActions) {
|
|
62
62
|
annotations[methodInfo.name] = action;
|
|
63
63
|
}
|
|
64
64
|
}
|
package/package.json
CHANGED