Socket
Socket
Sign inDemoInstall

cytoscape-clipboard

Package Overview
Dependencies
2
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 2.0.0

8

cytoscape-clipboard.js

@@ -5,5 +5,5 @@ ;(function () {

// registers the extension on a cytoscape lib ref
var register = function (cytoscape) {
var register = function (cytoscape, $) {
if (!cytoscape) {
if (!cytoscape || !$) {
return;

@@ -144,6 +144,6 @@ } // can't register if cytoscape unspecified

if (typeof cytoscape !== 'undefined') { // expose to global cytoscape (i.e. window.cytoscape)
register(cytoscape);
if (typeof cytoscape !== 'undefined' && typeof jQuery !== 'undefined') { // expose to global cytoscape (i.e. window.cytoscape)
register(cytoscape, jQuery);
}
})();

@@ -0,0 +0,0 @@ var gulp = require('gulp');

{
"name": "cytoscape-clipboard",
"version": "1.0.3",
"version": "2.0.0",
"description": "Adds copy-paste utilities to cytoscape.",

@@ -25,2 +25,6 @@ "main": "cytoscape-clipboard.js",

"homepage": "https://github.com/iVis-at-Bilkent/clipboard",
"peerDependencies": {
"cytoscape": "^2.6.12 || ^3.0.0",
"jquery": "^1.3.2 || ^2.0.0 || ^3.0.0"
},
"devDependencies": {

@@ -27,0 +31,0 @@ "gulp": "^3.8.8",

@@ -7,5 +7,4 @@ cytoscape-clipboard

Adds copy-paste utilities to cytoscape.
A Cytoscape.js extension to provide copy-paste utilities, distributed under [The MIT License](https://opensource.org/licenses/MIT).
## API

@@ -46,3 +45,4 @@

* Cytoscape.js ^2.6.12
* Cytoscape.js ^2.6.12 || ^3.0.0
* jQuery ^1.3.2 || ^2.0.0 || ^3.0.0
* cytoscape-undo-redo ^1.0.8 (optional)

@@ -63,5 +63,6 @@

var cytoscape = require('cytoscape');
var jquery = require('jquery');
var clipboard = require('cytoscape-clipboard');
clipboard( cytoscape ); // register extension
clipboard( cytoscape, jquery ); // register extension
```

@@ -68,0 +69,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc