evmux-app-framework 0.0.31 → 0.0.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evmux-app-framework",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -129,9 +129,7 @@ let createEventResultObject = (requestName, eventName, result) => {
129
129
  {
130
130
 
131
131
  if (this._userAppInstances[requestObj.userAppInstanceId]) {
132
- this._eventHandler.publish("updateSettings", requestObj)
133
- this._eventHandler.publish("updateEverywhere", requestObj)
134
- this.updateAndNotifyAppInstancesOnSettingsUpdate(requestObj.userAppInstanceId, requestObj.data, requestObj.componentId)
132
+ this.updateSettingsAndPublish(requestObj);
135
133
  }
136
134
  }
137
135
  else if (requestObj.request == availableRequests.raiseAppMessagingEvent)
@@ -190,7 +188,13 @@ let createEventResultObject = (requestName, eventName, result) => {
190
188
  PostMessageManager.respondForPromiseBasedRequest(requestObj, evt.source, evt.origin, result);
191
189
  }
192
190
  }
193
-
191
+
192
+ updateSettingsAndPublish(requestObj) {
193
+ this._eventHandler.publish("updateSettings", requestObj)
194
+ this._eventHandler.publish("updateEverywhere", requestObj)
195
+ this.updateAndNotifyAppInstancesOnSettingsUpdate(requestObj.userAppInstanceId, requestObj.data, requestObj.componentId)
196
+ }
197
+
194
198
  onUserAppComponentUnload(userAppInstanceId, componentId)
195
199
  {
196
200
  if (this._userAppInstances[userAppInstanceId] && this._userAppInstances[userAppInstanceId].instances[componentId]) {