New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lightning-client-utils

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-client-utils - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

27

index.js

@@ -204,5 +204,13 @@

getId: function(viz) {
var $el = viz.$el;
if(!viz.$el) {
$el = $(viz.selection);
}
return $el.closest('[data-model=visualization]').data('model-id');
},
getUrl: function(viz) {
var vid = viz.$el.closest('[data-model=visualization]').data('model-id');
var vid = this.getId(viz);
var host = '/';

@@ -311,2 +319,19 @@

});
},
getCommForViz: function(viz) {
var m = (window.lightning || {}).comm_map;
if(m) {
return m[this.getId(viz)];
}
},
sendCommMessage: function(viz, type, data) {
var comm = this.getCommForViz(viz);
if(comm) {
comm.send(JSON.stringify({
type: type,
data: data
}));
}
}

@@ -313,0 +338,0 @@

2

package.json
{
"name": "lightning-client-utils",
"version": "0.5.0",
"version": "0.6.0",
"description": "utilities for lightning visualizations to be used in the browser",

@@ -5,0 +5,0 @@ "main": "index.js",

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