dataflux 1.14.1 → 1.14.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.
- package/README.md +1 -1
- package/dist/Model.js +1 -0
- package/dist/dataflux.min.js +1 -1
- package/dist/dataflux.min.js.map +1 -1
- package/dist/modelHooksUtils.js +14 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -301,7 +301,7 @@ All the possible options for a model creation are (they are all optional):
|
|
|
301
301
|
| deep | A boolean defining if nested objects should be enriched with the object methods. | true |
|
|
302
302
|
| lazyLoad | A boolean defining if the model should be lazy loaded on the first use. This takes precedence over the lazyLoad declared during store initialization. | false |
|
|
303
303
|
| validate | A dictionary containing functions to validate the objects of this model. See [objects validation](#objects-validation) | no validation |
|
|
304
|
-
|autoRefresh| Set auto refresh for the specific model. See `autoRefresh` in the [store config](#configuration).
|
|
304
|
+
| autoRefresh | Set auto refresh for the specific model. See `autoRefresh` in the [store config](#configuration). | |
|
|
305
305
|
|
|
306
306
|
|
|
307
307
|
### Operations
|
package/dist/Model.js
CHANGED
|
@@ -161,6 +161,7 @@ var Model = exports["default"] = /*#__PURE__*/_createClass(function Model(name)
|
|
|
161
161
|
for (var key in object) {
|
|
162
162
|
if (typeof object[key] !== "function") {
|
|
163
163
|
if (object.getError(key)) {
|
|
164
|
+
console.log("Model error", key, object.getError(key));
|
|
164
165
|
return false;
|
|
165
166
|
}
|
|
166
167
|
}
|