@appsemble/sdk
Advanced tools
Comparing version 0.0.0-alpha.5 to 0.0.0-alpha.6
@@ -87,2 +87,11 @@ // This module is autogenerated, so it can be imported. | ||
/** | ||
* @ignore This is exported for testing purposes. | ||
*/ | ||
export function handleNotification(notification) { | ||
var event = new Event('notification'); | ||
event.notification = notification; | ||
dispatchEvent(event); | ||
} | ||
addEventListener('message', function (event) { | ||
@@ -94,5 +103,12 @@ // The message is from a source which isn't Appsemble. | ||
event.stopImmediatePropagation(); | ||
if (event.data.type === 'rpc') { | ||
handleRPCResponse(event.data); | ||
switch (event.data.type) { | ||
case 'rpc': | ||
handleRPCResponse(event.data); | ||
break; | ||
case 'notification': | ||
handleNotification(event.data); | ||
break; | ||
default: | ||
break; | ||
} | ||
}); |
{ | ||
"name": "@appsemble/sdk", | ||
"description": "The JavaScript SDK for communication with the Appsemble extension host.", | ||
"version": "0.0.0-alpha.5", | ||
"version": "0.0.0-alpha.6", | ||
"license": "MIT", | ||
"author": "Appsemble <support@appsemble.com> (https://www.appsemble.com)" | ||
} |
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
10335
11
307