emarsys-integration-client
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -20,3 +20,3 @@ 'use strict'; | ||
try { | ||
_this.handleMessage(_this.parseMessage(event.data)); | ||
_this.handleMessage(_this.parseMessage(event.data), event); | ||
} catch (e) { | ||
@@ -63,3 +63,3 @@ return; | ||
key: 'handleMessage', | ||
value: function handleMessage(message) { | ||
value: function handleMessage(message, event) { | ||
if (!this.messageHandlers[message.event]) { | ||
@@ -70,3 +70,3 @@ return; | ||
this.messageHandlers[message.event].forEach(function (handler) { | ||
return handler.call(handler, message); | ||
return handler.call(handler, message, event); | ||
}); | ||
@@ -73,0 +73,0 @@ } |
@@ -51,3 +51,3 @@ { | ||
"homepage": "https://github.com/emartech/emarsys-integration-client-js#readme", | ||
"version": "2.2.0" | ||
"version": "2.3.0" | ||
} |
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
33824