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

diagram-js-direct-editing

Package Overview
Dependencies
Maintainers
9
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diagram-js-direct-editing - npm Package Compare versions

Comparing version 1.6.4 to 1.7.0

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## 1.7.0
* `FEAT`: allow to query for active element ([#25](https://github.com/bpmn-io/diagram-js-direct-editing/pull/25))
## 1.6.4

@@ -11,0 +15,0 @@

8

lib/DirectEditing.js

@@ -47,6 +47,8 @@ import {

*
* @return {Boolean}
* @param {djs.model.Base} [element]
*
* @return {boolean}
*/
DirectEditing.prototype.isActive = function() {
return !!this._active;
DirectEditing.prototype.isActive = function(element) {
return !!(this._active && (!element || this._active.element === element));
};

@@ -53,0 +55,0 @@

{
"name": "diagram-js-direct-editing",
"version": "1.6.4",
"version": "1.7.0",
"description": "Direct editing support for diagram-js",

@@ -23,3 +23,3 @@ "scripts": {

"chai": "^2.3.0",
"diagram-js": "^8.0.0",
"diagram-js": "^8.4.0",
"eslint": "^4.12.0",

@@ -26,0 +26,0 @@ "eslint-plugin-bpmn-io": "^0.5.2",

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