Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diagram-js

Package Overview
Dependencies
Maintainers
8
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diagram-js - npm Package Compare versions

Comparing version 14.5.1 to 14.5.2

22

lib/features/context-pad/ContextPad.js

@@ -397,6 +397,2 @@ import {

ContextPad.prototype._createHtml = function(target) {
if (this.isOpen()) {
return this._current.pad;
}
var self = this;

@@ -447,3 +443,3 @@

if (this.isOpen() && this._current.target === target) {
if (this.isOpen() && targetsEqual(this._current.target, target)) {
html = this._current.html;

@@ -680,2 +676,18 @@ } else {

return connection.waypoints[connection.waypoints.length - 1];
}
/**
* @param {ContextPadTarget} target
* @param {ContextPadTarget} otherTarget
*
* @return {boolean}
*/
function targetsEqual(target, otherTarget) {
target = isArray(target) ? target : [ target ];
otherTarget = isArray(otherTarget) ? otherTarget : [ otherTarget ];
return target.length === otherTarget.length
&& every(target, function(element) {
return otherTarget.includes(element);
});
}
{
"name": "diagram-js",
"version": "14.5.1",
"version": "14.5.2",
"description": "A toolbox for displaying and modifying diagrams on the web",

@@ -5,0 +5,0 @@ "main": "lib/Diagram.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