Socket
Socket
Sign inDemoInstall

@appsemble/sdk

Package Overview
Dependencies
Maintainers
3
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsemble/sdk - npm Package Compare versions

Comparing version 0.0.0-alpha.5 to 0.0.0-alpha.6

external.js

20

lib/communication.js

@@ -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;
}
});

2

package.json
{
"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)"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc