Comparing version 3.0.4 to 3.0.5
@@ -19,17 +19,15 @@ "use strict"; | ||
_this.connections = {}; | ||
if (options.hooks && options.hooks.didSetState) { | ||
var didSetState_1 = _this.hooks.didSetState; | ||
var connections_1 = _this.connections; | ||
_this.hooks.didSetState = function (fieldName, newState, isolate, store) { | ||
didSetState_1(fieldName, newState, isolate, store); | ||
var cnns = connections_1[fieldName]; | ||
if (cnns && cnns.length) { | ||
for (var i = 0, l = cnns.length; i < l; i++) { | ||
if (cnns[i]) { | ||
cnns[i].comp[cnns[i].propName] = _this.getState(cnns[i].statePath); | ||
} | ||
var didSetState = _this.hooks.didSetState; | ||
var connections = _this.connections; | ||
_this.hooks.didSetState = function (fieldName, newState, isolate, store) { | ||
didSetState(fieldName, newState, isolate, store); | ||
var cnns = connections[fieldName]; | ||
if (cnns && cnns.length) { | ||
for (var i = 0, l = cnns.length; i < l; i++) { | ||
if (cnns[i]) { | ||
cnns[i].comp[cnns[i].propName] = _this.getState(cnns[i].statePath); | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
}; | ||
_this.options = tslib_1.__assign({}, options); | ||
@@ -36,0 +34,0 @@ return _this; |
{ | ||
"name": "motx", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "A lightweight application state transfer and storage tool based on the mediator pattern and provides efficient solutions to communication problems between multiple processes or closed modules", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43921
657